re PR bootstrap/50857 (The compiler is built with exceptions and RTTI enabled)
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir
641 gcc_config_arguments
642 float_h_file
643 extra_programs
644 extra_passes
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
998 fi
999
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1004
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1233
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1244
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1249
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1254
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1261
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1266
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1269
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1272
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1288
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1366 do
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551 cat <<\_ACEOF
1552
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files in source dir intended
1559 for creating source tarballs for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST]
1564 enable expensive run-time checks. With LIST, enable
1565 only specific categories of checks. Categories are:
1566 yes,no,all,none,release. Flags are:
1567 assert,df,fold,gc,gcac,gimple,misc,
1568 rtlflag,rtl,runtime,tree,valgrind,types
1569 --enable-coverage[=LEVEL]
1570 enable compiler's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid'
1581 or 'dpd' choses which decimal floating point format
1582 to use
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 package
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-initfini-array use .init_array/.fini_array sections
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1601 x86
1602 --disable-win32-registry
1603 disable lookup of installation paths in the Registry
1604 on Windows hosts
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1608 of the registry key
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-gnu-indirect-function
1615 enable the use of the @gnu_indirect_function to
1616 glibc systems
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv,gnu,both}
1672 specify the linker hash style
1673
1674 Some influential environment variables:
1675 CC C compiler command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1678 nonstandard directory <lib dir>
1679 LIBS libraries to pass to the linker, e.g. -l<library>
1680 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681 you have headers in a nonstandard directory <include dir>
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1684 CPP C preprocessor
1685 CXXCPP C++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 continue
1707 ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726 .) # We are building in place.
1727 ac_srcdir=.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1734 *) # Relative name.
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1749 else
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 fi || ac_status=$?
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1753 done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758 cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766 exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.$ac_objext; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev/null && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=$ac_status
2008 fi
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=0 ac_mid=0
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_hi=$ac_mid; break
2087 else
2088 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089 if test $ac_lo -le $ac_mid; then
2090 ac_lo= ac_hi=
2091 break
2092 fi
2093 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_lo=$ac_mid; break
2129 else
2130 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131 if test $ac_mid -le $ac_hi; then
2132 ac_lo= ac_hi=
2133 break
2134 fi
2135 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_hi=$ac_mid
2163 else
2164 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172 else
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184 FILE *f = fopen ("conftest.val", "w");
2185 if (! f)
2186 return 1;
2187 if (($2) < 0)
2188 {
2189 long int i = longval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%ld", i);
2193 }
2194 else
2195 {
2196 unsigned long int i = ulongval ();
2197 if (i != ($2))
2198 return 1;
2199 fprintf (f, "%lu", i);
2200 }
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212 ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215 conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218 fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=no"
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244 return 0;
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265 eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=no"
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324 case $ac_type in #(
2325 int$2_t) :
2326 eval "$3=yes" ;; #(
2327 *) :
2328 eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 eval as_val=\$$3
2335 if test "x$as_val" = x""no; then :
2336
2337 else
2338 break
2339 fi
2340 done
2341 fi
2342 eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 rm -f conftest.$ac_objext conftest$ac_exeext
2356 if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2364 ac_status=$?
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2369 fi
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2377 }; then :
2378 ac_retval=0
2379 else
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384 fi
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 eval "$3=no"
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 case $ac_type in #(
2425 uint$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 eval as_val=\$$3
2433 if test "x$as_val" = x""no; then :
2434
2435 else
2436 break
2437 fi
2438 done
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463 eval "$3=yes"
2464 else
2465 eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 ac_status=$?
2491 if test -s conftest.err; then
2492 grep -v '^ *+' conftest.err >conftest.er1
2493 cat conftest.er1 >&5
2494 mv -f conftest.er1 conftest.err
2495 fi
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev/null && {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507 fi
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595 eval "$3=yes"
2596 else
2597 eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2624 ac_status=$?
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2629 fi
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2637 }; then :
2638 ac_retval=0
2639 else
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_retval=1
2644 fi
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2660
2661 $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2679
2680 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2681 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2684 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2685 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2686 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2696 done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722 for ac_arg
2723 do
2724 case $ac_arg in
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2728 continue ;;
2729 *\'*)
2730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 esac
2732 case $ac_pass in
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 2)
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2738 else
2739 case $ac_arg in
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746 esac
2747 ;;
2748 -* ) ac_must_keep_next=true ;;
2749 esac
2750 fi
2751 as_fn_append ac_configure_args " '$ac_arg'"
2752 ;;
2753 esac
2754 done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2766 {
2767 echo
2768
2769 cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774 echo
2775 # The following way of writing the cache mishandles newlines in values,
2776 (
2777 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778 eval ac_val=\$$ac_var
2779 case $ac_val in #(
2780 *${as_nl}*)
2781 case $ac_var in #(
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784 esac
2785 case $ac_var in #(
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2789 esac ;;
2790 esac
2791 done
2792 (set) 2>&1 |
2793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2795 sed -n \
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798 ;; #(
2799 *)
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 ;;
2802 esac |
2803 sort
2804 )
2805 echo
2806
2807 cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812 echo
2813 for ac_var in $ac_subst_vars
2814 do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 esac
2819 $as_echo "$ac_var='\''$ac_val'\''"
2820 done | sort
2821 echo
2822
2823 if test -n "$ac_subst_files"; then
2824 cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_files
2831 do
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2839 fi
2840
2841 if test -s confdefs.h; then
2842 cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847 echo
2848 cat confdefs.h
2849 echo
2850 fi
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2854 } >&5
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857 exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2905 else
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2916 . "$ac_site_file"
2917 fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 case $cache_file in
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2929 esac
2930 fi
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934 >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2955 *)
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2985 fi
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3021 break 2
3022 fi
3023 done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3083 else
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3116 else
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3146 NONENONEs,x,x, &&
3147 program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186 build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3193 else
3194 host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3225 ;;
3226 *)
3227 library_path_setting="ok"
3228 ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory"
3251 ;;
3252 *)
3253 gcc_exec_prefix_setting="ok"
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no) ;;
3277 *) local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no) ;;
3298 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305 if test x${enable_version_specific_runtime_libs} = xyes; then
3306 gcc_gxx_include_dir='${libsubdir}/include/c++'
3307 else
3308 libstdcxx_incdir='include/c++/$(version)'
3309 if test x$host != x$target; then
3310 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311 fi
3312 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313 fi
3314 fi
3315
3316
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3320 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x$withval != xno; then
3322 cpp_install_dir=$withval
3323 fi
3324 fi
3325
3326
3327 # We would like to our source tree to be readonly. However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3331 # just that.
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335 # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 else
3339 generated_files_in_srcdir=no
3340 fi
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3345
3346 if test "$generated_files_in_srcdir" = "yes"; then
3347 GENINSRC=''
3348 else
3349 GENINSRC='#'
3350 fi
3351
3352
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3356
3357 # With GNU ld
3358
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 else
3363 gnu_ld_flag=no
3364 fi
3365
3366
3367 # With pre-defined ld
3368
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3372 fi
3373
3374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3375 if test ! -x "$DEFAULT_LINKER"; then
3376 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3378 gnu_ld_flag=yes
3379 fi
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3383 _ACEOF
3384
3385 fi
3386
3387 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3391 _ACEOF
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3397 if test x"$gnu_ld_flag" = x"no"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3403 fi
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409 # With demangler in GNU ld
3410
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 else
3415 demangler_in_ld=yes
3416 fi
3417
3418
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3422
3423 # With GNU as
3424
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3428 else
3429 gas_flag=no
3430 fi
3431
3432
3433
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3437 fi
3438
3439 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3440 if test ! -x "$DEFAULT_ASSEMBLER"; then
3441 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3443 gas_flag=yes
3444 fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3448 _ACEOF
3449
3450 fi
3451
3452 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3456 _ACEOF
3457
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test x"$gas_flag" = x"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468 fi
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3477
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3482 #
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3486
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$ac_cv_prog_CC"; then
3533 ac_ct_CC=$CC
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570 if test "x$ac_ct_CC" = x; then
3571 CC=""
3572 else
3573 case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 CC=$ac_ct_CC
3580 fi
3581 else
3582 CC="$ac_cv_prog_CC"
3583 fi
3584
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624 fi
3625 fi
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected=yes
3647 continue
3648 fi
3649 ac_cv_prog_CC="cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy $ac_cv_prog_CC
3660 shift
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3665 shift
3666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667 fi
3668 fi
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog in cl.exe
3685 do
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707 done
3708 done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723 test -n "$CC" && break
3724 done
3725 fi
3726 if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl.exe
3729 do
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767 test -n "$ac_ct_CC" && break
3768 done
3769
3770 if test "x$ac_ct_CC" = x; then
3771 CC=""
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779 CC=$ac_ct_CC
3780 fi
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3811 fi
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3866 do
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870 ;;
3871 [ab].out )
3872 # We found the default executable, but exeext='' is most
3873 # certainly right.
3874 break;;
3875 *.* )
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 then :; else
3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 fi
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3884 # actually working.
3885 break;;
3886 * )
3887 break;;
3888 esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892 else
3893 ac_file=''
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3906 fi
3907 ac_exeext=$ac_cv_exeext
3908
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3936 fi
3937 fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4148 fi
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4154 fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173 char **p;
4174 int i;
4175 {
4176 return p[i];
4177 }
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4179 {
4180 char *s;
4181 va_list v;
4182 va_start (v,p);
4183 s = g (p, va_arg (v,int));
4184 va_end (v);
4185 return s;
4186 }
4187
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4208 int
4209 main ()
4210 {
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 do
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4228
4229 fi
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4232 x)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235 xno)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4238 *)
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 fi
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main ()
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4301 then
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 rm -f conftest2.*
4318 if { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4338 then
4339 # cc works too.
4340 :
4341 else
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 fi
4345 fi
4346 fi
4347 else
4348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 fi
4350 rm -f core conftest*
4351
4352 fi
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361
4362 fi
4363
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379 fi
4380
4381
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4389 CXX=$CCC
4390 else
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393 do
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 test -n "$CXX" && break
4432 done
4433 fi
4434 if test -z "$CXX"; then
4435 ac_ct_CXX=$CXX
4436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 do
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475 test -n "$ac_ct_CXX" && break
4476 done
4477
4478 if test "x$ac_ct_CXX" = x; then
4479 CXX="g++"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CXX=$ac_ct_CXX
4488 fi
4489 fi
4490
4491 fi
4492 fi
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498 { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 ac_status=$?
4507 if test -s conftest.err; then
4508 sed '10a\
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 fi
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 done
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529 #ifndef __GNUC__
4530 choke me
4531 #endif
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_compiler_gnu=yes
4539 else
4540 ac_compiler_gnu=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549 GXX=yes
4550 else
4551 GXX=
4552 fi
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4562 ac_cv_prog_cxx_g=no
4563 CXXFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main ()
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4577 else
4578 CXXFLAGS=""
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581
4582 int
4583 main ()
4584 {
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591
4592 else
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 CXXFLAGS="-g"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main ()
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-g -O2"
4623 else
4624 CXXFLAGS="-g"
4625 fi
4626 else
4627 if test "$GXX" = yes; then
4628 CXXFLAGS="-O2"
4629 else
4630 CXXFLAGS=
4631 fi
4632 fi
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719 if test "x$ac_ct_GNATBIND" = x; then
4720 GNATBIND="no"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728 GNATBIND=$ac_ct_GNATBIND
4729 fi
4730 else
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4732 fi
4733
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811 if test "x$ac_ct_GNATMAKE" = x; then
4812 GNATMAKE="no"
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 GNATMAKE=$ac_ct_GNATMAKE
4821 fi
4822 else
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4833 EOF
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4846 fi
4847 rm -f conftest.*
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 have_gnat=yes
4854 else
4855 have_gnat=no
4856 fi
4857
4858
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4862 else
4863 OUTPUT_OPTION='-o $@'
4864 fi
4865
4866
4867
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4873 esac
4874
4875
4876 # Determine PICFLAG for target gnatlib.
4877
4878
4879
4880
4881 case "${target}" in
4882 # PIC is the default on some targets or must not be used.
4883 *-*-darwin*)
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4887 ;;
4888 alpha*-dec-osf5*)
4889 # PIC is the default.
4890 ;;
4891 hppa*64*-*-hpux*)
4892 # PIC is the default for 64-bit PA HP-UX.
4893 ;;
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895 ;;
4896 i[34567]86-*-interix3*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4899 ;;
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4902 # it will coredump.
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4904 ;;
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4907 ;;
4908 ia64*-*-hpux*)
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4912 ;;
4913 mips-sgi-irix6*)
4914 # PIC is the default.
4915 ;;
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4918 ;;
4919
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4921 # FIXME: Why?
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4924 ;;
4925 m68k-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4927 ;;
4928 s390*-*-*)
4929 PICFLAG_FOR_TARGET=-fpic
4930 ;;
4931 # FIXME: Override -fPIC default in libgcc only?
4932 sh-*-linux* | sh[2346lbe]*-*-linux*)
4933 PICFLAG_FOR_TARGET=-fpic
4934 ;;
4935 # FIXME: Simplify to sh*-*-netbsd*?
4936 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937 sh64-*-netbsd* | sh64l*-*-netbsd*)
4938 PICFLAG_FOR_TARGET=-fpic
4939 ;;
4940 # Default to -fPIC unless specified otherwise.
4941 *)
4942 PICFLAG_FOR_TARGET=-fPIC
4943 ;;
4944 esac
4945
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4948 *-fpic*)
4949 PICFLAG_FOR_TARGET=-fpic
4950 ;;
4951 *-fPIC*)
4952 PICFLAG_FOR_TARGET=-fPIC
4953 ;;
4954 esac
4955
4956
4957
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
4961
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4972 CPP=
4973 fi
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980 do
4981 ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4983 do
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997 Syntax error
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000
5001 else
5002 # Broken: fails on valid input.
5003 continue
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007 # OK, works on sane cases. Now check whether nonexistent headers
5008 # can be detected and how.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014 # Broken: success on invalid input.
5015 continue
5016 else
5017 # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then :
5027 break
5028 fi
5029
5030 done
5031 ac_cv_prog_CPP=$CPP
5032
5033 fi
5034 CPP=$ac_cv_prog_CPP
5035 else
5036 ac_cv_prog_CPP=$CPP
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5040 ac_preproc_ok=false
5041 for ac_c_preproc_warn_flag in '' yes
5042 do
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 #ifdef __STDC__
5052 # include <limits.h>
5053 #else
5054 # include <assert.h>
5055 #endif
5056 Syntax error
5057 _ACEOF
5058 if ac_fn_c_try_cpp "$LINENO"; then :
5059
5060 else
5061 # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5073 # Broken: success on invalid input.
5074 continue
5075 else
5076 # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082 done
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then :
5086
5087 else
5088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5092 fi
5093
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in grep ggrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 *)
5124 ac_count=0
5125 $as_echo_n 0123456789 >"conftest.in"
5126 while :
5127 do
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP="$ac_path_GREP"
5138 ac_path_GREP_max=$ac_count
5139 fi
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5142 done
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146 $ac_path_GREP_found && break 3
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 fi
5154 else
5155 ac_cv_path_GREP=$GREP
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170 then ac_cv_path_EGREP="$GREP -E"
5171 else
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in egrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 *)
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP="$ac_path_EGREP"
5204 ac_path_EGREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212 $ac_path_EGREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 fi
5220 else
5221 ac_cv_path_EGREP=$EGREP
5222 fi
5223
5224 fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP="$ac_cv_path_EGREP"
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5242
5243 int
5244 main ()
5245 {
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 ac_cv_header_stdc=yes
5253 else
5254 ac_cv_header_stdc=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257
5258 if test $ac_cv_header_stdc = yes; then
5259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 #include <string.h>
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "memchr" >/dev/null 2>&1; then :
5267
5268 else
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest*
5272
5273 fi
5274
5275 if test $ac_cv_header_stdc = yes; then
5276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <stdlib.h>
5280
5281 _ACEOF
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "free" >/dev/null 2>&1; then :
5284
5285 else
5286 ac_cv_header_stdc=no
5287 fi
5288 rm -f conftest*
5289
5290 fi
5291
5292 if test $ac_cv_header_stdc = yes; then
5293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294 if test "$cross_compiling" = yes; then :
5295 :
5296 else
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <ctype.h>
5300 #include <stdlib.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5311
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 int
5314 main ()
5315 {
5316 int i;
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5320 return 2;
5321 return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_run "$LINENO"; then :
5325
5326 else
5327 ac_cv_header_stdc=no
5328 fi
5329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5330 conftest.$ac_objext conftest.beam conftest.$ac_ext
5331 fi
5332
5333 fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5338
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5340
5341 fi
5342
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5345 inttypes.h stdint.h unistd.h
5346 do :
5347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 "
5350 eval as_val=\$$as_ac_Header
5351 if test "x$as_val" = x""yes; then :
5352 cat >>confdefs.h <<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354 _ACEOF
5355
5356 fi
5357
5358 done
5359
5360
5361
5362 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5364 MINIX=yes
5365 else
5366 MINIX=
5367 fi
5368
5369
5370 if test "$MINIX" = yes; then
5371
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373
5374
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376
5377
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5379
5380 fi
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390
5391 # define __EXTENSIONS__ 1
5392 $ac_includes_default
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_safe_to_define___extensions__=yes
5403 else
5404 ac_cv_safe_to_define___extensions__=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410 test $ac_cv_safe_to_define___extensions__ = yes &&
5411 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412
5413 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414
5415 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416
5417 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418
5419 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5420
5421
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5431 CPP=
5432 fi
5433 if test -z "$CPP"; then
5434 if test "${ac_cv_prog_CPP+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 # Double quotes because CPP needs to be expanded
5438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439 do
5440 ac_preproc_ok=false
5441 for ac_c_preproc_warn_flag in '' yes
5442 do
5443 # Use a header file that comes with gcc, so configuring glibc
5444 # with a fresh cross-compiler works.
5445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 # <limits.h> exists even on freestanding compilers.
5447 # On the NeXT, cc -E runs the code through the compiler's parser,
5448 # not just through cpp. "Syntax error" is here to catch this case.
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #ifdef __STDC__
5452 # include <limits.h>
5453 #else
5454 # include <assert.h>
5455 #endif
5456 Syntax error
5457 _ACEOF
5458 if ac_fn_c_try_cpp "$LINENO"; then :
5459
5460 else
5461 # Broken: fails on valid input.
5462 continue
5463 fi
5464 rm -f conftest.err conftest.$ac_ext
5465
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <ac_nonexistent.h>
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"; then :
5473 # Broken: success on invalid input.
5474 continue
5475 else
5476 # Passes both tests.
5477 ac_preproc_ok=:
5478 break
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481
5482 done
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.$ac_ext
5485 if $ac_preproc_ok; then :
5486 break
5487 fi
5488
5489 done
5490 ac_cv_prog_CPP=$CPP
5491
5492 fi
5493 CPP=$ac_cv_prog_CPP
5494 else
5495 ac_cv_prog_CPP=$CPP
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5499 ac_preproc_ok=false
5500 for ac_c_preproc_warn_flag in '' yes
5501 do
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #ifdef __STDC__
5511 # include <limits.h>
5512 #else
5513 # include <assert.h>
5514 #endif
5515 Syntax error
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518
5519 else
5520 # Broken: fails on valid input.
5521 continue
5522 fi
5523 rm -f conftest.err conftest.$ac_ext
5524
5525 # OK, works on sane cases. Now check whether nonexistent headers
5526 # can be detected and how.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <ac_nonexistent.h>
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5532 # Broken: success on invalid input.
5533 continue
5534 else
5535 # Passes both tests.
5536 ac_preproc_ok=:
5537 break
5538 fi
5539 rm -f conftest.err conftest.$ac_ext
5540
5541 done
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.$ac_ext
5544 if $ac_preproc_ok; then :
5545
5546 else
5547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5551 fi
5552
5553 ac_ext=c
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 ac_cv_c_inline=no
5565 for ac_kw in inline __inline__ __inline; do
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #ifndef __cplusplus
5569 typedef int foo_t;
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5572 #endif
5573
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576 ac_cv_c_inline=$ac_kw
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 test "$ac_cv_c_inline" != no && break
5580 done
5581
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5585
5586 case $ac_cv_c_inline in
5587 inline | yes) ;;
5588 *)
5589 case $ac_cv_c_inline in
5590 no) ac_val=;;
5591 *) ac_val=$ac_cv_c_inline;;
5592 esac
5593 cat >>confdefs.h <<_ACEOF
5594 #ifndef __cplusplus
5595 #define inline $ac_val
5596 #endif
5597 _ACEOF
5598 ;;
5599 esac
5600
5601
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604 enableval=$enable_largefile;
5605 fi
5606
5607 if test "$enable_largefile" != no; then
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 ac_cv_sys_largefile_CC=no
5615 if test "$GCC" != yes; then
5616 ac_save_CC=$CC
5617 while :; do
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 /* Check that off_t can represent 2**63 - 1 correctly.
5624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625 since some C++ compilers masquerading as C compilers
5626 incorrectly reject 9223372036854775807. */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629 && LARGE_OFF_T % 2147483647 == 1)
5630 ? 1 : -1];
5631 int
5632 main ()
5633 {
5634
5635 ;
5636 return 0;
5637 }
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 break
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext
5643 CC="$CC -n32"
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 ac_cv_sys_largefile_CC=' -n32'; break
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext
5648 break
5649 done
5650 CC=$ac_save_CC
5651 rm -f conftest.$ac_ext
5652 fi
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656 if test "$ac_cv_sys_largefile_CC" != no; then
5657 CC=$CC$ac_cv_sys_largefile_CC
5658 fi
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 while :; do
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_file_offset_bits=no; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5700 ? 1 : -1];
5701 int
5702 main ()
5703 {
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 ac_cv_sys_file_offset_bits=64; break
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 ac_cv_sys_file_offset_bits=unknown
5714 break
5715 done
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5720 no | unknown) ;;
5721 *)
5722 cat >>confdefs.h <<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5724 _ACEOF
5725 ;;
5726 esac
5727 rm -rf conftest*
5728 if test $ac_cv_sys_file_offset_bits = unknown; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 while :; do
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5738 /* Check that off_t can represent 2**63 - 1 correctly.
5739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740 since some C++ compilers masquerading as C compilers
5741 incorrectly reject 9223372036854775807. */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744 && LARGE_OFF_T % 2147483647 == 1)
5745 ? 1 : -1];
5746 int
5747 main ()
5748 {
5749
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 ac_cv_sys_large_files=no; break
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5769 ? 1 : -1];
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779 ac_cv_sys_large_files=1; break
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 ac_cv_sys_large_files=unknown
5783 break
5784 done
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5789 no | unknown) ;;
5790 *)
5791 cat >>confdefs.h <<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5793 _ACEOF
5794 ;;
5795 esac
5796 rm -rf conftest*
5797 fi
5798 fi
5799
5800
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5812
5813 else
5814 if test "$ac_cv_type_void_p" = yes; then
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status 77
5818 as_fn_error "cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5820 else
5821 ac_cv_sizeof_void_p=0
5822 fi
5823 fi
5824
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5828
5829
5830
5831 cat >>confdefs.h <<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5833 _ACEOF
5834
5835
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5846
5847 else
5848 if test "$ac_cv_type_short" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status 77
5852 as_fn_error "cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5854 else
5855 ac_cv_sizeof_short=0
5856 fi
5857 fi
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5862
5863
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5867 _ACEOF
5868
5869
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5880
5881 else
5882 if test "$ac_cv_type_int" = yes; then
5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status 77
5886 as_fn_error "cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5888 else
5889 ac_cv_sizeof_int=0
5890 fi
5891 fi
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5896
5897
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5901 _ACEOF
5902
5903
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5914
5915 else
5916 if test "$ac_cv_type_long" = yes; then
5917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status 77
5920 as_fn_error "cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5922 else
5923 ac_cv_sizeof_long=0
5924 fi
5925 fi
5926
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5930
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5935 _ACEOF
5936
5937
5938 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x""yes; then :
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_LONG_LONG 1
5943 _ACEOF
5944
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5955
5956 else
5957 if test "$ac_cv_type_long_long" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status 77
5961 as_fn_error "cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5963 else
5964 ac_cv_sizeof_long_long=0
5965 fi
5966 fi
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5971
5972
5973
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5976 _ACEOF
5977
5978
5979 fi
5980
5981 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x""yes; then :
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE___INT64 1
5986 _ACEOF
5987
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5998
5999 else
6000 if test "$ac_cv_type___int64" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status 77
6004 as_fn_error "cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6006 else
6007 ac_cv_sizeof___int64=0
6008 fi
6009 fi
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6014
6015
6016
6017 cat >>confdefs.h <<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6019 _ACEOF
6020
6021
6022 fi
6023
6024 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6026 no|yes) ;; #(
6027 *)
6028
6029 cat >>confdefs.h <<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6031 _ACEOF
6032 ;;
6033 esac
6034
6035 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6037 no|yes) ;; #(
6038 *)
6039
6040 cat >>confdefs.h <<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6042 _ACEOF
6043 ;;
6044 esac
6045
6046 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6048 no|yes) ;; #(
6049 *)
6050
6051 cat >>confdefs.h <<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6053 _ACEOF
6054 ;;
6055 esac
6056
6057 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6059 no|yes) ;; #(
6060 *)
6061
6062 cat >>confdefs.h <<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6064 _ACEOF
6065 ;;
6066 esac
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076
6077 /* For now, do not test the preprocessor; as of 2007 there are too many
6078 implementations with broken preprocessors. Perhaps this can
6079 be revisited in 2012. In the meantime, code should not expect
6080 #if to work with literals wider than 32 bits. */
6081 /* Test literals. */
6082 long long int ll = 9223372036854775807ll;
6083 long long int nll = -9223372036854775807LL;
6084 unsigned long long int ull = 18446744073709551615ULL;
6085 /* Test constant expressions. */
6086 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087 ? 1 : -1)];
6088 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6089 ? 1 : -1)];
6090 int i = 63;
6091 int
6092 main ()
6093 {
6094 /* Test availability of runtime routines for shift and division. */
6095 long long int llmax = 9223372036854775807ll;
6096 unsigned long long int ullmax = 18446744073709551615ull;
6097 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098 | (llmax / ll) | (llmax % ll)
6099 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100 | (ullmax / ull) | (ullmax % ull));
6101 ;
6102 return 0;
6103 }
6104
6105 _ACEOF
6106 if ac_fn_c_try_link "$LINENO"; then :
6107 if test "$cross_compiling" = yes; then :
6108 ac_cv_type_long_long_int=yes
6109 else
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 #include <limits.h>
6113 #ifndef LLONG_MAX
6114 # define HALF \
6115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116 # define LLONG_MAX (HALF - 1 + HALF)
6117 #endif
6118 int
6119 main ()
6120 {
6121 long long int n = 1;
6122 int i;
6123 for (i = 0; ; i++)
6124 {
6125 long long int m = n << i;
6126 if (m >> i != n)
6127 return 1;
6128 if (LLONG_MAX / 2 < m)
6129 break;
6130 }
6131 return 0;
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_run "$LINENO"; then :
6137 ac_cv_type_long_long_int=yes
6138 else
6139 ac_cv_type_long_long_int=no
6140 fi
6141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6142 conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 fi
6144
6145 else
6146 ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153 if test $ac_cv_type_long_long_int = yes; then
6154
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6156
6157 fi
6158
6159
6160
6161 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6163
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165
6166 else
6167 test $ac_cv_type_long_long_int = yes \
6168 && ac_type='long long int' \
6169 || ac_type='long int'
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define intmax_t $ac_type
6173 _ACEOF
6174
6175 fi
6176
6177
6178
6179 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6181
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183
6184 else
6185 for ac_type in 'int' 'long int' 'long long int'; do
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 int
6190 main ()
6191 {
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6193 test_array [0] = 0
6194
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200
6201 cat >>confdefs.h <<_ACEOF
6202 #define intptr_t $ac_type
6203 _ACEOF
6204
6205 ac_type=
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 test -z "$ac_type" && break
6209 done
6210 fi
6211
6212
6213 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6215 no|yes) ;; #(
6216 *)
6217
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6223 _ACEOF
6224 ;;
6225 esac
6226
6227 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6229 no|yes) ;; #(
6230 *)
6231
6232
6233 cat >>confdefs.h <<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6235 _ACEOF
6236 ;;
6237 esac
6238
6239 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6241 no|yes) ;; #(
6242 *)
6243
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6249 _ACEOF
6250 ;;
6251 esac
6252
6253 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6255 no|yes) ;; #(
6256 *)
6257
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6263 _ACEOF
6264 ;;
6265 esac
6266
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275
6276 /* For now, do not test the preprocessor; as of 2007 there are too many
6277 implementations with broken preprocessors. Perhaps this can
6278 be revisited in 2012. In the meantime, code should not expect
6279 #if to work with literals wider than 32 bits. */
6280 /* Test literals. */
6281 long long int ll = 9223372036854775807ll;
6282 long long int nll = -9223372036854775807LL;
6283 unsigned long long int ull = 18446744073709551615ULL;
6284 /* Test constant expressions. */
6285 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286 ? 1 : -1)];
6287 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6288 ? 1 : -1)];
6289 int i = 63;
6290 int
6291 main ()
6292 {
6293 /* Test availability of runtime routines for shift and division. */
6294 long long int llmax = 9223372036854775807ll;
6295 unsigned long long int ullmax = 18446744073709551615ull;
6296 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297 | (llmax / ll) | (llmax % ll)
6298 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299 | (ullmax / ull) | (ullmax % ull));
6300 ;
6301 return 0;
6302 }
6303
6304 _ACEOF
6305 if ac_fn_c_try_link "$LINENO"; then :
6306 ac_cv_type_unsigned_long_long_int=yes
6307 else
6308 ac_cv_type_unsigned_long_long_int=no
6309 fi
6310 rm -f core conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6318
6319 fi
6320
6321
6322
6323 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6325
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327
6328 else
6329 test $ac_cv_type_unsigned_long_long_int = yes \
6330 && ac_type='unsigned long long int' \
6331 || ac_type='unsigned long int'
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define uintmax_t $ac_type
6335 _ACEOF
6336
6337 fi
6338
6339
6340
6341 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6343
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345
6346 else
6347 for ac_type in 'unsigned int' 'unsigned long int' \
6348 'unsigned long long int'; do
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 int
6353 main ()
6354 {
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6356 test_array [0] = 0
6357
6358 ;
6359 return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define uintptr_t $ac_type
6366 _ACEOF
6367
6368 ac_type=
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 test -z "$ac_type" && break
6372 done
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6392
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6395 # * 'long long'
6396 # * variadic macros
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
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:+ }$option"
6436 fi
6437 done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 CFLAGS="$option"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453
6454 int
6455 main ()
6456 {
6457
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6464 else
6465 eval "$as_acx_Woption=no"
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468
6469 fi
6470 eval ac_res=\$$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6475 fi
6476 done
6477 CFLAGS="$save_CFLAGS"
6478
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508 fi
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$option"
6514 fi
6515 done
6516 CFLAGS="$save_CFLAGS"
6517
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 CFLAGS="$option"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6542 else
6543 eval "$as_acx_Woption=no"
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
6547 fi
6548 eval ac_res=\$$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6553 fi
6554 done
6555 CFLAGS="$save_CFLAGS"
6556
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567
6568 int
6569 main ()
6570 {
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6588 fi
6589
6590 fi
6591
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval=$enable_werror_always;
6595 else
6596 enable_werror_always=no
6597 fi
6598
6599 if test $enable_werror_always = yes; then :
6600 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6601 fi
6602
6603
6604
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6613 fi
6614
6615
6616
6617 # Disable exceptions and RTTI if building with g++
6618 noexception_flags=
6619 save_CFLAGS="$CFLAGS"
6620 for option in -fno-exceptions -fno-rtti; do
6621 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6624 $as_echo_n "checking whether $CC supports $option... " >&6; }
6625 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 CFLAGS="$option"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632 int
6633 main ()
6634 {
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_compile "$LINENO"; then :
6641 eval "$as_acx_Woption=yes"
6642 else
6643 eval "$as_acx_Woption=no"
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646
6647 fi
6648 eval ac_res=\$$as_acx_Woption
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6651 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6652 noexception_flags="$noexception_flags${noexception_flags:+ }$option"
6653 fi
6654 done
6655 CFLAGS="$save_CFLAGS"
6656
6657
6658 # Enable expensive internal checks
6659 is_release=
6660 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6661 is_release=yes
6662 fi
6663
6664 # Check whether --enable-checking was given.
6665 if test "${enable_checking+set}" = set; then :
6666 enableval=$enable_checking; ac_checking_flags="${enableval}"
6667 else
6668
6669 # Determine the default checks.
6670 if test x$is_release = x ; then
6671 ac_checking_flags=yes
6672 else
6673 ac_checking_flags=release
6674 fi
6675 fi
6676
6677 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6678 for check in release $ac_checking_flags
6679 do
6680 case $check in
6681 # these set all the flags to specific states
6682 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6683 ac_fold_checking= ; ac_gc_checking=1 ;
6684 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6685 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6686 ac_tree_checking=1 ; ac_valgrind_checking= ;
6687 ac_types_checking=1 ;;
6688 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6689 ac_fold_checking= ; ac_gc_checking= ;
6690 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6691 ac_rtlflag_checking= ; ac_runtime_checking= ;
6692 ac_tree_checking= ; ac_valgrind_checking= ;
6693 ac_types_checking= ;;
6694 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6695 ac_fold_checking=1 ; ac_gc_checking=1 ;
6696 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6697 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6698 ac_tree_checking=1 ; ac_valgrind_checking= ;
6699 ac_types_checking=1 ;;
6700 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6701 ac_fold_checking= ; ac_gc_checking= ;
6702 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6703 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6704 ac_tree_checking= ; ac_valgrind_checking= ;
6705 ac_types_checking= ;;
6706 # these enable particular checks
6707 assert) ac_assert_checking=1 ;;
6708 df) ac_df_checking=1 ;;
6709 fold) ac_fold_checking=1 ;;
6710 gc) ac_gc_checking=1 ;;
6711 gcac) ac_gc_always_collect=1 ;;
6712 gimple) ac_gimple_checking=1 ;;
6713 misc) ac_checking=1 ;;
6714 rtl) ac_rtl_checking=1 ;;
6715 rtlflag) ac_rtlflag_checking=1 ;;
6716 runtime) ac_runtime_checking=1 ;;
6717 tree) ac_tree_checking=1 ;;
6718 types) ac_types_checking=1 ;;
6719 valgrind) ac_valgrind_checking=1 ;;
6720 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6721 esac
6722 done
6723 IFS="$ac_save_IFS"
6724
6725 nocommon_flag=""
6726 if test x$ac_checking != x ; then
6727
6728 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6729
6730 nocommon_flag=-fno-common
6731 fi
6732
6733 if test x$ac_df_checking != x ; then
6734
6735 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6736
6737 fi
6738 if test x$ac_assert_checking != x ; then
6739
6740 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6741
6742 fi
6743 if test x$ac_gimple_checking != x ; then
6744
6745 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6746
6747 fi
6748
6749 if test x$ac_runtime_checking != x ; then
6750
6751 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6752
6753 fi
6754 if test x$ac_tree_checking != x ; then
6755
6756 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6757
6758 TREEBROWSER=tree-browser.o
6759 fi
6760 if test x$ac_types_checking != x ; then
6761
6762 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6763
6764 fi
6765
6766 if test x$ac_rtl_checking != x ; then
6767
6768 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6769
6770 fi
6771 if test x$ac_rtlflag_checking != x ; then
6772
6773 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6774
6775 fi
6776 if test x$ac_gc_checking != x ; then
6777
6778 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6779
6780 fi
6781 if test x$ac_gc_always_collect != x ; then
6782
6783 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6784
6785 fi
6786 if test x$ac_fold_checking != x ; then
6787
6788 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6789
6790 fi
6791 valgrind_path_defines=
6792 valgrind_command=
6793
6794 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6796 have_valgrind_h=yes
6797 else
6798 have_valgrind_h=no
6799 fi
6800
6801
6802
6803 if test x$ac_valgrind_checking != x ; then
6804 # It is certainly possible that there's valgrind but no valgrind.h.
6805 # GCC relies on making annotations so we must have both.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6807 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #include <valgrind/memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6813 #endif
6814 _ACEOF
6815 if ac_fn_c_try_cpp "$LINENO"; then :
6816 gcc_cv_header_valgrind_memcheck_h=yes
6817 else
6818 gcc_cv_header_valgrind_memcheck_h=no
6819 fi
6820 rm -f conftest.err conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6822 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6824 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <memcheck.h>
6828 #ifndef VALGRIND_DISCARD
6829 #error VALGRIND_DISCARD not defined
6830 #endif
6831 _ACEOF
6832 if ac_fn_c_try_cpp "$LINENO"; then :
6833 gcc_cv_header_memcheck_h=yes
6834 else
6835 gcc_cv_header_memcheck_h=no
6836 fi
6837 rm -f conftest.err conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6839 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6840
6841 # Prepare PATH_SEPARATOR.
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844 echo "#! /bin/sh" >conf$$.sh
6845 echo "exit 0" >>conf$$.sh
6846 chmod +x conf$$.sh
6847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6848 PATH_SEPARATOR=';'
6849 else
6850 PATH_SEPARATOR=:
6851 fi
6852 rm -f conf$$.sh
6853 fi
6854
6855 # Find out how to test for executable files. Don't use a zero-byte file,
6856 # as systems may use methods other than mode bits to determine executability.
6857 cat >conf$$.file <<_ASEOF
6858 #! /bin/sh
6859 exit 0
6860 _ASEOF
6861 chmod +x conf$$.file
6862 if test -x conf$$.file >/dev/null 2>&1; then
6863 ac_executable_p="test -x"
6864 else
6865 ac_executable_p="test -f"
6866 fi
6867 rm -f conf$$.file
6868
6869 # Extract the first word of "valgrind", so it can be a program name with args.
6870 set dummy valgrind; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 case "$valgrind_path" in
6877 [\\/]* | ?:[\\/]*)
6878 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6879 ;;
6880 *)
6881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6882 for ac_dir in $PATH; do
6883 IFS="$ac_save_IFS"
6884 test -z "$ac_dir" && ac_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6887 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6888 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6889 break 2
6890 fi
6891 fi
6892 done
6893 done
6894 IFS="$ac_save_IFS"
6895 ;;
6896 esac
6897 fi
6898 valgrind_path="$ac_cv_path_valgrind_path"
6899 if test -n "$valgrind_path"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6901 $as_echo "$valgrind_path" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907 if test "x$valgrind_path" = "x" \
6908 || (test $have_valgrind_h = no \
6909 && test $gcc_cv_header_memcheck_h = no \
6910 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6911 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6912 fi
6913 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6914 valgrind_command="$valgrind_path -q"
6915
6916 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6917
6918 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6919
6920 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6921
6922 fi
6923 if test $gcc_cv_header_memcheck_h = yes; then
6924
6925 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6926
6927 fi
6928 fi
6929
6930
6931
6932 # Enable code coverage collection
6933 # Check whether --enable-coverage was given.
6934 if test "${enable_coverage+set}" = set; then :
6935 enableval=$enable_coverage; case "${enableval}" in
6936 yes|noopt)
6937 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6938 ;;
6939 opt)
6940 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6941 ;;
6942 no)
6943 # a.k.a. --disable-coverage
6944 coverage_flags=""
6945 ;;
6946 *)
6947 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6948 ;;
6949 esac
6950 else
6951 coverage_flags=""
6952 fi
6953
6954
6955
6956 # Check whether --enable-gather-detailed-mem-stats was given.
6957 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6958 enableval=$enable_gather_detailed_mem_stats;
6959 else
6960 enable_gather_detailed_mem_stats=no
6961 fi
6962
6963 if test x$enable_gather_detailed_mem_stats = xyes ; then
6964
6965 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6966
6967 fi
6968
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6972
6973 # See if we are building gcc with C++.
6974 # Check whether --enable-build-with-cxx was given.
6975 if test "${enable_build_with_cxx+set}" = set; then :
6976 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6977 else
6978 ENABLE_BUILD_WITH_CXX=no
6979 fi
6980
6981
6982 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6983
6984 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6985
6986 fi
6987
6988 # With stabs
6989
6990 # Check whether --with-stabs was given.
6991 if test "${with_stabs+set}" = set; then :
6992 withval=$with_stabs; stabs="$with_stabs"
6993 else
6994 stabs=no
6995 fi
6996
6997
6998 # Determine whether or not multilibs are enabled.
6999 # Check whether --enable-multilib was given.
7000 if test "${enable_multilib+set}" = set; then :
7001 enableval=$enable_multilib;
7002 else
7003 enable_multilib=yes
7004 fi
7005
7006
7007
7008 # Enable __cxa_atexit for C++.
7009 # Check whether --enable-__cxa_atexit was given.
7010 if test "${enable___cxa_atexit+set}" = set; then :
7011 enableval=$enable___cxa_atexit;
7012 fi
7013
7014
7015 # Enable C extension for decimal float if target supports it.
7016
7017 # Check whether --enable-decimal-float was given.
7018 if test "${enable_decimal_float+set}" = set; then :
7019 enableval=$enable_decimal_float;
7020 case $enable_decimal_float in
7021 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7022 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7023 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7024 esac
7025
7026 else
7027
7028 case $target in
7029 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7030 i?86*-*-mingw* | x86_64*-*-mingw* | \
7031 i?86*-*-cygwin*)
7032 enable_decimal_float=yes
7033 ;;
7034 *)
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7036 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7037 enable_decimal_float=no
7038 ;;
7039 esac
7040
7041 fi
7042
7043
7044 # x86's use BID format instead of DPD
7045 case x$enable_decimal_float in
7046 xyes)
7047 case $target in
7048 i?86*-*-* | x86_64*-*-*)
7049 enable_decimal_float=bid
7050 ;;
7051 *)
7052 enable_decimal_float=dpd
7053 ;;
7054 esac
7055 default_decimal_float=$enable_decimal_float
7056 ;;
7057 xno)
7058 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7059 # dependency on libdecnumber.
7060 default_decimal_float=dpd
7061 ;;
7062 esac
7063
7064
7065
7066
7067 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define ENABLE_DECIMAL_FLOAT $dfp
7071 _ACEOF
7072
7073
7074 # Use default_decimal_float for dependency.
7075 enable_decimal_float=$default_decimal_float
7076
7077 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_DECIMAL_BID_FORMAT $bid
7081 _ACEOF
7082
7083
7084 # Enable C extension for fixed-point arithmetic.
7085 # Check whether --enable-fixed-point was given.
7086 if test "${enable_fixed_point+set}" = set; then :
7087 enableval=$enable_fixed_point;
7088 else
7089
7090 case $target in
7091 arm*)
7092 enable_fixed_point=yes
7093 ;;
7094
7095 mips*-*-*)
7096 case $host in
7097 mips*-sgi-irix*)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7099 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7100 enable_fixed_point=no
7101 ;;
7102 *)
7103 enable_fixed_point=yes
7104 ;;
7105 esac
7106 ;;
7107 *)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110 enable_fixed_point=no
7111 ;;
7112 esac
7113
7114 fi
7115
7116
7117
7118 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7122 _ACEOF
7123
7124
7125 # Enable threads
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130 enableval=$enable_threads;
7131 else
7132 enable_threads=''
7133 fi
7134
7135
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138 enableval=$enable_tls;
7139 case $enable_tls in
7140 yes | no) ;;
7141 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7143 esac
7144
7145 else
7146 enable_tls=''
7147 fi
7148
7149
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7153 objc_boehm_gc=''
7154 else
7155 objc_boehm_gc=1
7156 fi
7157 else
7158 objc_boehm_gc=''
7159 fi
7160
7161
7162
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7166 else
7167 dwarf2=no
7168 fi
7169
7170
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval=$enable_shared;
7174 case $enable_shared in
7175 yes | no) ;;
7176 *)
7177 enable_shared=no
7178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7179 for pkg in $enableval; do
7180 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7181 enable_shared=yes
7182 fi
7183 done
7184 IFS="$ac_save_ifs"
7185 ;;
7186 esac
7187
7188 else
7189 enable_shared=yes
7190 fi
7191
7192
7193
7194
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197 withval=$with_native_system_header_dir;
7198 case ${with_native_system_header_dir} in
7199 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200 /* | [A-Za-z]:[\\/]*) ;;
7201 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7202 esac
7203 configured_native_system_header_dir="${withval}"
7204
7205 else
7206 configured_native_system_header_dir=
7207 fi
7208
7209
7210
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213 withval=$with_build_sysroot; if test x"$withval" != x ; then
7214 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7215 fi
7216 else
7217 SYSROOT_CFLAGS_FOR_TARGET=
7218 fi
7219
7220
7221
7222
7223 # Check whether --with-sysroot was given.
7224 if test "${with_sysroot+set}" = set; then :
7225 withval=$with_sysroot;
7226 case ${with_sysroot} in
7227 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7228 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7229 esac
7230
7231 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7232 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7233
7234 if test "x$prefix" = xNONE; then
7235 test_prefix=/usr/local
7236 else
7237 test_prefix=$prefix
7238 fi
7239 if test "x$exec_prefix" = xNONE; then
7240 test_exec_prefix=$test_prefix
7241 else
7242 test_exec_prefix=$exec_prefix
7243 fi
7244 case ${TARGET_SYSTEM_ROOT} in
7245 "${test_prefix}"|"${test_prefix}/"*|\
7246 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7247 '${prefix}'|'${prefix}/'*|\
7248 '${exec_prefix}'|'${exec_prefix}/'*)
7249 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7250 TARGET_SYSTEM_ROOT_DEFINE="$t"
7251 ;;
7252 esac
7253
7254 else
7255
7256 TARGET_SYSTEM_ROOT=
7257 TARGET_SYSTEM_ROOT_DEFINE=
7258 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7259
7260 fi
7261
7262
7263
7264
7265
7266
7267 # Check whether --with-specs was given.
7268 if test "${with_specs+set}" = set; then :
7269 withval=$with_specs; CONFIGURE_SPECS=$withval
7270 else
7271 CONFIGURE_SPECS=
7272
7273 fi
7274
7275
7276
7277
7278
7279 # Check whether --with-pkgversion was given.
7280 if test "${with_pkgversion+set}" = set; then :
7281 withval=$with_pkgversion; case "$withval" in
7282 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7283 no) PKGVERSION= ;;
7284 *) PKGVERSION="($withval) " ;;
7285 esac
7286 else
7287 PKGVERSION="(GCC) "
7288
7289 fi
7290
7291
7292
7293
7294
7295 # Check whether --with-bugurl was given.
7296 if test "${with_bugurl+set}" = set; then :
7297 withval=$with_bugurl; case "$withval" in
7298 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7299 no) BUGURL=
7300 ;;
7301 *) BUGURL="$withval"
7302 ;;
7303 esac
7304 else
7305 BUGURL="http://gcc.gnu.org/bugs.html"
7306
7307 fi
7308
7309 case ${BUGURL} in
7310 "")
7311 REPORT_BUGS_TO=
7312 REPORT_BUGS_TEXI=
7313 ;;
7314 *)
7315 REPORT_BUGS_TO="<$BUGURL>"
7316 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7317 ;;
7318 esac;
7319
7320
7321
7322
7323 # Sanity check enable_languages in case someone does not run the toplevel
7324 # configure # script.
7325 # Check whether --enable-languages was given.
7326 if test "${enable_languages+set}" = set; then :
7327 enableval=$enable_languages; case ,${enable_languages}, in
7328 ,,|,yes,)
7329 # go safe -- we cannot be much sure without the toplevel
7330 # configure's
7331 # analysis of which target libs are present and usable
7332 enable_languages=c
7333 ;;
7334 *,all,*)
7335 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7336 ;;
7337 *,c,*)
7338 ;;
7339 *)
7340 enable_languages=c,${enable_languages}
7341 ;;
7342 esac
7343 else
7344 enable_languages=c
7345 fi
7346
7347
7348
7349 # Check whether --with-multilib-list was given.
7350 if test "${with_multilib_list+set}" = set; then :
7351 withval=$with_multilib_list; :
7352 else
7353 with_multilib_list=default
7354 fi
7355
7356
7357 # -------------------------
7358 # Checks for other programs
7359 # -------------------------
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7363 set x ${MAKE-make}
7364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7365 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 cat >conftest.make <<\_ACEOF
7369 SHELL = /bin/sh
7370 all:
7371 @echo '@@@%%%=$(MAKE)=@@@%%%'
7372 _ACEOF
7373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7375 *@@@%%%=?*=@@@%%%*)
7376 eval ac_cv_prog_make_${ac_make}_set=yes;;
7377 *)
7378 eval ac_cv_prog_make_${ac_make}_set=no;;
7379 esac
7380 rm -f conftest.make
7381 fi
7382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385 SET_MAKE=
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 SET_MAKE="MAKE=${MAKE-make}"
7390 fi
7391
7392
7393 # Find some useful tools
7394 for ac_prog in gawk mawk nawk awk
7395 do
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_AWK+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$AWK"; then
7404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_AWK="$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 AWK=$ac_cv_prog_AWK
7424 if test -n "$AWK"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7426 $as_echo "$AWK" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433 test -n "$AWK" && break
7434 done
7435
7436 # We need awk to create options.c and options.h.
7437 # Bail out if it's missing.
7438 case ${AWK} in
7439 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7440 esac
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7443 $as_echo_n "checking whether ln -s works... " >&6; }
7444 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 rm -f conftestdata_t
7448 echo >conftestdata_f
7449 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7450 then
7451 gcc_cv_prog_LN_S="ln -s"
7452 else
7453 if ln conftestdata_f conftestdata_t 2>/dev/null
7454 then
7455 gcc_cv_prog_LN_S=ln
7456 else
7457 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7458 then
7459 gcc_cv_prog_LN_S="cp -p"
7460 else
7461 gcc_cv_prog_LN_S=cp
7462 fi
7463 fi
7464 fi
7465 rm -f conftestdata_f conftestdata_t
7466
7467 fi
7468 LN_S="$gcc_cv_prog_LN_S"
7469 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }
7472 else
7473 if test "$gcc_cv_prog_LN_S" = "ln"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7475 $as_echo "no, using ln" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7478 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7479 fi
7480 fi
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7483 $as_echo_n "checking whether ln works... " >&6; }
7484 if test "${acx_cv_prog_LN+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln conftestdata_f conftestdata_t 2>/dev/null
7490 then
7491 acx_cv_prog_LN=ln
7492 else
7493 acx_cv_prog_LN=no
7494 fi
7495 rm -f conftestdata_f conftestdata_t
7496
7497 fi
7498 if test $acx_cv_prog_LN = no; then
7499 LN="$LN_S"
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7501 $as_echo "no, using $LN" >&6; }
7502 else
7503 LN="$acx_cv_prog_LN"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505 $as_echo "yes" >&6; }
7506 fi
7507
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$RANLIB"; then
7517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 RANLIB=$ac_cv_prog_RANLIB
7537 if test -n "$RANLIB"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7539 $as_echo "$RANLIB" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_RANLIB"; then
7548 ac_ct_RANLIB=$RANLIB
7549 # Extract the first word of "ranlib", so it can be a program name with args.
7550 set dummy ranlib; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$ac_ct_RANLIB"; then
7557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_RANLIB="ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7577 if test -n "$ac_ct_RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7579 $as_echo "$ac_ct_RANLIB" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585 if test "x$ac_ct_RANLIB" = x; then
7586 RANLIB=":"
7587 else
7588 case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594 RANLIB=$ac_ct_RANLIB
7595 fi
7596 else
7597 RANLIB="$ac_cv_prog_RANLIB"
7598 fi
7599
7600 case "${host}" in
7601 *-*-darwin*)
7602 # By default, the Darwin ranlib will not treat common symbols as
7603 # definitions when building the archive table of contents. Other
7604 # ranlibs do that; pass an option to the Darwin ranlib that makes
7605 # it behave similarly.
7606 ranlib_flags="-c"
7607 ;;
7608 *)
7609 ranlib_flags=""
7610 esac
7611
7612
7613 # Find a good install program. We prefer a C program (faster),
7614 # so one script is as good as another. But avoid the broken or
7615 # incompatible versions:
7616 # SysV /etc/install, /usr/sbin/install
7617 # SunOS /usr/etc/install
7618 # IRIX /sbin/install
7619 # AIX /bin/install
7620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7622 # ./install, which can be erroneously created by make from ./install.sh.
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7624 $as_echo_n "checking for a BSD compatible install... " >&6; }
7625 if test -z "$INSTALL"; then
7626 if test "${ac_cv_path_install+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7630 for ac_dir in $PATH; do
7631 # Account for people who put trailing slashes in PATH elements.
7632 case "$ac_dir/" in
7633 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7634 *)
7635 # OSF1 and SCO ODT 3.0 have their own names for install.
7636 for ac_prog in ginstall scoinst install; do
7637 if test -f $ac_dir/$ac_prog; then
7638 if test $ac_prog = install &&
7639 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7640 # AIX install. It has an incompatible calling convention.
7641 # OSF/1 installbsd also uses dspmsg, but is usable.
7642 :
7643 else
7644 ac_cv_path_install="$ac_dir/$ac_prog -c"
7645 break 2
7646 fi
7647 fi
7648 done
7649 ;;
7650 esac
7651 done
7652 IFS="$ac_save_IFS"
7653
7654 fi
7655 if test "${ac_cv_path_install+set}" = set; then
7656 INSTALL="$ac_cv_path_install"
7657 else
7658 # As a last resort, use the slow shell script. We don't cache a
7659 # path for INSTALL within a source directory, because that will
7660 # break other packages using the cache if that directory is
7661 # removed, or if the path is relative.
7662 INSTALL="$ac_install_sh"
7663 fi
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7666 $as_echo "$INSTALL" >&6; }
7667
7668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7669 # It thinks the first close brace ends the variable substitution.
7670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7671
7672 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7673
7674
7675 # See if cmp has --ignore-initial.
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7677 $as_echo_n "checking for cmp's capabilities... " >&6; }
7678 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 echo abfoo >t1
7682 echo cdfoo >t2
7683 gcc_cv_prog_cmp_skip=slowcompare
7684 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7685 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7686 :
7687 else
7688 gcc_cv_prog_cmp_skip=gnucompare
7689 fi
7690 fi
7691 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7692 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7693 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7694 :
7695 else
7696 gcc_cv_prog_cmp_skip=fastcompare
7697 fi
7698 fi
7699 fi
7700 rm t1 t2
7701
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7704 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7705 make_compare_target=$gcc_cv_prog_cmp_skip
7706
7707
7708
7709 # See if we have the mktemp command.
7710 # Extract the first word of "mktemp", so it can be a program name with args.
7711 set dummy mktemp; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$have_mktemp_command"; then
7718 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_have_mktemp_command="yes"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7736 fi
7737 fi
7738 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7739 if test -n "$have_mktemp_command"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7741 $as_echo "$have_mktemp_command" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748
7749 # See if makeinfo has been installed and is modern enough
7750 # that we can use it.
7751
7752 # Extract the first word of "makeinfo", so it can be a program name with args.
7753 set dummy makeinfo; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$MAKEINFO"; then
7760 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_MAKEINFO="makeinfo"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 MAKEINFO=$ac_cv_prog_MAKEINFO
7780 if test -n "$MAKEINFO"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7782 $as_echo "$MAKEINFO" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 if test -n "$MAKEINFO"; then
7790 # Found it, now check the version.
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7792 $as_echo_n "checking for modern makeinfo... " >&6; }
7793 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7797 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7798
7799 case $ac_prog_version in
7800 '') gcc_cv_prog_makeinfo_modern=no;;
7801 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7802 *) gcc_cv_prog_makeinfo_modern=no;;
7803 esac
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7807 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7808 else
7809 gcc_cv_prog_makeinfo_modern=no
7810 fi
7811 if test $gcc_cv_prog_makeinfo_modern = no; then
7812 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7813 fi
7814
7815 if test $gcc_cv_prog_makeinfo_modern = no; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7817 *** Makeinfo is missing or too old.
7818 *** Info documentation will not be built." >&5
7819 $as_echo "$as_me: WARNING:
7820 *** Makeinfo is missing or too old.
7821 *** Info documentation will not be built." >&2;}
7822 BUILD_INFO=
7823 else
7824 BUILD_INFO=info
7825 fi
7826
7827
7828 # Is pod2man recent enough to regenerate manpages?
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7830 $as_echo_n "checking for recent Pod::Man... " >&6; }
7831 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 GENERATED_MANPAGES=generated-manpages
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 GENERATED_MANPAGES=
7839 fi
7840
7841
7842 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7843
7844 # How about lex?
7845 for ac_prog in flex
7846 do
7847 # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy $ac_prog; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_FLEX+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$FLEX"; then
7855 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_FLEX="$ac_prog"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 FLEX=$ac_cv_prog_FLEX
7875 if test -n "$FLEX"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7877 $as_echo "$FLEX" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883
7884 test -n "$FLEX" && break
7885 done
7886 test -n "$FLEX" || FLEX="$MISSING flex"
7887
7888
7889 # Bison?
7890 for ac_prog in bison
7891 do
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_BISON+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$BISON"; then
7900 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_BISON="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 BISON=$ac_cv_prog_BISON
7920 if test -n "$BISON"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7922 $as_echo "$BISON" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928
7929 test -n "$BISON" && break
7930 done
7931 test -n "$BISON" || BISON="$MISSING bison"
7932
7933
7934 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7935 # check for build == host before using them.
7936
7937 # NM
7938 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7939 && test -d ../binutils ; then
7940 NM='${objdir}/../binutils/nm-new'
7941 else
7942 # Extract the first word of "nm", so it can be a program name with args.
7943 set dummy nm; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_NM+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$NM"; then
7950 ac_cv_prog_NM="$NM" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_NM="nm"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7968 fi
7969 fi
7970 NM=$ac_cv_prog_NM
7971 if test -n "$NM"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7973 $as_echo "$NM" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 fi
7981
7982 # AR
7983 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7984 && test -d ../binutils ; then
7985 AR='${objdir}/../binutils/ar'
7986 else
7987 # Extract the first word of "ar", so it can be a program name with args.
7988 set dummy ar; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_AR+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$AR"; then
7995 ac_cv_prog_AR="$AR" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_AR="ar"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8013 fi
8014 fi
8015 AR=$ac_cv_prog_AR
8016 if test -n "$AR"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018 $as_echo "$AR" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 fi
8026
8027
8028 # --------------------
8029 # Checks for C headers
8030 # --------------------
8031
8032 # Need to reject headers which give warnings, so that the -Werror bootstrap
8033 # works later. *sigh* This needs to come before all header checks.
8034
8035 ac_c_preproc_warn_flag=yes
8036
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8038 $as_echo_n "checking for ANSI C header files... " >&6; }
8039 if test "${ac_cv_header_stdc+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 #include <stdlib.h>
8045 #include <stdarg.h>
8046 #include <string.h>
8047 #include <float.h>
8048
8049 int
8050 main ()
8051 {
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 ac_cv_header_stdc=yes
8059 else
8060 ac_cv_header_stdc=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063
8064 if test $ac_cv_header_stdc = yes; then
8065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #include <string.h>
8069
8070 _ACEOF
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072 $EGREP "memchr" >/dev/null 2>&1; then :
8073
8074 else
8075 ac_cv_header_stdc=no
8076 fi
8077 rm -f conftest*
8078
8079 fi
8080
8081 if test $ac_cv_header_stdc = yes; then
8082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 #include <stdlib.h>
8086
8087 _ACEOF
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 $EGREP "free" >/dev/null 2>&1; then :
8090
8091 else
8092 ac_cv_header_stdc=no
8093 fi
8094 rm -f conftest*
8095
8096 fi
8097
8098 if test $ac_cv_header_stdc = yes; then
8099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8100 if test "$cross_compiling" = yes; then :
8101 :
8102 else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 #include <ctype.h>
8106 #include <stdlib.h>
8107 #if ((' ' & 0x0FF) == 0x020)
8108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8110 #else
8111 # define ISLOWER(c) \
8112 (('a' <= (c) && (c) <= 'i') \
8113 || ('j' <= (c) && (c) <= 'r') \
8114 || ('s' <= (c) && (c) <= 'z'))
8115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8116 #endif
8117
8118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8119 int
8120 main ()
8121 {
8122 int i;
8123 for (i = 0; i < 256; i++)
8124 if (XOR (islower (i), ISLOWER (i))
8125 || toupper (i) != TOUPPER (i))
8126 return 2;
8127 return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_run "$LINENO"; then :
8131
8132 else
8133 ac_cv_header_stdc=no
8134 fi
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8136 conftest.$ac_objext conftest.beam conftest.$ac_ext
8137 fi
8138
8139 fi
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8142 $as_echo "$ac_cv_header_stdc" >&6; }
8143 if test $ac_cv_header_stdc = yes; then
8144
8145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8146
8147 fi
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8150 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8151 if test "${ac_cv_header_time+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <sys/types.h>
8157 #include <sys/time.h>
8158 #include <time.h>
8159
8160 int
8161 main ()
8162 {
8163 if ((struct tm *) 0)
8164 return 0;
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 ac_cv_header_time=yes
8171 else
8172 ac_cv_header_time=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8177 $as_echo "$ac_cv_header_time" >&6; }
8178 if test $ac_cv_header_time = yes; then
8179
8180 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8181
8182 fi
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8185 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8186 if test "${gcc_cv_header_string+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 #include <string.h>
8192 #include <strings.h>
8193 int
8194 main ()
8195 {
8196
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202 gcc_cv_header_string=yes
8203 else
8204 gcc_cv_header_string=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8209 $as_echo "$gcc_cv_header_string" >&6; }
8210 if test $gcc_cv_header_string = yes; then
8211
8212 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8213
8214 fi
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8217 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8218 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 #include <sys/types.h>
8224 #include <sys/wait.h>
8225 #ifndef WEXITSTATUS
8226 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8227 #endif
8228 #ifndef WIFEXITED
8229 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8230 #endif
8231
8232 int
8233 main ()
8234 {
8235 int s;
8236 wait (&s);
8237 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_compile "$LINENO"; then :
8243 ac_cv_header_sys_wait_h=yes
8244 else
8245 ac_cv_header_sys_wait_h=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8250 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8251 if test $ac_cv_header_sys_wait_h = yes; then
8252
8253 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8254
8255 fi
8256
8257 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8258 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8259 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8260 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8261 do :
8262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8264 eval as_val=\$$as_ac_Header
8265 if test "x$as_val" = x""yes; then :
8266 cat >>confdefs.h <<_ACEOF
8267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8268 _ACEOF
8269
8270 fi
8271 done
8272
8273
8274 # Check for thread headers.
8275 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8276 if test "x$ac_cv_header_thread_h" = x""yes; then :
8277 have_thread_h=yes
8278 else
8279 have_thread_h=
8280 fi
8281
8282 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8283 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8284 have_pthread_h=yes
8285 else
8286 have_pthread_h=
8287 fi
8288
8289
8290 # These tests can't be done till we know if we have limits.h.
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8292 $as_echo_n "checking for CHAR_BIT... " >&6; }
8293 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 #ifdef HAVE_LIMITS_H
8299 #include <limits.h>
8300 #endif
8301 #ifdef CHAR_BIT
8302 found
8303 #endif
8304 _ACEOF
8305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8306 $EGREP "found" >/dev/null 2>&1; then :
8307 gcc_cv_decl_char_bit=yes
8308 else
8309 gcc_cv_decl_char_bit=no
8310 fi
8311 rm -f conftest*
8312
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8316 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8317 if test $gcc_cv_decl_char_bit = no; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8319 $as_echo_n "checking number of bits in a byte... " >&6; }
8320 if test "${gcc_cv_c_nbby+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 i=8
8324 gcc_cv_c_nbby=
8325 while test $i -lt 65; do
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328
8329 int
8330 main ()
8331 {
8332 switch(0) {
8333 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8334 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8335 ; }
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 gcc_cv_c_nbby=$i; break
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 i=`expr $i + 1`
8345 done
8346 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8347
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8350 $as_echo "$gcc_cv_c_nbby" >&6; }
8351 if test $gcc_cv_c_nbby = failed; then
8352 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8353 else
8354
8355 cat >>confdefs.h <<_ACEOF
8356 #define CHAR_BIT $gcc_cv_c_nbby
8357 _ACEOF
8358
8359 fi
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8362 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8363 if test "${ac_cv_c_bigendian+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 ac_cv_c_bigendian=unknown
8367 # See if we're dealing with a universal compiler.
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 #ifndef __APPLE_CC__
8371 not a universal capable compiler
8372 #endif
8373 typedef int dummy;
8374
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377
8378 # Check for potential -arch flags. It is not universal unless
8379 # there are at least two -arch flags with different values.
8380 ac_arch=
8381 ac_prev=
8382 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8383 if test -n "$ac_prev"; then
8384 case $ac_word in
8385 i?86 | x86_64 | ppc | ppc64)
8386 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8387 ac_arch=$ac_word
8388 else
8389 ac_cv_c_bigendian=universal
8390 break
8391 fi
8392 ;;
8393 esac
8394 ac_prev=
8395 elif test "x$ac_word" = "x-arch"; then
8396 ac_prev=arch
8397 fi
8398 done
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 if test $ac_cv_c_bigendian = unknown; then
8402 # See if sys/param.h defines the BYTE_ORDER macro.
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 #include <sys/types.h>
8406 #include <sys/param.h>
8407
8408 int
8409 main ()
8410 {
8411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8412 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8413 && LITTLE_ENDIAN)
8414 bogus endian macros
8415 #endif
8416
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"; then :
8422 # It does; now see whether it defined to BIG_ENDIAN or not.
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <sys/types.h>
8426 #include <sys/param.h>
8427
8428 int
8429 main ()
8430 {
8431 #if BYTE_ORDER != BIG_ENDIAN
8432 not big endian
8433 #endif
8434
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 ac_cv_c_bigendian=yes
8441 else
8442 ac_cv_c_bigendian=no
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 if test $ac_cv_c_bigendian = unknown; then
8449 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <limits.h>
8453
8454 int
8455 main ()
8456 {
8457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8458 bogus endian macros
8459 #endif
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 # It does; now see whether it defined to _BIG_ENDIAN or not.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #include <limits.h>
8470
8471 int
8472 main ()
8473 {
8474 #ifndef _BIG_ENDIAN
8475 not big endian
8476 #endif
8477
8478 ;
8479 return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 ac_cv_c_bigendian=yes
8484 else
8485 ac_cv_c_bigendian=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491 if test $ac_cv_c_bigendian = unknown; then
8492 # Compile a test program.
8493 if test "$cross_compiling" = yes; then :
8494 # Try to guess by grepping values from an object file.
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 short int ascii_mm[] =
8498 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8499 short int ascii_ii[] =
8500 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8501 int use_ascii (int i) {
8502 return ascii_mm[i] + ascii_ii[i];
8503 }
8504 short int ebcdic_ii[] =
8505 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8506 short int ebcdic_mm[] =
8507 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8508 int use_ebcdic (int i) {
8509 return ebcdic_mm[i] + ebcdic_ii[i];
8510 }
8511 extern int foo;
8512
8513 int
8514 main ()
8515 {
8516 return use_ascii (foo) == use_ebcdic (foo);
8517 ;
8518 return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8523 ac_cv_c_bigendian=yes
8524 fi
8525 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8526 if test "$ac_cv_c_bigendian" = unknown; then
8527 ac_cv_c_bigendian=no
8528 else
8529 # finding both strings is unlikely to happen, but who knows?
8530 ac_cv_c_bigendian=unknown
8531 fi
8532 fi
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 else
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 $ac_includes_default
8539 int
8540 main ()
8541 {
8542
8543 /* Are we little or big endian? From Harbison&Steele. */
8544 union
8545 {
8546 long int l;
8547 char c[sizeof (long int)];
8548 } u;
8549 u.l = 1;
8550 return u.c[sizeof (long int) - 1] == 1;
8551
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_run "$LINENO"; then :
8557 ac_cv_c_bigendian=no
8558 else
8559 ac_cv_c_bigendian=yes
8560 fi
8561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8562 conftest.$ac_objext conftest.beam conftest.$ac_ext
8563 fi
8564
8565 fi
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8568 $as_echo "$ac_cv_c_bigendian" >&6; }
8569 case $ac_cv_c_bigendian in #(
8570 yes)
8571 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8572 ;; #(
8573 no)
8574 ;; #(
8575 universal)
8576
8577 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8578
8579 ;; #(
8580 *)
8581 as_fn_error "unknown endianness
8582 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8583 esac
8584
8585
8586 # ----------------------
8587 # Checks for C++ headers
8588 # ----------------------
8589
8590 ac_ext=cpp
8591 ac_cpp='$CXXCPP $CPPFLAGS'
8592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8596 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8597 if test -z "$CXXCPP"; then
8598 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 # Double quotes because CXXCPP needs to be expanded
8602 for CXXCPP in "$CXX -E" "/lib/cpp"
8603 do
8604 ac_preproc_ok=false
8605 for ac_cxx_preproc_warn_flag in '' yes
8606 do
8607 # Use a header file that comes with gcc, so configuring glibc
8608 # with a fresh cross-compiler works.
8609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 # <limits.h> exists even on freestanding compilers.
8611 # On the NeXT, cc -E runs the code through the compiler's parser,
8612 # not just through cpp. "Syntax error" is here to catch this case.
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #ifdef __STDC__
8616 # include <limits.h>
8617 #else
8618 # include <assert.h>
8619 #endif
8620 Syntax error
8621 _ACEOF
8622 if ac_fn_cxx_try_cpp "$LINENO"; then :
8623
8624 else
8625 # Broken: fails on valid input.
8626 continue
8627 fi
8628 rm -f conftest.err conftest.$ac_ext
8629
8630 # OK, works on sane cases. Now check whether nonexistent headers
8631 # can be detected and how.
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #include <ac_nonexistent.h>
8635 _ACEOF
8636 if ac_fn_cxx_try_cpp "$LINENO"; then :
8637 # Broken: success on invalid input.
8638 continue
8639 else
8640 # Passes both tests.
8641 ac_preproc_ok=:
8642 break
8643 fi
8644 rm -f conftest.err conftest.$ac_ext
8645
8646 done
8647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8648 rm -f conftest.err conftest.$ac_ext
8649 if $ac_preproc_ok; then :
8650 break
8651 fi
8652
8653 done
8654 ac_cv_prog_CXXCPP=$CXXCPP
8655
8656 fi
8657 CXXCPP=$ac_cv_prog_CXXCPP
8658 else
8659 ac_cv_prog_CXXCPP=$CXXCPP
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8662 $as_echo "$CXXCPP" >&6; }
8663 ac_preproc_ok=false
8664 for ac_cxx_preproc_warn_flag in '' yes
8665 do
8666 # Use a header file that comes with gcc, so configuring glibc
8667 # with a fresh cross-compiler works.
8668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 # <limits.h> exists even on freestanding compilers.
8670 # On the NeXT, cc -E runs the code through the compiler's parser,
8671 # not just through cpp. "Syntax error" is here to catch this case.
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679 Syntax error
8680 _ACEOF
8681 if ac_fn_cxx_try_cpp "$LINENO"; then :
8682
8683 else
8684 # Broken: fails on valid input.
8685 continue
8686 fi
8687 rm -f conftest.err conftest.$ac_ext
8688
8689 # OK, works on sane cases. Now check whether nonexistent headers
8690 # can be detected and how.
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 #include <ac_nonexistent.h>
8694 _ACEOF
8695 if ac_fn_cxx_try_cpp "$LINENO"; then :
8696 # Broken: success on invalid input.
8697 continue
8698 else
8699 # Passes both tests.
8700 ac_preproc_ok=:
8701 break
8702 fi
8703 rm -f conftest.err conftest.$ac_ext
8704
8705 done
8706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8707 rm -f conftest.err conftest.$ac_ext
8708 if $ac_preproc_ok; then :
8709
8710 else
8711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8714 See \`config.log' for more details." >&5
8715 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8716 See \`config.log' for more details." >&2;}; }
8717 fi
8718
8719 ac_ext=c
8720 ac_cpp='$CPP $CPPFLAGS'
8721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8724
8725
8726 ac_ext=cpp
8727 ac_cpp='$CXXCPP $CPPFLAGS'
8728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8731
8732
8733
8734
8735 for ac_header in unordered_map
8736 do :
8737 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8738 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_UNORDERED_MAP 1
8741 _ACEOF
8742
8743 fi
8744 done
8745
8746 for ac_header in tr1/unordered_map
8747 do :
8748 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8749 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_TR1_UNORDERED_MAP 1
8752 _ACEOF
8753
8754 fi
8755 done
8756
8757 for ac_header in ext/hash_map
8758 do :
8759 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8760 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8761 cat >>confdefs.h <<_ACEOF
8762 #define HAVE_EXT_HASH_MAP 1
8763 _ACEOF
8764
8765 fi
8766 done
8767
8768
8769 ac_ext=c
8770 ac_cpp='$CPP $CPPFLAGS'
8771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774
8775
8776 # --------
8777 # UNSORTED
8778 # --------
8779
8780
8781 # These libraries may be used by collect2.
8782 # We may need a special search path to get them linked.
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8784 $as_echo_n "checking for collect2 libraries... " >&6; }
8785 if test "${gcc_cv_collect2_libs+set}" = set; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 save_LIBS="$LIBS"
8789 for libs in '' -lld -lmld \
8790 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8791 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8792 do
8793 LIBS="$libs"
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796
8797 /* Override any GCC internal prototype to avoid an error.
8798 Use char because int might match the return type of a GCC
8799 builtin and then its argument prototype would still apply. */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 char ldopen ();
8804 int
8805 main ()
8806 {
8807 return ldopen ();
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 if ac_fn_c_try_link "$LINENO"; then :
8813 gcc_cv_collect2_libs="$libs"; break
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 done
8818 LIBS="$save_LIBS"
8819 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8822 $as_echo "$gcc_cv_collect2_libs" >&6; }
8823 case $gcc_cv_collect2_libs in
8824 "none required") ;;
8825 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8826 esac
8827
8828
8829 # When building Ada code on Alpha, we need exc_resume which is usually in
8830 # -lexc. So test for it.
8831 save_LIBS="$LIBS"
8832 LIBS=
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8834 $as_echo_n "checking for library containing exc_resume... " >&6; }
8835 if test "${ac_cv_search_exc_resume+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 ac_func_search_save_LIBS=$LIBS
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841
8842 /* Override any GCC internal prototype to avoid an error.
8843 Use char because int might match the return type of a GCC
8844 builtin and then its argument prototype would still apply. */
8845 #ifdef __cplusplus
8846 extern "C"
8847 #endif
8848 char exc_resume ();
8849 int
8850 main ()
8851 {
8852 return exc_resume ();
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 for ac_lib in '' exc; do
8858 if test -z "$ac_lib"; then
8859 ac_res="none required"
8860 else
8861 ac_res=-l$ac_lib
8862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8863 fi
8864 if ac_fn_c_try_link "$LINENO"; then :
8865 ac_cv_search_exc_resume=$ac_res
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext
8869 if test "${ac_cv_search_exc_resume+set}" = set; then :
8870 break
8871 fi
8872 done
8873 if test "${ac_cv_search_exc_resume+set}" = set; then :
8874
8875 else
8876 ac_cv_search_exc_resume=no
8877 fi
8878 rm conftest.$ac_ext
8879 LIBS=$ac_func_search_save_LIBS
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8882 $as_echo "$ac_cv_search_exc_resume" >&6; }
8883 ac_res=$ac_cv_search_exc_resume
8884 if test "$ac_res" != no; then :
8885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8886
8887 fi
8888
8889 GNAT_LIBEXC="$LIBS"
8890 LIBS="$save_LIBS"
8891
8892
8893 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8894 save_LIBS="$LIBS"
8895 LIBS=
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8897 $as_echo_n "checking for library containing kstat_open... " >&6; }
8898 if test "${ac_cv_search_kstat_open+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 ac_func_search_save_LIBS=$LIBS
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904
8905 /* Override any GCC internal prototype to avoid an error.
8906 Use char because int might match the return type of a GCC
8907 builtin and then its argument prototype would still apply. */
8908 #ifdef __cplusplus
8909 extern "C"
8910 #endif
8911 char kstat_open ();
8912 int
8913 main ()
8914 {
8915 return kstat_open ();
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 for ac_lib in '' kstat; do
8921 if test -z "$ac_lib"; then
8922 ac_res="none required"
8923 else
8924 ac_res=-l$ac_lib
8925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8926 fi
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 ac_cv_search_kstat_open=$ac_res
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext
8932 if test "${ac_cv_search_kstat_open+set}" = set; then :
8933 break
8934 fi
8935 done
8936 if test "${ac_cv_search_kstat_open+set}" = set; then :
8937
8938 else
8939 ac_cv_search_kstat_open=no
8940 fi
8941 rm conftest.$ac_ext
8942 LIBS=$ac_func_search_save_LIBS
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8945 $as_echo "$ac_cv_search_kstat_open" >&6; }
8946 ac_res=$ac_cv_search_kstat_open
8947 if test "$ac_res" != no; then :
8948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8949
8950 fi
8951
8952 EXTRA_GCC_LIBS="$LIBS"
8953 LIBS="$save_LIBS"
8954
8955
8956 # Some systems put ldexp and frexp in libm instead of libc; assume
8957 # they're both in the same place. jcf-dump needs them.
8958 save_LIBS="$LIBS"
8959 LIBS=
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8961 $as_echo_n "checking for library containing ldexp... " >&6; }
8962 if test "${ac_cv_search_ldexp+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 ac_func_search_save_LIBS=$LIBS
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 char ldexp ();
8976 int
8977 main ()
8978 {
8979 return ldexp ();
8980 ;
8981 return 0;
8982 }
8983 _ACEOF
8984 for ac_lib in '' m; do
8985 if test -z "$ac_lib"; then
8986 ac_res="none required"
8987 else
8988 ac_res=-l$ac_lib
8989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8990 fi
8991 if ac_fn_c_try_link "$LINENO"; then :
8992 ac_cv_search_ldexp=$ac_res
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext
8996 if test "${ac_cv_search_ldexp+set}" = set; then :
8997 break
8998 fi
8999 done
9000 if test "${ac_cv_search_ldexp+set}" = set; then :
9001
9002 else
9003 ac_cv_search_ldexp=no
9004 fi
9005 rm conftest.$ac_ext
9006 LIBS=$ac_func_search_save_LIBS
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9009 $as_echo "$ac_cv_search_ldexp" >&6; }
9010 ac_res=$ac_cv_search_ldexp
9011 if test "$ac_res" != no; then :
9012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9013
9014 fi
9015
9016 LDEXP_LIB="$LIBS"
9017 LIBS="$save_LIBS"
9018
9019
9020 # Use <inttypes.h> only if it exists,
9021 # doesn't clash with <sys/types.h>, and declares intmax_t.
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9023 $as_echo_n "checking for inttypes.h... " >&6; }
9024 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #include <sys/types.h>
9030 #include <inttypes.h>
9031 int
9032 main ()
9033 {
9034 intmax_t i = -1;
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040 gcc_cv_header_inttypes_h=yes
9041 else
9042 gcc_cv_header_inttypes_h=no
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 fi
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9048 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9049 if test $gcc_cv_header_inttypes_h = yes; then
9050
9051 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9052
9053 fi
9054
9055
9056
9057 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9058 sysconf strsignal getrusage nl_langinfo \
9059 gettimeofday mbstowcs wcswidth mmap setlocale \
9060 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
9061 do :
9062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9064 eval as_val=\$$as_ac_var
9065 if test "x$as_val" = x""yes; then :
9066 cat >>confdefs.h <<_ACEOF
9067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9068 _ACEOF
9069
9070 fi
9071 done
9072
9073
9074 if test x$ac_cv_func_mbstowcs = xyes; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9076 $as_echo_n "checking whether mbstowcs works... " >&6; }
9077 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 if test "$cross_compiling" = yes; then :
9081 gcc_cv_func_mbstowcs_works=yes
9082 else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #include <stdlib.h>
9086 int main()
9087 {
9088 mbstowcs(0, "", 0);
9089 return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_run "$LINENO"; then :
9093 gcc_cv_func_mbstowcs_works=yes
9094 else
9095 gcc_cv_func_mbstowcs_works=no
9096 fi
9097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9098 conftest.$ac_objext conftest.beam conftest.$ac_ext
9099 fi
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9103 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9104 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9105
9106 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9107
9108 fi
9109 fi
9110
9111 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9112 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9113
9114 else
9115
9116 cat >>confdefs.h <<_ACEOF
9117 #define ssize_t int
9118 _ACEOF
9119
9120 fi
9121
9122 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9123 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9124
9125 else
9126
9127 cat >>confdefs.h <<_ACEOF
9128 #define caddr_t char *
9129 _ACEOF
9130
9131 fi
9132
9133
9134
9135 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9136 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9137 gcc_header_sys_mman_h=yes
9138 else
9139 gcc_header_sys_mman_h=no
9140 fi
9141
9142 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9143 if test "x$ac_cv_func_mmap" = x""yes; then :
9144 gcc_func_mmap=yes
9145 else
9146 gcc_func_mmap=no
9147 fi
9148
9149 if test "$gcc_header_sys_mman_h" != yes \
9150 || test "$gcc_func_mmap" != yes; then
9151 gcc_cv_func_mmap_file=no
9152 gcc_cv_func_mmap_dev_zero=no
9153 gcc_cv_func_mmap_anon=no
9154 else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9156 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9157 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 # Add a system to this blacklist if
9161 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9162 # memory area containing the same data that you'd get if you applied
9163 # read() to the same fd. The only system known to have a problem here
9164 # is VMS, where text files have record structure.
9165 case "$host_os" in
9166 vms* | ultrix*)
9167 gcc_cv_func_mmap_file=no ;;
9168 *)
9169 gcc_cv_func_mmap_file=yes;;
9170 esac
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9173 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9175 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9176 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 # Add a system to this blacklist if it has mmap() but /dev/zero
9180 # does not exist, or if mmapping /dev/zero does not give anonymous
9181 # zeroed pages with both the following properties:
9182 # 1. If you map N consecutive pages in with one call, and then
9183 # unmap any subset of those pages, the pages that were not
9184 # explicitly unmapped remain accessible.
9185 # 2. If you map two adjacent blocks of memory and then unmap them
9186 # both at once, they must both go away.
9187 # Systems known to be in this category are Windows (all variants),
9188 # VMS, and Darwin.
9189 case "$host_os" in
9190 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9191 gcc_cv_func_mmap_dev_zero=no ;;
9192 *)
9193 gcc_cv_func_mmap_dev_zero=yes;;
9194 esac
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9197 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9198
9199 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9201 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9202 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <sys/types.h>
9208 #include <sys/mman.h>
9209 #include <unistd.h>
9210
9211 #ifndef MAP_ANONYMOUS
9212 #define MAP_ANONYMOUS MAP_ANON
9213 #endif
9214
9215 int
9216 main ()
9217 {
9218 int n = MAP_ANONYMOUS;
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_compile "$LINENO"; then :
9224 gcc_cv_decl_map_anon=yes
9225 else
9226 gcc_cv_decl_map_anon=no
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9231 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9232
9233 if test $gcc_cv_decl_map_anon = no; then
9234 gcc_cv_func_mmap_anon=no
9235 else
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9237 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9238 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9242 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9243 # doesn't give anonymous zeroed pages with the same properties listed
9244 # above for use of /dev/zero.
9245 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9246 case "$host_os" in
9247 vms* | cygwin* | pe | mingw* | sco* | udk* )
9248 gcc_cv_func_mmap_anon=no ;;
9249 *)
9250 gcc_cv_func_mmap_anon=yes;;
9251 esac
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9254 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9255 fi
9256 fi
9257
9258 if test $gcc_cv_func_mmap_file = yes; then
9259
9260 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9261
9262 fi
9263 if test $gcc_cv_func_mmap_dev_zero = yes; then
9264
9265 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9266
9267 fi
9268 if test $gcc_cv_func_mmap_anon = yes; then
9269
9270 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9271
9272 fi
9273
9274
9275 case "${host}" in
9276 *-*-*vms*)
9277 # Under VMS, vfork works very differently than on Unix. The standard test
9278 # won't work, and it isn't easily adaptable. It makes more sense to
9279 # just force it.
9280 ac_cv_func_vfork_works=yes
9281 ;;
9282 esac
9283 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9284 if test "x$ac_cv_type_pid_t" = x""yes; then :
9285
9286 else
9287
9288 cat >>confdefs.h <<_ACEOF
9289 #define pid_t int
9290 _ACEOF
9291
9292 fi
9293
9294 for ac_header in vfork.h
9295 do :
9296 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9297 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_VFORK_H 1
9300 _ACEOF
9301
9302 fi
9303 done
9304
9305 for ac_func in fork vfork
9306 do :
9307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9309 eval as_val=\$$as_ac_var
9310 if test "x$as_val" = x""yes; then :
9311 cat >>confdefs.h <<_ACEOF
9312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9313 _ACEOF
9314
9315 fi
9316 done
9317
9318 if test "x$ac_cv_func_fork" = xyes; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9320 $as_echo_n "checking for working fork... " >&6; }
9321 if test "${ac_cv_func_fork_works+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 if test "$cross_compiling" = yes; then :
9325 ac_cv_func_fork_works=cross
9326 else
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 $ac_includes_default
9330 int
9331 main ()
9332 {
9333
9334 /* By Ruediger Kuhlmann. */
9335 return fork () < 0;
9336
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_run "$LINENO"; then :
9342 ac_cv_func_fork_works=yes
9343 else
9344 ac_cv_func_fork_works=no
9345 fi
9346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9347 conftest.$ac_objext conftest.beam conftest.$ac_ext
9348 fi
9349
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9352 $as_echo "$ac_cv_func_fork_works" >&6; }
9353
9354 else
9355 ac_cv_func_fork_works=$ac_cv_func_fork
9356 fi
9357 if test "x$ac_cv_func_fork_works" = xcross; then
9358 case $host in
9359 *-*-amigaos* | *-*-msdosdjgpp*)
9360 # Override, as these systems have only a dummy fork() stub
9361 ac_cv_func_fork_works=no
9362 ;;
9363 *)
9364 ac_cv_func_fork_works=yes
9365 ;;
9366 esac
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9369 fi
9370 ac_cv_func_vfork_works=$ac_cv_func_vfork
9371 if test "x$ac_cv_func_vfork" = xyes; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9373 $as_echo_n "checking for working vfork... " >&6; }
9374 if test "${ac_cv_func_vfork_works+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 if test "$cross_compiling" = yes; then :
9378 ac_cv_func_vfork_works=cross
9379 else
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382 /* Thanks to Paul Eggert for this test. */
9383 $ac_includes_default
9384 #include <sys/wait.h>
9385 #ifdef HAVE_VFORK_H
9386 # include <vfork.h>
9387 #endif
9388 /* On some sparc systems, changes by the child to local and incoming
9389 argument registers are propagated back to the parent. The compiler
9390 is told about this with #include <vfork.h>, but some compilers
9391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9392 static variable whose address is put into a register that is
9393 clobbered by the vfork. */
9394 static void
9395 #ifdef __cplusplus
9396 sparc_address_test (int arg)
9397 # else
9398 sparc_address_test (arg) int arg;
9399 #endif
9400 {
9401 static pid_t child;
9402 if (!child) {
9403 child = vfork ();
9404 if (child < 0) {
9405 perror ("vfork");
9406 _exit(2);
9407 }
9408 if (!child) {
9409 arg = getpid();
9410 write(-1, "", 0);
9411 _exit (arg);
9412 }
9413 }
9414 }
9415
9416 int
9417 main ()
9418 {
9419 pid_t parent = getpid ();
9420 pid_t child;
9421
9422 sparc_address_test (0);
9423
9424 child = vfork ();
9425
9426 if (child == 0) {
9427 /* Here is another test for sparc vfork register problems. This
9428 test uses lots of local variables, at least as many local
9429 variables as main has allocated so far including compiler
9430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9432 reuse the register of parent for one of the local variables,
9433 since it will think that parent can't possibly be used any more
9434 in this routine. Assigning to the local variable will thus
9435 munge parent in the parent process. */
9436 pid_t
9437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9439 /* Convince the compiler that p..p7 are live; otherwise, it might
9440 use the same hardware register for all 8 local variables. */
9441 if (p != p1 || p != p2 || p != p3 || p != p4
9442 || p != p5 || p != p6 || p != p7)
9443 _exit(1);
9444
9445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9446 from child file descriptors. If the child closes a descriptor
9447 before it execs or exits, this munges the parent's descriptor
9448 as well. Test for this by closing stdout in the child. */
9449 _exit(close(fileno(stdout)) != 0);
9450 } else {
9451 int status;
9452 struct stat st;
9453
9454 while (wait(&status) != child)
9455 ;
9456 return (
9457 /* Was there some problem with vforking? */
9458 child < 0
9459
9460 /* Did the child fail? (This shouldn't happen.) */
9461 || status
9462
9463 /* Did the vfork/compiler bug occur? */
9464 || parent != getpid()
9465
9466 /* Did the file descriptor bug occur? */
9467 || fstat(fileno(stdout), &st) != 0
9468 );
9469 }
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_run "$LINENO"; then :
9473 ac_cv_func_vfork_works=yes
9474 else
9475 ac_cv_func_vfork_works=no
9476 fi
9477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9478 conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 fi
9480
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9483 $as_echo "$ac_cv_func_vfork_works" >&6; }
9484
9485 fi;
9486 if test "x$ac_cv_func_fork_works" = xcross; then
9487 ac_cv_func_vfork_works=$ac_cv_func_vfork
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9490 fi
9491
9492 if test "x$ac_cv_func_vfork_works" = xyes; then
9493
9494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9495
9496 else
9497
9498 $as_echo "#define vfork fork" >>confdefs.h
9499
9500 fi
9501 if test "x$ac_cv_func_fork_works" = xyes; then
9502
9503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9504
9505 fi
9506
9507
9508 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9509 # iconv() prototype.
9510
9511 if test "X$prefix" = "XNONE"; then
9512 acl_final_prefix="$ac_default_prefix"
9513 else
9514 acl_final_prefix="$prefix"
9515 fi
9516 if test "X$exec_prefix" = "XNONE"; then
9517 acl_final_exec_prefix='${prefix}'
9518 else
9519 acl_final_exec_prefix="$exec_prefix"
9520 fi
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9524 prefix="$acl_save_prefix"
9525
9526
9527 # Check whether --with-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then :
9529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9530 else
9531 with_gnu_ld=no
9532 fi
9533
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9539 chmod +x conf$$.sh
9540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9541 PATH_SEPARATOR=';'
9542 else
9543 PATH_SEPARATOR=:
9544 fi
9545 rm -f conf$$.sh
9546 fi
9547 ac_prog=ld
9548 if test "$GCC" = yes; then
9549 # Check if gcc -print-prog-name=ld gives a path.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9551 $as_echo_n "checking for ld used by GCC... " >&6; }
9552 case $host in
9553 *-*-mingw*)
9554 # gcc leaves a trailing carriage return which upsets mingw
9555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9556 *)
9557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9558 esac
9559 case $ac_prog in
9560 # Accept absolute paths.
9561 [\\/]* | [A-Za-z]:[\\/]*)
9562 re_direlt='/[^/][^/]*/\.\./'
9563 # Canonicalize the path of ld
9564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9567 done
9568 test -z "$LD" && LD="$ac_prog"
9569 ;;
9570 "")
9571 # If it fails, then pretend we aren't using GCC.
9572 ac_prog=ld
9573 ;;
9574 *)
9575 # If it is relative, then search for the first ld in PATH.
9576 with_gnu_ld=unknown
9577 ;;
9578 esac
9579 elif test "$with_gnu_ld" = yes; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9581 $as_echo_n "checking for GNU ld... " >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9584 $as_echo_n "checking for non-GNU ld... " >&6; }
9585 fi
9586 if test "${acl_cv_path_LD+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 if test -z "$LD"; then
9590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591 for ac_dir in $PATH; do
9592 test -z "$ac_dir" && ac_dir=.
9593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594 acl_cv_path_LD="$ac_dir/$ac_prog"
9595 # Check to see if the program is GNU ld. I'd rather use --version,
9596 # but apparently some GNU ld's only accept -v.
9597 # Break only if it was the GNU/non-GNU ld that we prefer.
9598 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9599 test "$with_gnu_ld" != no && break
9600 else
9601 test "$with_gnu_ld" != yes && break
9602 fi
9603 fi
9604 done
9605 IFS="$ac_save_ifs"
9606 else
9607 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9608 fi
9609 fi
9610
9611 LD="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9614 $as_echo "$LD" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9622 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9626 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9627 acl_cv_prog_gnu_ld=yes
9628 else
9629 acl_cv_prog_gnu_ld=no
9630 fi
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9634 with_gnu_ld=$acl_cv_prog_gnu_ld
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9639 $as_echo_n "checking for shared library run path origin... " >&6; }
9640 if test "${acl_cv_rpath+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643
9644 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9646 . ./conftest.sh
9647 rm -f ./conftest.sh
9648 acl_cv_rpath=done
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9652 $as_echo "$acl_cv_rpath" >&6; }
9653 wl="$acl_cv_wl"
9654 libext="$acl_cv_libext"
9655 shlibext="$acl_cv_shlibext"
9656 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9657 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9658 hardcode_direct="$acl_cv_hardcode_direct"
9659 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9660 # Check whether --enable-rpath was given.
9661 if test "${enable_rpath+set}" = set; then :
9662 enableval=$enable_rpath; :
9663 else
9664 enable_rpath=yes
9665 fi
9666
9667
9668
9669
9670
9671
9672
9673
9674 use_additional=yes
9675
9676 acl_save_prefix="$prefix"
9677 prefix="$acl_final_prefix"
9678 acl_save_exec_prefix="$exec_prefix"
9679 exec_prefix="$acl_final_exec_prefix"
9680
9681 eval additional_includedir=\"$includedir\"
9682 eval additional_libdir=\"$libdir\"
9683
9684 exec_prefix="$acl_save_exec_prefix"
9685 prefix="$acl_save_prefix"
9686
9687
9688 # Check whether --with-libiconv-prefix was given.
9689 if test "${with_libiconv_prefix+set}" = set; then :
9690 withval=$with_libiconv_prefix;
9691 if test "X$withval" = "Xno"; then
9692 use_additional=no
9693 else
9694 if test "X$withval" = "X"; then
9695
9696 acl_save_prefix="$prefix"
9697 prefix="$acl_final_prefix"
9698 acl_save_exec_prefix="$exec_prefix"
9699 exec_prefix="$acl_final_exec_prefix"
9700
9701 eval additional_includedir=\"$includedir\"
9702 eval additional_libdir=\"$libdir\"
9703
9704 exec_prefix="$acl_save_exec_prefix"
9705 prefix="$acl_save_prefix"
9706
9707 else
9708 additional_includedir="$withval/include"
9709 additional_libdir="$withval/lib"
9710 fi
9711 fi
9712
9713 fi
9714
9715 LIBICONV=
9716 LTLIBICONV=
9717 INCICONV=
9718 rpathdirs=
9719 ltrpathdirs=
9720 names_already_handled=
9721 names_next_round='iconv '
9722 while test -n "$names_next_round"; do
9723 names_this_round="$names_next_round"
9724 names_next_round=
9725 for name in $names_this_round; do
9726 already_handled=
9727 for n in $names_already_handled; do
9728 if test "$n" = "$name"; then
9729 already_handled=yes
9730 break
9731 fi
9732 done
9733 if test -z "$already_handled"; then
9734 names_already_handled="$names_already_handled $name"
9735 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9736 eval value=\"\$HAVE_LIB$uppername\"
9737 if test -n "$value"; then
9738 if test "$value" = yes; then
9739 eval value=\"\$LIB$uppername\"
9740 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9741 eval value=\"\$LTLIB$uppername\"
9742 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9743 else
9744 :
9745 fi
9746 else
9747 found_dir=
9748 found_la=
9749 found_so=
9750 found_a=
9751 if test $use_additional = yes; then
9752 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9753 found_dir="$additional_libdir"
9754 found_so="$additional_libdir/lib$name.$shlibext"
9755 if test -f "$additional_libdir/lib$name.la"; then
9756 found_la="$additional_libdir/lib$name.la"
9757 fi
9758 else
9759 if test -f "$additional_libdir/lib$name.$libext"; then
9760 found_dir="$additional_libdir"
9761 found_a="$additional_libdir/lib$name.$libext"
9762 if test -f "$additional_libdir/lib$name.la"; then
9763 found_la="$additional_libdir/lib$name.la"
9764 fi
9765 fi
9766 fi
9767 fi
9768 if test "X$found_dir" = "X"; then
9769 for x in $LDFLAGS $LTLIBICONV; do
9770
9771 acl_save_prefix="$prefix"
9772 prefix="$acl_final_prefix"
9773 acl_save_exec_prefix="$exec_prefix"
9774 exec_prefix="$acl_final_exec_prefix"
9775 eval x=\"$x\"
9776 exec_prefix="$acl_save_exec_prefix"
9777 prefix="$acl_save_prefix"
9778
9779 case "$x" in
9780 -L*)
9781 dir=`echo "X$x" | sed -e 's/^X-L//'`
9782 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9783 found_dir="$dir"
9784 found_so="$dir/lib$name.$shlibext"
9785 if test -f "$dir/lib$name.la"; then
9786 found_la="$dir/lib$name.la"
9787 fi
9788 else
9789 if test -f "$dir/lib$name.$libext"; then
9790 found_dir="$dir"
9791 found_a="$dir/lib$name.$libext"
9792 if test -f "$dir/lib$name.la"; then
9793 found_la="$dir/lib$name.la"
9794 fi
9795 fi
9796 fi
9797 ;;
9798 esac
9799 if test "X$found_dir" != "X"; then
9800 break
9801 fi
9802 done
9803 fi
9804 if test "X$found_dir" != "X"; then
9805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9806 if test "X$found_so" != "X"; then
9807 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9809 else
9810 haveit=
9811 for x in $ltrpathdirs; do
9812 if test "X$x" = "X$found_dir"; then
9813 haveit=yes
9814 break
9815 fi
9816 done
9817 if test -z "$haveit"; then
9818 ltrpathdirs="$ltrpathdirs $found_dir"
9819 fi
9820 if test "$hardcode_direct" = yes; then
9821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822 else
9823 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825 haveit=
9826 for x in $rpathdirs; do
9827 if test "X$x" = "X$found_dir"; then
9828 haveit=yes
9829 break
9830 fi
9831 done
9832 if test -z "$haveit"; then
9833 rpathdirs="$rpathdirs $found_dir"
9834 fi
9835 else
9836 haveit=
9837 for x in $LDFLAGS $LIBICONV; do
9838
9839 acl_save_prefix="$prefix"
9840 prefix="$acl_final_prefix"
9841 acl_save_exec_prefix="$exec_prefix"
9842 exec_prefix="$acl_final_exec_prefix"
9843 eval x=\"$x\"
9844 exec_prefix="$acl_save_exec_prefix"
9845 prefix="$acl_save_prefix"
9846
9847 if test "X$x" = "X-L$found_dir"; then
9848 haveit=yes
9849 break
9850 fi
9851 done
9852 if test -z "$haveit"; then
9853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9854 fi
9855 if test "$hardcode_minus_L" != no; then
9856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9857 else
9858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9859 fi
9860 fi
9861 fi
9862 fi
9863 else
9864 if test "X$found_a" != "X"; then
9865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9866 else
9867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9868 fi
9869 fi
9870 additional_includedir=
9871 case "$found_dir" in
9872 */lib | */lib/)
9873 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9874 additional_includedir="$basedir/include"
9875 ;;
9876 esac
9877 if test "X$additional_includedir" != "X"; then
9878 if test "X$additional_includedir" != "X/usr/include"; then
9879 haveit=
9880 if test "X$additional_includedir" = "X/usr/local/include"; then
9881 if test -n "$GCC"; then
9882 case $host_os in
9883 linux*) haveit=yes;;
9884 esac
9885 fi
9886 fi
9887 if test -z "$haveit"; then
9888 for x in $CPPFLAGS $INCICONV; do
9889
9890 acl_save_prefix="$prefix"
9891 prefix="$acl_final_prefix"
9892 acl_save_exec_prefix="$exec_prefix"
9893 exec_prefix="$acl_final_exec_prefix"
9894 eval x=\"$x\"
9895 exec_prefix="$acl_save_exec_prefix"
9896 prefix="$acl_save_prefix"
9897
9898 if test "X$x" = "X-I$additional_includedir"; then
9899 haveit=yes
9900 break
9901 fi
9902 done
9903 if test -z "$haveit"; then
9904 if test -d "$additional_includedir"; then
9905 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9906 fi
9907 fi
9908 fi
9909 fi
9910 fi
9911 if test -n "$found_la"; then
9912 save_libdir="$libdir"
9913 case "$found_la" in
9914 */* | *\\*) . "$found_la" ;;
9915 *) . "./$found_la" ;;
9916 esac
9917 libdir="$save_libdir"
9918 for dep in $dependency_libs; do
9919 case "$dep" in
9920 -L*)
9921 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9922 if test "X$additional_libdir" != "X/usr/lib"; then
9923 haveit=
9924 if test "X$additional_libdir" = "X/usr/local/lib"; then
9925 if test -n "$GCC"; then
9926 case $host_os in
9927 linux*) haveit=yes;;
9928 esac
9929 fi
9930 fi
9931 if test -z "$haveit"; then
9932 haveit=
9933 for x in $LDFLAGS $LIBICONV; do
9934
9935 acl_save_prefix="$prefix"
9936 prefix="$acl_final_prefix"
9937 acl_save_exec_prefix="$exec_prefix"
9938 exec_prefix="$acl_final_exec_prefix"
9939 eval x=\"$x\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9942
9943 if test "X$x" = "X-L$additional_libdir"; then
9944 haveit=yes
9945 break
9946 fi
9947 done
9948 if test -z "$haveit"; then
9949 if test -d "$additional_libdir"; then
9950 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9951 fi
9952 fi
9953 haveit=
9954 for x in $LDFLAGS $LTLIBICONV; do
9955
9956 acl_save_prefix="$prefix"
9957 prefix="$acl_final_prefix"
9958 acl_save_exec_prefix="$exec_prefix"
9959 exec_prefix="$acl_final_exec_prefix"
9960 eval x=\"$x\"
9961 exec_prefix="$acl_save_exec_prefix"
9962 prefix="$acl_save_prefix"
9963
9964 if test "X$x" = "X-L$additional_libdir"; then
9965 haveit=yes
9966 break
9967 fi
9968 done
9969 if test -z "$haveit"; then
9970 if test -d "$additional_libdir"; then
9971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9972 fi
9973 fi
9974 fi
9975 fi
9976 ;;
9977 -R*)
9978 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9979 if test "$enable_rpath" != no; then
9980 haveit=
9981 for x in $rpathdirs; do
9982 if test "X$x" = "X$dir"; then
9983 haveit=yes
9984 break
9985 fi
9986 done
9987 if test -z "$haveit"; then
9988 rpathdirs="$rpathdirs $dir"
9989 fi
9990 haveit=
9991 for x in $ltrpathdirs; do
9992 if test "X$x" = "X$dir"; then
9993 haveit=yes
9994 break
9995 fi
9996 done
9997 if test -z "$haveit"; then
9998 ltrpathdirs="$ltrpathdirs $dir"
9999 fi
10000 fi
10001 ;;
10002 -l*)
10003 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10004 ;;
10005 *.la)
10006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10007 ;;
10008 *)
10009 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10011 ;;
10012 esac
10013 done
10014 fi
10015 else
10016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10018 fi
10019 fi
10020 fi
10021 done
10022 done
10023 if test "X$rpathdirs" != "X"; then
10024 if test -n "$hardcode_libdir_separator"; then
10025 alldirs=
10026 for found_dir in $rpathdirs; do
10027 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10028 done
10029 acl_save_libdir="$libdir"
10030 libdir="$alldirs"
10031 eval flag=\"$hardcode_libdir_flag_spec\"
10032 libdir="$acl_save_libdir"
10033 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10034 else
10035 for found_dir in $rpathdirs; do
10036 acl_save_libdir="$libdir"
10037 libdir="$found_dir"
10038 eval flag=\"$hardcode_libdir_flag_spec\"
10039 libdir="$acl_save_libdir"
10040 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10041 done
10042 fi
10043 fi
10044 if test "X$ltrpathdirs" != "X"; then
10045 for found_dir in $ltrpathdirs; do
10046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10047 done
10048 fi
10049
10050
10051 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10052 ac_ext=cpp
10053 ac_cpp='$CXXCPP $CPPFLAGS'
10054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10057
10058
10059
10060
10061
10062
10063 am_save_CPPFLAGS="$CPPFLAGS"
10064
10065 for element in $INCICONV; do
10066 haveit=
10067 for x in $CPPFLAGS; do
10068
10069 acl_save_prefix="$prefix"
10070 prefix="$acl_final_prefix"
10071 acl_save_exec_prefix="$exec_prefix"
10072 exec_prefix="$acl_final_exec_prefix"
10073 eval x=\"$x\"
10074 exec_prefix="$acl_save_exec_prefix"
10075 prefix="$acl_save_prefix"
10076
10077 if test "X$x" = "X$element"; then
10078 haveit=yes
10079 break
10080 fi
10081 done
10082 if test -z "$haveit"; then
10083 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10084 fi
10085 done
10086
10087
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10089 $as_echo_n "checking for iconv... " >&6; }
10090 if test "${am_cv_func_iconv+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093
10094 am_cv_func_iconv="no, consider installing GNU libiconv"
10095 am_cv_lib_iconv=no
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 #include <stdlib.h>
10099 #include <iconv.h>
10100 int
10101 main ()
10102 {
10103 iconv_t cd = iconv_open("","");
10104 iconv(cd,NULL,NULL,NULL,NULL);
10105 iconv_close(cd);
10106 ;
10107 return 0;
10108 }
10109 _ACEOF
10110 if ac_fn_cxx_try_link "$LINENO"; then :
10111 am_cv_func_iconv=yes
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115 if test "$am_cv_func_iconv" != yes; then
10116 am_save_LIBS="$LIBS"
10117 LIBS="$LIBS $LIBICONV"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #include <stdlib.h>
10121 #include <iconv.h>
10122 int
10123 main ()
10124 {
10125 iconv_t cd = iconv_open("","");
10126 iconv(cd,NULL,NULL,NULL,NULL);
10127 iconv_close(cd);
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_cxx_try_link "$LINENO"; then :
10133 am_cv_lib_iconv=yes
10134 am_cv_func_iconv=yes
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS="$am_save_LIBS"
10139 fi
10140
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10143 $as_echo "$am_cv_func_iconv" >&6; }
10144 if test "$am_cv_func_iconv" = yes; then
10145
10146 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10147
10148 fi
10149 if test "$am_cv_lib_iconv" = yes; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10151 $as_echo_n "checking how to link with libiconv... " >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10153 $as_echo "$LIBICONV" >&6; }
10154 else
10155 CPPFLAGS="$am_save_CPPFLAGS"
10156 LIBICONV=
10157 LTLIBICONV=
10158 fi
10159
10160
10161
10162 if test "$am_cv_func_iconv" = yes; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10164 $as_echo_n "checking for iconv declaration... " >&6; }
10165 if test "${am_cv_proto_iconv+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171
10172 #include <stdlib.h>
10173 #include <iconv.h>
10174 extern
10175 #ifdef __cplusplus
10176 "C"
10177 #endif
10178 #if defined(__STDC__) || defined(__cplusplus)
10179 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10180 #else
10181 size_t iconv();
10182 #endif
10183
10184 int
10185 main ()
10186 {
10187
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 if ac_fn_cxx_try_compile "$LINENO"; then :
10193 am_cv_proto_iconv_arg1=""
10194 else
10195 am_cv_proto_iconv_arg1="const"
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 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);"
10199 fi
10200
10201 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10203 }$am_cv_proto_iconv" >&5
10204 $as_echo "${ac_t:-
10205 }$am_cv_proto_iconv" >&6; }
10206
10207 cat >>confdefs.h <<_ACEOF
10208 #define ICONV_CONST $am_cv_proto_iconv_arg1
10209 _ACEOF
10210
10211 fi
10212
10213 ac_ext=c
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219 else
10220
10221
10222
10223
10224
10225 am_save_CPPFLAGS="$CPPFLAGS"
10226
10227 for element in $INCICONV; do
10228 haveit=
10229 for x in $CPPFLAGS; do
10230
10231 acl_save_prefix="$prefix"
10232 prefix="$acl_final_prefix"
10233 acl_save_exec_prefix="$exec_prefix"
10234 exec_prefix="$acl_final_exec_prefix"
10235 eval x=\"$x\"
10236 exec_prefix="$acl_save_exec_prefix"
10237 prefix="$acl_save_prefix"
10238
10239 if test "X$x" = "X$element"; then
10240 haveit=yes
10241 break
10242 fi
10243 done
10244 if test -z "$haveit"; then
10245 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10246 fi
10247 done
10248
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10251 $as_echo_n "checking for iconv... " >&6; }
10252 if test "${am_cv_func_iconv+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255
10256 am_cv_func_iconv="no, consider installing GNU libiconv"
10257 am_cv_lib_iconv=no
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 #include <stdlib.h>
10261 #include <iconv.h>
10262 int
10263 main ()
10264 {
10265 iconv_t cd = iconv_open("","");
10266 iconv(cd,NULL,NULL,NULL,NULL);
10267 iconv_close(cd);
10268 ;
10269 return 0;
10270 }
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273 am_cv_func_iconv=yes
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 if test "$am_cv_func_iconv" != yes; then
10278 am_save_LIBS="$LIBS"
10279 LIBS="$LIBS $LIBICONV"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #include <stdlib.h>
10283 #include <iconv.h>
10284 int
10285 main ()
10286 {
10287 iconv_t cd = iconv_open("","");
10288 iconv(cd,NULL,NULL,NULL,NULL);
10289 iconv_close(cd);
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10295 am_cv_lib_iconv=yes
10296 am_cv_func_iconv=yes
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS="$am_save_LIBS"
10301 fi
10302
10303 fi
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10305 $as_echo "$am_cv_func_iconv" >&6; }
10306 if test "$am_cv_func_iconv" = yes; then
10307
10308 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10309
10310 fi
10311 if test "$am_cv_lib_iconv" = yes; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10313 $as_echo_n "checking how to link with libiconv... " >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10315 $as_echo "$LIBICONV" >&6; }
10316 else
10317 CPPFLAGS="$am_save_CPPFLAGS"
10318 LIBICONV=
10319 LTLIBICONV=
10320 fi
10321
10322
10323
10324 if test "$am_cv_func_iconv" = yes; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10326 $as_echo_n "checking for iconv declaration... " >&6; }
10327 if test "${am_cv_proto_iconv+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333
10334 #include <stdlib.h>
10335 #include <iconv.h>
10336 extern
10337 #ifdef __cplusplus
10338 "C"
10339 #endif
10340 #if defined(__STDC__) || defined(__cplusplus)
10341 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10342 #else
10343 size_t iconv();
10344 #endif
10345
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 am_cv_proto_iconv_arg1=""
10356 else
10357 am_cv_proto_iconv_arg1="const"
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 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);"
10361 fi
10362
10363 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10365 }$am_cv_proto_iconv" >&5
10366 $as_echo "${ac_t:-
10367 }$am_cv_proto_iconv" >&6; }
10368
10369 cat >>confdefs.h <<_ACEOF
10370 #define ICONV_CONST $am_cv_proto_iconv_arg1
10371 _ACEOF
10372
10373 fi
10374
10375 fi
10376
10377 # Until we have in-tree GNU iconv:
10378 LIBICONV_DEP=
10379
10380
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10383 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10384 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 #include <locale.h>
10390 int
10391 main ()
10392 {
10393 return LC_MESSAGES
10394 ;
10395 return 0;
10396 }
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10399 am_cv_val_LC_MESSAGES=yes
10400 else
10401 am_cv_val_LC_MESSAGES=no
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10407 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10408 if test $am_cv_val_LC_MESSAGES = yes; then
10409
10410 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10411
10412 fi
10413
10414
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10417 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10418 if test "${am_cv_langinfo_codeset+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #include <langinfo.h>
10424 int
10425 main ()
10426 {
10427 char* cs = nl_langinfo(CODESET);
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 am_cv_langinfo_codeset=yes
10434 else
10435 am_cv_langinfo_codeset=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439
10440 fi
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10442 $as_echo "$am_cv_langinfo_codeset" >&6; }
10443 if test $am_cv_langinfo_codeset = yes; then
10444
10445 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10446
10447 fi
10448
10449
10450 # We will need to find libiberty.h and ansidecl.h
10451 saved_CFLAGS="$CFLAGS"
10452 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10453 saved_CXXFLAGS="$CXXFLAGS"
10454 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10455 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10456 strsignal strstr strverscmp \
10457 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10458 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
10459 do
10460 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10463 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 #undef $ac_tr_decl
10469 #define $ac_tr_decl 1
10470
10471 #include "ansidecl.h"
10472 #include "system.h"
10473
10474 int
10475 main ()
10476 {
10477 #ifndef $ac_func
10478 char *(*pfn) = (char *(*)) $ac_func ;
10479 #endif
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"; then :
10485 eval "gcc_cv_have_decl_$ac_func=yes"
10486 else
10487 eval "gcc_cv_have_decl_$ac_func=no"
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 fi
10491
10492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10495 #define $ac_tr_decl 1
10496 _ACEOF
10497
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10501 #define $ac_tr_decl 0
10502 _ACEOF
10503
10504 fi
10505
10506 done
10507
10508
10509 for ac_func in getrlimit setrlimit getrusage
10510 do
10511 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10513 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10514 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 #undef $ac_tr_decl
10520 #define $ac_tr_decl 1
10521
10522 #include "ansidecl.h"
10523 #include "system.h"
10524 #ifdef HAVE_SYS_RESOURCE_H
10525 #include <sys/resource.h>
10526 #endif
10527
10528
10529 int
10530 main ()
10531 {
10532 #ifndef $ac_func
10533 char *(*pfn) = (char *(*)) $ac_func ;
10534 #endif
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"; then :
10540 eval "gcc_cv_have_decl_$ac_func=yes"
10541 else
10542 eval "gcc_cv_have_decl_$ac_func=no"
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546
10547 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10550 #define $ac_tr_decl 1
10551 _ACEOF
10552
10553 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10556 #define $ac_tr_decl 0
10557 _ACEOF
10558
10559 fi
10560
10561 done
10562
10563
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_SYS_RESOURCE_H
10570 #include <sys/resource.h>
10571 #endif
10572
10573 int
10574 main ()
10575 {
10576 rlim_t l = 0;
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_compile "$LINENO"; then :
10582
10583 else
10584
10585 $as_echo "#define rlim_t long" >>confdefs.h
10586
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589
10590 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10591 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10592 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10593 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10594 for ac_func in ldgetname
10595 do
10596 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10598 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10599 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #undef $ac_tr_decl
10605 #define $ac_tr_decl 1
10606
10607 #include "ansidecl.h"
10608 #include "system.h"
10609 #ifdef HAVE_LDFCN_H
10610 #undef FREAD
10611 #undef FWRITE
10612 #include <ldfcn.h>
10613 #endif
10614
10615
10616 int
10617 main ()
10618 {
10619 #ifndef $ac_func
10620 char *(*pfn) = (char *(*)) $ac_func ;
10621 #endif
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_compile "$LINENO"; then :
10627 eval "gcc_cv_have_decl_$ac_func=yes"
10628 else
10629 eval "gcc_cv_have_decl_$ac_func=no"
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 fi
10633
10634 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10637 #define $ac_tr_decl 1
10638 _ACEOF
10639
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10643 #define $ac_tr_decl 0
10644 _ACEOF
10645
10646 fi
10647
10648 done
10649
10650
10651 for ac_func in times
10652 do
10653 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10655 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10656 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #undef $ac_tr_decl
10662 #define $ac_tr_decl 1
10663
10664 #include "ansidecl.h"
10665 #include "system.h"
10666 #ifdef HAVE_SYS_TIMES_H
10667 #include <sys/times.h>
10668 #endif
10669
10670
10671 int
10672 main ()
10673 {
10674 #ifndef $ac_func
10675 char *(*pfn) = (char *(*)) $ac_func ;
10676 #endif
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_compile "$LINENO"; then :
10682 eval "gcc_cv_have_decl_$ac_func=yes"
10683 else
10684 eval "gcc_cv_have_decl_$ac_func=no"
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10687 fi
10688
10689 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10692 #define $ac_tr_decl 1
10693 _ACEOF
10694
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10698 #define $ac_tr_decl 0
10699 _ACEOF
10700
10701 fi
10702
10703 done
10704
10705
10706 for ac_func in sigaltstack
10707 do
10708 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10710 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10711 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #undef $ac_tr_decl
10717 #define $ac_tr_decl 1
10718
10719 #include "ansidecl.h"
10720 #include "system.h"
10721 #include <signal.h>
10722
10723
10724 int
10725 main ()
10726 {
10727 #ifndef $ac_func
10728 char *(*pfn) = (char *(*)) $ac_func ;
10729 #endif
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 eval "gcc_cv_have_decl_$ac_func=yes"
10736 else
10737 eval "gcc_cv_have_decl_$ac_func=no"
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 fi
10741
10742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10744 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10745 #define $ac_tr_decl 1
10746 _ACEOF
10747
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10751 #define $ac_tr_decl 0
10752 _ACEOF
10753
10754 fi
10755
10756 done
10757
10758
10759 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10760 # prototype.
10761 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10762 ac_ext=cpp
10763 ac_cpp='$CXXCPP $CPPFLAGS'
10764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10767
10768 for ac_func in madvise
10769 do
10770 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10772 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10773 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #undef $ac_tr_decl
10779 #define $ac_tr_decl 1
10780
10781 #include "ansidecl.h"
10782 #include "system.h"
10783
10784
10785 int
10786 main ()
10787 {
10788 #ifndef $ac_func
10789 char *(*pfn) = (char *(*)) $ac_func ;
10790 #endif
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_cxx_try_compile "$LINENO"; then :
10796 eval "gcc_cv_have_decl_$ac_func=yes"
10797 else
10798 eval "gcc_cv_have_decl_$ac_func=no"
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 fi
10802
10803 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10806 #define $ac_tr_decl 1
10807 _ACEOF
10808
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10812 #define $ac_tr_decl 0
10813 _ACEOF
10814
10815 fi
10816
10817 done
10818
10819 ac_ext=c
10820 ac_cpp='$CPP $CPPFLAGS'
10821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10824
10825 else
10826 for ac_func in madvise
10827 do
10828 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10830 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10831 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 #undef $ac_tr_decl
10837 #define $ac_tr_decl 1
10838
10839 #include "ansidecl.h"
10840 #include "system.h"
10841
10842
10843 int
10844 main ()
10845 {
10846 #ifndef $ac_func
10847 char *(*pfn) = (char *(*)) $ac_func ;
10848 #endif
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 eval "gcc_cv_have_decl_$ac_func=yes"
10855 else
10856 eval "gcc_cv_have_decl_$ac_func=no"
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 fi
10860
10861 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10863 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10864 #define $ac_tr_decl 1
10865 _ACEOF
10866
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10870 #define $ac_tr_decl 0
10871 _ACEOF
10872
10873 fi
10874
10875 done
10876
10877
10878 fi
10879
10880 # More time-related stuff.
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10882 $as_echo_n "checking for struct tms... " >&6; }
10883 if test "${ac_cv_struct_tms+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889
10890 #include "ansidecl.h"
10891 #include "system.h"
10892 #ifdef HAVE_SYS_TIMES_H
10893 #include <sys/times.h>
10894 #endif
10895
10896 int
10897 main ()
10898 {
10899 struct tms tms;
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_compile "$LINENO"; then :
10905 ac_cv_struct_tms=yes
10906 else
10907 ac_cv_struct_tms=no
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10912 $as_echo "$ac_cv_struct_tms" >&6; }
10913 if test $ac_cv_struct_tms = yes; then
10914
10915 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10916
10917 fi
10918
10919 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10920 # revisit after autoconf 2.50.
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10922 $as_echo_n "checking for clock_t... " >&6; }
10923 if test "${gcc_cv_type_clock_t+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 #include "ansidecl.h"
10931 #include "system.h"
10932
10933 int
10934 main ()
10935 {
10936 clock_t x;
10937 ;
10938 return 0;
10939 }
10940 _ACEOF
10941 if ac_fn_c_try_compile "$LINENO"; then :
10942 gcc_cv_type_clock_t=yes
10943 else
10944 gcc_cv_type_clock_t=no
10945 fi
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10949 $as_echo "$gcc_cv_type_clock_t" >&6; }
10950 if test $gcc_cv_type_clock_t = yes; then
10951
10952 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10953
10954 fi
10955
10956 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10957 CFLAGS="$saved_CFLAGS"
10958 CXXFLAGS="$saved_CXXFLAGS"
10959
10960 # Check whether --enable-initfini-array was given.
10961 if test "${enable_initfini_array+set}" = set; then :
10962 enableval=$enable_initfini_array;
10963 else
10964
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10966 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10967 if test "${gcc_cv_initfini_array+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10971 if test "$cross_compiling" = yes; then :
10972 gcc_cv_initfini_array=no
10973 else
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976
10977 #ifndef __ELF__
10978 #error Not an ELF OS
10979 #endif
10980 #ifdef __ia64__
10981 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10982 if it can be used. */
10983 static int x = -1;
10984 int main (void) { return x; }
10985 int foo (void) { x = 0; }
10986 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10987 #else
10988 extern void abort ();
10989 static int count;
10990
10991 static void
10992 init1005 ()
10993 {
10994 if (count != 0)
10995 abort ();
10996 count = 1005;
10997 }
10998 void (*const init_array1005) ()
10999 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
11000 = { init1005 };
11001 static void
11002 fini1005 ()
11003 {
11004 if (count != 1005)
11005 abort ();
11006 }
11007 void (*const fini_array1005) ()
11008 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
11009 = { fini1005 };
11010
11011 static void
11012 ctor1007 ()
11013 {
11014 if (count != 1005)
11015 abort ();
11016 count = 1007;
11017 }
11018 void (*const ctors1007) ()
11019 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11020 = { ctor1007 };
11021 static void
11022 dtor1007 ()
11023 {
11024 if (count != 1007)
11025 abort ();
11026 count = 1005;
11027 }
11028 void (*const dtors1007) ()
11029 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11030 = { dtor1007 };
11031
11032 static void
11033 init65530 ()
11034 {
11035 if (count != 1007)
11036 abort ();
11037 count = 65530;
11038 }
11039 void (*const init_array65530) ()
11040 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11041 = { init65530 };
11042 static void
11043 fini65530 ()
11044 {
11045 if (count != 65530)
11046 abort ();
11047 count = 1007;
11048 }
11049 void (*const fini_array65530) ()
11050 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11051 = { fini65530 };
11052
11053 static void
11054 ctor65535 ()
11055 {
11056 if (count != 65530)
11057 abort ();
11058 count = 65535;
11059 }
11060 void (*const ctors65535) ()
11061 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11062 = { ctor65535 };
11063 static void
11064 dtor65535 ()
11065 {
11066 if (count != 65535)
11067 abort ();
11068 count = 65530;
11069 }
11070 void (*const dtors65535) ()
11071 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11072 = { dtor65535 };
11073
11074 int
11075 main ()
11076 {
11077 if (count != 65535)
11078 abort ();
11079 return 0;
11080 }
11081 #endif
11082
11083 _ACEOF
11084 if ac_fn_c_try_run "$LINENO"; then :
11085 gcc_cv_initfini_array=yes
11086 else
11087 gcc_cv_initfini_array=no
11088 fi
11089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11090 conftest.$ac_objext conftest.beam conftest.$ac_ext
11091 fi
11092
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11095 $as_echo_n "checking cross compile... guessing... " >&6; }
11096 gcc_cv_initfini_array=no
11097 fi
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11100 $as_echo "$gcc_cv_initfini_array" >&6; }
11101 enable_initfini_array=$gcc_cv_initfini_array
11102
11103 fi
11104
11105 if test $enable_initfini_array = yes; then
11106
11107 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11108
11109 fi
11110
11111 # mkdir takes a single argument on some systems.
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11113 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11114 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119
11120 #include <sys/types.h>
11121 #ifdef HAVE_SYS_STAT_H
11122 # include <sys/stat.h>
11123 #endif
11124 #ifdef HAVE_UNISTD_H
11125 # include <unistd.h>
11126 #endif
11127 #ifdef HAVE_DIRECT_H
11128 # include <direct.h>
11129 #endif
11130 int
11131 main ()
11132 {
11133 mkdir ("foo", 0);
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 if ac_fn_c_try_compile "$LINENO"; then :
11139 gcc_cv_mkdir_takes_one_arg=no
11140 else
11141 gcc_cv_mkdir_takes_one_arg=yes
11142 fi
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11146 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11147 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11148
11149 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11150
11151 fi
11152
11153
11154 # File extensions
11155 manext='.1'
11156 objext='.o'
11157
11158
11159
11160 # With Setjmp/Longjmp based exception handling.
11161 # Check whether --enable-sjlj-exceptions was given.
11162 if test "${enable_sjlj_exceptions+set}" = set; then :
11163 enableval=$enable_sjlj_exceptions; case $target in
11164 *-*-hpux10*)
11165 if test $enableval != yes; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11167 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11168 enableval=yes
11169 fi
11170 ;;
11171 esac
11172 force_sjlj_exceptions=yes
11173 else
11174 case $target in
11175 *-*-hpux10*)
11176 force_sjlj_exceptions=yes
11177 enableval=yes
11178 ;;
11179 *)
11180 force_sjlj_exceptions=no
11181 ;;
11182 esac
11183 fi
11184
11185 if test $force_sjlj_exceptions = yes; then
11186 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11187
11188 cat >>confdefs.h <<_ACEOF
11189 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11190 _ACEOF
11191
11192 fi
11193
11194 # --------------------------------------------------------
11195 # Build, host, and target specific configuration fragments
11196 # --------------------------------------------------------
11197
11198 # Collect build-machine-specific information.
11199 . ${srcdir}/config.build
11200
11201 # Collect host-machine-specific information.
11202 . ${srcdir}/config.host
11203
11204 target_gtfiles=
11205
11206 # Collect target-machine-specific information.
11207 . ${srcdir}/config.gcc
11208
11209 extra_objs="${host_extra_objs} ${extra_objs}"
11210 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11211
11212 # Default the target-machine variables that were not explicitly set.
11213 if test x"$tm_file" = x
11214 then tm_file=$cpu_type/$cpu_type.h; fi
11215
11216 if test x"$extra_headers" = x
11217 then extra_headers=; fi
11218
11219 if test x$md_file = x
11220 then md_file=$cpu_type/$cpu_type.md; fi
11221
11222 if test x$out_file = x
11223 then out_file=$cpu_type/$cpu_type.c; fi
11224
11225 if test x"$tmake_file" = x
11226 then tmake_file=$cpu_type/t-$cpu_type
11227 fi
11228
11229 if test x"$dwarf2" = xyes
11230 then tm_file="$tm_file tm-dwarf2.h"
11231 fi
11232
11233 # Say what files are being used for the output code and MD file.
11234 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11235 echo "Using \`$srcdir/config/$md_file' as machine description file."
11236
11237 # If any of the xm_file variables contain nonexistent files, warn
11238 # about them and drop them.
11239
11240 bx=
11241 for x in $build_xm_file; do
11242 if test -f $srcdir/config/$x
11243 then bx="$bx $x"
11244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11246 fi
11247 done
11248 build_xm_file="$bx"
11249
11250 hx=
11251 for x in $host_xm_file; do
11252 if test -f $srcdir/config/$x
11253 then hx="$hx $x"
11254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11256 fi
11257 done
11258 host_xm_file="$hx"
11259
11260 tx=
11261 for x in $xm_file; do
11262 if test -f $srcdir/config/$x
11263 then tx="$tx $x"
11264 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11265 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11266 fi
11267 done
11268 xm_file="$tx"
11269
11270 count=a
11271 for f in $tm_file; do
11272 count=${count}x
11273 done
11274 if test $count = ax; then
11275 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11276 else
11277 echo "Using the following target machine macro files:"
11278 for f in $tm_file; do
11279 echo " $srcdir/config/$f"
11280 done
11281 fi
11282
11283 if test x$need_64bit_hwint = xyes; then
11284
11285 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11286
11287 fi
11288
11289 if test x$use_long_long_for_widest_fast_int = xyes; then
11290
11291 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11292
11293 fi
11294
11295 count=a
11296 for f in $host_xm_file; do
11297 count=${count}x
11298 done
11299 if test $count = a; then
11300 :
11301 elif test $count = ax; then
11302 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11303 else
11304 echo "Using the following host machine macro files:"
11305 for f in $host_xm_file; do
11306 echo " $srcdir/config/$f"
11307 done
11308 fi
11309 echo "Using ${out_host_hook_obj} for host machine hooks."
11310
11311 if test "$host_xm_file" != "$build_xm_file"; then
11312 count=a
11313 for f in $build_xm_file; do
11314 count=${count}x
11315 done
11316 if test $count = a; then
11317 :
11318 elif test $count = ax; then
11319 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11320 else
11321 echo "Using the following build machine macro files:"
11322 for f in $build_xm_file; do
11323 echo " $srcdir/config/$f"
11324 done
11325 fi
11326 fi
11327
11328 if test -n "$configured_native_system_header_dir"; then
11329 native_system_header_dir=$configured_native_system_header_dir
11330 fi
11331 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11332
11333
11334 case ${host} in
11335 powerpc*-*-darwin*)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11337 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11338 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343
11344 #include <sys/cdefs.h>
11345 #include <sys/signal.h>
11346 #include <ucontext.h>
11347 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11348
11349 _ACEOF
11350 if ac_fn_c_try_compile "$LINENO"; then :
11351 gcc_cv_mcontext_underscores=no
11352 else
11353 gcc_cv_mcontext_underscores=yes
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11358 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11359 if test $gcc_cv_mcontext_underscores = yes; then
11360
11361 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11362
11363 fi
11364 ;;
11365 esac
11366
11367 # ---------
11368 # Threading
11369 # ---------
11370
11371 # Check if a valid thread package
11372 case ${enable_threads} in
11373 "" | no)
11374 # No threads
11375 target_thread_file='single'
11376 ;;
11377 yes)
11378 # default
11379 target_thread_file='single'
11380 ;;
11381 aix | dce | lynx | mipssde | posix | rtems | \
11382 single | tpf | vxworks | win32)
11383 target_thread_file=${enable_threads}
11384 ;;
11385 *)
11386 echo "${enable_threads} is an unknown thread package" 1>&2
11387 exit 1
11388 ;;
11389 esac
11390
11391 if test x${thread_file} = x; then
11392 # No thread file set by target-specific clauses in config.gcc,
11393 # so use file chosen by default logic above
11394 thread_file=${target_thread_file}
11395 fi
11396
11397 # --------
11398 # UNSORTED
11399 # --------
11400
11401 use_cxa_atexit=no
11402 if test x$enable___cxa_atexit = xyes || \
11403 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11404 if test x$host = x$target; then
11405 case $host in
11406 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11407 # keyed to flag_use_cxa_atexit
11408 *-*-mingw32*)
11409 use_cxa_atexit=yes
11410 ;;
11411 *)
11412 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11413 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11414 use_cxa_atexit=yes
11415 else
11416 echo "__cxa_atexit can't be enabled on this target"
11417 fi
11418
11419 ;;
11420 esac
11421 else
11422 # We can't check for __cxa_atexit when building a cross, so assume
11423 # it is available
11424 use_cxa_atexit=yes
11425 fi
11426 if test x$use_cxa_atexit = xyes; then
11427
11428 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11429
11430 fi
11431 fi
11432
11433 # Look for a file containing extra machine modes.
11434 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11435 extra_modes_file='$(srcdir)'/config/${extra_modes}
11436
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define EXTRA_MODES_FILE "config/$extra_modes"
11440 _ACEOF
11441
11442 fi
11443
11444 # Convert extra_options into a form suitable for Makefile use.
11445 extra_opt_files=
11446 all_opt_files=
11447 for f in $extra_options; do
11448 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11449 all_opt_files="$all_opt_files $srcdir/config/$f"
11450 done
11451
11452
11453 # auto-host.h is the file containing items generated by autoconf and is
11454 # the first file included by config.h.
11455 # If host=build, it is correct to have bconfig include auto-host.h
11456 # as well. If host!=build, we are in error and need to do more
11457 # work to find out the build config parameters.
11458 if test x$host = x$build
11459 then
11460 build_auto=auto-host.h
11461 else
11462 # We create a subdir, then run autoconf in the subdir.
11463 # To prevent recursion we set host and build for the new
11464 # invocation of configure to the build for this invocation
11465 # of configure.
11466 tempdir=build.$$
11467 rm -rf $tempdir
11468 mkdir $tempdir
11469 cd $tempdir
11470 case ${srcdir} in
11471 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11472 *) realsrcdir=../${srcdir};;
11473 esac
11474 saved_CFLAGS="${CFLAGS}"
11475 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11476 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11477 ${realsrcdir}/configure \
11478 --enable-languages=${enable_languages-all} \
11479 --target=$target_alias --host=$build_alias --build=$build_alias
11480 CFLAGS="${saved_CFLAGS}"
11481
11482 # We just finished tests for the build machine, so rename
11483 # the file auto-build.h in the gcc directory.
11484 mv auto-host.h ../auto-build.h
11485 cd ..
11486 rm -rf $tempdir
11487 build_auto=auto-build.h
11488 fi
11489
11490
11491 tm_file="${tm_file} defaults.h"
11492 tm_p_file="${tm_p_file} tm-preds.h"
11493 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11494 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11495 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11496 # put this back in temporarily.
11497 xm_file="auto-host.h ansidecl.h ${xm_file}"
11498
11499 # --------
11500 # UNSORTED
11501 # --------
11502
11503 # Compile in configure arguments.
11504 if test -f configargs.h ; then
11505 # Being re-configured.
11506 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11507 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11508 else
11509 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11510 fi
11511
11512 # Double all backslashes and backslash all quotes to turn
11513 # gcc_config_arguments into a C string.
11514 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11515 $gcc_config_arguments
11516 EOF
11517 gcc_config_arguments_str=`cat conftest.out`
11518 rm -f conftest.out
11519
11520 cat > configargs.h <<EOF
11521 /* Generated automatically. */
11522 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11523 static const char thread_model[] = "$thread_file";
11524
11525 static const struct {
11526 const char *name, *value;
11527 } configure_default_options[] = $configure_default_options;
11528 EOF
11529
11530 gcc_BASEVER=`cat $srcdir/BASE-VER`
11531 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11532 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11533 if test -f $srcdir/REVISION ; then
11534 gcc_REVISION=`cat $srcdir/REVISION`
11535 else
11536 gcc_REVISION=""
11537 fi
11538 cat > plugin-version.h <<EOF
11539 #include "configargs.h"
11540
11541 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11542 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11543 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11544 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11545
11546 static char basever[] = "$gcc_BASEVER";
11547 static char datestamp[] = "$gcc_DATESTAMP";
11548 static char devphase[] = "$gcc_DEVPHASE";
11549 static char revision[] = "$gcc_REVISION";
11550
11551 /* FIXME plugins: We should make the version information more precise.
11552 One way to do is to add a checksum. */
11553
11554 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11555 devphase, revision,
11556 configuration_arguments};
11557 EOF
11558
11559 # Internationalization
11560 # If we haven't got the data from the intl directory,
11561 # assume NLS is disabled.
11562 USE_NLS=no
11563 LIBINTL=
11564 LIBINTL_DEP=
11565 INCINTL=
11566 XGETTEXT=
11567 GMSGFMT=
11568 POSUB=
11569
11570 if test -f ../intl/config.intl; then
11571 . ../intl/config.intl
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11574 $as_echo_n "checking whether NLS is requested... " >&6; }
11575 if test x"$USE_NLS" != xyes; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580 $as_echo "yes" >&6; }
11581
11582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11583
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11586 $as_echo_n "checking for catalogs to be installed... " >&6; }
11587 # Look for .po and .gmo files in the source directory.
11588 CATALOGS=
11589 XLINGUAS=
11590 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11591 # If there aren't any .gmo files the shell will give us the
11592 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11593 # weeded out.
11594 case "$cat" in *\**)
11595 continue;;
11596 esac
11597 # The quadruple backslash is collapsed to a double backslash
11598 # by the backticks, then collapsed again by the double quotes,
11599 # leaving us with one backslash in the sed expression (right
11600 # before the dot that mustn't act as a wildcard).
11601 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11602 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11603 # The user is allowed to set LINGUAS to a list of languages to
11604 # install catalogs for. If it's empty that means "all of them."
11605 if test "x$LINGUAS" = x; then
11606 CATALOGS="$CATALOGS $cat"
11607 XLINGUAS="$XLINGUAS $lang"
11608 else
11609 case "$LINGUAS" in *$lang*)
11610 CATALOGS="$CATALOGS $cat"
11611 XLINGUAS="$XLINGUAS $lang"
11612 ;;
11613 esac
11614 fi
11615 done
11616 LINGUAS="$XLINGUAS"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11618 $as_echo "$LINGUAS" >&6; }
11619
11620
11621 DATADIRNAME=share
11622
11623 INSTOBJEXT=.mo
11624
11625 GENCAT=gencat
11626
11627 CATOBJEXT=.gmo
11628
11629 fi
11630
11631 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11632 # -liconv on the link line twice.
11633 case "$LIBINTL" in *$LIBICONV*)
11634 LIBICONV= ;;
11635 esac
11636
11637 # Check whether --enable-secureplt was given.
11638 if test "${enable_secureplt+set}" = set; then :
11639 enableval=$enable_secureplt;
11640 fi
11641
11642
11643 # Check whether --enable-leading-mingw64-underscores was given.
11644 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11645 enableval=$enable_leading_mingw64_underscores;
11646 fi
11647
11648 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11649
11650 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11651
11652 fi
11653
11654 # Check whether --enable-cld was given.
11655 if test "${enable_cld+set}" = set; then :
11656 enableval=$enable_cld;
11657 else
11658 enable_cld=no
11659 fi
11660
11661
11662 # Check whether --enable-frame-pointer was given.
11663 if test "${enable_frame_pointer+set}" = set; then :
11664 enableval=$enable_frame_pointer;
11665 else
11666
11667 case $target_os in
11668 linux* | darwin[8912]*)
11669 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11670 # DWARF2.
11671 enable_frame_pointer=no
11672 ;;
11673 *)
11674 enable_frame_pointer=yes
11675 ;;
11676 esac
11677
11678 fi
11679
11680
11681 # Windows32 Registry support for specifying GCC installation paths.
11682 # Check whether --enable-win32-registry was given.
11683 if test "${enable_win32_registry+set}" = set; then :
11684 enableval=$enable_win32_registry;
11685 fi
11686
11687
11688 case $host_os in
11689 win32 | pe | cygwin* | mingw32* | uwin*)
11690 if test "x$enable_win32_registry" != xno; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11692 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11693 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 ac_func_search_save_LIBS=$LIBS
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11699
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char RegOpenKeyExA ();
11707 int
11708 main ()
11709 {
11710 return RegOpenKeyExA ();
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 for ac_lib in '' advapi32; do
11716 if test -z "$ac_lib"; then
11717 ac_res="none required"
11718 else
11719 ac_res=-l$ac_lib
11720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11721 fi
11722 if ac_fn_c_try_link "$LINENO"; then :
11723 ac_cv_search_RegOpenKeyExA=$ac_res
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext
11727 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11728 break
11729 fi
11730 done
11731 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11732
11733 else
11734 ac_cv_search_RegOpenKeyExA=no
11735 fi
11736 rm conftest.$ac_ext
11737 LIBS=$ac_func_search_save_LIBS
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11740 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11741 ac_res=$ac_cv_search_RegOpenKeyExA
11742 if test "$ac_res" != no; then :
11743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11744
11745 else
11746 enable_win32_registry=no
11747 fi
11748
11749 fi
11750
11751 if test "x$enable_win32_registry" != xno; then
11752
11753 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11754
11755
11756 if test "x$enable_win32_registry" != xyes \
11757 && test "x$enable_win32_registry" != x; then
11758
11759 cat >>confdefs.h <<_ACEOF
11760 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11761 _ACEOF
11762
11763 fi
11764 fi
11765 ;;
11766 esac
11767
11768 # Get an absolute path to the GCC top-level source directory
11769 holddir=`${PWDCMD-pwd}`
11770 cd $srcdir
11771 topdir=`${PWDCMD-pwd}`
11772 cd $holddir
11773
11774 # Conditionalize the makefile for this host machine.
11775 xmake_file=
11776 for f in ${host_xmake_file}
11777 do
11778 if test -f ${srcdir}/config/$f
11779 then
11780 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11781 fi
11782 done
11783
11784 # Conditionalize the makefile for this target machine.
11785 tmake_file_=
11786 for f in ${tmake_file}
11787 do
11788 if test -f ${srcdir}/config/$f
11789 then
11790 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11791 fi
11792 done
11793 tmake_file="${tmake_file_}"
11794
11795 out_object_file=`basename $out_file .c`.o
11796 common_out_object_file=`basename $common_out_file .c`.o
11797
11798 tm_file_list="options.h"
11799 tm_include_list="options.h insn-constants.h"
11800 for f in $tm_file; do
11801 case $f in
11802 ./* )
11803 f=`echo $f | sed 's/^..//'`
11804 tm_file_list="${tm_file_list} $f"
11805 tm_include_list="${tm_include_list} $f"
11806 ;;
11807 defaults.h )
11808 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11809 tm_include_list="${tm_include_list} $f"
11810 ;;
11811 * )
11812 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11813 tm_include_list="${tm_include_list} config/$f"
11814 ;;
11815 esac
11816 done
11817
11818 tm_p_file_list=
11819 tm_p_include_list=
11820 for f in $tm_p_file; do
11821 case $f in
11822 tm-preds.h )
11823 tm_p_file_list="${tm_p_file_list} $f"
11824 tm_p_include_list="${tm_p_include_list} $f"
11825 ;;
11826 * )
11827 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11828 tm_p_include_list="${tm_p_include_list} config/$f"
11829 esac
11830 done
11831
11832 xm_file_list=
11833 xm_include_list=
11834 for f in $xm_file; do
11835 case $f in
11836 ansidecl.h )
11837 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11838 xm_include_list="${xm_include_list} $f"
11839 ;;
11840 auto-host.h )
11841 xm_file_list="${xm_file_list} $f"
11842 xm_include_list="${xm_include_list} $f"
11843 ;;
11844 * )
11845 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11846 xm_include_list="${xm_include_list} config/$f"
11847 ;;
11848 esac
11849 done
11850
11851 host_xm_file_list=
11852 host_xm_include_list=
11853 for f in $host_xm_file; do
11854 case $f in
11855 ansidecl.h )
11856 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11857 host_xm_include_list="${host_xm_include_list} $f"
11858 ;;
11859 auto-host.h )
11860 host_xm_file_list="${host_xm_file_list} $f"
11861 host_xm_include_list="${host_xm_include_list} $f"
11862 ;;
11863 * )
11864 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11865 host_xm_include_list="${host_xm_include_list} config/$f"
11866 ;;
11867 esac
11868 done
11869
11870 build_xm_file_list=
11871 for f in $build_xm_file; do
11872 case $f in
11873 ansidecl.h )
11874 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11875 build_xm_include_list="${build_xm_include_list} $f"
11876 ;;
11877 auto-build.h | auto-host.h )
11878 build_xm_file_list="${build_xm_file_list} $f"
11879 build_xm_include_list="${build_xm_include_list} $f"
11880 ;;
11881 * )
11882 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11883 build_xm_include_list="${build_xm_include_list} config/$f"
11884 ;;
11885 esac
11886 done
11887
11888 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11889 # cross-compiler which does not use the native headers and libraries.
11890 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11891 CROSS=
11892 ALL=all.internal
11893 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11894
11895 if test "x$with_build_sysroot" != x; then
11896 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11897 else
11898 # This value is used, even on a native system, because
11899 # CROSS_SYSTEM_HEADER_DIR is just
11900 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11901 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11902 fi
11903
11904 if test x$host != x$target
11905 then
11906 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11907 ALL=all.cross
11908 SYSTEM_HEADER_DIR=$build_system_header_dir
11909 case "$host","$target" in
11910 # Darwin crosses can use the host system's libraries and headers,
11911 # because of the fat library support. Of course, it must be the
11912 # same version of Darwin on both sides. Allow the user to
11913 # just say --target=foo-darwin without a version number to mean
11914 # "the version on this system".
11915 *-*-darwin*,*-*-darwin*)
11916 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11917 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11918 if test $hostos = $targetos -o $targetos = darwin ; then
11919 CROSS=
11920 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11921 with_headers=yes
11922 fi
11923 ;;
11924
11925 i?86-*-*,x86_64-*-* \
11926 | powerpc*-*-*,powerpc64*-*-*)
11927 CROSS="$CROSS -DNATIVE_CROSS" ;;
11928 esac
11929
11930 case $target in
11931 *-*-mingw*)
11932 if test "x$with_headers" = x; then
11933 with_headers=yes
11934 fi
11935 ;;
11936 *)
11937 ;;
11938 esac
11939 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11940 SYSTEM_HEADER_DIR=$build_system_header_dir
11941 fi
11942
11943 # If this is a cross-compiler that does not
11944 # have its own set of headers then define
11945 # inhibit_libc
11946
11947 # If this is using newlib, without having the headers available now,
11948 # then define inhibit_libc in LIBGCC2_CFLAGS.
11949 # This prevents libgcc2 from containing any code which requires libc
11950 # support.
11951 : ${inhibit_libc=false}
11952 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11953 test x$with_newlib = xyes ; } &&
11954 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11955 inhibit_libc=true
11956 fi
11957
11958
11959 # When building gcc with a cross-compiler, we need to adjust things so
11960 # that the generator programs are still built with the native compiler.
11961 # Also, we cannot run fixincludes.
11962
11963 # These are the normal (build=host) settings:
11964 CC_FOR_BUILD='$(CC)'
11965 BUILD_CFLAGS='$(ALL_CFLAGS)'
11966 BUILD_LDFLAGS='$(LDFLAGS)'
11967 STMP_FIXINC=stmp-fixinc
11968
11969 # And these apply if build != host, or we are generating coverage data
11970 if test x$build != x$host || test "x$coverage_flags" != x
11971 then
11972 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11973 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11974 fi
11975
11976 # Expand extra_headers to include complete path.
11977 # This substitutes for lots of t-* files.
11978 extra_headers_list=
11979 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11980 for file in ${extra_headers} ; do
11981 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11982 done
11983
11984 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11985 if test x"$use_gcc_tgmath" = xyes
11986 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11987 fi
11988
11989 # Define collect2 in Makefile.
11990 case $host_can_use_collect2 in
11991 no) collect2= ;;
11992 *) collect2='collect2$(exeext)' ;;
11993 esac
11994
11995
11996 # Add a definition of USE_COLLECT2 if system wants one.
11997 case $use_collect2 in
11998 no) use_collect2= ;;
11999 "") ;;
12000 *)
12001 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12002 xm_defines="${xm_defines} USE_COLLECT2"
12003 case $host_can_use_collect2 in
12004 no)
12005 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12006 ;;
12007 esac
12008 ;;
12009 esac
12010
12011
12012 cat >>confdefs.h <<_ACEOF
12013 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12014 _ACEOF
12015
12016
12017 # ---------------------------
12018 # Assembler & linker features
12019 # ---------------------------
12020
12021 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12022 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12023 # However when ld-new is first executed from the build tree, libtool will
12024 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12025 # to the build tree. While doing this we need to use the previous-stage
12026 # linker, or we have an infinite loop. The presence of a shell script as
12027 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12028 # the gcc/collect-ld script. So we need to know how libtool works, or
12029 # exec-tool will fail.
12030
12031
12032 case `pwd` in
12033 *\ * | *\ *)
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12035 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12036 esac
12037
12038
12039
12040 macro_version='2.2.7a'
12041 macro_revision='1.3134'
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055 ltmain="$ac_aux_dir/ltmain.sh"
12056
12057 # Backslashify metacharacters that are still active within
12058 # double-quoted strings.
12059 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12060
12061 # Same as above, but do not quote variable references.
12062 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12063
12064 # Sed substitution to delay expansion of an escaped shell variable in a
12065 # double_quote_subst'ed string.
12066 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12067
12068 # Sed substitution to delay expansion of an escaped single quote.
12069 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12070
12071 # Sed substitution to avoid accidental globbing in evaled expressions
12072 no_glob_subst='s/\*/\\\*/g'
12073
12074 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12077
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12079 $as_echo_n "checking how to print strings... " >&6; }
12080 # Test print first, because it will be a builtin if present.
12081 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12082 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12083 ECHO='print -r --'
12084 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12085 ECHO='printf %s\n'
12086 else
12087 # Use this function as a fallback that always works.
12088 func_fallback_echo ()
12089 {
12090 eval 'cat <<_LTECHO_EOF
12091 $1
12092 _LTECHO_EOF'
12093 }
12094 ECHO='func_fallback_echo'
12095 fi
12096
12097 # func_echo_all arg...
12098 # Invoke $ECHO with all args, space-separated.
12099 func_echo_all ()
12100 {
12101 $ECHO ""
12102 }
12103
12104 case "$ECHO" in
12105 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12106 $as_echo "printf" >&6; } ;;
12107 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12108 $as_echo "print -r" >&6; } ;;
12109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12110 $as_echo "cat" >&6; } ;;
12111 esac
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12127 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12128 if test "${ac_cv_path_SED+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12132 for ac_i in 1 2 3 4 5 6 7; do
12133 ac_script="$ac_script$as_nl$ac_script"
12134 done
12135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12136 { ac_script=; unset ac_script;}
12137 if test -z "$SED"; then
12138 ac_path_SED_found=false
12139 # Loop through the user's path and test for each of PROGNAME-LIST
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_prog in sed gsed; do
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12149 # Check for GNU ac_path_SED and select it if it is found.
12150 # Check for GNU $ac_path_SED
12151 case `"$ac_path_SED" --version 2>&1` in
12152 *GNU*)
12153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12154 *)
12155 ac_count=0
12156 $as_echo_n 0123456789 >"conftest.in"
12157 while :
12158 do
12159 cat "conftest.in" "conftest.in" >"conftest.tmp"
12160 mv "conftest.tmp" "conftest.in"
12161 cp "conftest.in" "conftest.nl"
12162 $as_echo '' >> "conftest.nl"
12163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12165 as_fn_arith $ac_count + 1 && ac_count=$as_val
12166 if test $ac_count -gt ${ac_path_SED_max-0}; then
12167 # Best one so far, save it but keep looking for a better one
12168 ac_cv_path_SED="$ac_path_SED"
12169 ac_path_SED_max=$ac_count
12170 fi
12171 # 10*(2^10) chars as input seems more than enough
12172 test $ac_count -gt 10 && break
12173 done
12174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12175 esac
12176
12177 $ac_path_SED_found && break 3
12178 done
12179 done
12180 done
12181 IFS=$as_save_IFS
12182 if test -z "$ac_cv_path_SED"; then
12183 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12184 fi
12185 else
12186 ac_cv_path_SED=$SED
12187 fi
12188
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12191 $as_echo "$ac_cv_path_SED" >&6; }
12192 SED="$ac_cv_path_SED"
12193 rm -f conftest.sed
12194
12195 test -z "$SED" && SED=sed
12196 Xsed="$SED -e 1s/^X//"
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12209 $as_echo_n "checking for fgrep... " >&6; }
12210 if test "${ac_cv_path_FGREP+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12214 then ac_cv_path_FGREP="$GREP -F"
12215 else
12216 if test -z "$FGREP"; then
12217 ac_path_FGREP_found=false
12218 # Loop through the user's path and test for each of PROGNAME-LIST
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12221 do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_prog in fgrep; do
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12227 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12228 # Check for GNU ac_path_FGREP and select it if it is found.
12229 # Check for GNU $ac_path_FGREP
12230 case `"$ac_path_FGREP" --version 2>&1` in
12231 *GNU*)
12232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12233 *)
12234 ac_count=0
12235 $as_echo_n 0123456789 >"conftest.in"
12236 while :
12237 do
12238 cat "conftest.in" "conftest.in" >"conftest.tmp"
12239 mv "conftest.tmp" "conftest.in"
12240 cp "conftest.in" "conftest.nl"
12241 $as_echo 'FGREP' >> "conftest.nl"
12242 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12244 as_fn_arith $ac_count + 1 && ac_count=$as_val
12245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12246 # Best one so far, save it but keep looking for a better one
12247 ac_cv_path_FGREP="$ac_path_FGREP"
12248 ac_path_FGREP_max=$ac_count
12249 fi
12250 # 10*(2^10) chars as input seems more than enough
12251 test $ac_count -gt 10 && break
12252 done
12253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12254 esac
12255
12256 $ac_path_FGREP_found && break 3
12257 done
12258 done
12259 done
12260 IFS=$as_save_IFS
12261 if test -z "$ac_cv_path_FGREP"; then
12262 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12263 fi
12264 else
12265 ac_cv_path_FGREP=$FGREP
12266 fi
12267
12268 fi
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12271 $as_echo "$ac_cv_path_FGREP" >&6; }
12272 FGREP="$ac_cv_path_FGREP"
12273
12274
12275 test -z "$GREP" && GREP=grep
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295 # Check whether --with-gnu-ld was given.
12296 if test "${with_gnu_ld+set}" = set; then :
12297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12298 else
12299 with_gnu_ld=no
12300 fi
12301
12302 ac_prog=ld
12303 if test "$GCC" = yes; then
12304 # Check if gcc -print-prog-name=ld gives a path.
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12306 $as_echo_n "checking for ld used by $CC... " >&6; }
12307 case $host in
12308 *-*-mingw*)
12309 # gcc leaves a trailing carriage return which upsets mingw
12310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12311 *)
12312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12313 esac
12314 case $ac_prog in
12315 # Accept absolute paths.
12316 [\\/]* | ?:[\\/]*)
12317 re_direlt='/[^/][^/]*/\.\./'
12318 # Canonicalize the pathname of ld
12319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12322 done
12323 test -z "$LD" && LD="$ac_prog"
12324 ;;
12325 "")
12326 # If it fails, then pretend we aren't using GCC.
12327 ac_prog=ld
12328 ;;
12329 *)
12330 # If it is relative, then search for the first ld in PATH.
12331 with_gnu_ld=unknown
12332 ;;
12333 esac
12334 elif test "$with_gnu_ld" = yes; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12336 $as_echo_n "checking for GNU ld... " >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12339 $as_echo_n "checking for non-GNU ld... " >&6; }
12340 fi
12341 if test "${lt_cv_path_LD+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -z "$LD"; then
12345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12346 for ac_dir in $PATH; do
12347 IFS="$lt_save_ifs"
12348 test -z "$ac_dir" && ac_dir=.
12349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12350 lt_cv_path_LD="$ac_dir/$ac_prog"
12351 # Check to see if the program is GNU ld. I'd rather use --version,
12352 # but apparently some variants of GNU ld only accept -v.
12353 # Break only if it was the GNU/non-GNU ld that we prefer.
12354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12355 *GNU* | *'with BFD'*)
12356 test "$with_gnu_ld" != no && break
12357 ;;
12358 *)
12359 test "$with_gnu_ld" != yes && break
12360 ;;
12361 esac
12362 fi
12363 done
12364 IFS="$lt_save_ifs"
12365 else
12366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12367 fi
12368 fi
12369
12370 LD="$lt_cv_path_LD"
12371 if test -n "$LD"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12373 $as_echo "$LD" >&6; }
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12380 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12381 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12385 case `$LD -v 2>&1 </dev/null` in
12386 *GNU* | *'with BFD'*)
12387 lt_cv_prog_gnu_ld=yes
12388 ;;
12389 *)
12390 lt_cv_prog_gnu_ld=no
12391 ;;
12392 esac
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12395 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12396 with_gnu_ld=$lt_cv_prog_gnu_ld
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12407 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12408 if test "${lt_cv_path_NM+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 if test -n "$NM"; then
12412 # Let the user override the test.
12413 lt_cv_path_NM="$NM"
12414 else
12415 lt_nm_to_check="${ac_tool_prefix}nm"
12416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12417 lt_nm_to_check="$lt_nm_to_check nm"
12418 fi
12419 for lt_tmp_nm in $lt_nm_to_check; do
12420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12422 IFS="$lt_save_ifs"
12423 test -z "$ac_dir" && ac_dir=.
12424 tmp_nm="$ac_dir/$lt_tmp_nm"
12425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12426 # Check to see if the nm accepts a BSD-compat flag.
12427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12428 # nm: unknown option "B" ignored
12429 # Tru64's nm complains that /dev/null is an invalid object file
12430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12431 */dev/null* | *'Invalid file or object type'*)
12432 lt_cv_path_NM="$tmp_nm -B"
12433 break
12434 ;;
12435 *)
12436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12437 */dev/null*)
12438 lt_cv_path_NM="$tmp_nm -p"
12439 break
12440 ;;
12441 *)
12442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12443 continue # so that we can try to find one that supports BSD flags
12444 ;;
12445 esac
12446 ;;
12447 esac
12448 fi
12449 done
12450 IFS="$lt_save_ifs"
12451 done
12452 : ${lt_cv_path_NM=no}
12453 fi
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12456 $as_echo "$lt_cv_path_NM" >&6; }
12457 if test "$lt_cv_path_NM" != "no"; then
12458 NM="$lt_cv_path_NM"
12459 else
12460 # Didn't find any BSD compatible name lister, look for dumpbin.
12461 if test -n "$DUMPBIN"; then :
12462 # Let the user override the test.
12463 else
12464 if test -n "$ac_tool_prefix"; then
12465 for ac_prog in dumpbin "link -dump"
12466 do
12467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 if test -n "$DUMPBIN"; then
12475 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480 IFS=$as_save_IFS
12481 test -z "$as_dir" && as_dir=.
12482 for ac_exec_ext in '' $ac_executable_extensions; do
12483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 break 2
12487 fi
12488 done
12489 done
12490 IFS=$as_save_IFS
12491
12492 fi
12493 fi
12494 DUMPBIN=$ac_cv_prog_DUMPBIN
12495 if test -n "$DUMPBIN"; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12497 $as_echo "$DUMPBIN" >&6; }
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502
12503
12504 test -n "$DUMPBIN" && break
12505 done
12506 fi
12507 if test -z "$DUMPBIN"; then
12508 ac_ct_DUMPBIN=$DUMPBIN
12509 for ac_prog in dumpbin "link -dump"
12510 do
12511 # Extract the first word of "$ac_prog", so it can be a program name with args.
12512 set dummy $ac_prog; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test -n "$ac_ct_DUMPBIN"; then
12519 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532 done
12533 done
12534 IFS=$as_save_IFS
12535
12536 fi
12537 fi
12538 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12539 if test -n "$ac_ct_DUMPBIN"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12541 $as_echo "$ac_ct_DUMPBIN" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 test -n "$ac_ct_DUMPBIN" && break
12549 done
12550
12551 if test "x$ac_ct_DUMPBIN" = x; then
12552 DUMPBIN=":"
12553 else
12554 case $cross_compiling:$ac_tool_warned in
12555 yes:)
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12558 ac_tool_warned=yes ;;
12559 esac
12560 DUMPBIN=$ac_ct_DUMPBIN
12561 fi
12562 fi
12563
12564 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12565 *COFF*)
12566 DUMPBIN="$DUMPBIN -symbols"
12567 ;;
12568 *)
12569 DUMPBIN=:
12570 ;;
12571 esac
12572 fi
12573
12574 if test "$DUMPBIN" != ":"; then
12575 NM="$DUMPBIN"
12576 fi
12577 fi
12578 test -z "$NM" && NM=nm
12579
12580
12581
12582
12583
12584
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12586 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12587 if test "${lt_cv_nm_interface+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 lt_cv_nm_interface="BSD nm"
12591 echo "int some_variable = 0;" > conftest.$ac_ext
12592 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12593 (eval "$ac_compile" 2>conftest.err)
12594 cat conftest.err >&5
12595 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12597 cat conftest.err >&5
12598 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12599 cat conftest.out >&5
12600 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12601 lt_cv_nm_interface="MS dumpbin"
12602 fi
12603 rm -f conftest*
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12606 $as_echo "$lt_cv_nm_interface" >&6; }
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12609 $as_echo_n "checking whether ln -s works... " >&6; }
12610 LN_S=$as_ln_s
12611 if test "$LN_S" = "ln -s"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12616 $as_echo "no, using $LN_S" >&6; }
12617 fi
12618
12619 # find the maximum length of command line arguments
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12621 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12622 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 i=0
12626 teststring="ABCD"
12627
12628 case $build_os in
12629 msdosdjgpp*)
12630 # On DJGPP, this test can blow up pretty badly due to problems in libc
12631 # (any single argument exceeding 2000 bytes causes a buffer overrun
12632 # during glob expansion). Even if it were fixed, the result of this
12633 # check would be larger than it should be.
12634 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12635 ;;
12636
12637 gnu*)
12638 # Under GNU Hurd, this test is not required because there is
12639 # no limit to the length of command line arguments.
12640 # Libtool will interpret -1 as no limit whatsoever
12641 lt_cv_sys_max_cmd_len=-1;
12642 ;;
12643
12644 cygwin* | mingw* | cegcc*)
12645 # On Win9x/ME, this test blows up -- it succeeds, but takes
12646 # about 5 minutes as the teststring grows exponentially.
12647 # Worse, since 9x/ME are not pre-emptively multitasking,
12648 # you end up with a "frozen" computer, even though with patience
12649 # the test eventually succeeds (with a max line length of 256k).
12650 # Instead, let's just punt: use the minimum linelength reported by
12651 # all of the supported platforms: 8192 (on NT/2K/XP).
12652 lt_cv_sys_max_cmd_len=8192;
12653 ;;
12654
12655 mint*)
12656 # On MiNT this can take a long time and run out of memory.
12657 lt_cv_sys_max_cmd_len=8192;
12658 ;;
12659
12660 amigaos*)
12661 # On AmigaOS with pdksh, this test takes hours, literally.
12662 # So we just punt and use a minimum line length of 8192.
12663 lt_cv_sys_max_cmd_len=8192;
12664 ;;
12665
12666 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12667 # This has been around since 386BSD, at least. Likely further.
12668 if test -x /sbin/sysctl; then
12669 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12670 elif test -x /usr/sbin/sysctl; then
12671 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12672 else
12673 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12674 fi
12675 # And add a safety zone
12676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12678 ;;
12679
12680 interix*)
12681 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12682 lt_cv_sys_max_cmd_len=196608
12683 ;;
12684
12685 osf*)
12686 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12687 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12688 # nice to cause kernel panics so lets avoid the loop below.
12689 # First set a reasonable default.
12690 lt_cv_sys_max_cmd_len=16384
12691 #
12692 if test -x /sbin/sysconfig; then
12693 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12694 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12695 esac
12696 fi
12697 ;;
12698 sco3.2v5*)
12699 lt_cv_sys_max_cmd_len=102400
12700 ;;
12701 sysv5* | sco5v6* | sysv4.2uw2*)
12702 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12703 if test -n "$kargmax"; then
12704 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12705 else
12706 lt_cv_sys_max_cmd_len=32768
12707 fi
12708 ;;
12709 *)
12710 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12711 if test -n "$lt_cv_sys_max_cmd_len"; then
12712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12714 else
12715 # Make teststring a little bigger before we do anything with it.
12716 # a 1K string should be a reasonable start.
12717 for i in 1 2 3 4 5 6 7 8 ; do
12718 teststring=$teststring$teststring
12719 done
12720 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12721 # If test is not a shell built-in, we'll probably end up computing a
12722 # maximum length that is only half of the actual maximum length, but
12723 # we can't tell.
12724 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12725 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12726 test $i != 17 # 1/2 MB should be enough
12727 do
12728 i=`expr $i + 1`
12729 teststring=$teststring$teststring
12730 done
12731 # Only check the string length outside the loop.
12732 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12733 teststring=
12734 # Add a significant safety factor because C++ compilers can tack on
12735 # massive amounts of additional arguments before passing them to the
12736 # linker. It appears as though 1/2 is a usable value.
12737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12738 fi
12739 ;;
12740 esac
12741
12742 fi
12743
12744 if test -n $lt_cv_sys_max_cmd_len ; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12746 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12749 $as_echo "none" >&6; }
12750 fi
12751 max_cmd_len=$lt_cv_sys_max_cmd_len
12752
12753
12754
12755
12756
12757
12758 : ${CP="cp -f"}
12759 : ${MV="mv -f"}
12760 : ${RM="rm -f"}
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12763 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12764 # Try some XSI features
12765 xsi_shell=no
12766 ( _lt_dummy="a/b/c"
12767 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12768 = c,a/b,, \
12769 && eval 'test $(( 1 + 1 )) -eq 2 \
12770 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12771 && xsi_shell=yes
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12773 $as_echo "$xsi_shell" >&6; }
12774
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12777 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12778 lt_shell_append=no
12779 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12780 >/dev/null 2>&1 \
12781 && lt_shell_append=yes
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12783 $as_echo "$lt_shell_append" >&6; }
12784
12785
12786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12787 lt_unset=unset
12788 else
12789 lt_unset=false
12790 fi
12791
12792
12793
12794
12795
12796 # test EBCDIC or ASCII
12797 case `echo X|tr X '\101'` in
12798 A) # ASCII based system
12799 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12800 lt_SP2NL='tr \040 \012'
12801 lt_NL2SP='tr \015\012 \040\040'
12802 ;;
12803 *) # EBCDIC based system
12804 lt_SP2NL='tr \100 \n'
12805 lt_NL2SP='tr \r\n \100\100'
12806 ;;
12807 esac
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12818 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12819 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 lt_cv_ld_reload_flag='-r'
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12825 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12826 reload_flag=$lt_cv_ld_reload_flag
12827 case $reload_flag in
12828 "" | " "*) ;;
12829 *) reload_flag=" $reload_flag" ;;
12830 esac
12831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12832 case $host_os in
12833 darwin*)
12834 if test "$GCC" = yes; then
12835 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12836 else
12837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12838 fi
12839 ;;
12840 esac
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850 if test -n "$ac_tool_prefix"; then
12851 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12852 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test -n "$OBJDUMP"; then
12859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12863 do
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 break 2
12871 fi
12872 done
12873 done
12874 IFS=$as_save_IFS
12875
12876 fi
12877 fi
12878 OBJDUMP=$ac_cv_prog_OBJDUMP
12879 if test -n "$OBJDUMP"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12881 $as_echo "$OBJDUMP" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886
12887
12888 fi
12889 if test -z "$ac_cv_prog_OBJDUMP"; then
12890 ac_ct_OBJDUMP=$OBJDUMP
12891 # Extract the first word of "objdump", so it can be a program name with args.
12892 set dummy objdump; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 if test -n "$ac_ct_OBJDUMP"; then
12899 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12900 else
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12903 do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912 done
12913 done
12914 IFS=$as_save_IFS
12915
12916 fi
12917 fi
12918 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12919 if test -n "$ac_ct_OBJDUMP"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12921 $as_echo "$ac_ct_OBJDUMP" >&6; }
12922 else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926
12927 if test "x$ac_ct_OBJDUMP" = x; then
12928 OBJDUMP="false"
12929 else
12930 case $cross_compiling:$ac_tool_warned in
12931 yes:)
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12934 ac_tool_warned=yes ;;
12935 esac
12936 OBJDUMP=$ac_ct_OBJDUMP
12937 fi
12938 else
12939 OBJDUMP="$ac_cv_prog_OBJDUMP"
12940 fi
12941
12942 test -z "$OBJDUMP" && OBJDUMP=objdump
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12953 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12954 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 lt_cv_file_magic_cmd='$MAGIC_CMD'
12958 lt_cv_file_magic_test_file=
12959 lt_cv_deplibs_check_method='unknown'
12960 # Need to set the preceding variable on all platforms that support
12961 # interlibrary dependencies.
12962 # 'none' -- dependencies not supported.
12963 # `unknown' -- same as none, but documents that we really don't know.
12964 # 'pass_all' -- all dependencies passed with no checks.
12965 # 'test_compile' -- check by making test program.
12966 # 'file_magic [[regex]]' -- check by looking for files in library path
12967 # which responds to the $file_magic_cmd with a given extended regex.
12968 # If you have `file' or equivalent on your system and you're not sure
12969 # whether `pass_all' will *always* work, you probably want this one.
12970
12971 case $host_os in
12972 aix[4-9]*)
12973 lt_cv_deplibs_check_method=pass_all
12974 ;;
12975
12976 beos*)
12977 lt_cv_deplibs_check_method=pass_all
12978 ;;
12979
12980 bsdi[45]*)
12981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12982 lt_cv_file_magic_cmd='/usr/bin/file -L'
12983 lt_cv_file_magic_test_file=/shlib/libc.so
12984 ;;
12985
12986 cygwin*)
12987 # func_win32_libid is a shell function defined in ltmain.sh
12988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12989 lt_cv_file_magic_cmd='func_win32_libid'
12990 ;;
12991
12992 mingw* | pw32*)
12993 # Base MSYS/MinGW do not provide the 'file' command needed by
12994 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12995 # unless we find 'file', for example because we are cross-compiling.
12996 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12997 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12999 lt_cv_file_magic_cmd='func_win32_libid'
13000 else
13001 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13002 lt_cv_file_magic_cmd='$OBJDUMP -f'
13003 fi
13004 ;;
13005
13006 cegcc*)
13007 # use the weaker test based on 'objdump'. See mingw*.
13008 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13009 lt_cv_file_magic_cmd='$OBJDUMP -f'
13010 ;;
13011
13012 darwin* | rhapsody*)
13013 lt_cv_deplibs_check_method=pass_all
13014 ;;
13015
13016 freebsd* | dragonfly*)
13017 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13018 case $host_cpu in
13019 i*86 )
13020 # Not sure whether the presence of OpenBSD here was a mistake.
13021 # Let's accept both of them until this is cleared up.
13022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13023 lt_cv_file_magic_cmd=/usr/bin/file
13024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13025 ;;
13026 esac
13027 else
13028 lt_cv_deplibs_check_method=pass_all
13029 fi
13030 ;;
13031
13032 gnu*)
13033 lt_cv_deplibs_check_method=pass_all
13034 ;;
13035
13036 haiku*)
13037 lt_cv_deplibs_check_method=pass_all
13038 ;;
13039
13040 hpux10.20* | hpux11*)
13041 lt_cv_file_magic_cmd=/usr/bin/file
13042 case $host_cpu in
13043 ia64*)
13044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13045 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13046 ;;
13047 hppa*64*)
13048 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]'
13049 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13050 ;;
13051 *)
13052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13053 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13054 ;;
13055 esac
13056 ;;
13057
13058 interix[3-9]*)
13059 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13061 ;;
13062
13063 irix5* | irix6* | nonstopux*)
13064 case $LD in
13065 *-32|*"-32 ") libmagic=32-bit;;
13066 *-n32|*"-n32 ") libmagic=N32;;
13067 *-64|*"-64 ") libmagic=64-bit;;
13068 *) libmagic=never-match;;
13069 esac
13070 lt_cv_deplibs_check_method=pass_all
13071 ;;
13072
13073 # This must be Linux ELF.
13074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13075 lt_cv_deplibs_check_method=pass_all
13076 ;;
13077
13078 netbsd*)
13079 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13081 else
13082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13083 fi
13084 ;;
13085
13086 newos6*)
13087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13088 lt_cv_file_magic_cmd=/usr/bin/file
13089 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13090 ;;
13091
13092 *nto* | *qnx*)
13093 lt_cv_deplibs_check_method=pass_all
13094 ;;
13095
13096 openbsd*)
13097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13099 else
13100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13101 fi
13102 ;;
13103
13104 osf3* | osf4* | osf5*)
13105 lt_cv_deplibs_check_method=pass_all
13106 ;;
13107
13108 rdos*)
13109 lt_cv_deplibs_check_method=pass_all
13110 ;;
13111
13112 solaris*)
13113 lt_cv_deplibs_check_method=pass_all
13114 ;;
13115
13116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13117 lt_cv_deplibs_check_method=pass_all
13118 ;;
13119
13120 sysv4 | sysv4.3*)
13121 case $host_vendor in
13122 motorola)
13123 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]'
13124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13125 ;;
13126 ncr)
13127 lt_cv_deplibs_check_method=pass_all
13128 ;;
13129 sequent)
13130 lt_cv_file_magic_cmd='/bin/file'
13131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13132 ;;
13133 sni)
13134 lt_cv_file_magic_cmd='/bin/file'
13135 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13136 lt_cv_file_magic_test_file=/lib/libc.so
13137 ;;
13138 siemens)
13139 lt_cv_deplibs_check_method=pass_all
13140 ;;
13141 pc)
13142 lt_cv_deplibs_check_method=pass_all
13143 ;;
13144 esac
13145 ;;
13146
13147 tpf*)
13148 lt_cv_deplibs_check_method=pass_all
13149 ;;
13150 esac
13151
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13154 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13155 file_magic_cmd=$lt_cv_file_magic_cmd
13156 deplibs_check_method=$lt_cv_deplibs_check_method
13157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}ar; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_prog_AR+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test -n "$AR"; then
13179 ac_cv_prog_AR="$AR" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13183 do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_AR="${ac_tool_prefix}ar"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192 done
13193 done
13194 IFS=$as_save_IFS
13195
13196 fi
13197 fi
13198 AR=$ac_cv_prog_AR
13199 if test -n "$AR"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13201 $as_echo "$AR" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13205 fi
13206
13207
13208 fi
13209 if test -z "$ac_cv_prog_AR"; then
13210 ac_ct_AR=$AR
13211 # Extract the first word of "ar", so it can be a program name with args.
13212 set dummy ar; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$ac_ct_AR"; then
13219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13223 do
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_AR="ar"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13231 fi
13232 done
13233 done
13234 IFS=$as_save_IFS
13235
13236 fi
13237 fi
13238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13239 if test -n "$ac_ct_AR"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13241 $as_echo "$ac_ct_AR" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246
13247 if test "x$ac_ct_AR" = x; then
13248 AR="false"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251 yes:)
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254 ac_tool_warned=yes ;;
13255 esac
13256 AR=$ac_ct_AR
13257 fi
13258 else
13259 AR="$ac_cv_prog_AR"
13260 fi
13261
13262 test -z "$AR" && AR=ar
13263 test -z "$AR_FLAGS" && AR_FLAGS=cru
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275 if test -n "$ac_tool_prefix"; then
13276 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13277 set dummy ${ac_tool_prefix}strip; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_STRIP+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 if test -n "$STRIP"; then
13284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297 done
13298 done
13299 IFS=$as_save_IFS
13300
13301 fi
13302 fi
13303 STRIP=$ac_cv_prog_STRIP
13304 if test -n "$STRIP"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13306 $as_echo "$STRIP" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 fi
13311
13312
13313 fi
13314 if test -z "$ac_cv_prog_STRIP"; then
13315 ac_ct_STRIP=$STRIP
13316 # Extract the first word of "strip", so it can be a program name with args.
13317 set dummy strip; ac_word=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 if test -n "$ac_ct_STRIP"; then
13324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13325 else
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13328 do
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_prog_ac_ct_STRIP="strip"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335 break 2
13336 fi
13337 done
13338 done
13339 IFS=$as_save_IFS
13340
13341 fi
13342 fi
13343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13344 if test -n "$ac_ct_STRIP"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13346 $as_echo "$ac_ct_STRIP" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350 fi
13351
13352 if test "x$ac_ct_STRIP" = x; then
13353 STRIP=":"
13354 else
13355 case $cross_compiling:$ac_tool_warned in
13356 yes:)
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13359 ac_tool_warned=yes ;;
13360 esac
13361 STRIP=$ac_ct_STRIP
13362 fi
13363 else
13364 STRIP="$ac_cv_prog_STRIP"
13365 fi
13366
13367 test -z "$STRIP" && STRIP=:
13368
13369
13370
13371
13372
13373
13374 if test -n "$ac_tool_prefix"; then
13375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 if test -n "$RANLIB"; then
13383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13384 else
13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13387 do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13395 fi
13396 done
13397 done
13398 IFS=$as_save_IFS
13399
13400 fi
13401 fi
13402 RANLIB=$ac_cv_prog_RANLIB
13403 if test -n "$RANLIB"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13405 $as_echo "$RANLIB" >&6; }
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13409 fi
13410
13411
13412 fi
13413 if test -z "$ac_cv_prog_RANLIB"; then
13414 ac_ct_RANLIB=$RANLIB
13415 # Extract the first word of "ranlib", so it can be a program name with args.
13416 set dummy ranlib; ac_word=$2
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418 $as_echo_n "checking for $ac_word... " >&6; }
13419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 if test -n "$ac_ct_RANLIB"; then
13423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13424 else
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13432 ac_cv_prog_ac_ct_RANLIB="ranlib"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 fi
13441 fi
13442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13443 if test -n "$ac_ct_RANLIB"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13445 $as_echo "$ac_ct_RANLIB" >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450
13451 if test "x$ac_ct_RANLIB" = x; then
13452 RANLIB=":"
13453 else
13454 case $cross_compiling:$ac_tool_warned in
13455 yes:)
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458 ac_tool_warned=yes ;;
13459 esac
13460 RANLIB=$ac_ct_RANLIB
13461 fi
13462 else
13463 RANLIB="$ac_cv_prog_RANLIB"
13464 fi
13465
13466 test -z "$RANLIB" && RANLIB=:
13467
13468
13469
13470
13471
13472
13473 # Determine commands to create old-style static archives.
13474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13475 old_postinstall_cmds='chmod 644 $oldlib'
13476 old_postuninstall_cmds=
13477
13478 if test -n "$RANLIB"; then
13479 case $host_os in
13480 openbsd*)
13481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13482 ;;
13483 *)
13484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13485 ;;
13486 esac
13487 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13488 fi
13489
13490 case $host_os in
13491 darwin*)
13492 lock_old_archive_extraction=yes ;;
13493 *)
13494 lock_old_archive_extraction=no ;;
13495 esac
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535 # If no C compiler was specified, use CC.
13536 LTCC=${LTCC-"$CC"}
13537
13538 # If no C compiler flags were specified, use CFLAGS.
13539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13540
13541 # Allow CC to be a program name with arguments.
13542 compiler=$CC
13543
13544
13545 # Check for command to grab the raw symbol name followed by C symbol from nm.
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13547 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551
13552 # These are sane defaults that work on at least a few old systems.
13553 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13554
13555 # Character class describing NM global symbol codes.
13556 symcode='[BCDEGRST]'
13557
13558 # Regexp to match symbols that can be accessed directly from C.
13559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13560
13561 # Define system-specific variables.
13562 case $host_os in
13563 aix*)
13564 symcode='[BCDT]'
13565 ;;
13566 cygwin* | mingw* | pw32* | cegcc*)
13567 symcode='[ABCDGISTW]'
13568 ;;
13569 hpux*)
13570 if test "$host_cpu" = ia64; then
13571 symcode='[ABCDEGRST]'
13572 fi
13573 ;;
13574 irix* | nonstopux*)
13575 symcode='[BCDEGRST]'
13576 ;;
13577 osf*)
13578 symcode='[BCDEGQRST]'
13579 ;;
13580 solaris*)
13581 symcode='[BDRT]'
13582 ;;
13583 sco3.2v5*)
13584 symcode='[DT]'
13585 ;;
13586 sysv4.2uw2*)
13587 symcode='[DT]'
13588 ;;
13589 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13590 symcode='[ABDT]'
13591 ;;
13592 sysv4)
13593 symcode='[DFNSTU]'
13594 ;;
13595 esac
13596
13597 # If we're using GNU nm, then use its standard symbol codes.
13598 case `$NM -V 2>&1` in
13599 *GNU* | *'with BFD'*)
13600 symcode='[ABCDGIRSTW]' ;;
13601 esac
13602
13603 # Transform an extracted symbol line into a proper C declaration.
13604 # Some systems (esp. on ia64) link data and code symbols differently,
13605 # so use this general approach.
13606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13607
13608 # Transform an extracted symbol line into symbol name and symbol address
13609 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13610 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'"
13611
13612 # Handle CRLF in mingw tool chain
13613 opt_cr=
13614 case $build_os in
13615 mingw*)
13616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13617 ;;
13618 esac
13619
13620 # Try without a prefix underscore, then with it.
13621 for ac_symprfx in "" "_"; do
13622
13623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13624 symxfrm="\\1 $ac_symprfx\\2 \\2"
13625
13626 # Write the raw and C identifiers.
13627 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13628 # Fake it for dumpbin and say T for any non-static function
13629 # and D for any global variable.
13630 # Also find C++ and __fastcall symbols from MSVC++,
13631 # which start with @ or ?.
13632 lt_cv_sys_global_symbol_pipe="$AWK '"\
13633 " {last_section=section; section=\$ 3};"\
13634 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13635 " \$ 0!~/External *\|/{next};"\
13636 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13637 " {if(hide[section]) next};"\
13638 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13639 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13640 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13641 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13642 " ' prfx=^$ac_symprfx"
13643 else
13644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13645 fi
13646
13647 # Check to see that the pipe works correctly.
13648 pipe_works=no
13649
13650 rm -f conftest*
13651 cat > conftest.$ac_ext <<_LT_EOF
13652 #ifdef __cplusplus
13653 extern "C" {
13654 #endif
13655 char nm_test_var;
13656 void nm_test_func(void);
13657 void nm_test_func(void){}
13658 #ifdef __cplusplus
13659 }
13660 #endif
13661 int main(){nm_test_var='a';nm_test_func();return(0);}
13662 _LT_EOF
13663
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13665 (eval $ac_compile) 2>&5
13666 ac_status=$?
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668 test $ac_status = 0; }; then
13669 # Now try to grab the symbols.
13670 nlist=conftest.nm
13671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13673 ac_status=$?
13674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13675 test $ac_status = 0; } && test -s "$nlist"; then
13676 # Try sorting and uniquifying the output.
13677 if sort "$nlist" | uniq > "$nlist"T; then
13678 mv -f "$nlist"T "$nlist"
13679 else
13680 rm -f "$nlist"T
13681 fi
13682
13683 # Make sure that we snagged all the symbols we need.
13684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13686 cat <<_LT_EOF > conftest.$ac_ext
13687 #ifdef __cplusplus
13688 extern "C" {
13689 #endif
13690
13691 _LT_EOF
13692 # Now generate the symbol file.
13693 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13694
13695 cat <<_LT_EOF >> conftest.$ac_ext
13696
13697 /* The mapping between symbol names and symbols. */
13698 const struct {
13699 const char *name;
13700 void *address;
13701 }
13702 lt__PROGRAM__LTX_preloaded_symbols[] =
13703 {
13704 { "@PROGRAM@", (void *) 0 },
13705 _LT_EOF
13706 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13707 cat <<\_LT_EOF >> conftest.$ac_ext
13708 {0, (void *) 0}
13709 };
13710
13711 /* This works around a problem in FreeBSD linker */
13712 #ifdef FREEBSD_WORKAROUND
13713 static const void *lt_preloaded_setup() {
13714 return lt__PROGRAM__LTX_preloaded_symbols;
13715 }
13716 #endif
13717
13718 #ifdef __cplusplus
13719 }
13720 #endif
13721 _LT_EOF
13722 # Now try linking the two files.
13723 mv conftest.$ac_objext conftstm.$ac_objext
13724 lt_save_LIBS="$LIBS"
13725 lt_save_CFLAGS="$CFLAGS"
13726 LIBS="conftstm.$ac_objext"
13727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13729 (eval $ac_link) 2>&5
13730 ac_status=$?
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13733 pipe_works=yes
13734 fi
13735 LIBS="$lt_save_LIBS"
13736 CFLAGS="$lt_save_CFLAGS"
13737 else
13738 echo "cannot find nm_test_func in $nlist" >&5
13739 fi
13740 else
13741 echo "cannot find nm_test_var in $nlist" >&5
13742 fi
13743 else
13744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13745 fi
13746 else
13747 echo "$progname: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 fi
13750 rm -rf conftest* conftst*
13751
13752 # Do not use the global_symbol_pipe unless it works.
13753 if test "$pipe_works" = yes; then
13754 break
13755 else
13756 lt_cv_sys_global_symbol_pipe=
13757 fi
13758 done
13759
13760 fi
13761
13762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13763 lt_cv_sys_global_symbol_to_cdecl=
13764 fi
13765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13767 $as_echo "failed" >&6; }
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13770 $as_echo "ok" >&6; }
13771 fi
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 # Check whether --enable-libtool-lock was given.
13795 if test "${enable_libtool_lock+set}" = set; then :
13796 enableval=$enable_libtool_lock;
13797 fi
13798
13799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13800
13801 # Some flags need to be propagated to the compiler or linker for good
13802 # libtool support.
13803 case $host in
13804 ia64-*-hpux*)
13805 # Find out which ABI we are using.
13806 echo 'int i;' > conftest.$ac_ext
13807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13808 (eval $ac_compile) 2>&5
13809 ac_status=$?
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13811 test $ac_status = 0; }; then
13812 case `/usr/bin/file conftest.$ac_objext` in
13813 *ELF-32*)
13814 HPUX_IA64_MODE="32"
13815 ;;
13816 *ELF-64*)
13817 HPUX_IA64_MODE="64"
13818 ;;
13819 esac
13820 fi
13821 rm -rf conftest*
13822 ;;
13823 *-*-irix6*)
13824 # Find out which ABI we are using.
13825 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13827 (eval $ac_compile) 2>&5
13828 ac_status=$?
13829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13830 test $ac_status = 0; }; then
13831 if test "$lt_cv_prog_gnu_ld" = yes; then
13832 case `/usr/bin/file conftest.$ac_objext` in
13833 *32-bit*)
13834 LD="${LD-ld} -melf32bsmip"
13835 ;;
13836 *N32*)
13837 LD="${LD-ld} -melf32bmipn32"
13838 ;;
13839 *64-bit*)
13840 LD="${LD-ld} -melf64bmip"
13841 ;;
13842 esac
13843 else
13844 case `/usr/bin/file conftest.$ac_objext` in
13845 *32-bit*)
13846 LD="${LD-ld} -32"
13847 ;;
13848 *N32*)
13849 LD="${LD-ld} -n32"
13850 ;;
13851 *64-bit*)
13852 LD="${LD-ld} -64"
13853 ;;
13854 esac
13855 fi
13856 fi
13857 rm -rf conftest*
13858 ;;
13859
13860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13862 # Find out which ABI we are using.
13863 echo 'int i;' > conftest.$ac_ext
13864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13865 (eval $ac_compile) 2>&5
13866 ac_status=$?
13867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13868 test $ac_status = 0; }; then
13869 case `/usr/bin/file conftest.o` in
13870 *32-bit*)
13871 case $host in
13872 x86_64-*kfreebsd*-gnu)
13873 LD="${LD-ld} -m elf_i386_fbsd"
13874 ;;
13875 x86_64-*linux*)
13876 LD="${LD-ld} -m elf_i386"
13877 ;;
13878 ppc64-*linux*|powerpc64-*linux*)
13879 LD="${LD-ld} -m elf32ppclinux"
13880 ;;
13881 s390x-*linux*)
13882 LD="${LD-ld} -m elf_s390"
13883 ;;
13884 sparc64-*linux*)
13885 LD="${LD-ld} -m elf32_sparc"
13886 ;;
13887 esac
13888 ;;
13889 *64-bit*)
13890 case $host in
13891 x86_64-*kfreebsd*-gnu)
13892 LD="${LD-ld} -m elf_x86_64_fbsd"
13893 ;;
13894 x86_64-*linux*)
13895 LD="${LD-ld} -m elf_x86_64"
13896 ;;
13897 ppc*-*linux*|powerpc*-*linux*)
13898 LD="${LD-ld} -m elf64ppc"
13899 ;;
13900 s390*-*linux*|s390*-*tpf*)
13901 LD="${LD-ld} -m elf64_s390"
13902 ;;
13903 sparc*-*linux*)
13904 LD="${LD-ld} -m elf64_sparc"
13905 ;;
13906 esac
13907 ;;
13908 esac
13909 fi
13910 rm -rf conftest*
13911 ;;
13912
13913 *-*-sco3.2v5*)
13914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13915 SAVE_CFLAGS="$CFLAGS"
13916 CFLAGS="$CFLAGS -belf"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13918 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13919 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 ac_ext=c
13923 ac_cpp='$CPP $CPPFLAGS'
13924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13927
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 int
13932 main ()
13933 {
13934
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 lt_cv_cc_needs_belf=yes
13941 else
13942 lt_cv_cc_needs_belf=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 ac_ext=c
13947 ac_cpp='$CPP $CPPFLAGS'
13948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13957 CFLAGS="$SAVE_CFLAGS"
13958 fi
13959 ;;
13960 sparc*-*solaris*)
13961 # Find out which ABI we are using.
13962 echo 'int i;' > conftest.$ac_ext
13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13964 (eval $ac_compile) 2>&5
13965 ac_status=$?
13966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967 test $ac_status = 0; }; then
13968 case `/usr/bin/file conftest.o` in
13969 *64-bit*)
13970 case $lt_cv_prog_gnu_ld in
13971 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13972 *)
13973 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13974 LD="${LD-ld} -64"
13975 fi
13976 ;;
13977 esac
13978 ;;
13979 esac
13980 fi
13981 rm -rf conftest*
13982 ;;
13983 esac
13984
13985 need_locks="$enable_libtool_lock"
13986
13987
13988 case $host_os in
13989 rhapsody* | darwin*)
13990 if test -n "$ac_tool_prefix"; then
13991 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994 $as_echo_n "checking for $ac_word... " >&6; }
13995 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 if test -n "$DSYMUTIL"; then
13999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14000 else
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14003 do
14004 IFS=$as_save_IFS
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 break 2
14011 fi
14012 done
14013 done
14014 IFS=$as_save_IFS
14015
14016 fi
14017 fi
14018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14019 if test -n "$DSYMUTIL"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14021 $as_echo "$DSYMUTIL" >&6; }
14022 else
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14025 fi
14026
14027
14028 fi
14029 if test -z "$ac_cv_prog_DSYMUTIL"; then
14030 ac_ct_DSYMUTIL=$DSYMUTIL
14031 # Extract the first word of "dsymutil", so it can be a program name with args.
14032 set dummy dsymutil; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 if test -n "$ac_ct_DSYMUTIL"; then
14039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14040 else
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14043 do
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14051 fi
14052 done
14053 done
14054 IFS=$as_save_IFS
14055
14056 fi
14057 fi
14058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14059 if test -n "$ac_ct_DSYMUTIL"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065 fi
14066
14067 if test "x$ac_ct_DSYMUTIL" = x; then
14068 DSYMUTIL=":"
14069 else
14070 case $cross_compiling:$ac_tool_warned in
14071 yes:)
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14074 ac_tool_warned=yes ;;
14075 esac
14076 DSYMUTIL=$ac_ct_DSYMUTIL
14077 fi
14078 else
14079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14080 fi
14081
14082 if test -n "$ac_tool_prefix"; then
14083 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14086 $as_echo_n "checking for $ac_word... " >&6; }
14087 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14089 else
14090 if test -n "$NMEDIT"; then
14091 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14092 else
14093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14095 do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 for ac_exec_ext in '' $ac_executable_extensions; do
14099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14102 break 2
14103 fi
14104 done
14105 done
14106 IFS=$as_save_IFS
14107
14108 fi
14109 fi
14110 NMEDIT=$ac_cv_prog_NMEDIT
14111 if test -n "$NMEDIT"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14113 $as_echo "$NMEDIT" >&6; }
14114 else
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116 $as_echo "no" >&6; }
14117 fi
14118
14119
14120 fi
14121 if test -z "$ac_cv_prog_NMEDIT"; then
14122 ac_ct_NMEDIT=$NMEDIT
14123 # Extract the first word of "nmedit", so it can be a program name with args.
14124 set dummy nmedit; ac_word=$2
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14126 $as_echo_n "checking for $ac_word... " >&6; }
14127 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14128 $as_echo_n "(cached) " >&6
14129 else
14130 if test -n "$ac_ct_NMEDIT"; then
14131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14132 else
14133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14134 for as_dir in $PATH
14135 do
14136 IFS=$as_save_IFS
14137 test -z "$as_dir" && as_dir=.
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14142 break 2
14143 fi
14144 done
14145 done
14146 IFS=$as_save_IFS
14147
14148 fi
14149 fi
14150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14151 if test -n "$ac_ct_NMEDIT"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14153 $as_echo "$ac_ct_NMEDIT" >&6; }
14154 else
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14157 fi
14158
14159 if test "x$ac_ct_NMEDIT" = x; then
14160 NMEDIT=":"
14161 else
14162 case $cross_compiling:$ac_tool_warned in
14163 yes:)
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14166 ac_tool_warned=yes ;;
14167 esac
14168 NMEDIT=$ac_ct_NMEDIT
14169 fi
14170 else
14171 NMEDIT="$ac_cv_prog_NMEDIT"
14172 fi
14173
14174 if test -n "$ac_tool_prefix"; then
14175 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14178 $as_echo_n "checking for $ac_word... " >&6; }
14179 if test "${ac_cv_prog_LIPO+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14181 else
14182 if test -n "$LIPO"; then
14183 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14184 else
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14187 do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14195 fi
14196 done
14197 done
14198 IFS=$as_save_IFS
14199
14200 fi
14201 fi
14202 LIPO=$ac_cv_prog_LIPO
14203 if test -n "$LIPO"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14205 $as_echo "$LIPO" >&6; }
14206 else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 $as_echo "no" >&6; }
14209 fi
14210
14211
14212 fi
14213 if test -z "$ac_cv_prog_LIPO"; then
14214 ac_ct_LIPO=$LIPO
14215 # Extract the first word of "lipo", so it can be a program name with args.
14216 set dummy lipo; ac_word=$2
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14218 $as_echo_n "checking for $ac_word... " >&6; }
14219 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 if test -n "$ac_ct_LIPO"; then
14223 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14224 else
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14227 do
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14232 ac_cv_prog_ac_ct_LIPO="lipo"
14233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14234 break 2
14235 fi
14236 done
14237 done
14238 IFS=$as_save_IFS
14239
14240 fi
14241 fi
14242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14243 if test -n "$ac_ct_LIPO"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14245 $as_echo "$ac_ct_LIPO" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14249 fi
14250
14251 if test "x$ac_ct_LIPO" = x; then
14252 LIPO=":"
14253 else
14254 case $cross_compiling:$ac_tool_warned in
14255 yes:)
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14258 ac_tool_warned=yes ;;
14259 esac
14260 LIPO=$ac_ct_LIPO
14261 fi
14262 else
14263 LIPO="$ac_cv_prog_LIPO"
14264 fi
14265
14266 if test -n "$ac_tool_prefix"; then
14267 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14268 set dummy ${ac_tool_prefix}otool; ac_word=$2
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14270 $as_echo_n "checking for $ac_word... " >&6; }
14271 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 if test -n "$OTOOL"; then
14275 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14276 else
14277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14278 for as_dir in $PATH
14279 do
14280 IFS=$as_save_IFS
14281 test -z "$as_dir" && as_dir=.
14282 for ac_exec_ext in '' $ac_executable_extensions; do
14283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14286 break 2
14287 fi
14288 done
14289 done
14290 IFS=$as_save_IFS
14291
14292 fi
14293 fi
14294 OTOOL=$ac_cv_prog_OTOOL
14295 if test -n "$OTOOL"; then
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14297 $as_echo "$OTOOL" >&6; }
14298 else
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301 fi
14302
14303
14304 fi
14305 if test -z "$ac_cv_prog_OTOOL"; then
14306 ac_ct_OTOOL=$OTOOL
14307 # Extract the first word of "otool", so it can be a program name with args.
14308 set dummy otool; ac_word=$2
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14310 $as_echo_n "checking for $ac_word... " >&6; }
14311 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 if test -n "$ac_ct_OTOOL"; then
14315 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14316 else
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $PATH
14319 do
14320 IFS=$as_save_IFS
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_prog_ac_ct_OTOOL="otool"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 break 2
14327 fi
14328 done
14329 done
14330 IFS=$as_save_IFS
14331
14332 fi
14333 fi
14334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14335 if test -n "$ac_ct_OTOOL"; then
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14337 $as_echo "$ac_ct_OTOOL" >&6; }
14338 else
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341 fi
14342
14343 if test "x$ac_ct_OTOOL" = x; then
14344 OTOOL=":"
14345 else
14346 case $cross_compiling:$ac_tool_warned in
14347 yes:)
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14350 ac_tool_warned=yes ;;
14351 esac
14352 OTOOL=$ac_ct_OTOOL
14353 fi
14354 else
14355 OTOOL="$ac_cv_prog_OTOOL"
14356 fi
14357
14358 if test -n "$ac_tool_prefix"; then
14359 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362 $as_echo_n "checking for $ac_word... " >&6; }
14363 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 if test -n "$OTOOL64"; then
14367 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14368 else
14369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14371 do
14372 IFS=$as_save_IFS
14373 test -z "$as_dir" && as_dir=.
14374 for ac_exec_ext in '' $ac_executable_extensions; do
14375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 break 2
14379 fi
14380 done
14381 done
14382 IFS=$as_save_IFS
14383
14384 fi
14385 fi
14386 OTOOL64=$ac_cv_prog_OTOOL64
14387 if test -n "$OTOOL64"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14389 $as_echo "$OTOOL64" >&6; }
14390 else
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393 fi
14394
14395
14396 fi
14397 if test -z "$ac_cv_prog_OTOOL64"; then
14398 ac_ct_OTOOL64=$OTOOL64
14399 # Extract the first word of "otool64", so it can be a program name with args.
14400 set dummy otool64; ac_word=$2
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14402 $as_echo_n "checking for $ac_word... " >&6; }
14403 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 if test -n "$ac_ct_OTOOL64"; then
14407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14408 else
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14411 do
14412 IFS=$as_save_IFS
14413 test -z "$as_dir" && as_dir=.
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14416 ac_cv_prog_ac_ct_OTOOL64="otool64"
14417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14418 break 2
14419 fi
14420 done
14421 done
14422 IFS=$as_save_IFS
14423
14424 fi
14425 fi
14426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14427 if test -n "$ac_ct_OTOOL64"; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14429 $as_echo "$ac_ct_OTOOL64" >&6; }
14430 else
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 $as_echo "no" >&6; }
14433 fi
14434
14435 if test "x$ac_ct_OTOOL64" = x; then
14436 OTOOL64=":"
14437 else
14438 case $cross_compiling:$ac_tool_warned in
14439 yes:)
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14442 ac_tool_warned=yes ;;
14443 esac
14444 OTOOL64=$ac_ct_OTOOL64
14445 fi
14446 else
14447 OTOOL64="$ac_cv_prog_OTOOL64"
14448 fi
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14477 $as_echo_n "checking for -single_module linker flag... " >&6; }
14478 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 lt_cv_apple_cc_single_mod=no
14482 if test -z "${LT_MULTI_MODULE}"; then
14483 # By default we will add the -single_module flag. You can override
14484 # by either setting the environment variable LT_MULTI_MODULE
14485 # non-empty at configure time, or by adding -multi_module to the
14486 # link flags.
14487 rm -rf libconftest.dylib*
14488 echo "int foo(void){return 1;}" > conftest.c
14489 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14490 -dynamiclib -Wl,-single_module conftest.c" >&5
14491 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14492 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14493 _lt_result=$?
14494 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14495 lt_cv_apple_cc_single_mod=yes
14496 else
14497 cat conftest.err >&5
14498 fi
14499 rm -rf libconftest.dylib*
14500 rm -f conftest.*
14501 fi
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14506 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14507 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14509 else
14510 lt_cv_ld_exported_symbols_list=no
14511 save_LDFLAGS=$LDFLAGS
14512 echo "_main" > conftest.sym
14513 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516
14517 int
14518 main ()
14519 {
14520
14521 ;
14522 return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 lt_cv_ld_exported_symbols_list=yes
14527 else
14528 lt_cv_ld_exported_symbols_list=no
14529 fi
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 LDFLAGS="$save_LDFLAGS"
14533
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14536 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14538 $as_echo_n "checking for -force_load linker flag... " >&6; }
14539 if test "${lt_cv_ld_force_load+set}" = set; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 lt_cv_ld_force_load=no
14543 cat > conftest.c << _LT_EOF
14544 int forced_loaded() { return 2;}
14545 _LT_EOF
14546 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14547 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14548 echo "$AR cru libconftest.a conftest.o" >&5
14549 $AR cru libconftest.a conftest.o 2>&5
14550 cat > conftest.c << _LT_EOF
14551 int main() { return 0;}
14552 _LT_EOF
14553 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14554 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14555 _lt_result=$?
14556 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14557 lt_cv_ld_force_load=yes
14558 else
14559 cat conftest.err >&5
14560 fi
14561 rm -f conftest.err libconftest.a conftest conftest.c
14562 rm -rf conftest.dSYM
14563
14564 fi
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14566 $as_echo "$lt_cv_ld_force_load" >&6; }
14567 case $host_os in
14568 rhapsody* | darwin1.[012])
14569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14570 darwin1.*)
14571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14572 darwin*) # darwin 5.x on
14573 # if running on 10.5 or later, the deployment target defaults
14574 # to the OS version, if on x86, and 10.4, the deployment
14575 # target defaults to 10.4. Don't you love it?
14576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14579 10.[012]*)
14580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14581 10.*)
14582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14583 esac
14584 ;;
14585 esac
14586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14587 _lt_dar_single_mod='$single_module'
14588 fi
14589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14591 else
14592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14593 fi
14594 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14595 _lt_dsymutil='~$DSYMUTIL $lib || :'
14596 else
14597 _lt_dsymutil=
14598 fi
14599 ;;
14600 esac
14601
14602 for ac_header in dlfcn.h
14603 do :
14604 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14605 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_DLFCN_H 1
14608 _ACEOF
14609
14610 fi
14611 done
14612
14613
14614
14615
14616
14617 # Set options
14618
14619
14620
14621 enable_dlopen=no
14622
14623
14624 enable_win32_dll=no
14625
14626
14627 # Check whether --enable-shared was given.
14628 if test "${enable_shared+set}" = set; then :
14629 enableval=$enable_shared; p=${PACKAGE-default}
14630 case $enableval in
14631 yes) enable_shared=yes ;;
14632 no) enable_shared=no ;;
14633 *)
14634 enable_shared=no
14635 # Look at the argument we got. We use all the common list separators.
14636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14637 for pkg in $enableval; do
14638 IFS="$lt_save_ifs"
14639 if test "X$pkg" = "X$p"; then
14640 enable_shared=yes
14641 fi
14642 done
14643 IFS="$lt_save_ifs"
14644 ;;
14645 esac
14646 else
14647 enable_shared=yes
14648 fi
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 # Check whether --enable-static was given.
14659 if test "${enable_static+set}" = set; then :
14660 enableval=$enable_static; p=${PACKAGE-default}
14661 case $enableval in
14662 yes) enable_static=yes ;;
14663 no) enable_static=no ;;
14664 *)
14665 enable_static=no
14666 # Look at the argument we got. We use all the common list separators.
14667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14668 for pkg in $enableval; do
14669 IFS="$lt_save_ifs"
14670 if test "X$pkg" = "X$p"; then
14671 enable_static=yes
14672 fi
14673 done
14674 IFS="$lt_save_ifs"
14675 ;;
14676 esac
14677 else
14678 enable_static=yes
14679 fi
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690 # Check whether --with-pic was given.
14691 if test "${with_pic+set}" = set; then :
14692 withval=$with_pic; pic_mode="$withval"
14693 else
14694 pic_mode=default
14695 fi
14696
14697
14698 test -z "$pic_mode" && pic_mode=default
14699
14700
14701
14702
14703
14704
14705
14706 # Check whether --enable-fast-install was given.
14707 if test "${enable_fast_install+set}" = set; then :
14708 enableval=$enable_fast_install; p=${PACKAGE-default}
14709 case $enableval in
14710 yes) enable_fast_install=yes ;;
14711 no) enable_fast_install=no ;;
14712 *)
14713 enable_fast_install=no
14714 # Look at the argument we got. We use all the common list separators.
14715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14716 for pkg in $enableval; do
14717 IFS="$lt_save_ifs"
14718 if test "X$pkg" = "X$p"; then
14719 enable_fast_install=yes
14720 fi
14721 done
14722 IFS="$lt_save_ifs"
14723 ;;
14724 esac
14725 else
14726 enable_fast_install=yes
14727 fi
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739 # This can be used to rebuild libtool when needed
14740 LIBTOOL_DEPS="$ltmain"
14741
14742 # Always use our own libtool.
14743 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770 test -z "$LN_S" && LN_S="ln -s"
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785 if test -n "${ZSH_VERSION+set}" ; then
14786 setopt NO_GLOB_SUBST
14787 fi
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14790 $as_echo_n "checking for objdir... " >&6; }
14791 if test "${lt_cv_objdir+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 rm -f .libs 2>/dev/null
14795 mkdir .libs 2>/dev/null
14796 if test -d .libs; then
14797 lt_cv_objdir=.libs
14798 else
14799 # MS-DOS does not allow filenames that begin with a dot.
14800 lt_cv_objdir=_libs
14801 fi
14802 rmdir .libs 2>/dev/null
14803 fi
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14805 $as_echo "$lt_cv_objdir" >&6; }
14806 objdir=$lt_cv_objdir
14807
14808
14809
14810
14811
14812 cat >>confdefs.h <<_ACEOF
14813 #define LT_OBJDIR "$lt_cv_objdir/"
14814 _ACEOF
14815
14816
14817
14818
14819 case $host_os in
14820 aix3*)
14821 # AIX sometimes has problems with the GCC collect2 program. For some
14822 # reason, if we set the COLLECT_NAMES environment variable, the problems
14823 # vanish in a puff of smoke.
14824 if test "X${COLLECT_NAMES+set}" != Xset; then
14825 COLLECT_NAMES=
14826 export COLLECT_NAMES
14827 fi
14828 ;;
14829 esac
14830
14831 # Global variables:
14832 ofile=libtool
14833 can_build_shared=yes
14834
14835 # All known linkers require a `.a' archive for static linking (except MSVC,
14836 # which needs '.lib').
14837 libext=a
14838
14839 with_gnu_ld="$lt_cv_prog_gnu_ld"
14840
14841 old_CC="$CC"
14842 old_CFLAGS="$CFLAGS"
14843
14844 # Set sane defaults for various variables
14845 test -z "$CC" && CC=cc
14846 test -z "$LTCC" && LTCC=$CC
14847 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14848 test -z "$LD" && LD=ld
14849 test -z "$ac_objext" && ac_objext=o
14850
14851 for cc_temp in $compiler""; do
14852 case $cc_temp in
14853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14855 \-*) ;;
14856 *) break;;
14857 esac
14858 done
14859 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14860
14861
14862 # Only perform the check for file, if the check method requires it
14863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14864 case $deplibs_check_method in
14865 file_magic*)
14866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14868 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 case $MAGIC_CMD in
14873 [\\/*] | ?:[\\/]*)
14874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14875 ;;
14876 *)
14877 lt_save_MAGIC_CMD="$MAGIC_CMD"
14878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14880 for ac_dir in $ac_dummy; do
14881 IFS="$lt_save_ifs"
14882 test -z "$ac_dir" && ac_dir=.
14883 if test -f $ac_dir/${ac_tool_prefix}file; then
14884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14885 if test -n "$file_magic_test_file"; then
14886 case $deplibs_check_method in
14887 "file_magic "*)
14888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14891 $EGREP "$file_magic_regex" > /dev/null; then
14892 :
14893 else
14894 cat <<_LT_EOF 1>&2
14895
14896 *** Warning: the command libtool uses to detect shared libraries,
14897 *** $file_magic_cmd, produces output that libtool cannot recognize.
14898 *** The result is that libtool may fail to recognize shared libraries
14899 *** as such. This will affect the creation of libtool libraries that
14900 *** depend on shared libraries, but programs linked with such libtool
14901 *** libraries will work regardless of this problem. Nevertheless, you
14902 *** may want to report the problem to your system manager and/or to
14903 *** bug-libtool@gnu.org
14904
14905 _LT_EOF
14906 fi ;;
14907 esac
14908 fi
14909 break
14910 fi
14911 done
14912 IFS="$lt_save_ifs"
14913 MAGIC_CMD="$lt_save_MAGIC_CMD"
14914 ;;
14915 esac
14916 fi
14917
14918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14919 if test -n "$MAGIC_CMD"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14921 $as_echo "$MAGIC_CMD" >&6; }
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 fi
14926
14927
14928
14929
14930
14931 if test -z "$lt_cv_path_MAGIC_CMD"; then
14932 if test -n "$ac_tool_prefix"; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14934 $as_echo_n "checking for file... " >&6; }
14935 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 case $MAGIC_CMD in
14939 [\\/*] | ?:[\\/]*)
14940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14941 ;;
14942 *)
14943 lt_save_MAGIC_CMD="$MAGIC_CMD"
14944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14946 for ac_dir in $ac_dummy; do
14947 IFS="$lt_save_ifs"
14948 test -z "$ac_dir" && ac_dir=.
14949 if test -f $ac_dir/file; then
14950 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14951 if test -n "$file_magic_test_file"; then
14952 case $deplibs_check_method in
14953 "file_magic "*)
14954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14957 $EGREP "$file_magic_regex" > /dev/null; then
14958 :
14959 else
14960 cat <<_LT_EOF 1>&2
14961
14962 *** Warning: the command libtool uses to detect shared libraries,
14963 *** $file_magic_cmd, produces output that libtool cannot recognize.
14964 *** The result is that libtool may fail to recognize shared libraries
14965 *** as such. This will affect the creation of libtool libraries that
14966 *** depend on shared libraries, but programs linked with such libtool
14967 *** libraries will work regardless of this problem. Nevertheless, you
14968 *** may want to report the problem to your system manager and/or to
14969 *** bug-libtool@gnu.org
14970
14971 _LT_EOF
14972 fi ;;
14973 esac
14974 fi
14975 break
14976 fi
14977 done
14978 IFS="$lt_save_ifs"
14979 MAGIC_CMD="$lt_save_MAGIC_CMD"
14980 ;;
14981 esac
14982 fi
14983
14984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14985 if test -n "$MAGIC_CMD"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14987 $as_echo "$MAGIC_CMD" >&6; }
14988 else
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14991 fi
14992
14993
14994 else
14995 MAGIC_CMD=:
14996 fi
14997 fi
14998
14999 fi
15000 ;;
15001 esac
15002
15003 # Use C for the default configuration in the libtool script
15004
15005 lt_save_CC="$CC"
15006 ac_ext=c
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011
15012
15013 # Source file extension for C test sources.
15014 ac_ext=c
15015
15016 # Object file extension for compiled C test sources.
15017 objext=o
15018 objext=$objext
15019
15020 # Code to be used in simple compile tests
15021 lt_simple_compile_test_code="int some_variable = 0;"
15022
15023 # Code to be used in simple link tests
15024 lt_simple_link_test_code='int main(){return(0);}'
15025
15026
15027
15028
15029
15030
15031
15032 # If no C compiler was specified, use CC.
15033 LTCC=${LTCC-"$CC"}
15034
15035 # If no C compiler flags were specified, use CFLAGS.
15036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15037
15038 # Allow CC to be a program name with arguments.
15039 compiler=$CC
15040
15041 # Save the default compiler, since it gets overwritten when the other
15042 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15043 compiler_DEFAULT=$CC
15044
15045 # save warnings/boilerplate of simple test code
15046 ac_outfile=conftest.$ac_objext
15047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15049 _lt_compiler_boilerplate=`cat conftest.err`
15050 $RM conftest*
15051
15052 ac_outfile=conftest.$ac_objext
15053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055 _lt_linker_boilerplate=`cat conftest.err`
15056 $RM -r conftest*
15057
15058
15059 ## CAVEAT EMPTOR:
15060 ## There is no encapsulation within the following macros, do not change
15061 ## the running order or otherwise move them around unless you know exactly
15062 ## what you are doing...
15063 if test -n "$compiler"; then
15064
15065 lt_prog_compiler_no_builtin_flag=
15066
15067 if test "$GCC" = yes; then
15068 case $cc_basename in
15069 nvcc*)
15070 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15071 *)
15072 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15073 esac
15074
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15076 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15077 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 lt_cv_prog_compiler_rtti_exceptions=no
15081 ac_outfile=conftest.$ac_objext
15082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 lt_compiler_flag="-fno-rtti -fno-exceptions"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 # The option is referenced via a variable to avoid confusing sed.
15089 lt_compile=`echo "$ac_compile" | $SED \
15090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15092 -e 's:$: $lt_compiler_flag:'`
15093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15094 (eval "$lt_compile" 2>conftest.err)
15095 ac_status=$?
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 if (exit $ac_status) && test -s "$ac_outfile"; then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings other than the usual output.
15101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_cv_prog_compiler_rtti_exceptions=yes
15105 fi
15106 fi
15107 $RM conftest*
15108
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15111 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15112
15113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15115 else
15116 :
15117 fi
15118
15119 fi
15120
15121
15122
15123
15124
15125
15126 lt_prog_compiler_wl=
15127 lt_prog_compiler_pic=
15128 lt_prog_compiler_static=
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15131 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15132
15133 if test "$GCC" = yes; then
15134 lt_prog_compiler_wl='-Wl,'
15135 lt_prog_compiler_static='-static'
15136
15137 case $host_os in
15138 aix*)
15139 # All AIX code is PIC.
15140 if test "$host_cpu" = ia64; then
15141 # AIX 5 now supports IA64 processor
15142 lt_prog_compiler_static='-Bstatic'
15143 fi
15144 ;;
15145
15146 amigaos*)
15147 case $host_cpu in
15148 powerpc)
15149 # see comment about AmigaOS4 .so support
15150 lt_prog_compiler_pic='-fPIC'
15151 ;;
15152 m68k)
15153 # FIXME: we need at least 68020 code to build shared libraries, but
15154 # adding the `-m68020' flag to GCC prevents building anything better,
15155 # like `-m68040'.
15156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15157 ;;
15158 esac
15159 ;;
15160
15161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15162 # PIC is the default for these OSes.
15163 ;;
15164
15165 mingw* | cygwin* | pw32* | os2* | cegcc*)
15166 # This hack is so that the source file can tell whether it is being
15167 # built for inclusion in a dll (and should export symbols for example).
15168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15169 # (--disable-auto-import) libraries
15170 lt_prog_compiler_pic='-DDLL_EXPORT'
15171 ;;
15172
15173 darwin* | rhapsody*)
15174 # PIC is the default on this platform
15175 # Common symbols not allowed in MH_DYLIB files
15176 lt_prog_compiler_pic='-fno-common'
15177 ;;
15178
15179 haiku*)
15180 # PIC is the default for Haiku.
15181 # The "-static" flag exists, but is broken.
15182 lt_prog_compiler_static=
15183 ;;
15184
15185 hpux*)
15186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15188 # sets the default TLS model and affects inlining.
15189 case $host_cpu in
15190 hppa*64*)
15191 # +Z the default
15192 ;;
15193 *)
15194 lt_prog_compiler_pic='-fPIC'
15195 ;;
15196 esac
15197 ;;
15198
15199 interix[3-9]*)
15200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15201 # Instead, we relocate shared libraries at runtime.
15202 ;;
15203
15204 msdosdjgpp*)
15205 # Just because we use GCC doesn't mean we suddenly get shared libraries
15206 # on systems that don't support them.
15207 lt_prog_compiler_can_build_shared=no
15208 enable_shared=no
15209 ;;
15210
15211 *nto* | *qnx*)
15212 # QNX uses GNU C++, but need to define -shared option too, otherwise
15213 # it will coredump.
15214 lt_prog_compiler_pic='-fPIC -shared'
15215 ;;
15216
15217 sysv4*MP*)
15218 if test -d /usr/nec; then
15219 lt_prog_compiler_pic=-Kconform_pic
15220 fi
15221 ;;
15222
15223 *)
15224 lt_prog_compiler_pic='-fPIC'
15225 ;;
15226 esac
15227
15228 case $cc_basename in
15229 nvcc*) # Cuda Compiler Driver 2.2
15230 lt_prog_compiler_wl='-Xlinker '
15231 lt_prog_compiler_pic='-Xcompiler -fPIC'
15232 ;;
15233 esac
15234 else
15235 # PORTME Check for flag to pass linker flags through the system compiler.
15236 case $host_os in
15237 aix*)
15238 lt_prog_compiler_wl='-Wl,'
15239 if test "$host_cpu" = ia64; then
15240 # AIX 5 now supports IA64 processor
15241 lt_prog_compiler_static='-Bstatic'
15242 else
15243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15244 fi
15245 ;;
15246
15247 mingw* | cygwin* | pw32* | os2* | cegcc*)
15248 # This hack is so that the source file can tell whether it is being
15249 # built for inclusion in a dll (and should export symbols for example).
15250 lt_prog_compiler_pic='-DDLL_EXPORT'
15251 ;;
15252
15253 hpux9* | hpux10* | hpux11*)
15254 lt_prog_compiler_wl='-Wl,'
15255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15256 # not for PA HP-UX.
15257 case $host_cpu in
15258 hppa*64*|ia64*)
15259 # +Z the default
15260 ;;
15261 *)
15262 lt_prog_compiler_pic='+Z'
15263 ;;
15264 esac
15265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15266 lt_prog_compiler_static='${wl}-a ${wl}archive'
15267 ;;
15268
15269 irix5* | irix6* | nonstopux*)
15270 lt_prog_compiler_wl='-Wl,'
15271 # PIC (with -KPIC) is the default.
15272 lt_prog_compiler_static='-non_shared'
15273 ;;
15274
15275 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15276 case $cc_basename in
15277 # old Intel for x86_64 which still supported -KPIC.
15278 ecc*)
15279 lt_prog_compiler_wl='-Wl,'
15280 lt_prog_compiler_pic='-KPIC'
15281 lt_prog_compiler_static='-static'
15282 ;;
15283 # icc used to be incompatible with GCC.
15284 # ICC 10 doesn't accept -KPIC any more.
15285 icc* | ifort*)
15286 lt_prog_compiler_wl='-Wl,'
15287 lt_prog_compiler_pic='-fPIC'
15288 lt_prog_compiler_static='-static'
15289 ;;
15290 # Lahey Fortran 8.1.
15291 lf95*)
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='--shared'
15294 lt_prog_compiler_static='--static'
15295 ;;
15296 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15297 # Portland Group compilers (*not* the Pentium gcc compiler,
15298 # which looks to be a dead project)
15299 lt_prog_compiler_wl='-Wl,'
15300 lt_prog_compiler_pic='-fpic'
15301 lt_prog_compiler_static='-Bstatic'
15302 ;;
15303 ccc*)
15304 lt_prog_compiler_wl='-Wl,'
15305 # All Alpha code is PIC.
15306 lt_prog_compiler_static='-non_shared'
15307 ;;
15308 xl* | bgxl* | bgf* | mpixl*)
15309 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15310 lt_prog_compiler_wl='-Wl,'
15311 lt_prog_compiler_pic='-qpic'
15312 lt_prog_compiler_static='-qstaticlink'
15313 ;;
15314 *)
15315 case `$CC -V 2>&1 | sed 5q` in
15316 *Sun\ F* | *Sun*Fortran*)
15317 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15318 lt_prog_compiler_pic='-KPIC'
15319 lt_prog_compiler_static='-Bstatic'
15320 lt_prog_compiler_wl=''
15321 ;;
15322 *Sun\ C*)
15323 # Sun C 5.9
15324 lt_prog_compiler_pic='-KPIC'
15325 lt_prog_compiler_static='-Bstatic'
15326 lt_prog_compiler_wl='-Wl,'
15327 ;;
15328 esac
15329 ;;
15330 esac
15331 ;;
15332
15333 newsos6)
15334 lt_prog_compiler_pic='-KPIC'
15335 lt_prog_compiler_static='-Bstatic'
15336 ;;
15337
15338 *nto* | *qnx*)
15339 # QNX uses GNU C++, but need to define -shared option too, otherwise
15340 # it will coredump.
15341 lt_prog_compiler_pic='-fPIC -shared'
15342 ;;
15343
15344 osf3* | osf4* | osf5*)
15345 lt_prog_compiler_wl='-Wl,'
15346 # All OSF/1 code is PIC.
15347 lt_prog_compiler_static='-non_shared'
15348 ;;
15349
15350 rdos*)
15351 lt_prog_compiler_static='-non_shared'
15352 ;;
15353
15354 solaris*)
15355 lt_prog_compiler_pic='-KPIC'
15356 lt_prog_compiler_static='-Bstatic'
15357 case $cc_basename in
15358 f77* | f90* | f95*)
15359 lt_prog_compiler_wl='-Qoption ld ';;
15360 *)
15361 lt_prog_compiler_wl='-Wl,';;
15362 esac
15363 ;;
15364
15365 sunos4*)
15366 lt_prog_compiler_wl='-Qoption ld '
15367 lt_prog_compiler_pic='-PIC'
15368 lt_prog_compiler_static='-Bstatic'
15369 ;;
15370
15371 sysv4 | sysv4.2uw2* | sysv4.3*)
15372 lt_prog_compiler_wl='-Wl,'
15373 lt_prog_compiler_pic='-KPIC'
15374 lt_prog_compiler_static='-Bstatic'
15375 ;;
15376
15377 sysv4*MP*)
15378 if test -d /usr/nec ;then
15379 lt_prog_compiler_pic='-Kconform_pic'
15380 lt_prog_compiler_static='-Bstatic'
15381 fi
15382 ;;
15383
15384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15385 lt_prog_compiler_wl='-Wl,'
15386 lt_prog_compiler_pic='-KPIC'
15387 lt_prog_compiler_static='-Bstatic'
15388 ;;
15389
15390 unicos*)
15391 lt_prog_compiler_wl='-Wl,'
15392 lt_prog_compiler_can_build_shared=no
15393 ;;
15394
15395 uts4*)
15396 lt_prog_compiler_pic='-pic'
15397 lt_prog_compiler_static='-Bstatic'
15398 ;;
15399
15400 *)
15401 lt_prog_compiler_can_build_shared=no
15402 ;;
15403 esac
15404 fi
15405
15406 case $host_os in
15407 # For platforms which do not support PIC, -DPIC is meaningless:
15408 *djgpp*)
15409 lt_prog_compiler_pic=
15410 ;;
15411 *)
15412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15413 ;;
15414 esac
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15416 $as_echo "$lt_prog_compiler_pic" >&6; }
15417
15418
15419
15420
15421
15422
15423 #
15424 # Check to make sure the PIC flag actually works.
15425 #
15426 if test -n "$lt_prog_compiler_pic"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15428 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15429 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 lt_cv_prog_compiler_pic_works=no
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15447 ac_status=$?
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_pic_works=yes
15457 fi
15458 fi
15459 $RM conftest*
15460
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15463 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15464
15465 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15466 case $lt_prog_compiler_pic in
15467 "" | " "*) ;;
15468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15469 esac
15470 else
15471 lt_prog_compiler_pic=
15472 lt_prog_compiler_can_build_shared=no
15473 fi
15474
15475 fi
15476
15477
15478
15479
15480
15481
15482 #
15483 # Check to make sure the static flag actually works.
15484 #
15485 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15488 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 lt_cv_prog_compiler_static_works=no
15492 save_LDFLAGS="$LDFLAGS"
15493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15496 # The linker can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 if test -s conftest.err; then
15499 # Append any errors to the config.log.
15500 cat conftest.err 1>&5
15501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15503 if diff conftest.exp conftest.er2 >/dev/null; then
15504 lt_cv_prog_compiler_static_works=yes
15505 fi
15506 else
15507 lt_cv_prog_compiler_static_works=yes
15508 fi
15509 fi
15510 $RM -r conftest*
15511 LDFLAGS="$save_LDFLAGS"
15512
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15515 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15516
15517 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15518 :
15519 else
15520 lt_prog_compiler_static=
15521 fi
15522
15523
15524
15525
15526
15527
15528
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15531 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 lt_cv_prog_compiler_c_o=no
15535 $RM -r conftest 2>/dev/null
15536 mkdir conftest
15537 cd conftest
15538 mkdir out
15539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15540
15541 lt_compiler_flag="-o out/conftest2.$ac_objext"
15542 # Insert the option either (1) after the last *FLAGS variable, or
15543 # (2) before a word containing "conftest.", or (3) at the end.
15544 # Note that $ac_compile itself does not contain backslashes and begins
15545 # with a dollar sign (not a hyphen), so the echo should work correctly.
15546 lt_compile=`echo "$ac_compile" | $SED \
15547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15549 -e 's:$: $lt_compiler_flag:'`
15550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15551 (eval "$lt_compile" 2>out/conftest.err)
15552 ac_status=$?
15553 cat out/conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15556 then
15557 # The compiler can only warn and ignore the option if not recognized
15558 # So say no if there are warnings
15559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15562 lt_cv_prog_compiler_c_o=yes
15563 fi
15564 fi
15565 chmod u+w . 2>&5
15566 $RM conftest*
15567 # SGI C++ compiler will create directory out/ii_files/ for
15568 # template instantiation
15569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15570 $RM out/* && rmdir out
15571 cd ..
15572 $RM -r conftest
15573 $RM conftest*
15574
15575 fi
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15578
15579
15580
15581
15582
15583
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15585 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15589 lt_cv_prog_compiler_c_o=no
15590 $RM -r conftest 2>/dev/null
15591 mkdir conftest
15592 cd conftest
15593 mkdir out
15594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15595
15596 lt_compiler_flag="-o out/conftest2.$ac_objext"
15597 # Insert the option either (1) after the last *FLAGS variable, or
15598 # (2) before a word containing "conftest.", or (3) at the end.
15599 # Note that $ac_compile itself does not contain backslashes and begins
15600 # with a dollar sign (not a hyphen), so the echo should work correctly.
15601 lt_compile=`echo "$ac_compile" | $SED \
15602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15604 -e 's:$: $lt_compiler_flag:'`
15605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15606 (eval "$lt_compile" 2>out/conftest.err)
15607 ac_status=$?
15608 cat out/conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15611 then
15612 # The compiler can only warn and ignore the option if not recognized
15613 # So say no if there are warnings
15614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15617 lt_cv_prog_compiler_c_o=yes
15618 fi
15619 fi
15620 chmod u+w . 2>&5
15621 $RM conftest*
15622 # SGI C++ compiler will create directory out/ii_files/ for
15623 # template instantiation
15624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15625 $RM out/* && rmdir out
15626 cd ..
15627 $RM -r conftest
15628 $RM conftest*
15629
15630 fi
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15632 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15633
15634
15635
15636
15637 hard_links="nottested"
15638 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15639 # do not overwrite the value of need_locks provided by the user
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15641 $as_echo_n "checking if we can lock with hard links... " >&6; }
15642 hard_links=yes
15643 $RM conftest*
15644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15645 touch conftest.a
15646 ln conftest.a conftest.b 2>&5 || hard_links=no
15647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15649 $as_echo "$hard_links" >&6; }
15650 if test "$hard_links" = no; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15652 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15653 need_locks=warn
15654 fi
15655 else
15656 need_locks=no
15657 fi
15658
15659
15660
15661
15662
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15666
15667 runpath_var=
15668 allow_undefined_flag=
15669 always_export_symbols=no
15670 archive_cmds=
15671 archive_expsym_cmds=
15672 compiler_needs_object=no
15673 enable_shared_with_static_runtimes=no
15674 export_dynamic_flag_spec=
15675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15676 hardcode_automatic=no
15677 hardcode_direct=no
15678 hardcode_direct_absolute=no
15679 hardcode_libdir_flag_spec=
15680 hardcode_libdir_flag_spec_ld=
15681 hardcode_libdir_separator=
15682 hardcode_minus_L=no
15683 hardcode_shlibpath_var=unsupported
15684 inherit_rpath=no
15685 link_all_deplibs=unknown
15686 module_cmds=
15687 module_expsym_cmds=
15688 old_archive_from_new_cmds=
15689 old_archive_from_expsyms_cmds=
15690 thread_safe_flag_spec=
15691 whole_archive_flag_spec=
15692 # include_expsyms should be a list of space-separated symbols to be *always*
15693 # included in the symbol list
15694 include_expsyms=
15695 # exclude_expsyms can be an extended regexp of symbols to exclude
15696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15698 # as well as any symbol that contains `d'.
15699 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15701 # platforms (ab)use it in PIC code, but their linkers get confused if
15702 # the symbol is explicitly referenced. Since portable code cannot
15703 # rely on this symbol name, it's probably fine to never include it in
15704 # preloaded symbol tables.
15705 # Exclude shared library initialization/finalization symbols.
15706 extract_expsyms_cmds=
15707
15708 case $host_os in
15709 cygwin* | mingw* | pw32* | cegcc*)
15710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15711 # When not using gcc, we currently assume that we are using
15712 # Microsoft Visual C++.
15713 if test "$GCC" != yes; then
15714 with_gnu_ld=no
15715 fi
15716 ;;
15717 interix*)
15718 # we just hope/assume this is gcc and not c89 (= MSVC++)
15719 with_gnu_ld=yes
15720 ;;
15721 openbsd*)
15722 with_gnu_ld=no
15723 ;;
15724 esac
15725
15726 ld_shlibs=yes
15727
15728 # On some targets, GNU ld is compatible enough with the native linker
15729 # that we're better off using the native interface for both.
15730 lt_use_gnu_ld_interface=no
15731 if test "$with_gnu_ld" = yes; then
15732 case $host_os in
15733 aix*)
15734 # The AIX port of GNU ld has always aspired to compatibility
15735 # with the native linker. However, as the warning in the GNU ld
15736 # block says, versions before 2.19.5* couldn't really create working
15737 # shared libraries, regardless of the interface used.
15738 case `$LD -v 2>&1` in
15739 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15740 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15741 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15742 *)
15743 lt_use_gnu_ld_interface=yes
15744 ;;
15745 esac
15746 ;;
15747 *)
15748 lt_use_gnu_ld_interface=yes
15749 ;;
15750 esac
15751 fi
15752
15753 if test "$lt_use_gnu_ld_interface" = yes; then
15754 # If archive_cmds runs LD, not CC, wlarc should be empty
15755 wlarc='${wl}'
15756
15757 # Set some defaults for GNU ld with shared library support. These
15758 # are reset later if shared libraries are not supported. Putting them
15759 # here allows them to be overridden if necessary.
15760 runpath_var=LD_RUN_PATH
15761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15762 export_dynamic_flag_spec='${wl}--export-dynamic'
15763 # ancient GNU ld didn't support --whole-archive et. al.
15764 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15765 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15766 else
15767 whole_archive_flag_spec=
15768 fi
15769 supports_anon_versioning=no
15770 case `$LD -v 2>&1` in
15771 *GNU\ gold*) supports_anon_versioning=yes ;;
15772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15775 *\ 2.11.*) ;; # other 2.11 versions
15776 *) supports_anon_versioning=yes ;;
15777 esac
15778
15779 # See if GNU ld supports shared libraries.
15780 case $host_os in
15781 aix[3-9]*)
15782 # On AIX/PPC, the GNU linker is very broken
15783 if test "$host_cpu" != ia64; then
15784 ld_shlibs=no
15785 cat <<_LT_EOF 1>&2
15786
15787 *** Warning: the GNU linker, at least up to release 2.19, is reported
15788 *** to be unable to reliably create shared libraries on AIX.
15789 *** Therefore, libtool is disabling shared libraries support. If you
15790 *** really care for shared libraries, you may want to install binutils
15791 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15792 *** You will then need to restart the configuration process.
15793
15794 _LT_EOF
15795 fi
15796 ;;
15797
15798 amigaos*)
15799 case $host_cpu in
15800 powerpc)
15801 # see comment about AmigaOS4 .so support
15802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 archive_expsym_cmds=''
15804 ;;
15805 m68k)
15806 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)'
15807 hardcode_libdir_flag_spec='-L$libdir'
15808 hardcode_minus_L=yes
15809 ;;
15810 esac
15811 ;;
15812
15813 beos*)
15814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15815 allow_undefined_flag=unsupported
15816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15817 # support --undefined. This deserves some investigation. FIXME
15818 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819 else
15820 ld_shlibs=no
15821 fi
15822 ;;
15823
15824 cygwin* | mingw* | pw32* | cegcc*)
15825 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15826 # as there is no search path for DLLs.
15827 hardcode_libdir_flag_spec='-L$libdir'
15828 export_dynamic_flag_spec='${wl}--export-all-symbols'
15829 allow_undefined_flag=unsupported
15830 always_export_symbols=no
15831 enable_shared_with_static_runtimes=yes
15832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15833
15834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15836 # If the export-symbols file already is a .def file (1st line
15837 # is EXPORTS), use it as is; otherwise, prepend...
15838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15839 cp $export_symbols $output_objdir/$soname.def;
15840 else
15841 echo EXPORTS > $output_objdir/$soname.def;
15842 cat $export_symbols >> $output_objdir/$soname.def;
15843 fi~
15844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15845 else
15846 ld_shlibs=no
15847 fi
15848 ;;
15849
15850 haiku*)
15851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 link_all_deplibs=yes
15853 ;;
15854
15855 interix[3-9]*)
15856 hardcode_direct=no
15857 hardcode_shlibpath_var=no
15858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15859 export_dynamic_flag_spec='${wl}-E'
15860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15861 # Instead, shared libraries are loaded at an image base (0x10000000 by
15862 # default) and relocated if they conflict, which is a slow very memory
15863 # consuming and fragmenting process. To avoid this, we pick a random,
15864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15867 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'
15868 ;;
15869
15870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15871 tmp_diet=no
15872 if test "$host_os" = linux-dietlibc; then
15873 case $cc_basename in
15874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15875 esac
15876 fi
15877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15878 && test "$tmp_diet" = no
15879 then
15880 tmp_addflag=
15881 tmp_sharedflag='-shared'
15882 case $cc_basename,$host_cpu in
15883 pgcc*) # Portland Group C compiler
15884 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'
15885 tmp_addflag=' $pic_flag'
15886 ;;
15887 pgf77* | pgf90* | pgf95* | pgfortran*)
15888 # Portland Group f77 and f90 compilers
15889 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'
15890 tmp_addflag=' $pic_flag -Mnomain' ;;
15891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15892 tmp_addflag=' -i_dynamic' ;;
15893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15894 tmp_addflag=' -i_dynamic -nofor_main' ;;
15895 ifc* | ifort*) # Intel Fortran compiler
15896 tmp_addflag=' -nofor_main' ;;
15897 lf95*) # Lahey Fortran 8.1
15898 whole_archive_flag_spec=
15899 tmp_sharedflag='--shared' ;;
15900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15901 tmp_sharedflag='-qmkshrobj'
15902 tmp_addflag= ;;
15903 nvcc*) # Cuda Compiler Driver 2.2
15904 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'
15905 compiler_needs_object=yes
15906 ;;
15907 esac
15908 case `$CC -V 2>&1 | sed 5q` in
15909 *Sun\ C*) # Sun C 5.9
15910 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'
15911 compiler_needs_object=yes
15912 tmp_sharedflag='-G' ;;
15913 *Sun\ F*) # Sun Fortran 8.3
15914 tmp_sharedflag='-G' ;;
15915 esac
15916 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15917
15918 if test "x$supports_anon_versioning" = xyes; then
15919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15921 echo "local: *; };" >> $output_objdir/$libname.ver~
15922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15923 fi
15924
15925 case $cc_basename in
15926 xlf* | bgf* | bgxlf* | mpixlf*)
15927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15928 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15929 hardcode_libdir_flag_spec=
15930 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15931 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15932 if test "x$supports_anon_versioning" = xyes; then
15933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15935 echo "local: *; };" >> $output_objdir/$libname.ver~
15936 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15937 fi
15938 ;;
15939 esac
15940 else
15941 ld_shlibs=no
15942 fi
15943 ;;
15944
15945 netbsd*)
15946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15947 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15948 wlarc=
15949 else
15950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952 fi
15953 ;;
15954
15955 solaris*)
15956 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15957 ld_shlibs=no
15958 cat <<_LT_EOF 1>&2
15959
15960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15961 *** create shared libraries on Solaris systems. Therefore, libtool
15962 *** is disabling shared libraries support. We urge you to upgrade GNU
15963 *** binutils to release 2.9.1 or newer. Another option is to modify
15964 *** your PATH or compiler configuration so that the native linker is
15965 *** used, and then restart.
15966
15967 _LT_EOF
15968 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971 else
15972 ld_shlibs=no
15973 fi
15974 ;;
15975
15976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15977 case `$LD -v 2>&1` in
15978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15979 ld_shlibs=no
15980 cat <<_LT_EOF 1>&2
15981
15982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15983 *** reliably create shared libraries on SCO systems. Therefore, libtool
15984 *** is disabling shared libraries support. We urge you to upgrade GNU
15985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15986 *** your PATH or compiler configuration so that the native linker is
15987 *** used, and then restart.
15988
15989 _LT_EOF
15990 ;;
15991 *)
15992 # For security reasons, it is highly recommended that you always
15993 # use absolute paths for naming shared libraries, and exclude the
15994 # DT_RUNPATH tag from executables and libraries. But doing so
15995 # requires that you compile everything twice, which is a pain.
15996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16000 else
16001 ld_shlibs=no
16002 fi
16003 ;;
16004 esac
16005 ;;
16006
16007 sunos4*)
16008 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 wlarc=
16010 hardcode_direct=yes
16011 hardcode_shlibpath_var=no
16012 ;;
16013
16014 *)
16015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16018 else
16019 ld_shlibs=no
16020 fi
16021 ;;
16022 esac
16023
16024 if test "$ld_shlibs" = no; then
16025 runpath_var=
16026 hardcode_libdir_flag_spec=
16027 export_dynamic_flag_spec=
16028 whole_archive_flag_spec=
16029 fi
16030 else
16031 # PORTME fill in a description of your system's linker (not GNU ld)
16032 case $host_os in
16033 aix3*)
16034 allow_undefined_flag=unsupported
16035 always_export_symbols=yes
16036 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'
16037 # Note: this linker hardcodes the directories in LIBPATH if there
16038 # are no directories specified by -L.
16039 hardcode_minus_L=yes
16040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16041 # Neither direct hardcoding nor static linking is supported with a
16042 # broken collect2.
16043 hardcode_direct=unsupported
16044 fi
16045 ;;
16046
16047 aix[4-9]*)
16048 if test "$host_cpu" = ia64; then
16049 # On IA64, the linker does run time linking by default, so we don't
16050 # have to do anything special.
16051 aix_use_runtimelinking=no
16052 exp_sym_flag='-Bexport'
16053 no_entry_flag=""
16054 else
16055 # If we're using GNU nm, then we don't want the "-C" option.
16056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16057 # Also, AIX nm treats weak defined symbols like other global
16058 # defined symbols, whereas GNU nm marks them as "W".
16059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16060 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'
16061 else
16062 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'
16063 fi
16064 aix_use_runtimelinking=no
16065
16066 # Test if we are trying to use run time linking or normal
16067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16068 # need to do runtime linking.
16069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16070 for ld_flag in $LDFLAGS; do
16071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16072 aix_use_runtimelinking=yes
16073 break
16074 fi
16075 done
16076 ;;
16077 esac
16078
16079 exp_sym_flag='-bexport'
16080 no_entry_flag='-bnoentry'
16081 fi
16082
16083 # When large executables or shared objects are built, AIX ld can
16084 # have problems creating the table of contents. If linking a library
16085 # or program results in "error TOC overflow" add -mminimal-toc to
16086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16088
16089 archive_cmds=''
16090 hardcode_direct=yes
16091 hardcode_direct_absolute=yes
16092 hardcode_libdir_separator=':'
16093 link_all_deplibs=yes
16094 file_list_spec='${wl}-f,'
16095
16096 if test "$GCC" = yes; then
16097 case $host_os in aix4.[012]|aix4.[012].*)
16098 # We only want to do this on AIX 4.2 and lower, the check
16099 # below for broken collect2 doesn't work under 4.3+
16100 collect2name=`${CC} -print-prog-name=collect2`
16101 if test -f "$collect2name" &&
16102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16103 then
16104 # We have reworked collect2
16105 :
16106 else
16107 # We have old collect2
16108 hardcode_direct=unsupported
16109 # It fails to find uninstalled libraries when the uninstalled
16110 # path is not listed in the libpath. Setting hardcode_minus_L
16111 # to unsupported forces relinking
16112 hardcode_minus_L=yes
16113 hardcode_libdir_flag_spec='-L$libdir'
16114 hardcode_libdir_separator=
16115 fi
16116 ;;
16117 esac
16118 shared_flag='-shared'
16119 if test "$aix_use_runtimelinking" = yes; then
16120 shared_flag="$shared_flag "'${wl}-G'
16121 fi
16122 else
16123 # not using gcc
16124 if test "$host_cpu" = ia64; then
16125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16126 # chokes on -Wl,-G. The following line is correct:
16127 shared_flag='-G'
16128 else
16129 if test "$aix_use_runtimelinking" = yes; then
16130 shared_flag='${wl}-G'
16131 else
16132 shared_flag='${wl}-bM:SRE'
16133 fi
16134 fi
16135 fi
16136
16137 export_dynamic_flag_spec='${wl}-bexpall'
16138 # It seems that -bexpall does not export symbols beginning with
16139 # underscore (_), so it is better to generate a list of symbols to export.
16140 always_export_symbols=yes
16141 if test "$aix_use_runtimelinking" = yes; then
16142 # Warning - without using the other runtime loading flags (-brtl),
16143 # -berok will link without error, but may produce a broken library.
16144 allow_undefined_flag='-berok'
16145 # Determine the default libpath from the value encoded in an
16146 # empty executable.
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149
16150 int
16151 main ()
16152 {
16153
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159
16160 lt_aix_libpath_sed='
16161 /Import File Strings/,/^$/ {
16162 /^0/ {
16163 s/^0 *\(.*\)$/\1/
16164 p
16165 }
16166 }'
16167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16168 # Check for a 64-bit object if we didn't find anything.
16169 if test -z "$aix_libpath"; then
16170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 fi
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16176
16177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16178 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"
16179 else
16180 if test "$host_cpu" = ia64; then
16181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16182 allow_undefined_flag="-z nodefs"
16183 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"
16184 else
16185 # Determine the default libpath from the value encoded in an
16186 # empty executable.
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189
16190 int
16191 main ()
16192 {
16193
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199
16200 lt_aix_libpath_sed='
16201 /Import File Strings/,/^$/ {
16202 /^0/ {
16203 s/^0 *\(.*\)$/\1/
16204 p
16205 }
16206 }'
16207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16208 # Check for a 64-bit object if we didn't find anything.
16209 if test -z "$aix_libpath"; then
16210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16211 fi
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16216
16217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16218 # Warning - without using the other run time loading flags,
16219 # -berok will link without error, but may produce a broken library.
16220 no_undefined_flag=' ${wl}-bernotok'
16221 allow_undefined_flag=' ${wl}-berok'
16222 if test "$with_gnu_ld" = yes; then
16223 # We only use this code for GNU lds that support --whole-archive.
16224 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16225 else
16226 # Exported symbols can be pulled into shared objects from archives
16227 whole_archive_flag_spec='$convenience'
16228 fi
16229 archive_cmds_need_lc=yes
16230 # This is similar to how AIX traditionally builds its shared libraries.
16231 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'
16232 fi
16233 fi
16234 ;;
16235
16236 amigaos*)
16237 case $host_cpu in
16238 powerpc)
16239 # see comment about AmigaOS4 .so support
16240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 archive_expsym_cmds=''
16242 ;;
16243 m68k)
16244 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)'
16245 hardcode_libdir_flag_spec='-L$libdir'
16246 hardcode_minus_L=yes
16247 ;;
16248 esac
16249 ;;
16250
16251 bsdi[45]*)
16252 export_dynamic_flag_spec=-rdynamic
16253 ;;
16254
16255 cygwin* | mingw* | pw32* | cegcc*)
16256 # When not using gcc, we currently assume that we are using
16257 # Microsoft Visual C++.
16258 # hardcode_libdir_flag_spec is actually meaningless, as there is
16259 # no search path for DLLs.
16260 hardcode_libdir_flag_spec=' '
16261 allow_undefined_flag=unsupported
16262 # Tell ltmain to make .lib files, not .a files.
16263 libext=lib
16264 # Tell ltmain to make .dll files, not .so files.
16265 shrext_cmds=".dll"
16266 # FIXME: Setting linknames here is a bad hack.
16267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16268 # The linker will automatically build a .lib file if we build a DLL.
16269 old_archive_from_new_cmds='true'
16270 # FIXME: Should let the user specify the lib program.
16271 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16272 fix_srcfile_path='`cygpath -w "$srcfile"`'
16273 enable_shared_with_static_runtimes=yes
16274 ;;
16275
16276 darwin* | rhapsody*)
16277
16278
16279 archive_cmds_need_lc=no
16280 hardcode_direct=no
16281 hardcode_automatic=yes
16282 hardcode_shlibpath_var=unsupported
16283 if test "$lt_cv_ld_force_load" = "yes"; then
16284 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\"`'
16285 else
16286 whole_archive_flag_spec=''
16287 fi
16288 link_all_deplibs=yes
16289 allow_undefined_flag="$_lt_dar_allow_undefined"
16290 case $cc_basename in
16291 ifort*) _lt_dar_can_shared=yes ;;
16292 *) _lt_dar_can_shared=$GCC ;;
16293 esac
16294 if test "$_lt_dar_can_shared" = "yes"; then
16295 output_verbose_link_cmd=func_echo_all
16296 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16297 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16298 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}"
16299 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}"
16300
16301 else
16302 ld_shlibs=no
16303 fi
16304
16305 ;;
16306
16307 dgux*)
16308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 hardcode_libdir_flag_spec='-L$libdir'
16310 hardcode_shlibpath_var=no
16311 ;;
16312
16313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16314 # support. Future versions do this automatically, but an explicit c++rt0.o
16315 # does not break anything, and helps significantly (at the cost of a little
16316 # extra space).
16317 freebsd2.2*)
16318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16319 hardcode_libdir_flag_spec='-R$libdir'
16320 hardcode_direct=yes
16321 hardcode_shlibpath_var=no
16322 ;;
16323
16324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16325 freebsd2*)
16326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_direct=yes
16328 hardcode_minus_L=yes
16329 hardcode_shlibpath_var=no
16330 ;;
16331
16332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16333 freebsd* | dragonfly*)
16334 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16335 hardcode_libdir_flag_spec='-R$libdir'
16336 hardcode_direct=yes
16337 hardcode_shlibpath_var=no
16338 ;;
16339
16340 hpux9*)
16341 if test "$GCC" = yes; then
16342 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'
16343 else
16344 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'
16345 fi
16346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16347 hardcode_libdir_separator=:
16348 hardcode_direct=yes
16349
16350 # hardcode_minus_L: Not really in the search PATH,
16351 # but as the default location of the library.
16352 hardcode_minus_L=yes
16353 export_dynamic_flag_spec='${wl}-E'
16354 ;;
16355
16356 hpux10*)
16357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16359 else
16360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16361 fi
16362 if test "$with_gnu_ld" = no; then
16363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16364 hardcode_libdir_flag_spec_ld='+b $libdir'
16365 hardcode_libdir_separator=:
16366 hardcode_direct=yes
16367 hardcode_direct_absolute=yes
16368 export_dynamic_flag_spec='${wl}-E'
16369 # hardcode_minus_L: Not really in the search PATH,
16370 # but as the default location of the library.
16371 hardcode_minus_L=yes
16372 fi
16373 ;;
16374
16375 hpux11*)
16376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16377 case $host_cpu in
16378 hppa*64*)
16379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16380 ;;
16381 ia64*)
16382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16383 ;;
16384 *)
16385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16386 ;;
16387 esac
16388 else
16389 case $host_cpu in
16390 hppa*64*)
16391 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16392 ;;
16393 ia64*)
16394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16395 ;;
16396 *)
16397
16398 # Older versions of the 11.00 compiler do not understand -b yet
16399 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16401 $as_echo_n "checking if $CC understands -b... " >&6; }
16402 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 lt_cv_prog_compiler__b=no
16406 save_LDFLAGS="$LDFLAGS"
16407 LDFLAGS="$LDFLAGS -b"
16408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16410 # The linker can only warn and ignore the option if not recognized
16411 # So say no if there are warnings
16412 if test -s conftest.err; then
16413 # Append any errors to the config.log.
16414 cat conftest.err 1>&5
16415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417 if diff conftest.exp conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler__b=yes
16419 fi
16420 else
16421 lt_cv_prog_compiler__b=yes
16422 fi
16423 fi
16424 $RM -r conftest*
16425 LDFLAGS="$save_LDFLAGS"
16426
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16429 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16430
16431 if test x"$lt_cv_prog_compiler__b" = xyes; then
16432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16433 else
16434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16435 fi
16436
16437 ;;
16438 esac
16439 fi
16440 if test "$with_gnu_ld" = no; then
16441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16442 hardcode_libdir_separator=:
16443
16444 case $host_cpu in
16445 hppa*64*|ia64*)
16446 hardcode_direct=no
16447 hardcode_shlibpath_var=no
16448 ;;
16449 *)
16450 hardcode_direct=yes
16451 hardcode_direct_absolute=yes
16452 export_dynamic_flag_spec='${wl}-E'
16453
16454 # hardcode_minus_L: Not really in the search PATH,
16455 # but as the default location of the library.
16456 hardcode_minus_L=yes
16457 ;;
16458 esac
16459 fi
16460 ;;
16461
16462 irix5* | irix6* | nonstopux*)
16463 if test "$GCC" = yes; then
16464 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'
16465 # Try to use the -exported_symbol ld option, if it does not
16466 # work, assume that -exports_file does not work either and
16467 # implicitly export all symbols.
16468 save_LDFLAGS="$LDFLAGS"
16469 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 int foo(void) {}
16473 _ACEOF
16474 if ac_fn_c_try_link "$LINENO"; then :
16475 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'
16476
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext \
16479 conftest$ac_exeext conftest.$ac_ext
16480 LDFLAGS="$save_LDFLAGS"
16481 else
16482 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'
16483 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'
16484 fi
16485 archive_cmds_need_lc='no'
16486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16487 hardcode_libdir_separator=:
16488 inherit_rpath=yes
16489 link_all_deplibs=yes
16490 ;;
16491
16492 netbsd*)
16493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16495 else
16496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16497 fi
16498 hardcode_libdir_flag_spec='-R$libdir'
16499 hardcode_direct=yes
16500 hardcode_shlibpath_var=no
16501 ;;
16502
16503 newsos6)
16504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505 hardcode_direct=yes
16506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16507 hardcode_libdir_separator=:
16508 hardcode_shlibpath_var=no
16509 ;;
16510
16511 *nto* | *qnx*)
16512 ;;
16513
16514 openbsd*)
16515 if test -f /usr/libexec/ld.so; then
16516 hardcode_direct=yes
16517 hardcode_shlibpath_var=no
16518 hardcode_direct_absolute=yes
16519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16523 export_dynamic_flag_spec='${wl}-E'
16524 else
16525 case $host_os in
16526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_libdir_flag_spec='-R$libdir'
16529 ;;
16530 *)
16531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16533 ;;
16534 esac
16535 fi
16536 else
16537 ld_shlibs=no
16538 fi
16539 ;;
16540
16541 os2*)
16542 hardcode_libdir_flag_spec='-L$libdir'
16543 hardcode_minus_L=yes
16544 allow_undefined_flag=unsupported
16545 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'
16546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16547 ;;
16548
16549 osf3*)
16550 if test "$GCC" = yes; then
16551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16552 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'
16553 else
16554 allow_undefined_flag=' -expect_unresolved \*'
16555 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'
16556 fi
16557 archive_cmds_need_lc='no'
16558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator=:
16560 ;;
16561
16562 osf4* | osf5*) # as osf3* with the addition of -msym flag
16563 if test "$GCC" = yes; then
16564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16565 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'
16566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16567 else
16568 allow_undefined_flag=' -expect_unresolved \*'
16569 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'
16570 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~
16571 $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'
16572
16573 # Both c and cxx compiler support -rpath directly
16574 hardcode_libdir_flag_spec='-rpath $libdir'
16575 fi
16576 archive_cmds_need_lc='no'
16577 hardcode_libdir_separator=:
16578 ;;
16579
16580 solaris*)
16581 no_undefined_flag=' -z defs'
16582 if test "$GCC" = yes; then
16583 wlarc='${wl}'
16584 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16586 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16587 else
16588 case `$CC -V 2>&1` in
16589 *"Compilers 5.0"*)
16590 wlarc=''
16591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16594 ;;
16595 *)
16596 wlarc='${wl}'
16597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16600 ;;
16601 esac
16602 fi
16603 hardcode_libdir_flag_spec='-R$libdir'
16604 hardcode_shlibpath_var=no
16605 case $host_os in
16606 solaris2.[0-5] | solaris2.[0-5].*) ;;
16607 *)
16608 # The compiler driver will combine and reorder linker options,
16609 # but understands `-z linker_flag'. GCC discards it without `$wl',
16610 # but is careful enough not to reorder.
16611 # Supported since Solaris 2.6 (maybe 2.5.1?)
16612 if test "$GCC" = yes; then
16613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16614 else
16615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16616 fi
16617 ;;
16618 esac
16619 link_all_deplibs=yes
16620 ;;
16621
16622 sunos4*)
16623 if test "x$host_vendor" = xsequent; then
16624 # Use $CC to link under sequent, because it throws in some extra .o
16625 # files that make .init and .fini sections work.
16626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16627 else
16628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16629 fi
16630 hardcode_libdir_flag_spec='-L$libdir'
16631 hardcode_direct=yes
16632 hardcode_minus_L=yes
16633 hardcode_shlibpath_var=no
16634 ;;
16635
16636 sysv4)
16637 case $host_vendor in
16638 sni)
16639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640 hardcode_direct=yes # is this really true???
16641 ;;
16642 siemens)
16643 ## LD is ld it makes a PLAMLIB
16644 ## CC just makes a GrossModule.
16645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16646 reload_cmds='$CC -r -o $output$reload_objs'
16647 hardcode_direct=no
16648 ;;
16649 motorola)
16650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16652 ;;
16653 esac
16654 runpath_var='LD_RUN_PATH'
16655 hardcode_shlibpath_var=no
16656 ;;
16657
16658 sysv4.3*)
16659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16660 hardcode_shlibpath_var=no
16661 export_dynamic_flag_spec='-Bexport'
16662 ;;
16663
16664 sysv4*MP*)
16665 if test -d /usr/nec; then
16666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_shlibpath_var=no
16668 runpath_var=LD_RUN_PATH
16669 hardcode_runpath_var=yes
16670 ld_shlibs=yes
16671 fi
16672 ;;
16673
16674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16675 no_undefined_flag='${wl}-z,text'
16676 archive_cmds_need_lc=no
16677 hardcode_shlibpath_var=no
16678 runpath_var='LD_RUN_PATH'
16679
16680 if test "$GCC" = yes; then
16681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 else
16684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16686 fi
16687 ;;
16688
16689 sysv5* | sco3.2v5* | sco5v6*)
16690 # Note: We can NOT use -z defs as we might desire, because we do not
16691 # link with -lc, and that would cause any symbols used from libc to
16692 # always be unresolved, which means just about no library would
16693 # ever link correctly. If we're not using GNU ld we use -z text
16694 # though, which does catch some bad symbols but isn't as heavy-handed
16695 # as -z defs.
16696 no_undefined_flag='${wl}-z,text'
16697 allow_undefined_flag='${wl}-z,nodefs'
16698 archive_cmds_need_lc=no
16699 hardcode_shlibpath_var=no
16700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16701 hardcode_libdir_separator=':'
16702 link_all_deplibs=yes
16703 export_dynamic_flag_spec='${wl}-Bexport'
16704 runpath_var='LD_RUN_PATH'
16705
16706 if test "$GCC" = yes; then
16707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16709 else
16710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712 fi
16713 ;;
16714
16715 uts4*)
16716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec='-L$libdir'
16718 hardcode_shlibpath_var=no
16719 ;;
16720
16721 *)
16722 ld_shlibs=no
16723 ;;
16724 esac
16725
16726 if test x$host_vendor = xsni; then
16727 case $host in
16728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16729 export_dynamic_flag_spec='${wl}-Blargedynsym'
16730 ;;
16731 esac
16732 fi
16733 fi
16734
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16736 $as_echo "$ld_shlibs" >&6; }
16737 test "$ld_shlibs" = no && can_build_shared=no
16738
16739 with_gnu_ld=$with_gnu_ld
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755 #
16756 # Do we need to explicitly link libc?
16757 #
16758 case "x$archive_cmds_need_lc" in
16759 x|xyes)
16760 # Assume -lc should be added
16761 archive_cmds_need_lc=yes
16762
16763 if test "$enable_shared" = yes && test "$GCC" = yes; then
16764 case $archive_cmds in
16765 *'~'*)
16766 # FIXME: we may have to deal with multi-command sequences.
16767 ;;
16768 '$CC '*)
16769 # Test whether the compiler implicitly links with -lc since on some
16770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16771 # to ld, don't add -lc before -lgcc.
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16774 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 $RM conftest*
16778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16779
16780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16781 (eval $ac_compile) 2>&5
16782 ac_status=$?
16783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16784 test $ac_status = 0; } 2>conftest.err; then
16785 soname=conftest
16786 lib=conftest
16787 libobjs=conftest.$ac_objext
16788 deplibs=
16789 wl=$lt_prog_compiler_wl
16790 pic_flag=$lt_prog_compiler_pic
16791 compiler_flags=-v
16792 linker_flags=-v
16793 verstring=
16794 output_objdir=.
16795 libname=conftest
16796 lt_save_allow_undefined_flag=$allow_undefined_flag
16797 allow_undefined_flag=
16798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16800 ac_status=$?
16801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16802 test $ac_status = 0; }
16803 then
16804 lt_cv_archive_cmds_need_lc=no
16805 else
16806 lt_cv_archive_cmds_need_lc=yes
16807 fi
16808 allow_undefined_flag=$lt_save_allow_undefined_flag
16809 else
16810 cat conftest.err 1>&5
16811 fi
16812 $RM conftest*
16813
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16816 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16818 ;;
16819 esac
16820 fi
16821 ;;
16822 esac
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16981 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16982
16983 if test "$GCC" = yes; then
16984 case $host_os in
16985 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16986 *) lt_awk_arg="/^libraries:/" ;;
16987 esac
16988 case $host_os in
16989 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16990 *) lt_sed_strip_eq="s,=/,/,g" ;;
16991 esac
16992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16993 case $lt_search_path_spec in
16994 *\;*)
16995 # if the path contains ";" then we assume it to be the separator
16996 # otherwise default to the standard path separator (i.e. ":") - it is
16997 # assumed that no part of a normal pathname contains ";" but that should
16998 # okay in the real world where ";" in dirpaths is itself problematic.
16999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17000 ;;
17001 *)
17002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17003 ;;
17004 esac
17005 # Ok, now we have the path, separated by spaces, we can step through it
17006 # and add multilib dir if necessary.
17007 lt_tmp_lt_search_path_spec=
17008 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17009 for lt_sys_path in $lt_search_path_spec; do
17010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17012 else
17013 test -d "$lt_sys_path" && \
17014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17015 fi
17016 done
17017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17018 BEGIN {RS=" "; FS="/|\n";} {
17019 lt_foo="";
17020 lt_count=0;
17021 for (lt_i = NF; lt_i > 0; lt_i--) {
17022 if ($lt_i != "" && $lt_i != ".") {
17023 if ($lt_i == "..") {
17024 lt_count++;
17025 } else {
17026 if (lt_count == 0) {
17027 lt_foo="/" $lt_i lt_foo;
17028 } else {
17029 lt_count--;
17030 }
17031 }
17032 }
17033 }
17034 if (lt_foo != "") { lt_freq[lt_foo]++; }
17035 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17036 }'`
17037 # AWK program above erroneously prepends '/' to C:/dos/paths
17038 # for these hosts.
17039 case $host_os in
17040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17041 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17042 esac
17043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17044 else
17045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17046 fi
17047 library_names_spec=
17048 libname_spec='lib$name'
17049 soname_spec=
17050 shrext_cmds=".so"
17051 postinstall_cmds=
17052 postuninstall_cmds=
17053 finish_cmds=
17054 finish_eval=
17055 shlibpath_var=
17056 shlibpath_overrides_runpath=unknown
17057 version_type=none
17058 dynamic_linker="$host_os ld.so"
17059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17060 need_lib_prefix=unknown
17061 hardcode_into_libs=no
17062
17063 # when you set need_version to no, make sure it does not cause -set_version
17064 # flags to be left without arguments
17065 need_version=unknown
17066
17067 case $host_os in
17068 aix3*)
17069 version_type=linux
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17071 shlibpath_var=LIBPATH
17072
17073 # AIX 3 has no versioning support, so we append a major version to the name.
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 ;;
17076
17077 aix[4-9]*)
17078 version_type=linux
17079 need_lib_prefix=no
17080 need_version=no
17081 hardcode_into_libs=yes
17082 if test "$host_cpu" = ia64; then
17083 # AIX 5 supports IA64
17084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 else
17087 # With GCC up to 2.95.x, collect2 would create an import file
17088 # for dependence libraries. The import file would start with
17089 # the line `#! .'. This would cause the generated library to
17090 # depend on `.', always an invalid library. This was fixed in
17091 # development snapshots of GCC prior to 3.0.
17092 case $host_os in
17093 aix4 | aix4.[01] | aix4.[01].*)
17094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17095 echo ' yes '
17096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17097 :
17098 else
17099 can_build_shared=no
17100 fi
17101 ;;
17102 esac
17103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17104 # soname into executable. Probably we can add versioning support to
17105 # collect2, so additional links can be useful in future.
17106 if test "$aix_use_runtimelinking" = yes; then
17107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17108 # instead of lib<name>.a to let people know that these are not
17109 # typical AIX shared libraries.
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 else
17112 # We preserve .a as extension for shared libraries through AIX4.2
17113 # and later when we are not doing run time linking.
17114 library_names_spec='${libname}${release}.a $libname.a'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 fi
17117 shlibpath_var=LIBPATH
17118 fi
17119 ;;
17120
17121 amigaos*)
17122 case $host_cpu in
17123 powerpc)
17124 # Since July 2007 AmigaOS4 officially supports .so libraries.
17125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 ;;
17128 m68k)
17129 library_names_spec='$libname.ixlibrary $libname.a'
17130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17131 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'
17132 ;;
17133 esac
17134 ;;
17135
17136 beos*)
17137 library_names_spec='${libname}${shared_ext}'
17138 dynamic_linker="$host_os ld.so"
17139 shlibpath_var=LIBRARY_PATH
17140 ;;
17141
17142 bsdi[45]*)
17143 version_type=linux
17144 need_version=no
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17151 # the default ld.so.conf also contains /usr/contrib/lib and
17152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17153 # libtool to hard-code these into programs
17154 ;;
17155
17156 cygwin* | mingw* | pw32* | cegcc*)
17157 version_type=windows
17158 shrext_cmds=".dll"
17159 need_version=no
17160 need_lib_prefix=no
17161
17162 case $GCC,$host_os in
17163 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17164 library_names_spec='$libname.dll.a'
17165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17166 postinstall_cmds='base_file=`basename \${file}`~
17167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17168 dldir=$destdir/`dirname \$dlpath`~
17169 test -d \$dldir || mkdir -p \$dldir~
17170 $install_prog $dir/$dlname \$dldir/$dlname~
17171 chmod a+x \$dldir/$dlname~
17172 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17173 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17174 fi'
17175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17176 dlpath=$dir/\$dldll~
17177 $RM \$dlpath'
17178 shlibpath_overrides_runpath=yes
17179
17180 case $host_os in
17181 cygwin*)
17182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184
17185 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17186 ;;
17187 mingw* | cegcc*)
17188 # MinGW DLLs use traditional 'lib' prefix
17189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17190 ;;
17191 pw32*)
17192 # pw32 DLLs use 'pw' prefix rather than 'lib'
17193 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17194 ;;
17195 esac
17196 ;;
17197
17198 *)
17199 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17200 ;;
17201 esac
17202 dynamic_linker='Win32 ld.exe'
17203 # FIXME: first we should search . and the directory the executable is in
17204 shlibpath_var=PATH
17205 ;;
17206
17207 darwin* | rhapsody*)
17208 dynamic_linker="$host_os dyld"
17209 version_type=darwin
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17213 soname_spec='${libname}${release}${major}$shared_ext'
17214 shlibpath_overrides_runpath=yes
17215 shlibpath_var=DYLD_LIBRARY_PATH
17216 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17217
17218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17220 ;;
17221
17222 dgux*)
17223 version_type=linux
17224 need_lib_prefix=no
17225 need_version=no
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 ;;
17230
17231 freebsd* | dragonfly*)
17232 # DragonFly does not have aout. When/if they implement a new
17233 # versioning mechanism, adjust this.
17234 if test -x /usr/bin/objformat; then
17235 objformat=`/usr/bin/objformat`
17236 else
17237 case $host_os in
17238 freebsd[123]*) objformat=aout ;;
17239 *) objformat=elf ;;
17240 esac
17241 fi
17242 version_type=freebsd-$objformat
17243 case $version_type in
17244 freebsd-elf*)
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17246 need_version=no
17247 need_lib_prefix=no
17248 ;;
17249 freebsd-*)
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17251 need_version=yes
17252 ;;
17253 esac
17254 shlibpath_var=LD_LIBRARY_PATH
17255 case $host_os in
17256 freebsd2*)
17257 shlibpath_overrides_runpath=yes
17258 ;;
17259 freebsd3.[01]* | freebsdelf3.[01]*)
17260 shlibpath_overrides_runpath=yes
17261 hardcode_into_libs=yes
17262 ;;
17263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17265 shlibpath_overrides_runpath=no
17266 hardcode_into_libs=yes
17267 ;;
17268 *) # from 4.6 on, and DragonFly
17269 shlibpath_overrides_runpath=yes
17270 hardcode_into_libs=yes
17271 ;;
17272 esac
17273 ;;
17274
17275 gnu*)
17276 version_type=linux
17277 need_lib_prefix=no
17278 need_version=no
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 hardcode_into_libs=yes
17283 ;;
17284
17285 haiku*)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 dynamic_linker="$host_os runtime_loader"
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 shlibpath_var=LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17294 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17295 hardcode_into_libs=yes
17296 ;;
17297
17298 hpux9* | hpux10* | hpux11*)
17299 # Give a soname corresponding to the major version so that dld.sl refuses to
17300 # link against other versions.
17301 version_type=sunos
17302 need_lib_prefix=no
17303 need_version=no
17304 case $host_cpu in
17305 ia64*)
17306 shrext_cmds='.so'
17307 hardcode_into_libs=yes
17308 dynamic_linker="$host_os dld.so"
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 if test "X$HPUX_IA64_MODE" = X32; then
17314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17315 else
17316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17317 fi
17318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17319 ;;
17320 hppa*64*)
17321 shrext_cmds='.sl'
17322 hardcode_into_libs=yes
17323 dynamic_linker="$host_os dld.sl"
17324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 soname_spec='${libname}${release}${shared_ext}$major'
17328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17330 ;;
17331 *)
17332 shrext_cmds='.sl'
17333 dynamic_linker="$host_os dld.sl"
17334 shlibpath_var=SHLIB_PATH
17335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 ;;
17339 esac
17340 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17341 postinstall_cmds='chmod 555 $lib'
17342 # or fails outright, so override atomically:
17343 install_override_mode=555
17344 ;;
17345
17346 interix[3-9]*)
17347 version_type=linux
17348 need_lib_prefix=no
17349 need_version=no
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=no
17355 hardcode_into_libs=yes
17356 ;;
17357
17358 irix5* | irix6* | nonstopux*)
17359 case $host_os in
17360 nonstopux*) version_type=nonstopux ;;
17361 *)
17362 if test "$lt_cv_prog_gnu_ld" = yes; then
17363 version_type=linux
17364 else
17365 version_type=irix
17366 fi ;;
17367 esac
17368 need_lib_prefix=no
17369 need_version=no
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17372 case $host_os in
17373 irix5* | nonstopux*)
17374 libsuff= shlibsuff=
17375 ;;
17376 *)
17377 case $LD in # libtool.m4 will add one of these switches to LD
17378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17379 libsuff= shlibsuff= libmagic=32-bit;;
17380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17381 libsuff=32 shlibsuff=N32 libmagic=N32;;
17382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17384 *) libsuff= shlibsuff= libmagic=never-match;;
17385 esac
17386 ;;
17387 esac
17388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17389 shlibpath_overrides_runpath=no
17390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17392 hardcode_into_libs=yes
17393 ;;
17394
17395 # No shared lib support for Linux oldld, aout, or coff.
17396 linux*oldld* | linux*aout* | linux*coff*)
17397 dynamic_linker=no
17398 ;;
17399
17400 # This must be Linux ELF.
17401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17402 version_type=linux
17403 need_lib_prefix=no
17404 need_version=no
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=no
17410
17411 # Some binutils ld are patched to set DT_RUNPATH
17412 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17413 $as_echo_n "(cached) " >&6
17414 else
17415 lt_cv_shlibpath_overrides_runpath=no
17416 save_LDFLAGS=$LDFLAGS
17417 save_libdir=$libdir
17418 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17419 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17422
17423 int
17424 main ()
17425 {
17426
17427 ;
17428 return 0;
17429 }
17430 _ACEOF
17431 if ac_fn_c_try_link "$LINENO"; then :
17432 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17433 lt_cv_shlibpath_overrides_runpath=yes
17434 fi
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
17438 LDFLAGS=$save_LDFLAGS
17439 libdir=$save_libdir
17440
17441 fi
17442
17443 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17444
17445 # This implies no fast_install, which is unacceptable.
17446 # Some rework will be needed to allow for fast_install
17447 # before this can be enabled.
17448 hardcode_into_libs=yes
17449
17450 # Append ld.so.conf contents to the search path
17451 if test -f /etc/ld.so.conf; then
17452 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' ' '`
17453 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17454 fi
17455
17456 # We used to test for /lib/ld.so.1 and disable shared libraries on
17457 # powerpc, because MkLinux only supported shared libraries with the
17458 # GNU dynamic linker. Since this was broken with cross compilers,
17459 # most powerpc-linux boxes support dynamic linking these days and
17460 # people can always --disable-shared, the test was removed, and we
17461 # assume the GNU/Linux dynamic linker is in use.
17462 dynamic_linker='GNU/Linux ld.so'
17463 ;;
17464
17465 netbsd*)
17466 version_type=sunos
17467 need_lib_prefix=no
17468 need_version=no
17469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17472 dynamic_linker='NetBSD (a.out) ld.so'
17473 else
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 dynamic_linker='NetBSD ld.elf_so'
17477 fi
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=yes
17480 hardcode_into_libs=yes
17481 ;;
17482
17483 newsos6)
17484 version_type=linux
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 shlibpath_overrides_runpath=yes
17488 ;;
17489
17490 *nto* | *qnx*)
17491 version_type=qnx
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath=no
17498 hardcode_into_libs=yes
17499 dynamic_linker='ldqnx.so'
17500 ;;
17501
17502 openbsd*)
17503 version_type=sunos
17504 sys_lib_dlsearch_path_spec="/usr/lib"
17505 need_lib_prefix=no
17506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17507 case $host_os in
17508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17509 *) need_version=no ;;
17510 esac
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17515 case $host_os in
17516 openbsd2.[89] | openbsd2.[89].*)
17517 shlibpath_overrides_runpath=no
17518 ;;
17519 *)
17520 shlibpath_overrides_runpath=yes
17521 ;;
17522 esac
17523 else
17524 shlibpath_overrides_runpath=yes
17525 fi
17526 ;;
17527
17528 os2*)
17529 libname_spec='$name'
17530 shrext_cmds=".dll"
17531 need_lib_prefix=no
17532 library_names_spec='$libname${shared_ext} $libname.a'
17533 dynamic_linker='OS/2 ld.exe'
17534 shlibpath_var=LIBPATH
17535 ;;
17536
17537 osf3* | osf4* | osf5*)
17538 version_type=osf
17539 need_lib_prefix=no
17540 need_version=no
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17546 ;;
17547
17548 rdos*)
17549 dynamic_linker=no
17550 ;;
17551
17552 solaris*)
17553 version_type=linux
17554 need_lib_prefix=no
17555 need_version=no
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=yes
17560 hardcode_into_libs=yes
17561 # ldd complains unless libraries are executable
17562 postinstall_cmds='chmod +x $lib'
17563 ;;
17564
17565 sunos4*)
17566 version_type=sunos
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17569 shlibpath_var=LD_LIBRARY_PATH
17570 shlibpath_overrides_runpath=yes
17571 if test "$with_gnu_ld" = yes; then
17572 need_lib_prefix=no
17573 fi
17574 need_version=yes
17575 ;;
17576
17577 sysv4 | sysv4.3*)
17578 version_type=linux
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 case $host_vendor in
17583 sni)
17584 shlibpath_overrides_runpath=no
17585 need_lib_prefix=no
17586 runpath_var=LD_RUN_PATH
17587 ;;
17588 siemens)
17589 need_lib_prefix=no
17590 ;;
17591 motorola)
17592 need_lib_prefix=no
17593 need_version=no
17594 shlibpath_overrides_runpath=no
17595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17596 ;;
17597 esac
17598 ;;
17599
17600 sysv4*MP*)
17601 if test -d /usr/nec ;then
17602 version_type=linux
17603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17604 soname_spec='$libname${shared_ext}.$major'
17605 shlibpath_var=LD_LIBRARY_PATH
17606 fi
17607 ;;
17608
17609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17610 version_type=freebsd-elf
17611 need_lib_prefix=no
17612 need_version=no
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath=yes
17617 hardcode_into_libs=yes
17618 if test "$with_gnu_ld" = yes; then
17619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17620 else
17621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17622 case $host_os in
17623 sco3.2v5*)
17624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17625 ;;
17626 esac
17627 fi
17628 sys_lib_dlsearch_path_spec='/usr/lib'
17629 ;;
17630
17631 tpf*)
17632 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17633 version_type=linux
17634 need_lib_prefix=no
17635 need_version=no
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath=no
17639 hardcode_into_libs=yes
17640 ;;
17641
17642 uts4*)
17643 version_type=linux
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 ;;
17648
17649 *)
17650 dynamic_linker=no
17651 ;;
17652 esac
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17654 $as_echo "$dynamic_linker" >&6; }
17655 test "$dynamic_linker" = no && can_build_shared=no
17656
17657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17658 if test "$GCC" = yes; then
17659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17660 fi
17661
17662 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17663 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17664 fi
17665 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17666 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17667 fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17762 hardcode_action=
17763 if test -n "$hardcode_libdir_flag_spec" ||
17764 test -n "$runpath_var" ||
17765 test "X$hardcode_automatic" = "Xyes" ; then
17766
17767 # We can hardcode non-existent directories.
17768 if test "$hardcode_direct" != no &&
17769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17770 # have to relink, otherwise we might link with an installed library
17771 # when we should be linking with a yet-to-be-installed one
17772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17773 test "$hardcode_minus_L" != no; then
17774 # Linking always hardcodes the temporary library directory.
17775 hardcode_action=relink
17776 else
17777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17778 hardcode_action=immediate
17779 fi
17780 else
17781 # We cannot hardcode anything, or else we can only hardcode existing
17782 # directories.
17783 hardcode_action=unsupported
17784 fi
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17786 $as_echo "$hardcode_action" >&6; }
17787
17788 if test "$hardcode_action" = relink ||
17789 test "$inherit_rpath" = yes; then
17790 # Fast installation is not supported
17791 enable_fast_install=no
17792 elif test "$shlibpath_overrides_runpath" = yes ||
17793 test "$enable_shared" = no; then
17794 # Fast installation is not necessary
17795 enable_fast_install=needless
17796 fi
17797
17798
17799
17800
17801
17802
17803 if test "x$enable_dlopen" != xyes; then
17804 enable_dlopen=unknown
17805 enable_dlopen_self=unknown
17806 enable_dlopen_self_static=unknown
17807 else
17808 lt_cv_dlopen=no
17809 lt_cv_dlopen_libs=
17810
17811 case $host_os in
17812 beos*)
17813 lt_cv_dlopen="load_add_on"
17814 lt_cv_dlopen_libs=
17815 lt_cv_dlopen_self=yes
17816 ;;
17817
17818 mingw* | pw32* | cegcc*)
17819 lt_cv_dlopen="LoadLibrary"
17820 lt_cv_dlopen_libs=
17821 ;;
17822
17823 cygwin*)
17824 lt_cv_dlopen="dlopen"
17825 lt_cv_dlopen_libs=
17826 ;;
17827
17828 darwin*)
17829 # if libdl is installed we need to link against it
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17834 else
17835 ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-ldl $LIBS"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char dlopen ();
17847 int
17848 main ()
17849 {
17850 return dlopen ();
17851 ;
17852 return 0;
17853 }
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"; then :
17856 ac_cv_lib_dl_dlopen=yes
17857 else
17858 ac_cv_lib_dl_dlopen=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17866 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17868 else
17869
17870 lt_cv_dlopen="dyld"
17871 lt_cv_dlopen_libs=
17872 lt_cv_dlopen_self=yes
17873
17874 fi
17875
17876 ;;
17877
17878 *)
17879 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17880 if test "x$ac_cv_func_shl_load" = x""yes; then :
17881 lt_cv_dlopen="shl_load"
17882 else
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17884 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 ac_check_lib_save_LIBS=$LIBS
17889 LIBS="-ldld $LIBS"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 char shl_load ();
17900 int
17901 main ()
17902 {
17903 return shl_load ();
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 if ac_fn_c_try_link "$LINENO"; then :
17909 ac_cv_lib_dld_shl_load=yes
17910 else
17911 ac_cv_lib_dld_shl_load=no
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17916 fi
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17918 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17919 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17921 else
17922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17923 if test "x$ac_cv_func_dlopen" = x""yes; then :
17924 lt_cv_dlopen="dlopen"
17925 else
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 ac_check_lib_save_LIBS=$LIBS
17932 LIBS="-ldl $LIBS"
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17939 #ifdef __cplusplus
17940 extern "C"
17941 #endif
17942 char dlopen ();
17943 int
17944 main ()
17945 {
17946 return dlopen ();
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 if ac_fn_c_try_link "$LINENO"; then :
17952 ac_cv_lib_dl_dlopen=yes
17953 else
17954 ac_cv_lib_dl_dlopen=no
17955 fi
17956 rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17959 fi
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17962 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17964 else
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970 ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-lsvld $LIBS"
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978 #ifdef __cplusplus
17979 extern "C"
17980 #endif
17981 char dlopen ();
17982 int
17983 main ()
17984 {
17985 return dlopen ();
17986 ;
17987 return 0;
17988 }
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17991 ac_cv_lib_svld_dlopen=yes
17992 else
17993 ac_cv_lib_svld_dlopen=no
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 LIBS=$ac_check_lib_save_LIBS
17998 fi
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18000 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18001 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18003 else
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18005 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18006 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18008 else
18009 ac_check_lib_save_LIBS=$LIBS
18010 LIBS="-ldld $LIBS"
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 /* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18017 #ifdef __cplusplus
18018 extern "C"
18019 #endif
18020 char dld_link ();
18021 int
18022 main ()
18023 {
18024 return dld_link ();
18025 ;
18026 return 0;
18027 }
18028 _ACEOF
18029 if ac_fn_c_try_link "$LINENO"; then :
18030 ac_cv_lib_dld_dld_link=yes
18031 else
18032 ac_cv_lib_dld_dld_link=no
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 LIBS=$ac_check_lib_save_LIBS
18037 fi
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18039 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18040 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18041 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18042 fi
18043
18044
18045 fi
18046
18047
18048 fi
18049
18050
18051 fi
18052
18053
18054 fi
18055
18056
18057 fi
18058
18059 ;;
18060 esac
18061
18062 if test "x$lt_cv_dlopen" != xno; then
18063 enable_dlopen=yes
18064 else
18065 enable_dlopen=no
18066 fi
18067
18068 case $lt_cv_dlopen in
18069 dlopen)
18070 save_CPPFLAGS="$CPPFLAGS"
18071 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18072
18073 save_LDFLAGS="$LDFLAGS"
18074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18075
18076 save_LIBS="$LIBS"
18077 LIBS="$lt_cv_dlopen_libs $LIBS"
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18080 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18081 if test "${lt_cv_dlopen_self+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 if test "$cross_compiling" = yes; then :
18085 lt_cv_dlopen_self=cross
18086 else
18087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18088 lt_status=$lt_dlunknown
18089 cat > conftest.$ac_ext <<_LT_EOF
18090 #line 18090 "configure"
18091 #include "confdefs.h"
18092
18093 #if HAVE_DLFCN_H
18094 #include <dlfcn.h>
18095 #endif
18096
18097 #include <stdio.h>
18098
18099 #ifdef RTLD_GLOBAL
18100 # define LT_DLGLOBAL RTLD_GLOBAL
18101 #else
18102 # ifdef DL_GLOBAL
18103 # define LT_DLGLOBAL DL_GLOBAL
18104 # else
18105 # define LT_DLGLOBAL 0
18106 # endif
18107 #endif
18108
18109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18110 find out it does not work in some platform. */
18111 #ifndef LT_DLLAZY_OR_NOW
18112 # ifdef RTLD_LAZY
18113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18114 # else
18115 # ifdef DL_LAZY
18116 # define LT_DLLAZY_OR_NOW DL_LAZY
18117 # else
18118 # ifdef RTLD_NOW
18119 # define LT_DLLAZY_OR_NOW RTLD_NOW
18120 # else
18121 # ifdef DL_NOW
18122 # define LT_DLLAZY_OR_NOW DL_NOW
18123 # else
18124 # define LT_DLLAZY_OR_NOW 0
18125 # endif
18126 # endif
18127 # endif
18128 # endif
18129 #endif
18130
18131 /* When -fvisbility=hidden is used, assume the code has been annotated
18132 correspondingly for the symbols needed. */
18133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18134 void fnord () __attribute__((visibility("default")));
18135 #endif
18136
18137 void fnord () { int i=42; }
18138 int main ()
18139 {
18140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18141 int status = $lt_dlunknown;
18142
18143 if (self)
18144 {
18145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18146 else
18147 {
18148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18149 else puts (dlerror ());
18150 }
18151 /* dlclose (self); */
18152 }
18153 else
18154 puts (dlerror ());
18155
18156 return status;
18157 }
18158 _LT_EOF
18159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18160 (eval $ac_link) 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18164 (./conftest; exit; ) >&5 2>/dev/null
18165 lt_status=$?
18166 case x$lt_status in
18167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18170 esac
18171 else :
18172 # compilation failed
18173 lt_cv_dlopen_self=no
18174 fi
18175 fi
18176 rm -fr conftest*
18177
18178
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18181 $as_echo "$lt_cv_dlopen_self" >&6; }
18182
18183 if test "x$lt_cv_dlopen_self" = xyes; then
18184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18186 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18187 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 if test "$cross_compiling" = yes; then :
18191 lt_cv_dlopen_self_static=cross
18192 else
18193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18194 lt_status=$lt_dlunknown
18195 cat > conftest.$ac_ext <<_LT_EOF
18196 #line 18196 "configure"
18197 #include "confdefs.h"
18198
18199 #if HAVE_DLFCN_H
18200 #include <dlfcn.h>
18201 #endif
18202
18203 #include <stdio.h>
18204
18205 #ifdef RTLD_GLOBAL
18206 # define LT_DLGLOBAL RTLD_GLOBAL
18207 #else
18208 # ifdef DL_GLOBAL
18209 # define LT_DLGLOBAL DL_GLOBAL
18210 # else
18211 # define LT_DLGLOBAL 0
18212 # endif
18213 #endif
18214
18215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18216 find out it does not work in some platform. */
18217 #ifndef LT_DLLAZY_OR_NOW
18218 # ifdef RTLD_LAZY
18219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18220 # else
18221 # ifdef DL_LAZY
18222 # define LT_DLLAZY_OR_NOW DL_LAZY
18223 # else
18224 # ifdef RTLD_NOW
18225 # define LT_DLLAZY_OR_NOW RTLD_NOW
18226 # else
18227 # ifdef DL_NOW
18228 # define LT_DLLAZY_OR_NOW DL_NOW
18229 # else
18230 # define LT_DLLAZY_OR_NOW 0
18231 # endif
18232 # endif
18233 # endif
18234 # endif
18235 #endif
18236
18237 /* When -fvisbility=hidden is used, assume the code has been annotated
18238 correspondingly for the symbols needed. */
18239 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18240 void fnord () __attribute__((visibility("default")));
18241 #endif
18242
18243 void fnord () { int i=42; }
18244 int main ()
18245 {
18246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18247 int status = $lt_dlunknown;
18248
18249 if (self)
18250 {
18251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18252 else
18253 {
18254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18255 else puts (dlerror ());
18256 }
18257 /* dlclose (self); */
18258 }
18259 else
18260 puts (dlerror ());
18261
18262 return status;
18263 }
18264 _LT_EOF
18265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18266 (eval $ac_link) 2>&5
18267 ac_status=$?
18268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18269 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18270 (./conftest; exit; ) >&5 2>/dev/null
18271 lt_status=$?
18272 case x$lt_status in
18273 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18274 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18275 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18276 esac
18277 else :
18278 # compilation failed
18279 lt_cv_dlopen_self_static=no
18280 fi
18281 fi
18282 rm -fr conftest*
18283
18284
18285 fi
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18287 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18288 fi
18289
18290 CPPFLAGS="$save_CPPFLAGS"
18291 LDFLAGS="$save_LDFLAGS"
18292 LIBS="$save_LIBS"
18293 ;;
18294 esac
18295
18296 case $lt_cv_dlopen_self in
18297 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18298 *) enable_dlopen_self=unknown ;;
18299 esac
18300
18301 case $lt_cv_dlopen_self_static in
18302 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18303 *) enable_dlopen_self_static=unknown ;;
18304 esac
18305 fi
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323 striplib=
18324 old_striplib=
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18326 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18327 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332 else
18333 # FIXME - insert some real tests, host_os isn't really good enough
18334 case $host_os in
18335 darwin*)
18336 if test -n "$STRIP" ; then
18337 striplib="$STRIP -x"
18338 old_striplib="$STRIP -S"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18340 $as_echo "yes" >&6; }
18341 else
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344 fi
18345 ;;
18346 *)
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 ;;
18350 esac
18351 fi
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364 # Report which library types will actually be built
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18366 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18368 $as_echo "$can_build_shared" >&6; }
18369
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18371 $as_echo_n "checking whether to build shared libraries... " >&6; }
18372 test "$can_build_shared" = "no" && enable_shared=no
18373
18374 # On AIX, shared libraries and static libraries use the same namespace, and
18375 # are all built from PIC.
18376 case $host_os in
18377 aix3*)
18378 test "$enable_shared" = yes && enable_static=no
18379 if test -n "$RANLIB"; then
18380 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18381 postinstall_cmds='$RANLIB $lib'
18382 fi
18383 ;;
18384
18385 aix[4-9]*)
18386 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18387 test "$enable_shared" = yes && enable_static=no
18388 fi
18389 ;;
18390 esac
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18392 $as_echo "$enable_shared" >&6; }
18393
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18395 $as_echo_n "checking whether to build static libraries... " >&6; }
18396 # Make sure either enable_shared or enable_static is yes.
18397 test "$enable_shared" = yes || enable_static=yes
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18399 $as_echo "$enable_static" >&6; }
18400
18401
18402
18403
18404 fi
18405 ac_ext=c
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411 CC="$lt_save_CC"
18412
18413 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18414 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18415 (test "X$CXX" != "Xg++"))) ; then
18416 ac_ext=cpp
18417 ac_cpp='$CXXCPP $CPPFLAGS'
18418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18422 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18423 if test -z "$CXXCPP"; then
18424 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18426 else
18427 # Double quotes because CXXCPP needs to be expanded
18428 for CXXCPP in "$CXX -E" "/lib/cpp"
18429 do
18430 ac_preproc_ok=false
18431 for ac_cxx_preproc_warn_flag in '' yes
18432 do
18433 # Use a header file that comes with gcc, so configuring glibc
18434 # with a fresh cross-compiler works.
18435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436 # <limits.h> exists even on freestanding compilers.
18437 # On the NeXT, cc -E runs the code through the compiler's parser,
18438 # not just through cpp. "Syntax error" is here to catch this case.
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441 #ifdef __STDC__
18442 # include <limits.h>
18443 #else
18444 # include <assert.h>
18445 #endif
18446 Syntax error
18447 _ACEOF
18448 if ac_fn_cxx_try_cpp "$LINENO"; then :
18449
18450 else
18451 # Broken: fails on valid input.
18452 continue
18453 fi
18454 rm -f conftest.err conftest.$ac_ext
18455
18456 # OK, works on sane cases. Now check whether nonexistent headers
18457 # can be detected and how.
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460 #include <ac_nonexistent.h>
18461 _ACEOF
18462 if ac_fn_cxx_try_cpp "$LINENO"; then :
18463 # Broken: success on invalid input.
18464 continue
18465 else
18466 # Passes both tests.
18467 ac_preproc_ok=:
18468 break
18469 fi
18470 rm -f conftest.err conftest.$ac_ext
18471
18472 done
18473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18474 rm -f conftest.err conftest.$ac_ext
18475 if $ac_preproc_ok; then :
18476 break
18477 fi
18478
18479 done
18480 ac_cv_prog_CXXCPP=$CXXCPP
18481
18482 fi
18483 CXXCPP=$ac_cv_prog_CXXCPP
18484 else
18485 ac_cv_prog_CXXCPP=$CXXCPP
18486 fi
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18488 $as_echo "$CXXCPP" >&6; }
18489 ac_preproc_ok=false
18490 for ac_cxx_preproc_warn_flag in '' yes
18491 do
18492 # Use a header file that comes with gcc, so configuring glibc
18493 # with a fresh cross-compiler works.
18494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 # <limits.h> exists even on freestanding compilers.
18496 # On the NeXT, cc -E runs the code through the compiler's parser,
18497 # not just through cpp. "Syntax error" is here to catch this case.
18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500 #ifdef __STDC__
18501 # include <limits.h>
18502 #else
18503 # include <assert.h>
18504 #endif
18505 Syntax error
18506 _ACEOF
18507 if ac_fn_cxx_try_cpp "$LINENO"; then :
18508
18509 else
18510 # Broken: fails on valid input.
18511 continue
18512 fi
18513 rm -f conftest.err conftest.$ac_ext
18514
18515 # OK, works on sane cases. Now check whether nonexistent headers
18516 # can be detected and how.
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <ac_nonexistent.h>
18520 _ACEOF
18521 if ac_fn_cxx_try_cpp "$LINENO"; then :
18522 # Broken: success on invalid input.
18523 continue
18524 else
18525 # Passes both tests.
18526 ac_preproc_ok=:
18527 break
18528 fi
18529 rm -f conftest.err conftest.$ac_ext
18530
18531 done
18532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18533 rm -f conftest.err conftest.$ac_ext
18534 if $ac_preproc_ok; then :
18535
18536 else
18537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18539 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18540 See \`config.log' for more details." "$LINENO" 5; }
18541 fi
18542
18543 ac_ext=c
18544 ac_cpp='$CPP $CPPFLAGS'
18545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548
18549 else
18550 _lt_caught_CXX_error=yes
18551 fi
18552
18553 ac_ext=cpp
18554 ac_cpp='$CXXCPP $CPPFLAGS'
18555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18558
18559 archive_cmds_need_lc_CXX=no
18560 allow_undefined_flag_CXX=
18561 always_export_symbols_CXX=no
18562 archive_expsym_cmds_CXX=
18563 compiler_needs_object_CXX=no
18564 export_dynamic_flag_spec_CXX=
18565 hardcode_direct_CXX=no
18566 hardcode_direct_absolute_CXX=no
18567 hardcode_libdir_flag_spec_CXX=
18568 hardcode_libdir_flag_spec_ld_CXX=
18569 hardcode_libdir_separator_CXX=
18570 hardcode_minus_L_CXX=no
18571 hardcode_shlibpath_var_CXX=unsupported
18572 hardcode_automatic_CXX=no
18573 inherit_rpath_CXX=no
18574 module_cmds_CXX=
18575 module_expsym_cmds_CXX=
18576 link_all_deplibs_CXX=unknown
18577 old_archive_cmds_CXX=$old_archive_cmds
18578 reload_flag_CXX=$reload_flag
18579 reload_cmds_CXX=$reload_cmds
18580 no_undefined_flag_CXX=
18581 whole_archive_flag_spec_CXX=
18582 enable_shared_with_static_runtimes_CXX=no
18583
18584 # Source file extension for C++ test sources.
18585 ac_ext=cpp
18586
18587 # Object file extension for compiled C++ test sources.
18588 objext=o
18589 objext_CXX=$objext
18590
18591 # No sense in running all these tests if we already determined that
18592 # the CXX compiler isn't working. Some variables (like enable_shared)
18593 # are currently assumed to apply to all compilers on this platform,
18594 # and will be corrupted by setting them based on a non-working compiler.
18595 if test "$_lt_caught_CXX_error" != yes; then
18596 # Code to be used in simple compile tests
18597 lt_simple_compile_test_code="int some_variable = 0;"
18598
18599 # Code to be used in simple link tests
18600 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18601
18602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18603
18604
18605
18606
18607
18608
18609 # If no C compiler was specified, use CC.
18610 LTCC=${LTCC-"$CC"}
18611
18612 # If no C compiler flags were specified, use CFLAGS.
18613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18614
18615 # Allow CC to be a program name with arguments.
18616 compiler=$CC
18617
18618
18619 # save warnings/boilerplate of simple test code
18620 ac_outfile=conftest.$ac_objext
18621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18623 _lt_compiler_boilerplate=`cat conftest.err`
18624 $RM conftest*
18625
18626 ac_outfile=conftest.$ac_objext
18627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18629 _lt_linker_boilerplate=`cat conftest.err`
18630 $RM -r conftest*
18631
18632
18633 # Allow CC to be a program name with arguments.
18634 lt_save_CC=$CC
18635 lt_save_LD=$LD
18636 lt_save_GCC=$GCC
18637 GCC=$GXX
18638 lt_save_with_gnu_ld=$with_gnu_ld
18639 lt_save_path_LD=$lt_cv_path_LD
18640 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18641 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18642 else
18643 $as_unset lt_cv_prog_gnu_ld
18644 fi
18645 if test -n "${lt_cv_path_LDCXX+set}"; then
18646 lt_cv_path_LD=$lt_cv_path_LDCXX
18647 else
18648 $as_unset lt_cv_path_LD
18649 fi
18650 test -z "${LDCXX+set}" || LD=$LDCXX
18651 CC=${CXX-"c++"}
18652 compiler=$CC
18653 compiler_CXX=$CC
18654 for cc_temp in $compiler""; do
18655 case $cc_temp in
18656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18658 \-*) ;;
18659 *) break;;
18660 esac
18661 done
18662 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18663
18664
18665 if test -n "$compiler"; then
18666 # We don't want -fno-exception when compiling C++ code, so set the
18667 # no_builtin_flag separately
18668 if test "$GXX" = yes; then
18669 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18670 else
18671 lt_prog_compiler_no_builtin_flag_CXX=
18672 fi
18673
18674 if test "$GXX" = yes; then
18675 # Set up default GNU C++ configuration
18676
18677
18678
18679 # Check whether --with-gnu-ld was given.
18680 if test "${with_gnu_ld+set}" = set; then :
18681 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18682 else
18683 with_gnu_ld=no
18684 fi
18685
18686 ac_prog=ld
18687 if test "$GCC" = yes; then
18688 # Check if gcc -print-prog-name=ld gives a path.
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18690 $as_echo_n "checking for ld used by $CC... " >&6; }
18691 case $host in
18692 *-*-mingw*)
18693 # gcc leaves a trailing carriage return which upsets mingw
18694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18695 *)
18696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18697 esac
18698 case $ac_prog in
18699 # Accept absolute paths.
18700 [\\/]* | ?:[\\/]*)
18701 re_direlt='/[^/][^/]*/\.\./'
18702 # Canonicalize the pathname of ld
18703 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18704 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18705 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18706 done
18707 test -z "$LD" && LD="$ac_prog"
18708 ;;
18709 "")
18710 # If it fails, then pretend we aren't using GCC.
18711 ac_prog=ld
18712 ;;
18713 *)
18714 # If it is relative, then search for the first ld in PATH.
18715 with_gnu_ld=unknown
18716 ;;
18717 esac
18718 elif test "$with_gnu_ld" = yes; then
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18720 $as_echo_n "checking for GNU ld... " >&6; }
18721 else
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18723 $as_echo_n "checking for non-GNU ld... " >&6; }
18724 fi
18725 if test "${lt_cv_path_LD+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 if test -z "$LD"; then
18729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18730 for ac_dir in $PATH; do
18731 IFS="$lt_save_ifs"
18732 test -z "$ac_dir" && ac_dir=.
18733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18734 lt_cv_path_LD="$ac_dir/$ac_prog"
18735 # Check to see if the program is GNU ld. I'd rather use --version,
18736 # but apparently some variants of GNU ld only accept -v.
18737 # Break only if it was the GNU/non-GNU ld that we prefer.
18738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18739 *GNU* | *'with BFD'*)
18740 test "$with_gnu_ld" != no && break
18741 ;;
18742 *)
18743 test "$with_gnu_ld" != yes && break
18744 ;;
18745 esac
18746 fi
18747 done
18748 IFS="$lt_save_ifs"
18749 else
18750 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18751 fi
18752 fi
18753
18754 LD="$lt_cv_path_LD"
18755 if test -n "$LD"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18757 $as_echo "$LD" >&6; }
18758 else
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18760 $as_echo "no" >&6; }
18761 fi
18762 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18764 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18765 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18766 $as_echo_n "(cached) " >&6
18767 else
18768 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18769 case `$LD -v 2>&1 </dev/null` in
18770 *GNU* | *'with BFD'*)
18771 lt_cv_prog_gnu_ld=yes
18772 ;;
18773 *)
18774 lt_cv_prog_gnu_ld=no
18775 ;;
18776 esac
18777 fi
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18779 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18780 with_gnu_ld=$lt_cv_prog_gnu_ld
18781
18782
18783
18784
18785
18786
18787
18788 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18789 # archiving commands below assume that GNU ld is being used.
18790 if test "$with_gnu_ld" = yes; then
18791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18792 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'
18793
18794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18796
18797 # If archive_cmds runs LD, not CC, wlarc should be empty
18798 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18799 # investigate it a little bit more. (MM)
18800 wlarc='${wl}'
18801
18802 # ancient GNU ld didn't support --whole-archive et. al.
18803 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18804 $GREP 'no-whole-archive' > /dev/null; then
18805 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18806 else
18807 whole_archive_flag_spec_CXX=
18808 fi
18809 else
18810 with_gnu_ld=no
18811 wlarc=
18812
18813 # A generic and very simple default shared library creation
18814 # command for GNU C++ for the case where it uses the native
18815 # linker, instead of GNU ld. If possible, this setting should
18816 # overridden to take advantage of the native linker features on
18817 # the platform it is being used on.
18818 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18819 fi
18820
18821 # Commands to make compiler produce verbose output that lists
18822 # what "hidden" libraries, object files and flags are used when
18823 # linking a shared library.
18824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18825
18826 else
18827 GXX=no
18828 with_gnu_ld=no
18829 wlarc=
18830 fi
18831
18832 # PORTME: fill in a description of your system's C++ link characteristics
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18835 ld_shlibs_CXX=yes
18836 case $host_os in
18837 aix3*)
18838 # FIXME: insert proper C++ library support
18839 ld_shlibs_CXX=no
18840 ;;
18841 aix[4-9]*)
18842 if test "$host_cpu" = ia64; then
18843 # On IA64, the linker does run time linking by default, so we don't
18844 # have to do anything special.
18845 aix_use_runtimelinking=no
18846 exp_sym_flag='-Bexport'
18847 no_entry_flag=""
18848 else
18849 aix_use_runtimelinking=no
18850
18851 # Test if we are trying to use run time linking or normal
18852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18853 # need to do runtime linking.
18854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18855 for ld_flag in $LDFLAGS; do
18856 case $ld_flag in
18857 *-brtl*)
18858 aix_use_runtimelinking=yes
18859 break
18860 ;;
18861 esac
18862 done
18863 ;;
18864 esac
18865
18866 exp_sym_flag='-bexport'
18867 no_entry_flag='-bnoentry'
18868 fi
18869
18870 # When large executables or shared objects are built, AIX ld can
18871 # have problems creating the table of contents. If linking a library
18872 # or program results in "error TOC overflow" add -mminimal-toc to
18873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18875
18876 archive_cmds_CXX=''
18877 hardcode_direct_CXX=yes
18878 hardcode_direct_absolute_CXX=yes
18879 hardcode_libdir_separator_CXX=':'
18880 link_all_deplibs_CXX=yes
18881 file_list_spec_CXX='${wl}-f,'
18882
18883 if test "$GXX" = yes; then
18884 case $host_os in aix4.[012]|aix4.[012].*)
18885 # We only want to do this on AIX 4.2 and lower, the check
18886 # below for broken collect2 doesn't work under 4.3+
18887 collect2name=`${CC} -print-prog-name=collect2`
18888 if test -f "$collect2name" &&
18889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18890 then
18891 # We have reworked collect2
18892 :
18893 else
18894 # We have old collect2
18895 hardcode_direct_CXX=unsupported
18896 # It fails to find uninstalled libraries when the uninstalled
18897 # path is not listed in the libpath. Setting hardcode_minus_L
18898 # to unsupported forces relinking
18899 hardcode_minus_L_CXX=yes
18900 hardcode_libdir_flag_spec_CXX='-L$libdir'
18901 hardcode_libdir_separator_CXX=
18902 fi
18903 esac
18904 shared_flag='-shared'
18905 if test "$aix_use_runtimelinking" = yes; then
18906 shared_flag="$shared_flag "'${wl}-G'
18907 fi
18908 else
18909 # not using gcc
18910 if test "$host_cpu" = ia64; then
18911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18912 # chokes on -Wl,-G. The following line is correct:
18913 shared_flag='-G'
18914 else
18915 if test "$aix_use_runtimelinking" = yes; then
18916 shared_flag='${wl}-G'
18917 else
18918 shared_flag='${wl}-bM:SRE'
18919 fi
18920 fi
18921 fi
18922
18923 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18924 # It seems that -bexpall does not export symbols beginning with
18925 # underscore (_), so it is better to generate a list of symbols to
18926 # export.
18927 always_export_symbols_CXX=yes
18928 if test "$aix_use_runtimelinking" = yes; then
18929 # Warning - without using the other runtime loading flags (-brtl),
18930 # -berok will link without error, but may produce a broken library.
18931 allow_undefined_flag_CXX='-berok'
18932 # Determine the default libpath from the value encoded in an empty
18933 # executable.
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18936
18937 int
18938 main ()
18939 {
18940
18941 ;
18942 return 0;
18943 }
18944 _ACEOF
18945 if ac_fn_cxx_try_link "$LINENO"; then :
18946
18947 lt_aix_libpath_sed='
18948 /Import File Strings/,/^$/ {
18949 /^0/ {
18950 s/^0 *\(.*\)$/\1/
18951 p
18952 }
18953 }'
18954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 fi
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18963
18964 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18965
18966 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"
18967 else
18968 if test "$host_cpu" = ia64; then
18969 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18970 allow_undefined_flag_CXX="-z nodefs"
18971 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"
18972 else
18973 # Determine the default libpath from the value encoded in an
18974 # empty executable.
18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18977
18978 int
18979 main ()
18980 {
18981
18982 ;
18983 return 0;
18984 }
18985 _ACEOF
18986 if ac_fn_cxx_try_link "$LINENO"; then :
18987
18988 lt_aix_libpath_sed='
18989 /Import File Strings/,/^$/ {
18990 /^0/ {
18991 s/^0 *\(.*\)$/\1/
18992 p
18993 }
18994 }'
18995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18996 # Check for a 64-bit object if we didn't find anything.
18997 if test -z "$aix_libpath"; then
18998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18999 fi
19000 fi
19001 rm -f core conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext conftest.$ac_ext
19003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19004
19005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19006 # Warning - without using the other run time loading flags,
19007 # -berok will link without error, but may produce a broken library.
19008 no_undefined_flag_CXX=' ${wl}-bernotok'
19009 allow_undefined_flag_CXX=' ${wl}-berok'
19010 if test "$with_gnu_ld" = yes; then
19011 # We only use this code for GNU lds that support --whole-archive.
19012 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19013 else
19014 # Exported symbols can be pulled into shared objects from archives
19015 whole_archive_flag_spec_CXX='$convenience'
19016 fi
19017 archive_cmds_need_lc_CXX=yes
19018 # This is similar to how AIX traditionally builds its shared
19019 # libraries.
19020 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'
19021 fi
19022 fi
19023 ;;
19024
19025 beos*)
19026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19027 allow_undefined_flag_CXX=unsupported
19028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19029 # support --undefined. This deserves some investigation. FIXME
19030 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19031 else
19032 ld_shlibs_CXX=no
19033 fi
19034 ;;
19035
19036 chorus*)
19037 case $cc_basename in
19038 *)
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19041 ;;
19042 esac
19043 ;;
19044
19045 cygwin* | mingw* | pw32* | cegcc*)
19046 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19047 # as there is no search path for DLLs.
19048 hardcode_libdir_flag_spec_CXX='-L$libdir'
19049 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19050 allow_undefined_flag_CXX=unsupported
19051 always_export_symbols_CXX=no
19052 enable_shared_with_static_runtimes_CXX=yes
19053
19054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19055 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'
19056 # If the export-symbols file already is a .def file (1st line
19057 # is EXPORTS), use it as is; otherwise, prepend...
19058 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19059 cp $export_symbols $output_objdir/$soname.def;
19060 else
19061 echo EXPORTS > $output_objdir/$soname.def;
19062 cat $export_symbols >> $output_objdir/$soname.def;
19063 fi~
19064 $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'
19065 else
19066 ld_shlibs_CXX=no
19067 fi
19068 ;;
19069 darwin* | rhapsody*)
19070
19071
19072 archive_cmds_need_lc_CXX=no
19073 hardcode_direct_CXX=no
19074 hardcode_automatic_CXX=yes
19075 hardcode_shlibpath_var_CXX=unsupported
19076 if test "$lt_cv_ld_force_load" = "yes"; then
19077 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\"`'
19078 else
19079 whole_archive_flag_spec_CXX=''
19080 fi
19081 link_all_deplibs_CXX=yes
19082 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19083 case $cc_basename in
19084 ifort*) _lt_dar_can_shared=yes ;;
19085 *) _lt_dar_can_shared=$GCC ;;
19086 esac
19087 if test "$_lt_dar_can_shared" = "yes"; then
19088 output_verbose_link_cmd=func_echo_all
19089 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}"
19090 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19091 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}"
19092 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}"
19093 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19094 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}"
19095 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}"
19096 fi
19097
19098 else
19099 ld_shlibs_CXX=no
19100 fi
19101
19102 ;;
19103
19104 dgux*)
19105 case $cc_basename in
19106 ec++*)
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
19110 ghcx*)
19111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115 *)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 esac
19120 ;;
19121
19122 freebsd[12]*)
19123 # C++ shared libraries reported to be fairly broken before
19124 # switch to ELF
19125 ld_shlibs_CXX=no
19126 ;;
19127
19128 freebsd-elf*)
19129 archive_cmds_need_lc_CXX=no
19130 ;;
19131
19132 freebsd* | dragonfly*)
19133 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19134 # conventions
19135 ld_shlibs_CXX=yes
19136 ;;
19137
19138 gnu*)
19139 ;;
19140
19141 haiku*)
19142 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 link_all_deplibs_CXX=yes
19144 ;;
19145
19146 hpux9*)
19147 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19148 hardcode_libdir_separator_CXX=:
19149 export_dynamic_flag_spec_CXX='${wl}-E'
19150 hardcode_direct_CXX=yes
19151 hardcode_minus_L_CXX=yes # Not in the search PATH,
19152 # but as the default
19153 # location of the library.
19154
19155 case $cc_basename in
19156 CC*)
19157 # FIXME: insert proper C++ library support
19158 ld_shlibs_CXX=no
19159 ;;
19160 aCC*)
19161 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'
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
19165 #
19166 # There doesn't appear to be a way to prevent this compiler from
19167 # explicitly linking system object files so we need to strip them
19168 # from the output so that they don't get included in the library
19169 # dependencies.
19170 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"'
19171 ;;
19172 *)
19173 if test "$GXX" = yes; then
19174 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'
19175 else
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19178 fi
19179 ;;
19180 esac
19181 ;;
19182
19183 hpux10*|hpux11*)
19184 if test $with_gnu_ld = no; then
19185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19186 hardcode_libdir_separator_CXX=:
19187
19188 case $host_cpu in
19189 hppa*64*|ia64*)
19190 ;;
19191 *)
19192 export_dynamic_flag_spec_CXX='${wl}-E'
19193 ;;
19194 esac
19195 fi
19196 case $host_cpu in
19197 hppa*64*|ia64*)
19198 hardcode_direct_CXX=no
19199 hardcode_shlibpath_var_CXX=no
19200 ;;
19201 *)
19202 hardcode_direct_CXX=yes
19203 hardcode_direct_absolute_CXX=yes
19204 hardcode_minus_L_CXX=yes # Not in the search PATH,
19205 # but as the default
19206 # location of the library.
19207 ;;
19208 esac
19209
19210 case $cc_basename in
19211 CC*)
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19214 ;;
19215 aCC*)
19216 case $host_cpu in
19217 hppa*64*)
19218 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 ;;
19220 ia64*)
19221 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19222 ;;
19223 *)
19224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19225 ;;
19226 esac
19227 # Commands to make compiler produce verbose output that lists
19228 # what "hidden" libraries, object files and flags are used when
19229 # linking a shared library.
19230 #
19231 # There doesn't appear to be a way to prevent this compiler from
19232 # explicitly linking system object files so we need to strip them
19233 # from the output so that they don't get included in the library
19234 # dependencies.
19235 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"'
19236 ;;
19237 *)
19238 if test "$GXX" = yes; then
19239 if test $with_gnu_ld = no; then
19240 case $host_cpu in
19241 hppa*64*)
19242 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19243 ;;
19244 ia64*)
19245 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19246 ;;
19247 *)
19248 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'
19249 ;;
19250 esac
19251 fi
19252 else
19253 # FIXME: insert proper C++ library support
19254 ld_shlibs_CXX=no
19255 fi
19256 ;;
19257 esac
19258 ;;
19259
19260 interix[3-9]*)
19261 hardcode_direct_CXX=no
19262 hardcode_shlibpath_var_CXX=no
19263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19264 export_dynamic_flag_spec_CXX='${wl}-E'
19265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19266 # Instead, shared libraries are loaded at an image base (0x10000000 by
19267 # default) and relocated if they conflict, which is a slow very memory
19268 # consuming and fragmenting process. To avoid this, we pick a random,
19269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19270 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19271 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'
19272 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'
19273 ;;
19274 irix5* | irix6*)
19275 case $cc_basename in
19276 CC*)
19277 # SGI C++
19278 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'
19279
19280 # Archives containing C++ object files must be created using
19281 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19282 # necessary to make sure instantiated templates are included
19283 # in the archive.
19284 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19285 ;;
19286 *)
19287 if test "$GXX" = yes; then
19288 if test "$with_gnu_ld" = no; then
19289 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'
19290 else
19291 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'
19292 fi
19293 fi
19294 link_all_deplibs_CXX=yes
19295 ;;
19296 esac
19297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19298 hardcode_libdir_separator_CXX=:
19299 inherit_rpath_CXX=yes
19300 ;;
19301
19302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19303 case $cc_basename in
19304 KCC*)
19305 # Kuck and Associates, Inc. (KAI) C++ Compiler
19306
19307 # KCC will only create a shared library if the output file
19308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309 # to its proper name (with version) after linking.
19310 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'
19311 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'
19312 # Commands to make compiler produce verbose output that lists
19313 # what "hidden" libraries, object files and flags are used when
19314 # linking a shared library.
19315 #
19316 # There doesn't appear to be a way to prevent this compiler from
19317 # explicitly linking system object files so we need to strip them
19318 # from the output so that they don't get included in the library
19319 # dependencies.
19320 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"'
19321
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324
19325 # Archives containing C++ object files must be created using
19326 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19327 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19328 ;;
19329 icpc* | ecpc* )
19330 # Intel C++
19331 with_gnu_ld=yes
19332 # version 8.0 and above of icpc choke on multiply defined symbols
19333 # if we add $predep_objects and $postdep_objects, however 7.1 and
19334 # earlier do not add the objects themselves.
19335 case `$CC -V 2>&1` in
19336 *"Version 7."*)
19337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 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'
19339 ;;
19340 *) # Version 8.0 or newer
19341 tmp_idyn=
19342 case $host_cpu in
19343 ia64*) tmp_idyn=' -i_dynamic';;
19344 esac
19345 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 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'
19347 ;;
19348 esac
19349 archive_cmds_need_lc_CXX=no
19350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19352 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19353 ;;
19354 pgCC* | pgcpp*)
19355 # Portland Group C++ compiler
19356 case `$CC -V` in
19357 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19358 prelink_cmds_CXX='tpldir=Template.dir~
19359 rm -rf $tpldir~
19360 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19361 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19362 old_archive_cmds_CXX='tpldir=Template.dir~
19363 rm -rf $tpldir~
19364 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19365 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19366 $RANLIB $oldlib'
19367 archive_cmds_CXX='tpldir=Template.dir~
19368 rm -rf $tpldir~
19369 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19370 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19371 archive_expsym_cmds_CXX='tpldir=Template.dir~
19372 rm -rf $tpldir~
19373 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19374 $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'
19375 ;;
19376 *) # Version 6 and above use weak symbols
19377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19378 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'
19379 ;;
19380 esac
19381
19382 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19384 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'
19385 ;;
19386 cxx*)
19387 # Compaq C++
19388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 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'
19390
19391 runpath_var=LD_RUN_PATH
19392 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19393 hardcode_libdir_separator_CXX=:
19394
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19398 #
19399 # There doesn't appear to be a way to prevent this compiler from
19400 # explicitly linking system object files so we need to strip them
19401 # from the output so that they don't get included in the library
19402 # dependencies.
19403 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'
19404 ;;
19405 xl* | mpixl* | bgxl*)
19406 # IBM XL 8.0 on PPC, with GNU ld
19407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19409 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19410 if test "x$supports_anon_versioning" = xyes; then
19411 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19413 echo "local: *; };" >> $output_objdir/$libname.ver~
19414 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19415 fi
19416 ;;
19417 *)
19418 case `$CC -V 2>&1 | sed 5q` in
19419 *Sun\ C*)
19420 # Sun C++ 5.9
19421 no_undefined_flag_CXX=' -zdefs'
19422 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19423 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'
19424 hardcode_libdir_flag_spec_CXX='-R$libdir'
19425 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'
19426 compiler_needs_object_CXX=yes
19427
19428 # Not sure whether something based on
19429 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19430 # would be better.
19431 output_verbose_link_cmd='func_echo_all'
19432
19433 # Archives containing C++ object files must be created using
19434 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19435 # necessary to make sure instantiated templates are included
19436 # in the archive.
19437 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19438 ;;
19439 esac
19440 ;;
19441 esac
19442 ;;
19443
19444 lynxos*)
19445 # FIXME: insert proper C++ library support
19446 ld_shlibs_CXX=no
19447 ;;
19448
19449 m88k*)
19450 # FIXME: insert proper C++ library support
19451 ld_shlibs_CXX=no
19452 ;;
19453
19454 mvs*)
19455 case $cc_basename in
19456 cxx*)
19457 # FIXME: insert proper C++ library support
19458 ld_shlibs_CXX=no
19459 ;;
19460 *)
19461 # FIXME: insert proper C++ library support
19462 ld_shlibs_CXX=no
19463 ;;
19464 esac
19465 ;;
19466
19467 netbsd*)
19468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19469 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19470 wlarc=
19471 hardcode_libdir_flag_spec_CXX='-R$libdir'
19472 hardcode_direct_CXX=yes
19473 hardcode_shlibpath_var_CXX=no
19474 fi
19475 # Workaround some broken pre-1.5 toolchains
19476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19477 ;;
19478
19479 *nto* | *qnx*)
19480 ld_shlibs_CXX=yes
19481 ;;
19482
19483 openbsd2*)
19484 # C++ shared libraries are fairly broken
19485 ld_shlibs_CXX=no
19486 ;;
19487
19488 openbsd*)
19489 if test -f /usr/libexec/ld.so; then
19490 hardcode_direct_CXX=yes
19491 hardcode_shlibpath_var_CXX=no
19492 hardcode_direct_absolute_CXX=yes
19493 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19496 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19497 export_dynamic_flag_spec_CXX='${wl}-E'
19498 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19499 fi
19500 output_verbose_link_cmd=func_echo_all
19501 else
19502 ld_shlibs_CXX=no
19503 fi
19504 ;;
19505
19506 osf3* | osf4* | osf5*)
19507 case $cc_basename in
19508 KCC*)
19509 # Kuck and Associates, Inc. (KAI) C++ Compiler
19510
19511 # KCC will only create a shared library if the output file
19512 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19513 # to its proper name (with version) after linking.
19514 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'
19515
19516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19517 hardcode_libdir_separator_CXX=:
19518
19519 # Archives containing C++ object files must be created using
19520 # the KAI C++ compiler.
19521 case $host in
19522 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19523 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19524 esac
19525 ;;
19526 RCC*)
19527 # Rational C++ 2.4.1
19528 # FIXME: insert proper C++ library support
19529 ld_shlibs_CXX=no
19530 ;;
19531 cxx*)
19532 case $host in
19533 osf3*)
19534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19535 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'
19536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19537 ;;
19538 *)
19539 allow_undefined_flag_CXX=' -expect_unresolved \*'
19540 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'
19541 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19542 echo "-hidden">> $lib.exp~
19543 $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~
19544 $RM $lib.exp'
19545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19546 ;;
19547 esac
19548
19549 hardcode_libdir_separator_CXX=:
19550
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19554 #
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19558 # dependencies.
19559 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"'
19560 ;;
19561 *)
19562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19564 case $host in
19565 osf3*)
19566 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'
19567 ;;
19568 *)
19569 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'
19570 ;;
19571 esac
19572
19573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19574 hardcode_libdir_separator_CXX=:
19575
19576 # Commands to make compiler produce verbose output that lists
19577 # what "hidden" libraries, object files and flags are used when
19578 # linking a shared library.
19579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19580
19581 else
19582 # FIXME: insert proper C++ library support
19583 ld_shlibs_CXX=no
19584 fi
19585 ;;
19586 esac
19587 ;;
19588
19589 psos*)
19590 # FIXME: insert proper C++ library support
19591 ld_shlibs_CXX=no
19592 ;;
19593
19594 sunos4*)
19595 case $cc_basename in
19596 CC*)
19597 # Sun C++ 4.x
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19600 ;;
19601 lcc*)
19602 # Lucid
19603 # FIXME: insert proper C++ library support
19604 ld_shlibs_CXX=no
19605 ;;
19606 *)
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19609 ;;
19610 esac
19611 ;;
19612
19613 solaris*)
19614 case $cc_basename in
19615 CC*)
19616 # Sun C++ 4.2, 5.x and Centerline C++
19617 archive_cmds_need_lc_CXX=yes
19618 no_undefined_flag_CXX=' -zdefs'
19619 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19621 $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'
19622
19623 hardcode_libdir_flag_spec_CXX='-R$libdir'
19624 hardcode_shlibpath_var_CXX=no
19625 case $host_os in
19626 solaris2.[0-5] | solaris2.[0-5].*) ;;
19627 *)
19628 # The compiler driver will combine and reorder linker options,
19629 # but understands `-z linker_flag'.
19630 # Supported since Solaris 2.6 (maybe 2.5.1?)
19631 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19632 ;;
19633 esac
19634 link_all_deplibs_CXX=yes
19635
19636 output_verbose_link_cmd='func_echo_all'
19637
19638 # Archives containing C++ object files must be created using
19639 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19640 # necessary to make sure instantiated templates are included
19641 # in the archive.
19642 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19643 ;;
19644 gcx*)
19645 # Green Hills C++ Compiler
19646 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19647
19648 # The C++ compiler must be used to create the archive.
19649 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19650 ;;
19651 *)
19652 # GNU C++ compiler with Solaris linker
19653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19654 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19655 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19656 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19657 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19658 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19659
19660 # Commands to make compiler produce verbose output that lists
19661 # what "hidden" libraries, object files and flags are used when
19662 # linking a shared library.
19663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19664 else
19665 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19666 # platform.
19667 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19668 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19669 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19670
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19674 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19675 fi
19676
19677 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19678 case $host_os in
19679 solaris2.[0-5] | solaris2.[0-5].*) ;;
19680 *)
19681 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19682 ;;
19683 esac
19684 fi
19685 ;;
19686 esac
19687 ;;
19688
19689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19690 no_undefined_flag_CXX='${wl}-z,text'
19691 archive_cmds_need_lc_CXX=no
19692 hardcode_shlibpath_var_CXX=no
19693 runpath_var='LD_RUN_PATH'
19694
19695 case $cc_basename in
19696 CC*)
19697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 ;;
19700 *)
19701 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19702 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19703 ;;
19704 esac
19705 ;;
19706
19707 sysv5* | sco3.2v5* | sco5v6*)
19708 # Note: We can NOT use -z defs as we might desire, because we do not
19709 # link with -lc, and that would cause any symbols used from libc to
19710 # always be unresolved, which means just about no library would
19711 # ever link correctly. If we're not using GNU ld we use -z text
19712 # though, which does catch some bad symbols but isn't as heavy-handed
19713 # as -z defs.
19714 no_undefined_flag_CXX='${wl}-z,text'
19715 allow_undefined_flag_CXX='${wl}-z,nodefs'
19716 archive_cmds_need_lc_CXX=no
19717 hardcode_shlibpath_var_CXX=no
19718 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19719 hardcode_libdir_separator_CXX=':'
19720 link_all_deplibs_CXX=yes
19721 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19722 runpath_var='LD_RUN_PATH'
19723
19724 case $cc_basename in
19725 CC*)
19726 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19729 '"$old_archive_cmds_CXX"
19730 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19731 '"$reload_cmds_CXX"
19732 ;;
19733 *)
19734 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19736 ;;
19737 esac
19738 ;;
19739
19740 tandem*)
19741 case $cc_basename in
19742 NCC*)
19743 # NonStop-UX NCC 3.20
19744 # FIXME: insert proper C++ library support
19745 ld_shlibs_CXX=no
19746 ;;
19747 *)
19748 # FIXME: insert proper C++ library support
19749 ld_shlibs_CXX=no
19750 ;;
19751 esac
19752 ;;
19753
19754 vxworks*)
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19757 ;;
19758
19759 *)
19760 # FIXME: insert proper C++ library support
19761 ld_shlibs_CXX=no
19762 ;;
19763 esac
19764
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19766 $as_echo "$ld_shlibs_CXX" >&6; }
19767 test "$ld_shlibs_CXX" = no && can_build_shared=no
19768
19769 GCC_CXX="$GXX"
19770 LD_CXX="$LD"
19771
19772 ## CAVEAT EMPTOR:
19773 ## There is no encapsulation within the following macros, do not change
19774 ## the running order or otherwise move them around unless you know exactly
19775 ## what you are doing...
19776 # Dependencies to place before and after the object being linked:
19777 predep_objects_CXX=
19778 postdep_objects_CXX=
19779 predeps_CXX=
19780 postdeps_CXX=
19781 compiler_lib_search_path_CXX=
19782
19783 cat > conftest.$ac_ext <<_LT_EOF
19784 class Foo
19785 {
19786 public:
19787 Foo (void) { a = 0; }
19788 private:
19789 int a;
19790 };
19791 _LT_EOF
19792
19793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19794 (eval $ac_compile) 2>&5
19795 ac_status=$?
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; then
19798 # Parse the compiler output and extract the necessary
19799 # objects, libraries and library flags.
19800
19801 # Sentinel used to keep track of whether or not we are before
19802 # the conftest object file.
19803 pre_test_object_deps_done=no
19804
19805 for p in `eval "$output_verbose_link_cmd"`; do
19806 case $p in
19807
19808 -L* | -R* | -l*)
19809 # Some compilers place space between "-{L,R}" and the path.
19810 # Remove the space.
19811 if test $p = "-L" ||
19812 test $p = "-R"; then
19813 prev=$p
19814 continue
19815 else
19816 prev=
19817 fi
19818
19819 if test "$pre_test_object_deps_done" = no; then
19820 case $p in
19821 -L* | -R*)
19822 # Internal compiler library paths should come after those
19823 # provided the user. The postdeps already come after the
19824 # user supplied libs so there is no need to process them.
19825 if test -z "$compiler_lib_search_path_CXX"; then
19826 compiler_lib_search_path_CXX="${prev}${p}"
19827 else
19828 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19829 fi
19830 ;;
19831 # The "-l" case would never come before the object being
19832 # linked, so don't bother handling this case.
19833 esac
19834 else
19835 if test -z "$postdeps_CXX"; then
19836 postdeps_CXX="${prev}${p}"
19837 else
19838 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19839 fi
19840 fi
19841 ;;
19842
19843 *.$objext)
19844 # This assumes that the test object file only shows up
19845 # once in the compiler output.
19846 if test "$p" = "conftest.$objext"; then
19847 pre_test_object_deps_done=yes
19848 continue
19849 fi
19850
19851 if test "$pre_test_object_deps_done" = no; then
19852 if test -z "$predep_objects_CXX"; then
19853 predep_objects_CXX="$p"
19854 else
19855 predep_objects_CXX="$predep_objects_CXX $p"
19856 fi
19857 else
19858 if test -z "$postdep_objects_CXX"; then
19859 postdep_objects_CXX="$p"
19860 else
19861 postdep_objects_CXX="$postdep_objects_CXX $p"
19862 fi
19863 fi
19864 ;;
19865
19866 *) ;; # Ignore the rest.
19867
19868 esac
19869 done
19870
19871 # Clean up.
19872 rm -f a.out a.exe
19873 else
19874 echo "libtool.m4: error: problem compiling CXX test program"
19875 fi
19876
19877 $RM -f confest.$objext
19878
19879 # PORTME: override above test on systems where it is broken
19880 case $host_os in
19881 interix[3-9]*)
19882 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19883 # hack all around it, let's just trust "g++" to DTRT.
19884 predep_objects_CXX=
19885 postdep_objects_CXX=
19886 postdeps_CXX=
19887 ;;
19888
19889 linux*)
19890 case `$CC -V 2>&1 | sed 5q` in
19891 *Sun\ C*)
19892 # Sun C++ 5.9
19893
19894 # The more standards-conforming stlport4 library is
19895 # incompatible with the Cstd library. Avoid specifying
19896 # it if it's in CXXFLAGS. Ignore libCrun as
19897 # -library=stlport4 depends on it.
19898 case " $CXX $CXXFLAGS " in
19899 *" -library=stlport4 "*)
19900 solaris_use_stlport4=yes
19901 ;;
19902 esac
19903
19904 if test "$solaris_use_stlport4" != yes; then
19905 postdeps_CXX='-library=Cstd -library=Crun'
19906 fi
19907 ;;
19908 esac
19909 ;;
19910
19911 solaris*)
19912 case $cc_basename in
19913 CC*)
19914 # The more standards-conforming stlport4 library is
19915 # incompatible with the Cstd library. Avoid specifying
19916 # it if it's in CXXFLAGS. Ignore libCrun as
19917 # -library=stlport4 depends on it.
19918 case " $CXX $CXXFLAGS " in
19919 *" -library=stlport4 "*)
19920 solaris_use_stlport4=yes
19921 ;;
19922 esac
19923
19924 # Adding this requires a known-good setup of shared libraries for
19925 # Sun compiler versions before 5.6, else PIC objects from an old
19926 # archive will be linked into the output, leading to subtle bugs.
19927 if test "$solaris_use_stlport4" != yes; then
19928 postdeps_CXX='-library=Cstd -library=Crun'
19929 fi
19930 ;;
19931 esac
19932 ;;
19933 esac
19934
19935
19936 case " $postdeps_CXX " in
19937 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19938 esac
19939 compiler_lib_search_dirs_CXX=
19940 if test -n "${compiler_lib_search_path_CXX}"; then
19941 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19942 fi
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974 lt_prog_compiler_wl_CXX=
19975 lt_prog_compiler_pic_CXX=
19976 lt_prog_compiler_static_CXX=
19977
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19979 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19980
19981 # C++ specific cases for pic, static, wl, etc.
19982 if test "$GXX" = yes; then
19983 lt_prog_compiler_wl_CXX='-Wl,'
19984 lt_prog_compiler_static_CXX='-static'
19985
19986 case $host_os in
19987 aix*)
19988 # All AIX code is PIC.
19989 if test "$host_cpu" = ia64; then
19990 # AIX 5 now supports IA64 processor
19991 lt_prog_compiler_static_CXX='-Bstatic'
19992 fi
19993 ;;
19994
19995 amigaos*)
19996 case $host_cpu in
19997 powerpc)
19998 # see comment about AmigaOS4 .so support
19999 lt_prog_compiler_pic_CXX='-fPIC'
20000 ;;
20001 m68k)
20002 # FIXME: we need at least 68020 code to build shared libraries, but
20003 # adding the `-m68020' flag to GCC prevents building anything better,
20004 # like `-m68040'.
20005 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20006 ;;
20007 esac
20008 ;;
20009
20010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20011 # PIC is the default for these OSes.
20012 ;;
20013 mingw* | cygwin* | os2* | pw32* | cegcc*)
20014 # This hack is so that the source file can tell whether it is being
20015 # built for inclusion in a dll (and should export symbols for example).
20016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20017 # (--disable-auto-import) libraries
20018 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20019 ;;
20020 darwin* | rhapsody*)
20021 # PIC is the default on this platform
20022 # Common symbols not allowed in MH_DYLIB files
20023 lt_prog_compiler_pic_CXX='-fno-common'
20024 ;;
20025 *djgpp*)
20026 # DJGPP does not support shared libraries at all
20027 lt_prog_compiler_pic_CXX=
20028 ;;
20029 haiku*)
20030 # PIC is the default for Haiku.
20031 # The "-static" flag exists, but is broken.
20032 lt_prog_compiler_static_CXX=
20033 ;;
20034 interix[3-9]*)
20035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20036 # Instead, we relocate shared libraries at runtime.
20037 ;;
20038 sysv4*MP*)
20039 if test -d /usr/nec; then
20040 lt_prog_compiler_pic_CXX=-Kconform_pic
20041 fi
20042 ;;
20043 hpux*)
20044 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20045 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20046 # sets the default TLS model and affects inlining.
20047 case $host_cpu in
20048 hppa*64*)
20049 ;;
20050 *)
20051 lt_prog_compiler_pic_CXX='-fPIC'
20052 ;;
20053 esac
20054 ;;
20055 *qnx* | *nto*)
20056 # QNX uses GNU C++, but need to define -shared option too, otherwise
20057 # it will coredump.
20058 lt_prog_compiler_pic_CXX='-fPIC -shared'
20059 ;;
20060 *)
20061 lt_prog_compiler_pic_CXX='-fPIC'
20062 ;;
20063 esac
20064 else
20065 case $host_os in
20066 aix[4-9]*)
20067 # All AIX code is PIC.
20068 if test "$host_cpu" = ia64; then
20069 # AIX 5 now supports IA64 processor
20070 lt_prog_compiler_static_CXX='-Bstatic'
20071 else
20072 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20073 fi
20074 ;;
20075 chorus*)
20076 case $cc_basename in
20077 cxch68*)
20078 # Green Hills C++ Compiler
20079 # _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"
20080 ;;
20081 esac
20082 ;;
20083 dgux*)
20084 case $cc_basename in
20085 ec++*)
20086 lt_prog_compiler_pic_CXX='-KPIC'
20087 ;;
20088 ghcx*)
20089 # Green Hills C++ Compiler
20090 lt_prog_compiler_pic_CXX='-pic'
20091 ;;
20092 *)
20093 ;;
20094 esac
20095 ;;
20096 freebsd* | dragonfly*)
20097 # FreeBSD uses GNU C++
20098 ;;
20099 hpux9* | hpux10* | hpux11*)
20100 case $cc_basename in
20101 CC*)
20102 lt_prog_compiler_wl_CXX='-Wl,'
20103 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20104 if test "$host_cpu" != ia64; then
20105 lt_prog_compiler_pic_CXX='+Z'
20106 fi
20107 ;;
20108 aCC*)
20109 lt_prog_compiler_wl_CXX='-Wl,'
20110 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20111 case $host_cpu in
20112 hppa*64*|ia64*)
20113 # +Z the default
20114 ;;
20115 *)
20116 lt_prog_compiler_pic_CXX='+Z'
20117 ;;
20118 esac
20119 ;;
20120 *)
20121 ;;
20122 esac
20123 ;;
20124 interix*)
20125 # This is c89, which is MS Visual C++ (no shared libs)
20126 # Anyone wants to do a port?
20127 ;;
20128 irix5* | irix6* | nonstopux*)
20129 case $cc_basename in
20130 CC*)
20131 lt_prog_compiler_wl_CXX='-Wl,'
20132 lt_prog_compiler_static_CXX='-non_shared'
20133 # CC pic flag -KPIC is the default.
20134 ;;
20135 *)
20136 ;;
20137 esac
20138 ;;
20139 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20140 case $cc_basename in
20141 KCC*)
20142 # KAI C++ Compiler
20143 lt_prog_compiler_wl_CXX='--backend -Wl,'
20144 lt_prog_compiler_pic_CXX='-fPIC'
20145 ;;
20146 ecpc* )
20147 # old Intel C++ for x86_64 which still supported -KPIC.
20148 lt_prog_compiler_wl_CXX='-Wl,'
20149 lt_prog_compiler_pic_CXX='-KPIC'
20150 lt_prog_compiler_static_CXX='-static'
20151 ;;
20152 icpc* )
20153 # Intel C++, used to be incompatible with GCC.
20154 # ICC 10 doesn't accept -KPIC any more.
20155 lt_prog_compiler_wl_CXX='-Wl,'
20156 lt_prog_compiler_pic_CXX='-fPIC'
20157 lt_prog_compiler_static_CXX='-static'
20158 ;;
20159 pgCC* | pgcpp*)
20160 # Portland Group C++ compiler
20161 lt_prog_compiler_wl_CXX='-Wl,'
20162 lt_prog_compiler_pic_CXX='-fpic'
20163 lt_prog_compiler_static_CXX='-Bstatic'
20164 ;;
20165 cxx*)
20166 # Compaq C++
20167 # Make sure the PIC flag is empty. It appears that all Alpha
20168 # Linux and Compaq Tru64 Unix objects are PIC.
20169 lt_prog_compiler_pic_CXX=
20170 lt_prog_compiler_static_CXX='-non_shared'
20171 ;;
20172 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20173 # IBM XL 8.0, 9.0 on PPC and BlueGene
20174 lt_prog_compiler_wl_CXX='-Wl,'
20175 lt_prog_compiler_pic_CXX='-qpic'
20176 lt_prog_compiler_static_CXX='-qstaticlink'
20177 ;;
20178 *)
20179 case `$CC -V 2>&1 | sed 5q` in
20180 *Sun\ C*)
20181 # Sun C++ 5.9
20182 lt_prog_compiler_pic_CXX='-KPIC'
20183 lt_prog_compiler_static_CXX='-Bstatic'
20184 lt_prog_compiler_wl_CXX='-Qoption ld '
20185 ;;
20186 esac
20187 ;;
20188 esac
20189 ;;
20190 lynxos*)
20191 ;;
20192 m88k*)
20193 ;;
20194 mvs*)
20195 case $cc_basename in
20196 cxx*)
20197 lt_prog_compiler_pic_CXX='-W c,exportall'
20198 ;;
20199 *)
20200 ;;
20201 esac
20202 ;;
20203 netbsd*)
20204 ;;
20205 *qnx* | *nto*)
20206 # QNX uses GNU C++, but need to define -shared option too, otherwise
20207 # it will coredump.
20208 lt_prog_compiler_pic_CXX='-fPIC -shared'
20209 ;;
20210 osf3* | osf4* | osf5*)
20211 case $cc_basename in
20212 KCC*)
20213 lt_prog_compiler_wl_CXX='--backend -Wl,'
20214 ;;
20215 RCC*)
20216 # Rational C++ 2.4.1
20217 lt_prog_compiler_pic_CXX='-pic'
20218 ;;
20219 cxx*)
20220 # Digital/Compaq C++
20221 lt_prog_compiler_wl_CXX='-Wl,'
20222 # Make sure the PIC flag is empty. It appears that all Alpha
20223 # Linux and Compaq Tru64 Unix objects are PIC.
20224 lt_prog_compiler_pic_CXX=
20225 lt_prog_compiler_static_CXX='-non_shared'
20226 ;;
20227 *)
20228 ;;
20229 esac
20230 ;;
20231 psos*)
20232 ;;
20233 solaris*)
20234 case $cc_basename in
20235 CC*)
20236 # Sun C++ 4.2, 5.x and Centerline C++
20237 lt_prog_compiler_pic_CXX='-KPIC'
20238 lt_prog_compiler_static_CXX='-Bstatic'
20239 lt_prog_compiler_wl_CXX='-Qoption ld '
20240 ;;
20241 gcx*)
20242 # Green Hills C++ Compiler
20243 lt_prog_compiler_pic_CXX='-PIC'
20244 ;;
20245 *)
20246 ;;
20247 esac
20248 ;;
20249 sunos4*)
20250 case $cc_basename in
20251 CC*)
20252 # Sun C++ 4.x
20253 lt_prog_compiler_pic_CXX='-pic'
20254 lt_prog_compiler_static_CXX='-Bstatic'
20255 ;;
20256 lcc*)
20257 # Lucid
20258 lt_prog_compiler_pic_CXX='-pic'
20259 ;;
20260 *)
20261 ;;
20262 esac
20263 ;;
20264 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20265 case $cc_basename in
20266 CC*)
20267 lt_prog_compiler_wl_CXX='-Wl,'
20268 lt_prog_compiler_pic_CXX='-KPIC'
20269 lt_prog_compiler_static_CXX='-Bstatic'
20270 ;;
20271 esac
20272 ;;
20273 tandem*)
20274 case $cc_basename in
20275 NCC*)
20276 # NonStop-UX NCC 3.20
20277 lt_prog_compiler_pic_CXX='-KPIC'
20278 ;;
20279 *)
20280 ;;
20281 esac
20282 ;;
20283 vxworks*)
20284 ;;
20285 *)
20286 lt_prog_compiler_can_build_shared_CXX=no
20287 ;;
20288 esac
20289 fi
20290
20291 case $host_os in
20292 # For platforms which do not support PIC, -DPIC is meaningless:
20293 *djgpp*)
20294 lt_prog_compiler_pic_CXX=
20295 ;;
20296 *)
20297 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20298 ;;
20299 esac
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20301 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20302
20303
20304
20305 #
20306 # Check to make sure the PIC flag actually works.
20307 #
20308 if test -n "$lt_prog_compiler_pic_CXX"; then
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20311 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20312 $as_echo_n "(cached) " >&6
20313 else
20314 lt_cv_prog_compiler_pic_works_CXX=no
20315 ac_outfile=conftest.$ac_objext
20316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20317 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20318 # Insert the option either (1) after the last *FLAGS variable, or
20319 # (2) before a word containing "conftest.", or (3) at the end.
20320 # Note that $ac_compile itself does not contain backslashes and begins
20321 # with a dollar sign (not a hyphen), so the echo should work correctly.
20322 # The option is referenced via a variable to avoid confusing sed.
20323 lt_compile=`echo "$ac_compile" | $SED \
20324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20326 -e 's:$: $lt_compiler_flag:'`
20327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20328 (eval "$lt_compile" 2>conftest.err)
20329 ac_status=$?
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 if (exit $ac_status) && test -s "$ac_outfile"; then
20333 # The compiler can only warn and ignore the option if not recognized
20334 # So say no if there are warnings other than the usual output.
20335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20338 lt_cv_prog_compiler_pic_works_CXX=yes
20339 fi
20340 fi
20341 $RM conftest*
20342
20343 fi
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20345 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20346
20347 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20348 case $lt_prog_compiler_pic_CXX in
20349 "" | " "*) ;;
20350 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20351 esac
20352 else
20353 lt_prog_compiler_pic_CXX=
20354 lt_prog_compiler_can_build_shared_CXX=no
20355 fi
20356
20357 fi
20358
20359
20360
20361 #
20362 # Check to make sure the static flag actually works.
20363 #
20364 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20367 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20368 $as_echo_n "(cached) " >&6
20369 else
20370 lt_cv_prog_compiler_static_works_CXX=no
20371 save_LDFLAGS="$LDFLAGS"
20372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20375 # The linker can only warn and ignore the option if not recognized
20376 # So say no if there are warnings
20377 if test -s conftest.err; then
20378 # Append any errors to the config.log.
20379 cat conftest.err 1>&5
20380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20382 if diff conftest.exp conftest.er2 >/dev/null; then
20383 lt_cv_prog_compiler_static_works_CXX=yes
20384 fi
20385 else
20386 lt_cv_prog_compiler_static_works_CXX=yes
20387 fi
20388 fi
20389 $RM -r conftest*
20390 LDFLAGS="$save_LDFLAGS"
20391
20392 fi
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20394 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20395
20396 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20397 :
20398 else
20399 lt_prog_compiler_static_CXX=
20400 fi
20401
20402
20403
20404
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20407 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410 lt_cv_prog_compiler_c_o_CXX=no
20411 $RM -r conftest 2>/dev/null
20412 mkdir conftest
20413 cd conftest
20414 mkdir out
20415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20416
20417 lt_compiler_flag="-o out/conftest2.$ac_objext"
20418 # Insert the option either (1) after the last *FLAGS variable, or
20419 # (2) before a word containing "conftest.", or (3) at the end.
20420 # Note that $ac_compile itself does not contain backslashes and begins
20421 # with a dollar sign (not a hyphen), so the echo should work correctly.
20422 lt_compile=`echo "$ac_compile" | $SED \
20423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20425 -e 's:$: $lt_compiler_flag:'`
20426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20427 (eval "$lt_compile" 2>out/conftest.err)
20428 ac_status=$?
20429 cat out/conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20432 then
20433 # The compiler can only warn and ignore the option if not recognized
20434 # So say no if there are warnings
20435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20438 lt_cv_prog_compiler_c_o_CXX=yes
20439 fi
20440 fi
20441 chmod u+w . 2>&5
20442 $RM conftest*
20443 # SGI C++ compiler will create directory out/ii_files/ for
20444 # template instantiation
20445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20446 $RM out/* && rmdir out
20447 cd ..
20448 $RM -r conftest
20449 $RM conftest*
20450
20451 fi
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20453 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20454
20455
20456
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20460 $as_echo_n "(cached) " >&6
20461 else
20462 lt_cv_prog_compiler_c_o_CXX=no
20463 $RM -r conftest 2>/dev/null
20464 mkdir conftest
20465 cd conftest
20466 mkdir out
20467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20468
20469 lt_compiler_flag="-o out/conftest2.$ac_objext"
20470 # Insert the option either (1) after the last *FLAGS variable, or
20471 # (2) before a word containing "conftest.", or (3) at the end.
20472 # Note that $ac_compile itself does not contain backslashes and begins
20473 # with a dollar sign (not a hyphen), so the echo should work correctly.
20474 lt_compile=`echo "$ac_compile" | $SED \
20475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20477 -e 's:$: $lt_compiler_flag:'`
20478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20479 (eval "$lt_compile" 2>out/conftest.err)
20480 ac_status=$?
20481 cat out/conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20484 then
20485 # The compiler can only warn and ignore the option if not recognized
20486 # So say no if there are warnings
20487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20490 lt_cv_prog_compiler_c_o_CXX=yes
20491 fi
20492 fi
20493 chmod u+w . 2>&5
20494 $RM conftest*
20495 # SGI C++ compiler will create directory out/ii_files/ for
20496 # template instantiation
20497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20498 $RM out/* && rmdir out
20499 cd ..
20500 $RM -r conftest
20501 $RM conftest*
20502
20503 fi
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20506
20507
20508
20509
20510 hard_links="nottested"
20511 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20512 # do not overwrite the value of need_locks provided by the user
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20514 $as_echo_n "checking if we can lock with hard links... " >&6; }
20515 hard_links=yes
20516 $RM conftest*
20517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20518 touch conftest.a
20519 ln conftest.a conftest.b 2>&5 || hard_links=no
20520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20522 $as_echo "$hard_links" >&6; }
20523 if test "$hard_links" = no; then
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20525 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20526 need_locks=warn
20527 fi
20528 else
20529 need_locks=no
20530 fi
20531
20532
20533
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20536
20537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20538 case $host_os in
20539 aix[4-9]*)
20540 # If we're using GNU nm, then we don't want the "-C" option.
20541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20542 # Also, AIX nm treats weak defined symbols like other global defined
20543 # symbols, whereas GNU nm marks them as "W".
20544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20545 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'
20546 else
20547 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'
20548 fi
20549 ;;
20550 pw32*)
20551 export_symbols_cmds_CXX="$ltdll_cmds"
20552 ;;
20553 cygwin* | mingw* | cegcc*)
20554 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'
20555 ;;
20556 *)
20557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20558 ;;
20559 esac
20560 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20561
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20563 $as_echo "$ld_shlibs_CXX" >&6; }
20564 test "$ld_shlibs_CXX" = no && can_build_shared=no
20565
20566 with_gnu_ld_CXX=$with_gnu_ld
20567
20568
20569
20570
20571
20572
20573 #
20574 # Do we need to explicitly link libc?
20575 #
20576 case "x$archive_cmds_need_lc_CXX" in
20577 x|xyes)
20578 # Assume -lc should be added
20579 archive_cmds_need_lc_CXX=yes
20580
20581 if test "$enable_shared" = yes && test "$GCC" = yes; then
20582 case $archive_cmds_CXX in
20583 *'~'*)
20584 # FIXME: we may have to deal with multi-command sequences.
20585 ;;
20586 '$CC '*)
20587 # Test whether the compiler implicitly links with -lc since on some
20588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20589 # to ld, don't add -lc before -lgcc.
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20592 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20593 $as_echo_n "(cached) " >&6
20594 else
20595 $RM conftest*
20596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20597
20598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20599 (eval $ac_compile) 2>&5
20600 ac_status=$?
20601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20602 test $ac_status = 0; } 2>conftest.err; then
20603 soname=conftest
20604 lib=conftest
20605 libobjs=conftest.$ac_objext
20606 deplibs=
20607 wl=$lt_prog_compiler_wl_CXX
20608 pic_flag=$lt_prog_compiler_pic_CXX
20609 compiler_flags=-v
20610 linker_flags=-v
20611 verstring=
20612 output_objdir=.
20613 libname=conftest
20614 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20615 allow_undefined_flag_CXX=
20616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20617 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20618 ac_status=$?
20619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20620 test $ac_status = 0; }
20621 then
20622 lt_cv_archive_cmds_need_lc_CXX=no
20623 else
20624 lt_cv_archive_cmds_need_lc_CXX=yes
20625 fi
20626 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20627 else
20628 cat conftest.err 1>&5
20629 fi
20630 $RM conftest*
20631
20632 fi
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20634 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20635 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20636 ;;
20637 esac
20638 fi
20639 ;;
20640 esac
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20707
20708 library_names_spec=
20709 libname_spec='lib$name'
20710 soname_spec=
20711 shrext_cmds=".so"
20712 postinstall_cmds=
20713 postuninstall_cmds=
20714 finish_cmds=
20715 finish_eval=
20716 shlibpath_var=
20717 shlibpath_overrides_runpath=unknown
20718 version_type=none
20719 dynamic_linker="$host_os ld.so"
20720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20721 need_lib_prefix=unknown
20722 hardcode_into_libs=no
20723
20724 # when you set need_version to no, make sure it does not cause -set_version
20725 # flags to be left without arguments
20726 need_version=unknown
20727
20728 case $host_os in
20729 aix3*)
20730 version_type=linux
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20732 shlibpath_var=LIBPATH
20733
20734 # AIX 3 has no versioning support, so we append a major version to the name.
20735 soname_spec='${libname}${release}${shared_ext}$major'
20736 ;;
20737
20738 aix[4-9]*)
20739 version_type=linux
20740 need_lib_prefix=no
20741 need_version=no
20742 hardcode_into_libs=yes
20743 if test "$host_cpu" = ia64; then
20744 # AIX 5 supports IA64
20745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 else
20748 # With GCC up to 2.95.x, collect2 would create an import file
20749 # for dependence libraries. The import file would start with
20750 # the line `#! .'. This would cause the generated library to
20751 # depend on `.', always an invalid library. This was fixed in
20752 # development snapshots of GCC prior to 3.0.
20753 case $host_os in
20754 aix4 | aix4.[01] | aix4.[01].*)
20755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20756 echo ' yes '
20757 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20758 :
20759 else
20760 can_build_shared=no
20761 fi
20762 ;;
20763 esac
20764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20765 # soname into executable. Probably we can add versioning support to
20766 # collect2, so additional links can be useful in future.
20767 if test "$aix_use_runtimelinking" = yes; then
20768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20769 # instead of lib<name>.a to let people know that these are not
20770 # typical AIX shared libraries.
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 else
20773 # We preserve .a as extension for shared libraries through AIX4.2
20774 # and later when we are not doing run time linking.
20775 library_names_spec='${libname}${release}.a $libname.a'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 fi
20778 shlibpath_var=LIBPATH
20779 fi
20780 ;;
20781
20782 amigaos*)
20783 case $host_cpu in
20784 powerpc)
20785 # Since July 2007 AmigaOS4 officially supports .so libraries.
20786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20788 ;;
20789 m68k)
20790 library_names_spec='$libname.ixlibrary $libname.a'
20791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20792 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'
20793 ;;
20794 esac
20795 ;;
20796
20797 beos*)
20798 library_names_spec='${libname}${shared_ext}'
20799 dynamic_linker="$host_os ld.so"
20800 shlibpath_var=LIBRARY_PATH
20801 ;;
20802
20803 bsdi[45]*)
20804 version_type=linux
20805 need_version=no
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20812 # the default ld.so.conf also contains /usr/contrib/lib and
20813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20814 # libtool to hard-code these into programs
20815 ;;
20816
20817 cygwin* | mingw* | pw32* | cegcc*)
20818 version_type=windows
20819 shrext_cmds=".dll"
20820 need_version=no
20821 need_lib_prefix=no
20822
20823 case $GCC,$host_os in
20824 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20825 library_names_spec='$libname.dll.a'
20826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20827 postinstall_cmds='base_file=`basename \${file}`~
20828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20829 dldir=$destdir/`dirname \$dlpath`~
20830 test -d \$dldir || mkdir -p \$dldir~
20831 $install_prog $dir/$dlname \$dldir/$dlname~
20832 chmod a+x \$dldir/$dlname~
20833 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20834 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20835 fi'
20836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20837 dlpath=$dir/\$dldll~
20838 $RM \$dlpath'
20839 shlibpath_overrides_runpath=yes
20840
20841 case $host_os in
20842 cygwin*)
20843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20844 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20845
20846 ;;
20847 mingw* | cegcc*)
20848 # MinGW DLLs use traditional 'lib' prefix
20849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20850 ;;
20851 pw32*)
20852 # pw32 DLLs use 'pw' prefix rather than 'lib'
20853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20854 ;;
20855 esac
20856 ;;
20857
20858 *)
20859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20860 ;;
20861 esac
20862 dynamic_linker='Win32 ld.exe'
20863 # FIXME: first we should search . and the directory the executable is in
20864 shlibpath_var=PATH
20865 ;;
20866
20867 darwin* | rhapsody*)
20868 dynamic_linker="$host_os dyld"
20869 version_type=darwin
20870 need_lib_prefix=no
20871 need_version=no
20872 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20873 soname_spec='${libname}${release}${major}$shared_ext'
20874 shlibpath_overrides_runpath=yes
20875 shlibpath_var=DYLD_LIBRARY_PATH
20876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20877
20878 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20879 ;;
20880
20881 dgux*)
20882 version_type=linux
20883 need_lib_prefix=no
20884 need_version=no
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20886 soname_spec='${libname}${release}${shared_ext}$major'
20887 shlibpath_var=LD_LIBRARY_PATH
20888 ;;
20889
20890 freebsd* | dragonfly*)
20891 # DragonFly does not have aout. When/if they implement a new
20892 # versioning mechanism, adjust this.
20893 if test -x /usr/bin/objformat; then
20894 objformat=`/usr/bin/objformat`
20895 else
20896 case $host_os in
20897 freebsd[123]*) objformat=aout ;;
20898 *) objformat=elf ;;
20899 esac
20900 fi
20901 version_type=freebsd-$objformat
20902 case $version_type in
20903 freebsd-elf*)
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20905 need_version=no
20906 need_lib_prefix=no
20907 ;;
20908 freebsd-*)
20909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20910 need_version=yes
20911 ;;
20912 esac
20913 shlibpath_var=LD_LIBRARY_PATH
20914 case $host_os in
20915 freebsd2*)
20916 shlibpath_overrides_runpath=yes
20917 ;;
20918 freebsd3.[01]* | freebsdelf3.[01]*)
20919 shlibpath_overrides_runpath=yes
20920 hardcode_into_libs=yes
20921 ;;
20922 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20923 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20924 shlibpath_overrides_runpath=no
20925 hardcode_into_libs=yes
20926 ;;
20927 *) # from 4.6 on, and DragonFly
20928 shlibpath_overrides_runpath=yes
20929 hardcode_into_libs=yes
20930 ;;
20931 esac
20932 ;;
20933
20934 gnu*)
20935 version_type=linux
20936 need_lib_prefix=no
20937 need_version=no
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 hardcode_into_libs=yes
20942 ;;
20943
20944 haiku*)
20945 version_type=linux
20946 need_lib_prefix=no
20947 need_version=no
20948 dynamic_linker="$host_os runtime_loader"
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 shlibpath_var=LIBRARY_PATH
20952 shlibpath_overrides_runpath=yes
20953 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20954 hardcode_into_libs=yes
20955 ;;
20956
20957 hpux9* | hpux10* | hpux11*)
20958 # Give a soname corresponding to the major version so that dld.sl refuses to
20959 # link against other versions.
20960 version_type=sunos
20961 need_lib_prefix=no
20962 need_version=no
20963 case $host_cpu in
20964 ia64*)
20965 shrext_cmds='.so'
20966 hardcode_into_libs=yes
20967 dynamic_linker="$host_os dld.so"
20968 shlibpath_var=LD_LIBRARY_PATH
20969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 if test "X$HPUX_IA64_MODE" = X32; then
20973 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20974 else
20975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20976 fi
20977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20978 ;;
20979 hppa*64*)
20980 shrext_cmds='.sl'
20981 hardcode_into_libs=yes
20982 dynamic_linker="$host_os dld.sl"
20983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986 soname_spec='${libname}${release}${shared_ext}$major'
20987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20989 ;;
20990 *)
20991 shrext_cmds='.sl'
20992 dynamic_linker="$host_os dld.sl"
20993 shlibpath_var=SHLIB_PATH
20994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 soname_spec='${libname}${release}${shared_ext}$major'
20997 ;;
20998 esac
20999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21000 postinstall_cmds='chmod 555 $lib'
21001 # or fails outright, so override atomically:
21002 install_override_mode=555
21003 ;;
21004
21005 interix[3-9]*)
21006 version_type=linux
21007 need_lib_prefix=no
21008 need_version=no
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21010 soname_spec='${libname}${release}${shared_ext}$major'
21011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21012 shlibpath_var=LD_LIBRARY_PATH
21013 shlibpath_overrides_runpath=no
21014 hardcode_into_libs=yes
21015 ;;
21016
21017 irix5* | irix6* | nonstopux*)
21018 case $host_os in
21019 nonstopux*) version_type=nonstopux ;;
21020 *)
21021 if test "$lt_cv_prog_gnu_ld" = yes; then
21022 version_type=linux
21023 else
21024 version_type=irix
21025 fi ;;
21026 esac
21027 need_lib_prefix=no
21028 need_version=no
21029 soname_spec='${libname}${release}${shared_ext}$major'
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21031 case $host_os in
21032 irix5* | nonstopux*)
21033 libsuff= shlibsuff=
21034 ;;
21035 *)
21036 case $LD in # libtool.m4 will add one of these switches to LD
21037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21038 libsuff= shlibsuff= libmagic=32-bit;;
21039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21040 libsuff=32 shlibsuff=N32 libmagic=N32;;
21041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21043 *) libsuff= shlibsuff= libmagic=never-match;;
21044 esac
21045 ;;
21046 esac
21047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21048 shlibpath_overrides_runpath=no
21049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21051 hardcode_into_libs=yes
21052 ;;
21053
21054 # No shared lib support for Linux oldld, aout, or coff.
21055 linux*oldld* | linux*aout* | linux*coff*)
21056 dynamic_linker=no
21057 ;;
21058
21059 # This must be Linux ELF.
21060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21061 version_type=linux
21062 need_lib_prefix=no
21063 need_version=no
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21067 shlibpath_var=LD_LIBRARY_PATH
21068 shlibpath_overrides_runpath=no
21069
21070 # Some binutils ld are patched to set DT_RUNPATH
21071 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21072 $as_echo_n "(cached) " >&6
21073 else
21074 lt_cv_shlibpath_overrides_runpath=no
21075 save_LDFLAGS=$LDFLAGS
21076 save_libdir=$libdir
21077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21081
21082 int
21083 main ()
21084 {
21085
21086 ;
21087 return 0;
21088 }
21089 _ACEOF
21090 if ac_fn_cxx_try_link "$LINENO"; then :
21091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21092 lt_cv_shlibpath_overrides_runpath=yes
21093 fi
21094 fi
21095 rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21097 LDFLAGS=$save_LDFLAGS
21098 libdir=$save_libdir
21099
21100 fi
21101
21102 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21103
21104 # This implies no fast_install, which is unacceptable.
21105 # Some rework will be needed to allow for fast_install
21106 # before this can be enabled.
21107 hardcode_into_libs=yes
21108
21109 # Append ld.so.conf contents to the search path
21110 if test -f /etc/ld.so.conf; then
21111 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' ' '`
21112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21113 fi
21114
21115 # We used to test for /lib/ld.so.1 and disable shared libraries on
21116 # powerpc, because MkLinux only supported shared libraries with the
21117 # GNU dynamic linker. Since this was broken with cross compilers,
21118 # most powerpc-linux boxes support dynamic linking these days and
21119 # people can always --disable-shared, the test was removed, and we
21120 # assume the GNU/Linux dynamic linker is in use.
21121 dynamic_linker='GNU/Linux ld.so'
21122 ;;
21123
21124 netbsd*)
21125 version_type=sunos
21126 need_lib_prefix=no
21127 need_version=no
21128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21131 dynamic_linker='NetBSD (a.out) ld.so'
21132 else
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21134 soname_spec='${libname}${release}${shared_ext}$major'
21135 dynamic_linker='NetBSD ld.elf_so'
21136 fi
21137 shlibpath_var=LD_LIBRARY_PATH
21138 shlibpath_overrides_runpath=yes
21139 hardcode_into_libs=yes
21140 ;;
21141
21142 newsos6)
21143 version_type=linux
21144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 shlibpath_var=LD_LIBRARY_PATH
21146 shlibpath_overrides_runpath=yes
21147 ;;
21148
21149 *nto* | *qnx*)
21150 version_type=qnx
21151 need_lib_prefix=no
21152 need_version=no
21153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21154 soname_spec='${libname}${release}${shared_ext}$major'
21155 shlibpath_var=LD_LIBRARY_PATH
21156 shlibpath_overrides_runpath=no
21157 hardcode_into_libs=yes
21158 dynamic_linker='ldqnx.so'
21159 ;;
21160
21161 openbsd*)
21162 version_type=sunos
21163 sys_lib_dlsearch_path_spec="/usr/lib"
21164 need_lib_prefix=no
21165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21166 case $host_os in
21167 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21168 *) need_version=no ;;
21169 esac
21170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21172 shlibpath_var=LD_LIBRARY_PATH
21173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21174 case $host_os in
21175 openbsd2.[89] | openbsd2.[89].*)
21176 shlibpath_overrides_runpath=no
21177 ;;
21178 *)
21179 shlibpath_overrides_runpath=yes
21180 ;;
21181 esac
21182 else
21183 shlibpath_overrides_runpath=yes
21184 fi
21185 ;;
21186
21187 os2*)
21188 libname_spec='$name'
21189 shrext_cmds=".dll"
21190 need_lib_prefix=no
21191 library_names_spec='$libname${shared_ext} $libname.a'
21192 dynamic_linker='OS/2 ld.exe'
21193 shlibpath_var=LIBPATH
21194 ;;
21195
21196 osf3* | osf4* | osf5*)
21197 version_type=osf
21198 need_lib_prefix=no
21199 need_version=no
21200 soname_spec='${libname}${release}${shared_ext}$major'
21201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21202 shlibpath_var=LD_LIBRARY_PATH
21203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21205 ;;
21206
21207 rdos*)
21208 dynamic_linker=no
21209 ;;
21210
21211 solaris*)
21212 version_type=linux
21213 need_lib_prefix=no
21214 need_version=no
21215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec='${libname}${release}${shared_ext}$major'
21217 shlibpath_var=LD_LIBRARY_PATH
21218 shlibpath_overrides_runpath=yes
21219 hardcode_into_libs=yes
21220 # ldd complains unless libraries are executable
21221 postinstall_cmds='chmod +x $lib'
21222 ;;
21223
21224 sunos4*)
21225 version_type=sunos
21226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21227 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21228 shlibpath_var=LD_LIBRARY_PATH
21229 shlibpath_overrides_runpath=yes
21230 if test "$with_gnu_ld" = yes; then
21231 need_lib_prefix=no
21232 fi
21233 need_version=yes
21234 ;;
21235
21236 sysv4 | sysv4.3*)
21237 version_type=linux
21238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239 soname_spec='${libname}${release}${shared_ext}$major'
21240 shlibpath_var=LD_LIBRARY_PATH
21241 case $host_vendor in
21242 sni)
21243 shlibpath_overrides_runpath=no
21244 need_lib_prefix=no
21245 runpath_var=LD_RUN_PATH
21246 ;;
21247 siemens)
21248 need_lib_prefix=no
21249 ;;
21250 motorola)
21251 need_lib_prefix=no
21252 need_version=no
21253 shlibpath_overrides_runpath=no
21254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21255 ;;
21256 esac
21257 ;;
21258
21259 sysv4*MP*)
21260 if test -d /usr/nec ;then
21261 version_type=linux
21262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21263 soname_spec='$libname${shared_ext}.$major'
21264 shlibpath_var=LD_LIBRARY_PATH
21265 fi
21266 ;;
21267
21268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21269 version_type=freebsd-elf
21270 need_lib_prefix=no
21271 need_version=no
21272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21273 soname_spec='${libname}${release}${shared_ext}$major'
21274 shlibpath_var=LD_LIBRARY_PATH
21275 shlibpath_overrides_runpath=yes
21276 hardcode_into_libs=yes
21277 if test "$with_gnu_ld" = yes; then
21278 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21279 else
21280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21281 case $host_os in
21282 sco3.2v5*)
21283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21284 ;;
21285 esac
21286 fi
21287 sys_lib_dlsearch_path_spec='/usr/lib'
21288 ;;
21289
21290 tpf*)
21291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21292 version_type=linux
21293 need_lib_prefix=no
21294 need_version=no
21295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21296 shlibpath_var=LD_LIBRARY_PATH
21297 shlibpath_overrides_runpath=no
21298 hardcode_into_libs=yes
21299 ;;
21300
21301 uts4*)
21302 version_type=linux
21303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 shlibpath_var=LD_LIBRARY_PATH
21306 ;;
21307
21308 *)
21309 dynamic_linker=no
21310 ;;
21311 esac
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21313 $as_echo "$dynamic_linker" >&6; }
21314 test "$dynamic_linker" = no && can_build_shared=no
21315
21316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21317 if test "$GCC" = yes; then
21318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21319 fi
21320
21321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21323 fi
21324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21325 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21326 fi
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21367 hardcode_action_CXX=
21368 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21369 test -n "$runpath_var_CXX" ||
21370 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21371
21372 # We can hardcode non-existent directories.
21373 if test "$hardcode_direct_CXX" != no &&
21374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21375 # have to relink, otherwise we might link with an installed library
21376 # when we should be linking with a yet-to-be-installed one
21377 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21378 test "$hardcode_minus_L_CXX" != no; then
21379 # Linking always hardcodes the temporary library directory.
21380 hardcode_action_CXX=relink
21381 else
21382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21383 hardcode_action_CXX=immediate
21384 fi
21385 else
21386 # We cannot hardcode anything, or else we can only hardcode existing
21387 # directories.
21388 hardcode_action_CXX=unsupported
21389 fi
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21391 $as_echo "$hardcode_action_CXX" >&6; }
21392
21393 if test "$hardcode_action_CXX" = relink ||
21394 test "$inherit_rpath_CXX" = yes; then
21395 # Fast installation is not supported
21396 enable_fast_install=no
21397 elif test "$shlibpath_overrides_runpath" = yes ||
21398 test "$enable_shared" = no; then
21399 # Fast installation is not necessary
21400 enable_fast_install=needless
21401 fi
21402
21403
21404
21405
21406
21407
21408
21409 fi # test -n "$compiler"
21410
21411 CC=$lt_save_CC
21412 LDCXX=$LD
21413 LD=$lt_save_LD
21414 GCC=$lt_save_GCC
21415 with_gnu_ld=$lt_save_with_gnu_ld
21416 lt_cv_path_LDCXX=$lt_cv_path_LD
21417 lt_cv_path_LD=$lt_save_path_LD
21418 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21419 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21420 fi # test "$_lt_caught_CXX_error" != yes
21421
21422 ac_ext=c
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443 # Only expand once:
21444
21445
21446
21447
21448
21449 # Identify the assembler which will work hand-in-glove with the newly
21450 # built GCC, so that we can examine its features. This is the assembler
21451 # which will be driven by the driver program.
21452 #
21453 # If build != host, and we aren't building gas in-tree, we identify a
21454 # build->target assembler and hope that it will have the same features
21455 # as the host->target assembler we'll be using.
21456 gcc_cv_gas_major_version=
21457 gcc_cv_gas_minor_version=
21458 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21459
21460 if test "${gcc_cv_as+set}" = set; then :
21461
21462 else
21463
21464 if test -x "$DEFAULT_ASSEMBLER"; then
21465 gcc_cv_as="$DEFAULT_ASSEMBLER"
21466 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21467 && test -f ../gas/Makefile \
21468 && test x$build = x$host; then
21469 gcc_cv_as=../gas/as-new$build_exeext
21470 elif test -x as$build_exeext; then
21471 # Build using assembler in the current directory.
21472 gcc_cv_as=./as$build_exeext
21473 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21474 gcc_cv_as="$AS_FOR_TARGET"
21475 else
21476 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21477 set dummy $AS_FOR_TARGET; ac_word=$2
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21479 $as_echo_n "checking for $ac_word... " >&6; }
21480 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483 case $gcc_cv_as in
21484 [\\/]* | ?:[\\/]*)
21485 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21486 ;;
21487 *)
21488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21489 for as_dir in $PATH
21490 do
21491 IFS=$as_save_IFS
21492 test -z "$as_dir" && as_dir=.
21493 for ac_exec_ext in '' $ac_executable_extensions; do
21494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21495 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21497 break 2
21498 fi
21499 done
21500 done
21501 IFS=$as_save_IFS
21502
21503 ;;
21504 esac
21505 fi
21506 gcc_cv_as=$ac_cv_path_gcc_cv_as
21507 if test -n "$gcc_cv_as"; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21509 $as_echo "$gcc_cv_as" >&6; }
21510 else
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21512 $as_echo "no" >&6; }
21513 fi
21514
21515
21516 fi
21517 fi
21518
21519 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21520
21521 case "$ORIGINAL_AS_FOR_TARGET" in
21522 ./as | ./as$build_exeext) ;;
21523 *) ac_config_files="$ac_config_files as:exec-tool.in"
21524 ;;
21525 esac
21526
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21528 $as_echo_n "checking what assembler to use... " >&6; }
21529 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21530 # Single tree build which includes gas. We want to prefer it
21531 # over whatever linker top-level may have detected, since
21532 # we'll use what we're building after installation anyway.
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21534 $as_echo "newly built gas" >&6; }
21535 in_tree_gas=yes
21536 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21537 for f in $gcc_cv_as_bfd_srcdir/configure \
21538 $gcc_cv_as_gas_srcdir/configure \
21539 $gcc_cv_as_gas_srcdir/configure.in \
21540 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21541 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21542 if test x$gcc_cv_gas_version != x; then
21543 break
21544 fi
21545 done
21546 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21547 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21548 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21549 case $gcc_cv_gas_patch_version in
21550 "") gcc_cv_gas_patch_version="0" ;;
21551 esac
21552 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21553 + $gcc_cv_gas_minor_version \) \* 1000 \
21554 + $gcc_cv_gas_patch_version`
21555
21556 in_tree_gas_is_elf=no
21557 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21558 || (grep 'obj_format = multi' ../gas/Makefile \
21559 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21560 then
21561 in_tree_gas_is_elf=yes
21562 fi
21563 else
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21565 $as_echo "$gcc_cv_as" >&6; }
21566 in_tree_gas=no
21567 fi
21568
21569 # Identify the linker which will work hand-in-glove with the newly
21570 # built GCC, so that we can examine its features. This is the linker
21571 # which will be driven by the driver program.
21572 #
21573 # If build != host, and we aren't building gas in-tree, we identify a
21574 # build->target linker and hope that it will have the same features
21575 # as the host->target linker we'll be using.
21576 gcc_cv_gld_major_version=
21577 gcc_cv_gld_minor_version=
21578 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21579 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21580
21581 if test "${gcc_cv_ld+set}" = set; then :
21582
21583 else
21584
21585 if test -x "$DEFAULT_LINKER"; then
21586 gcc_cv_ld="$DEFAULT_LINKER"
21587 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21588 && test -f ../ld/Makefile \
21589 && test x$build = x$host; then
21590 gcc_cv_ld=../ld/ld-new$build_exeext
21591 elif test -x collect-ld$build_exeext; then
21592 # Build using linker in the current directory.
21593 gcc_cv_ld=./collect-ld$build_exeext
21594 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21595 gcc_cv_ld="$LD_FOR_TARGET"
21596 else
21597 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21598 set dummy $LD_FOR_TARGET; ac_word=$2
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21600 $as_echo_n "checking for $ac_word... " >&6; }
21601 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21603 else
21604 case $gcc_cv_ld in
21605 [\\/]* | ?:[\\/]*)
21606 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21607 ;;
21608 *)
21609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21610 for as_dir in $PATH
21611 do
21612 IFS=$as_save_IFS
21613 test -z "$as_dir" && as_dir=.
21614 for ac_exec_ext in '' $ac_executable_extensions; do
21615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21616 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21618 break 2
21619 fi
21620 done
21621 done
21622 IFS=$as_save_IFS
21623
21624 ;;
21625 esac
21626 fi
21627 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21628 if test -n "$gcc_cv_ld"; then
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21630 $as_echo "$gcc_cv_ld" >&6; }
21631 else
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21634 fi
21635
21636
21637 fi
21638 fi
21639
21640 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21641 PLUGIN_LD=`basename $gcc_cv_ld`
21642
21643 # Check whether --with-plugin-ld was given.
21644 if test "${with_plugin_ld+set}" = set; then :
21645 withval=$with_plugin_ld; if test x"$withval" != x; then
21646 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21647 PLUGIN_LD="$withval"
21648 fi
21649 fi
21650
21651
21652
21653 cat >>confdefs.h <<_ACEOF
21654 #define PLUGIN_LD "$PLUGIN_LD"
21655 _ACEOF
21656
21657
21658 # Check to see if we are using gold instead of ld
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21660 $as_echo_n "checking whether we are using gold... " >&6; }
21661 ld_is_gold=no
21662 if test x$gcc_cv_ld != x; then
21663 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21664 | grep "GNU gold" > /dev/null; then
21665 ld_is_gold=yes
21666 fi
21667 fi
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21669 $as_echo "$ld_is_gold" >&6; }
21670
21671 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21672
21673 case "$ORIGINAL_LD_FOR_TARGET" in
21674 ./collect-ld | ./collect-ld$build_exeext) ;;
21675 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21676 ;;
21677 esac
21678
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21680 $as_echo_n "checking what linker to use... " >&6; }
21681 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21682 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21683 # Single tree build which includes ld. We want to prefer it
21684 # over whatever linker top-level may have detected, since
21685 # we'll use what we're building after installation anyway.
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21687 $as_echo "newly built ld" >&6; }
21688 in_tree_ld=yes
21689 in_tree_ld_is_elf=no
21690 if (grep 'EMUL = .*elf' ../ld/Makefile \
21691 || grep 'EMUL = .*linux' ../ld/Makefile \
21692 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21693 in_tree_ld_is_elf=yes
21694 elif test "$ld_is_gold" = yes; then
21695 in_tree_ld_is_elf=yes
21696 fi
21697 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
21698 do
21699 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21700 if test x$gcc_cv_gld_version != x; then
21701 break
21702 fi
21703 done
21704 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21705 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21706 else
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21708 $as_echo "$gcc_cv_ld" >&6; }
21709 in_tree_ld=no
21710 fi
21711
21712 # Figure out what nm we will be using.
21713 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21714 if test "${gcc_cv_nm+set}" = set; then :
21715
21716 else
21717
21718 if test -f $gcc_cv_binutils_srcdir/configure.in \
21719 && test -f ../binutils/Makefile \
21720 && test x$build = x$host; then
21721 gcc_cv_nm=../binutils/nm-new$build_exeext
21722 elif test -x nm$build_exeext; then
21723 gcc_cv_nm=./nm$build_exeext
21724 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21725 gcc_cv_nm="$NM_FOR_TARGET"
21726 else
21727 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21728 set dummy $NM_FOR_TARGET; ac_word=$2
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21730 $as_echo_n "checking for $ac_word... " >&6; }
21731 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21732 $as_echo_n "(cached) " >&6
21733 else
21734 case $gcc_cv_nm in
21735 [\\/]* | ?:[\\/]*)
21736 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21737 ;;
21738 *)
21739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21740 for as_dir in $PATH
21741 do
21742 IFS=$as_save_IFS
21743 test -z "$as_dir" && as_dir=.
21744 for ac_exec_ext in '' $ac_executable_extensions; do
21745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21746 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21748 break 2
21749 fi
21750 done
21751 done
21752 IFS=$as_save_IFS
21753
21754 ;;
21755 esac
21756 fi
21757 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21758 if test -n "$gcc_cv_nm"; then
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21760 $as_echo "$gcc_cv_nm" >&6; }
21761 else
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21764 fi
21765
21766
21767 fi
21768 fi
21769
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21771 $as_echo_n "checking what nm to use... " >&6; }
21772 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21773 # Single tree build which includes binutils.
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21775 $as_echo "newly built nm" >&6; }
21776 in_tree_nm=yes
21777 else
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21779 $as_echo "$gcc_cv_nm" >&6; }
21780 in_tree_nm=no
21781 fi
21782
21783 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21784
21785 case "$ORIGINAL_NM_FOR_TARGET" in
21786 ./nm | ./nm$build_exeext) ;;
21787 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21788 ;;
21789 esac
21790
21791
21792 # Figure out what objdump we will be using.
21793 if test "${gcc_cv_objdump+set}" = set; then :
21794
21795 else
21796
21797 if test -f $gcc_cv_binutils_srcdir/configure.in \
21798 && test -f ../binutils/Makefile \
21799 && test x$build = x$host; then
21800 # Single tree build which includes binutils.
21801 gcc_cv_objdump=../binutils/objdump$build_exeext
21802 elif test -x objdump$build_exeext; then
21803 gcc_cv_objdump=./objdump$build_exeext
21804 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21805 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21806 else
21807 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21808 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21810 $as_echo_n "checking for $ac_word... " >&6; }
21811 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21812 $as_echo_n "(cached) " >&6
21813 else
21814 case $gcc_cv_objdump in
21815 [\\/]* | ?:[\\/]*)
21816 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21817 ;;
21818 *)
21819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21820 for as_dir in $PATH
21821 do
21822 IFS=$as_save_IFS
21823 test -z "$as_dir" && as_dir=.
21824 for ac_exec_ext in '' $ac_executable_extensions; do
21825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21826 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21828 break 2
21829 fi
21830 done
21831 done
21832 IFS=$as_save_IFS
21833
21834 ;;
21835 esac
21836 fi
21837 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21838 if test -n "$gcc_cv_objdump"; then
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21840 $as_echo "$gcc_cv_objdump" >&6; }
21841 else
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21843 $as_echo "no" >&6; }
21844 fi
21845
21846
21847 fi
21848 fi
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21851 $as_echo_n "checking what objdump to use... " >&6; }
21852 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21853 # Single tree build which includes binutils.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21855 $as_echo "newly built objdump" >&6; }
21856 elif test x$gcc_cv_objdump = x; then
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21858 $as_echo "not found" >&6; }
21859 else
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21861 $as_echo "$gcc_cv_objdump" >&6; }
21862 fi
21863
21864 # Figure out what readelf we will be using.
21865 if test "${gcc_cv_readelf+set}" = set; then :
21866
21867 else
21868
21869 if test -f $gcc_cv_binutils_srcdir/configure.in \
21870 && test -f ../binutils/Makefile \
21871 && test x$build = x$host; then
21872 # Single tree build which includes binutils.
21873 gcc_cv_readelf=../binutils/readelf$build_exeext
21874 elif test -x readelf$build_exeext; then
21875 gcc_cv_readelf=./readelf$build_exeext
21876 else
21877 # Extract the first word of "readelf", so it can be a program name with args.
21878 set dummy readelf; ac_word=$2
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21880 $as_echo_n "checking for $ac_word... " >&6; }
21881 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21882 $as_echo_n "(cached) " >&6
21883 else
21884 case $gcc_cv_readelf in
21885 [\\/]* | ?:[\\/]*)
21886 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21887 ;;
21888 *)
21889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21890 for as_dir in $PATH
21891 do
21892 IFS=$as_save_IFS
21893 test -z "$as_dir" && as_dir=.
21894 for ac_exec_ext in '' $ac_executable_extensions; do
21895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21896 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21898 break 2
21899 fi
21900 done
21901 done
21902 IFS=$as_save_IFS
21903
21904 ;;
21905 esac
21906 fi
21907 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21908 if test -n "$gcc_cv_readelf"; then
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21910 $as_echo "$gcc_cv_readelf" >&6; }
21911 else
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21913 $as_echo "no" >&6; }
21914 fi
21915
21916
21917 fi
21918 fi
21919
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21921 $as_echo_n "checking what readelf to use... " >&6; }
21922 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21923 # Single tree build which includes binutils.
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21925 $as_echo "newly built readelf" >&6; }
21926 elif test x$gcc_cv_readelf = x; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21928 $as_echo "not found" >&6; }
21929 else
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21931 $as_echo "$gcc_cv_readelf" >&6; }
21932 fi
21933
21934 # Figure out what assembler alignment features are present.
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21936 $as_echo_n "checking assembler flags... " >&6; }
21937 if test "${gcc_cv_as_flags+set}" = set; then :
21938 $as_echo_n "(cached) " >&6
21939 else
21940 case "$target" in
21941 i[34567]86-*-linux*)
21942 gcc_cv_as_flags="--32"
21943 ;;
21944 powerpc*-*-darwin*)
21945 gcc_cv_as_flags="-arch ppc"
21946 ;;
21947 *)
21948 gcc_cv_as_flags=" "
21949 ;;
21950 esac
21951 fi
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21953 $as_echo "$gcc_cv_as_flags" >&6; }
21954
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21956 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21957 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21959 else
21960 gcc_cv_as_balign_and_p2align=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21963 then gcc_cv_as_balign_and_p2align=yes
21964 fi
21965 elif test x$gcc_cv_as != x; then
21966 $as_echo '.balign 4
21967 .p2align 2' > conftest.s
21968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21973 test $ac_status = 0; }; }
21974 then
21975 gcc_cv_as_balign_and_p2align=yes
21976 else
21977 echo "configure: failed program was" >&5
21978 cat conftest.s >&5
21979 fi
21980 rm -f conftest.o conftest.s
21981 fi
21982 fi
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21984 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21985 if test $gcc_cv_as_balign_and_p2align = yes; then
21986
21987 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21988
21989 fi
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21992 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21993 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21994 $as_echo_n "(cached) " >&6
21995 else
21996 gcc_cv_as_max_skip_p2align=no
21997 if test $in_tree_gas = yes; then
21998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21999 then gcc_cv_as_max_skip_p2align=yes
22000 fi
22001 elif test x$gcc_cv_as != x; then
22002 $as_echo '.p2align 4,,7' > conftest.s
22003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22008 test $ac_status = 0; }; }
22009 then
22010 gcc_cv_as_max_skip_p2align=yes
22011 else
22012 echo "configure: failed program was" >&5
22013 cat conftest.s >&5
22014 fi
22015 rm -f conftest.o conftest.s
22016 fi
22017 fi
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22019 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22020 if test $gcc_cv_as_max_skip_p2align = yes; then
22021
22022 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22023
22024 fi
22025
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22027 $as_echo_n "checking assembler for .literal16... " >&6; }
22028 if test "${gcc_cv_as_literal16+set}" = set; then :
22029 $as_echo_n "(cached) " >&6
22030 else
22031 gcc_cv_as_literal16=no
22032 if test $in_tree_gas = yes; then
22033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22034 then gcc_cv_as_literal16=yes
22035 fi
22036 elif test x$gcc_cv_as != x; then
22037 $as_echo '.literal16' > conftest.s
22038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22044 then
22045 gcc_cv_as_literal16=yes
22046 else
22047 echo "configure: failed program was" >&5
22048 cat conftest.s >&5
22049 fi
22050 rm -f conftest.o conftest.s
22051 fi
22052 fi
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22054 $as_echo "$gcc_cv_as_literal16" >&6; }
22055 if test $gcc_cv_as_literal16 = yes; then
22056
22057 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22058
22059 fi
22060
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22062 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22063 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22064 $as_echo_n "(cached) " >&6
22065 else
22066 gcc_cv_as_subsection_m1=no
22067 if test $in_tree_gas = yes; then
22068 if test $in_tree_gas_is_elf = yes \
22069 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22070 then gcc_cv_as_subsection_m1=yes
22071 fi
22072 elif test x$gcc_cv_as != x; then
22073 $as_echo 'conftest_label1: .word 0
22074 .subsection -1
22075 conftest_label2: .word 0
22076 .previous' > 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 if test x$gcc_cv_nm != x; then
22085 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22086 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22087 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22088 then :
22089 else gcc_cv_as_subsection_m1=yes
22090 fi
22091 rm -f conftest.nm1 conftest.nm2
22092 fi
22093 else
22094 echo "configure: failed program was" >&5
22095 cat conftest.s >&5
22096 fi
22097 rm -f conftest.o conftest.s
22098 fi
22099 fi
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22101 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22102 if test $gcc_cv_as_subsection_m1 = yes; then
22103
22104 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22105
22106 fi
22107
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22109 $as_echo_n "checking assembler for .weak... " >&6; }
22110 if test "${gcc_cv_as_weak+set}" = set; then :
22111 $as_echo_n "(cached) " >&6
22112 else
22113 gcc_cv_as_weak=no
22114 if test $in_tree_gas = yes; then
22115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22116 then gcc_cv_as_weak=yes
22117 fi
22118 elif test x$gcc_cv_as != x; then
22119 $as_echo ' .weak foobar' > conftest.s
22120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; }
22126 then
22127 gcc_cv_as_weak=yes
22128 else
22129 echo "configure: failed program was" >&5
22130 cat conftest.s >&5
22131 fi
22132 rm -f conftest.o conftest.s
22133 fi
22134 fi
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22136 $as_echo "$gcc_cv_as_weak" >&6; }
22137 if test $gcc_cv_as_weak = yes; then
22138
22139 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22140
22141 fi
22142
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22144 $as_echo_n "checking assembler for .weakref... " >&6; }
22145 if test "${gcc_cv_as_weakref+set}" = set; then :
22146 $as_echo_n "(cached) " >&6
22147 else
22148 gcc_cv_as_weakref=no
22149 if test $in_tree_gas = yes; then
22150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22151 then gcc_cv_as_weakref=yes
22152 fi
22153 elif test x$gcc_cv_as != x; then
22154 $as_echo ' .weakref foobar, barfnot' > conftest.s
22155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22160 test $ac_status = 0; }; }
22161 then
22162 gcc_cv_as_weakref=yes
22163 else
22164 echo "configure: failed program was" >&5
22165 cat conftest.s >&5
22166 fi
22167 rm -f conftest.o conftest.s
22168 fi
22169 fi
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22171 $as_echo "$gcc_cv_as_weakref" >&6; }
22172 if test $gcc_cv_as_weakref = yes; then
22173
22174 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22175
22176 fi
22177
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22179 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22180 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22181 $as_echo_n "(cached) " >&6
22182 else
22183 gcc_cv_as_nsubspa_comdat=no
22184 if test $in_tree_gas = yes; then
22185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22186 then gcc_cv_as_nsubspa_comdat=yes
22187 fi
22188 elif test x$gcc_cv_as != x; then
22189 $as_echo ' .SPACE $TEXT$
22190 .NSUBSPA $CODE$,COMDAT' > conftest.s
22191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22193 (eval $ac_try) 2>&5
22194 ac_status=$?
22195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22196 test $ac_status = 0; }; }
22197 then
22198 gcc_cv_as_nsubspa_comdat=yes
22199 else
22200 echo "configure: failed program was" >&5
22201 cat conftest.s >&5
22202 fi
22203 rm -f conftest.o conftest.s
22204 fi
22205 fi
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22207 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22208 if test $gcc_cv_as_nsubspa_comdat = yes; then
22209
22210 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22211
22212 fi
22213
22214 # .hidden needs to be supported in both the assembler and the linker,
22215 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22216 # This is irritatingly difficult to feature test for; we have to check the
22217 # date string after the version number. If we've got an in-tree
22218 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22219 # to be safe.
22220 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22222 $as_echo_n "checking assembler for .hidden... " >&6; }
22223 if test "${gcc_cv_as_hidden+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 gcc_cv_as_hidden=no
22227 if test $in_tree_gas = yes; then
22228 if test $in_tree_gas_is_elf = yes \
22229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22230 then gcc_cv_as_hidden=yes
22231 fi
22232 elif test x$gcc_cv_as != x; then
22233 $as_echo ' .hidden foobar
22234 foobar:' > conftest.s
22235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22237 (eval $ac_try) 2>&5
22238 ac_status=$?
22239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22240 test $ac_status = 0; }; }
22241 then
22242
22243 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22244 # STV_HIDDEN, so disable .hidden support if so.
22245 case "${target}" in
22246 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22247 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22248 cat > conftest.s <<EOF
22249 .globl hidden
22250 .hidden hidden
22251 hidden:
22252 .globl default
22253 .set default,hidden
22254 EOF
22255 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22256 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22257 grep '\.hidden default' > /dev/null; then
22258 gcc_cv_as_hidden=no
22259 else
22260 gcc_cv_as_hidden=yes
22261 fi
22262 else
22263 # Assume bug is present if objdump is missing.
22264 gcc_cv_as_hidden=no
22265 fi
22266 ;;
22267 *)
22268 gcc_cv_as_hidden=yes
22269 ;;
22270 esac
22271 else
22272 echo "configure: failed program was" >&5
22273 cat conftest.s >&5
22274 fi
22275 rm -f conftest.o conftest.s
22276 fi
22277 fi
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22279 $as_echo "$gcc_cv_as_hidden" >&6; }
22280
22281 case "${target}" in
22282 *-*-darwin*)
22283 # Darwin as has some visibility support, though with a different syntax.
22284 gcc_cv_as_hidden=yes
22285 ;;
22286 esac
22287
22288 # gnu_indirect_function type is an extension proposed at
22289 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22290 # selection of function implementation
22291 # Check whether --enable-gnu-indirect-function was given.
22292 if test "${enable_gnu_indirect_function+set}" = set; then :
22293 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22294 yes | no) ;;
22295 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22296 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22297 esac
22298 else
22299 enable_gnu_indirect_function="$default_gnu_indirect_function"
22300 fi
22301
22302 if test x$enable_gnu_indirect_function = xyes; then
22303
22304 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22305
22306 fi
22307
22308 if test $in_tree_ld != yes ; then
22309 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22310 if echo "$ld_ver" | grep GNU > /dev/null; then
22311 if test x"$ld_is_gold" = xyes; then
22312 # GNU gold --version looks like this:
22313 #
22314 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22315 #
22316 # We extract the binutils version which is more familiar and specific
22317 # than the gold version.
22318 ld_vers=`echo $ld_ver | sed -n \
22319 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22320 else
22321 # GNU ld --version looks like this:
22322 #
22323 # GNU ld (GNU Binutils) 2.21.51.20110225
22324 ld_vers=`echo $ld_ver | sed -n \
22325 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22326 fi
22327 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'`
22328 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22329 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22330 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22331 else
22332 case "${target}" in
22333 *-*-solaris2*)
22334 #
22335 # Solaris 2 ld -V output looks like this for a regular version:
22336 #
22337 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22338 #
22339 # but test versions add stuff at the end:
22340 #
22341 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22342 #
22343 ld_ver=`$gcc_cv_ld -V 2>&1`
22344 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22345 ld_vers=`echo $ld_ver | sed -n \
22346 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22347 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22348 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22349 fi
22350 ;;
22351 esac
22352 fi
22353 fi
22354
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22356 $as_echo_n "checking linker for .hidden support... " >&6; }
22357 if test "${gcc_cv_ld_hidden+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22359 else
22360 if test $in_tree_ld = yes ; then
22361 gcc_cv_ld_hidden=no
22362 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 \
22363 && test $in_tree_ld_is_elf = yes; then
22364 gcc_cv_ld_hidden=yes
22365 fi
22366 else
22367 gcc_cv_ld_hidden=yes
22368 if test x"$ld_is_gold" = xyes; then
22369 :
22370 elif echo "$ld_ver" | grep GNU > /dev/null; then
22371 if test 0"$ld_date" -lt 20020404; then
22372 if test -n "$ld_date"; then
22373 # If there was date string, but was earlier than 2002-04-04, fail
22374 gcc_cv_ld_hidden=no
22375 elif test -z "$ld_vers"; then
22376 # If there was no date string nor ld version number, something is wrong
22377 gcc_cv_ld_hidden=no
22378 else
22379 test -z "$ld_vers_patch" && ld_vers_patch=0
22380 if test "$ld_vers_major" -lt 2; then
22381 gcc_cv_ld_hidden=no
22382 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22383 gcc_cv_ld_hidden="no"
22384 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22385 gcc_cv_ld_hidden=no
22386 fi
22387 fi
22388 fi
22389 else
22390 case "${target}" in
22391 *-*-darwin*)
22392 # Darwin ld has some visibility support.
22393 gcc_cv_ld_hidden=yes
22394 ;;
22395 hppa64*-*-hpux* | ia64*-*-hpux*)
22396 gcc_cv_ld_hidden=yes
22397 ;;
22398 *-*-solaris2.8*)
22399 # .hidden support was backported to Solaris 8, starting with ld
22400 # version 1.276.
22401 if test "$ld_vers_minor" -ge 276; then
22402 gcc_cv_ld_hidden=yes
22403 else
22404 gcc_cv_ld_hidden=no
22405 fi
22406 ;;
22407 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22408 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22409 # .symbolic was only added in Solaris 9 12/02.
22410 gcc_cv_ld_hidden=yes
22411 ;;
22412 *)
22413 gcc_cv_ld_hidden=no
22414 ;;
22415 esac
22416 fi
22417 fi
22418 fi
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22420 $as_echo "$gcc_cv_ld_hidden" >&6; }
22421 libgcc_visibility=no
22422
22423
22424 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22425 libgcc_visibility=yes
22426
22427 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22428
22429 fi
22430
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22432 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22433 gcc_cv_ld_ro_rw_mix=unknown
22434 if test $in_tree_ld = yes ; then
22435 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 \
22436 && test $in_tree_ld_is_elf = yes; then
22437 gcc_cv_ld_ro_rw_mix=read-write
22438 fi
22439 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22440 echo '.section myfoosect, "a"' > conftest1.s
22441 echo '.section myfoosect, "aw"' > conftest2.s
22442 echo '.byte 1' >> conftest2.s
22443 echo '.section myfoosect, "a"' > conftest3.s
22444 echo '.byte 0' >> conftest3.s
22445 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22446 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22447 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22448 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22449 conftest2.o conftest3.o > /dev/null 2>&1; then
22450 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22451 | sed -e '/myfoosect/!d' -e N`
22452 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22453 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22454 gcc_cv_ld_ro_rw_mix=read-only
22455 else
22456 gcc_cv_ld_ro_rw_mix=read-write
22457 fi
22458 fi
22459 fi
22460 rm -f conftest.* conftest[123].*
22461 fi
22462 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22463
22464 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22465
22466 fi
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22468 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22469
22470 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22472 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22473 if test "${gcc_cv_as_leb128+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_leb128=no
22477 if test $in_tree_gas = yes; then
22478 if test $in_tree_gas_is_elf = yes \
22479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22480 then gcc_cv_as_leb128=yes
22481 fi
22482 elif test x$gcc_cv_as != x; then
22483 $as_echo ' .data
22484 .uleb128 L2 - L1
22485 L1:
22486 .uleb128 1280
22487 .sleb128 -1010
22488 L2:' > conftest.s
22489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22495 then
22496 # GAS versions before 2.11 do not support uleb128,
22497 # despite appearing to.
22498 # ??? There exists an elf-specific test that will crash
22499 # the assembler. Perhaps it's better to figure out whether
22500 # arbitrary sections are supported and try the test.
22501 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22502 if echo "$as_ver" | grep GNU > /dev/null; then
22503 as_vers=`echo $as_ver | sed -n \
22504 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22505 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22506 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22507 if test $as_major -eq 2 && test $as_minor -lt 11
22508 then :
22509 else gcc_cv_as_leb128=yes
22510 fi
22511 fi
22512 else
22513 echo "configure: failed program was" >&5
22514 cat conftest.s >&5
22515 fi
22516 rm -f conftest.o conftest.s
22517 fi
22518 fi
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22520 $as_echo "$gcc_cv_as_leb128" >&6; }
22521 if test $gcc_cv_as_leb128 = yes; then
22522
22523 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22524
22525 fi
22526
22527 # Check if we have assembler support for unwind directives.
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22529 $as_echo_n "checking assembler for cfi directives... " >&6; }
22530 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22532 else
22533 gcc_cv_as_cfi_directive=no
22534 if test x$gcc_cv_as != x; then
22535 $as_echo ' .text
22536 .cfi_startproc
22537 .cfi_offset 0, 0
22538 .cfi_same_value 1
22539 .cfi_def_cfa 1, 2
22540 .cfi_escape 1, 2, 3, 4, 5
22541 .cfi_endproc' > conftest.s
22542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22544 (eval $ac_try) 2>&5
22545 ac_status=$?
22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22547 test $ac_status = 0; }; }
22548 then
22549 case "$target" in
22550 *-*-solaris*)
22551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22552 # read-only and read-write sections, we need to make sure that the
22553 # assembler used emits read-write .eh_frame sections.
22554 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22555 if test "x$gcc_cv_objdump" != x; then
22556 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22557 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22558 gcc_cv_as_cfi_directive=no
22559 else
22560 case "$target" in
22561 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22562 # On Solaris/x86, make sure that GCC and gas agree on using
22563 # read-only .eh_frame sections for 64-bit.
22564 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22565 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22566 sed -e /.eh_frame/!d -e N | \
22567 grep READONLY > /dev/null; then
22568 gcc_cv_as_cfi_directive=yes
22569 else
22570 gcc_cv_as_cfi_directive=no
22571 fi
22572 ;;
22573 *)
22574 gcc_cv_as_cfi_directive=yes
22575 ;;
22576 esac
22577 fi
22578 else
22579 # no objdump, err on the side of caution
22580 gcc_cv_as_cfi_directive=no
22581 fi
22582 else
22583 gcc_cv_as_cfi_directive=yes
22584 fi
22585 ;;
22586 *-*-*)
22587 gcc_cv_as_cfi_directive=yes
22588 ;;
22589 esac
22590 else
22591 echo "configure: failed program was" >&5
22592 cat conftest.s >&5
22593 fi
22594 rm -f conftest.o conftest.s
22595 fi
22596 fi
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22598 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22599
22600 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22602 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22603 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcc_cv_as_cfi_advance_working=no
22607 if test x$gcc_cv_as != x; then
22608 $as_echo ' .text
22609 .cfi_startproc
22610 .cfi_adjust_cfa_offset 64
22611 .skip 75040, 0
22612 .cfi_adjust_cfa_offset 128
22613 .cfi_endproc' > conftest.s
22614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22620 then
22621
22622 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22623 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22624 gcc_cv_as_cfi_advance_working=yes
22625 fi
22626
22627 else
22628 echo "configure: failed program was" >&5
22629 cat conftest.s >&5
22630 fi
22631 rm -f conftest.o conftest.s
22632 fi
22633 fi
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22635 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22636
22637 else
22638 # no objdump, err on the side of caution
22639 gcc_cv_as_cfi_advance_working=no
22640 fi
22641
22642
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22645 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22646 _ACEOF
22647
22648
22649
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22651 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22652 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654 else
22655 gcc_cv_as_cfi_personality_directive=no
22656 if test x$gcc_cv_as != x; then
22657 $as_echo ' .text
22658 .cfi_startproc
22659 .cfi_personality 0, symbol
22660 .cfi_endproc' > conftest.s
22661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22663 (eval $ac_try) 2>&5
22664 ac_status=$?
22665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666 test $ac_status = 0; }; }
22667 then
22668 gcc_cv_as_cfi_personality_directive=yes
22669 else
22670 echo "configure: failed program was" >&5
22671 cat conftest.s >&5
22672 fi
22673 rm -f conftest.o conftest.s
22674 fi
22675 fi
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22677 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22678
22679
22680 cat >>confdefs.h <<_ACEOF
22681 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22682 then echo 1; else echo 0; fi`
22683 _ACEOF
22684
22685
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22687 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22688 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 gcc_cv_as_cfi_sections_directive=no
22692 if test x$gcc_cv_as != x; then
22693 $as_echo ' .text
22694 .cfi_sections .debug_frame, .eh_frame
22695 .cfi_startproc
22696 .cfi_endproc' > conftest.s
22697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22703 then
22704 case $target_os in
22705 win32 | pe | cygwin* | mingw32* | uwin*)
22706 # Need to check that we generated the correct relocation for the
22707 # .debug_frame section. This was fixed for binutils 2.21.
22708 gcc_cv_as_cfi_sections_directive=no
22709 if test "x$gcc_cv_objdump" != x; then
22710 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22711 grep secrel > /dev/null; then
22712 gcc_cv_as_cfi_sections_directive=yes
22713 fi
22714 fi
22715 ;;
22716 *)
22717 gcc_cv_as_cfi_sections_directive=yes
22718 ;;
22719 esac
22720 else
22721 echo "configure: failed program was" >&5
22722 cat conftest.s >&5
22723 fi
22724 rm -f conftest.o conftest.s
22725 fi
22726 fi
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22729
22730
22731
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22734 then echo 1; else echo 0; fi`
22735 _ACEOF
22736
22737
22738 # GAS versions up to and including 2.11.0 may mis-optimize
22739 # .eh_frame data.
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22741 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22742 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22744 else
22745 gcc_cv_as_eh_frame=no
22746 if test $in_tree_gas = yes; then
22747 if test $in_tree_gas_is_elf = yes \
22748 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22749 then gcc_cv_as_eh_frame=yes
22750 fi
22751 elif test x$gcc_cv_as != x; then
22752 $as_echo ' .text
22753 .LFB1:
22754 .4byte 0
22755 .L1:
22756 .4byte 0
22757 .LFE1:
22758 .section .eh_frame,"aw",@progbits
22759 __FRAME_BEGIN__:
22760 .4byte .LECIE1-.LSCIE1
22761 .LSCIE1:
22762 .4byte 0x0
22763 .byte 0x1
22764 .ascii "z\0"
22765 .byte 0x1
22766 .byte 0x78
22767 .byte 0x1a
22768 .byte 0x0
22769 .byte 0x4
22770 .4byte 1
22771 .p2align 1
22772 .LECIE1:
22773 .LSFDE1:
22774 .4byte .LEFDE1-.LASFDE1
22775 .LASFDE1:
22776 .4byte .LASFDE1-__FRAME_BEGIN__
22777 .4byte .LFB1
22778 .4byte .LFE1-.LFB1
22779 .byte 0x4
22780 .4byte .LFE1-.LFB1
22781 .byte 0x4
22782 .4byte .L1-.LFB1
22783 .LEFDE1:' > conftest.s
22784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22789 test $ac_status = 0; }; }
22790 then
22791 cat > conftest.lit <<EOF
22792 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22793 0010 01000000 12000000 18000000 00000000 ................
22794 0020 08000000 04080000 0044 .........D
22795 EOF
22796 cat > conftest.big <<EOF
22797 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22798 0010 00000001 00000012 00000018 00000000 ................
22799 0020 00000008 04000000 0844 .........D
22800 EOF
22801 # If the assembler didn't choke, and we can objdump,
22802 # and we got the correct data, then succeed.
22803 # The text in the here-document typically retains its unix-style line
22804 # endings, while the output of objdump will use host line endings.
22805 # Therefore, use diff -b for the comparisons.
22806 if test x$gcc_cv_objdump != x \
22807 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22808 | tail -3 > conftest.got \
22809 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22810 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22811 then
22812 gcc_cv_as_eh_frame=yes
22813 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22815 (eval $ac_try) 2>&5
22816 ac_status=$?
22817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818 test $ac_status = 0; }; }; then
22819 gcc_cv_as_eh_frame=buggy
22820 else
22821 # Uh oh, what do we do now?
22822 gcc_cv_as_eh_frame=no
22823 fi
22824 else
22825 echo "configure: failed program was" >&5
22826 cat conftest.s >&5
22827 fi
22828 rm -f conftest.o conftest.s
22829 fi
22830 fi
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22832 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22833
22834
22835 if test $gcc_cv_as_eh_frame = buggy; then
22836
22837 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22838
22839 fi
22840
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22842 $as_echo_n "checking assembler for section merging support... " >&6; }
22843 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 gcc_cv_as_shf_merge=no
22847 if test $in_tree_gas = yes; then
22848 if test $in_tree_gas_is_elf = yes \
22849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22850 then gcc_cv_as_shf_merge=yes
22851 fi
22852 elif test x$gcc_cv_as != x; then
22853 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22860 then
22861 gcc_cv_as_shf_merge=yes
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22865 fi
22866 rm -f conftest.o conftest.s
22867 fi
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22870 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22871
22872 if test $gcc_cv_as_shf_merge = no; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22874 $as_echo_n "checking assembler for section merging support... " >&6; }
22875 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_shf_merge=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22882 then gcc_cv_as_shf_merge=yes
22883 fi
22884 elif test x$gcc_cv_as != x; then
22885 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22893 gcc_cv_as_shf_merge=yes
22894 else
22895 echo "configure: failed program was" >&5
22896 cat conftest.s >&5
22897 fi
22898 rm -f conftest.o conftest.s
22899 fi
22900 fi
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22902 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22903
22904 fi
22905
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22908 _ACEOF
22909
22910
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22912 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22913 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 gcc_cv_as_comdat_group=no
22917 if test $in_tree_gas = yes; then
22918 if test $in_tree_gas_is_elf = yes \
22919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22920 then gcc_cv_as_comdat_group=yes
22921 fi
22922 elif test x$gcc_cv_as != x; then
22923 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22930 then
22931 gcc_cv_as_comdat_group=yes
22932 else
22933 echo "configure: failed program was" >&5
22934 cat conftest.s >&5
22935 fi
22936 rm -f conftest.o conftest.s
22937 fi
22938 fi
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22940 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22941
22942 if test $gcc_cv_as_comdat_group = yes; then
22943 gcc_cv_as_comdat_group_percent=no
22944 gcc_cv_as_comdat_group_group=no
22945 else
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22947 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22948 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 gcc_cv_as_comdat_group_percent=no
22952 if test $in_tree_gas = yes; then
22953 if test $in_tree_gas_is_elf = yes \
22954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22955 then gcc_cv_as_comdat_group_percent=yes
22956 fi
22957 elif test x$gcc_cv_as != x; then
22958 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22965 then
22966 gcc_cv_as_comdat_group_percent=yes
22967 else
22968 echo "configure: failed program was" >&5
22969 cat conftest.s >&5
22970 fi
22971 rm -f conftest.o conftest.s
22972 fi
22973 fi
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22975 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22976
22977 if test $gcc_cv_as_comdat_group_percent = yes; then
22978 gcc_cv_as_comdat_group_group=no
22979 else
22980 case "${target}" in
22981 # Sun as uses a completely different syntax.
22982 *-*-solaris2*)
22983 case "${target}" in
22984 sparc*-*-solaris2*)
22985 conftest_s='
22986 .group foo,".text%foo",#comdat
22987 .section ".text%foo", #alloc,#execinstr,#progbits
22988 .globl foo
22989 foo:
22990 '
22991 ;;
22992 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22993 conftest_s='
22994 .group foo,.text%foo,#comdat
22995 .section .text%foo, "ax", @progbits
22996 .globl foo
22997 foo:
22998 '
22999 ;;
23000 esac
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23002 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23003 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23004 $as_echo_n "(cached) " >&6
23005 else
23006 gcc_cv_as_comdat_group_group=no
23007 if test x$gcc_cv_as != x; then
23008 $as_echo "$conftest_s" > conftest.s
23009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23011 (eval $ac_try) 2>&5
23012 ac_status=$?
23013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23014 test $ac_status = 0; }; }
23015 then
23016 gcc_cv_as_comdat_group_group=yes
23017 else
23018 echo "configure: failed program was" >&5
23019 cat conftest.s >&5
23020 fi
23021 rm -f conftest.o conftest.s
23022 fi
23023 fi
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23025 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23026
23027 ;;
23028 esac
23029 fi
23030 fi
23031 if test x"$ld_is_gold" = xyes; then
23032 comdat_group=yes
23033 elif test $in_tree_ld = yes ; then
23034 comdat_group=no
23035 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 \
23036 && test $in_tree_ld_is_elf = yes; then
23037 comdat_group=yes
23038 fi
23039 elif echo "$ld_ver" | grep GNU > /dev/null; then
23040 comdat_group=yes
23041 if test 0"$ld_date" -lt 20050308; then
23042 if test -n "$ld_date"; then
23043 # If there was date string, but was earlier than 2005-03-08, fail
23044 comdat_group=no
23045 elif test "$ld_vers_major" -lt 2; then
23046 comdat_group=no
23047 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23048 comdat_group=no
23049 fi
23050 fi
23051 else
23052 case "${target}" in
23053 *-*-solaris2.1[1-9]*)
23054 comdat_group=no
23055 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23056 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23057 # version 1.688.
23058 #
23059 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23060 # least ld version 1.2267.
23061 if test "$ld_vers_major" -gt 1; then
23062 comdat_group=yes
23063 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23064 comdat_group=yes
23065 elif test "$ld_vers_minor" -ge 2267; then
23066 comdat_group=yes
23067 fi
23068 ;;
23069 *)
23070 # Assume linkers other than GNU ld don't support COMDAT group.
23071 comdat_group=no
23072 ;;
23073 esac
23074 fi
23075 # Allow overriding the automatic COMDAT group tests above.
23076 # Check whether --enable-comdat was given.
23077 if test "${enable_comdat+set}" = set; then :
23078 enableval=$enable_comdat; comdat_group="$enable_comdat"
23079 fi
23080
23081 if test $comdat_group = no; then
23082 gcc_cv_as_comdat_group=no
23083 gcc_cv_as_comdat_group_percent=no
23084 gcc_cv_as_comdat_group_group=no
23085 fi
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23089 || test $gcc_cv_as_comdat_group_percent = yes \
23090 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23091 _ACEOF
23092
23093
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23095 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23096 if test "${gcc_cv_as_discriminator+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23099 gcc_cv_as_discriminator=no
23100 if test $in_tree_gas = yes; then
23101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23102 then gcc_cv_as_discriminator=yes
23103 fi
23104 elif test x$gcc_cv_as != x; then
23105 $as_echo ' .text
23106 .file 1 "conf.c"
23107 .loc 1 1 0 discriminator 1' > conftest.s
23108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; }
23114 then
23115 gcc_cv_as_discriminator=yes
23116 else
23117 echo "configure: failed program was" >&5
23118 cat conftest.s >&5
23119 fi
23120 rm -f conftest.o conftest.s
23121 fi
23122 fi
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23124 $as_echo "$gcc_cv_as_discriminator" >&6; }
23125 if test $gcc_cv_as_discriminator = yes; then
23126
23127 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23128
23129 fi
23130
23131 # Thread-local storage - the check is heavily parameterized.
23132 conftest_s=
23133 tls_first_major=
23134 tls_first_minor=
23135 tls_as_opt=
23136 case "$target" in
23137 alpha*-*-*)
23138 conftest_s='
23139 .section ".tdata","awT",@progbits
23140 foo: .long 25
23141 .text
23142 ldq $27,__tls_get_addr($29) !literal!1
23143 lda $16,foo($29) !tlsgd!1
23144 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23145 ldq $27,__tls_get_addr($29) !literal!2
23146 lda $16,foo($29) !tlsldm!2
23147 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23148 ldq $1,foo($29) !gotdtprel
23149 ldah $2,foo($29) !dtprelhi
23150 lda $3,foo($2) !dtprello
23151 lda $4,foo($29) !dtprel
23152 ldq $1,foo($29) !gottprel
23153 ldah $2,foo($29) !tprelhi
23154 lda $3,foo($2) !tprello
23155 lda $4,foo($29) !tprel'
23156 tls_first_major=2
23157 tls_first_minor=13
23158 tls_as_opt=--fatal-warnings
23159 ;;
23160 cris-*-*|crisv32-*-*)
23161 conftest_s='
23162 .section ".tdata","awT",@progbits
23163 x: .long 25
23164 .text
23165 move.d x:IE,$r10
23166 nop'
23167 tls_first_major=2
23168 tls_first_minor=20
23169 tls_as_opt=--fatal-warnings
23170 ;;
23171 frv*-*-*)
23172 conftest_s='
23173 .section ".tdata","awT",@progbits
23174 x: .long 25
23175 .text
23176 call #gettlsoff(x)'
23177 tls_first_major=2
23178 tls_first_minor=14
23179 ;;
23180 hppa*-*-linux*)
23181 conftest_s='
23182 t1: .reg %r20
23183 t2: .reg %r21
23184 gp: .reg %r19
23185 .section ".tdata","awT",@progbits
23186 foo: .long 25
23187 .text
23188 .align 4
23189 addil LT%foo-$tls_gdidx$,gp
23190 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23191 b __tls_get_addr
23192 nop
23193 addil LT%foo-$tls_ldidx$,gp
23194 b __tls_get_addr
23195 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23196 addil LR%foo-$tls_dtpoff$,%ret0
23197 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23198 mfctl %cr27,%t1
23199 addil LT%foo-$tls_ieoff$,gp
23200 ldw RT%foo-$tls_ieoff$(%r1),%t2
23201 add %t1,%t2,%t3
23202 mfctl %cr27,%t1
23203 addil LR%foo-$tls_leoff$,%t1
23204 ldo RR%foo-$tls_leoff$(%r1),%t2'
23205 tls_first_major=2
23206 tls_first_minor=15
23207 tls_as_opt=--fatal-warnings
23208 ;;
23209 arm*-*-*)
23210 conftest_s='
23211 .section ".tdata","awT",%progbits
23212 foo: .long 25
23213 .text
23214 .word foo(gottpoff)
23215 .word foo(tpoff)
23216 .word foo(tlsgd)
23217 .word foo(tlsldm)
23218 .word foo(tlsldo)'
23219 tls_first_major=2
23220 tls_first_minor=17
23221 ;;
23222 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23223 case "$target" in
23224 i[34567]86-*-solaris2.*)
23225 on_solaris=yes
23226 tga_func=___tls_get_addr
23227 ;;
23228 x86_64-*-solaris2.1[0-9]*)
23229 on_solaris=yes
23230 tga_func=__tls_get_addr
23231 ;;
23232 *)
23233 on_solaris=no
23234 ;;
23235 esac
23236 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23237 conftest_s='
23238 .section .tdata,"awt",@progbits'
23239 tls_first_major=0
23240 tls_first_minor=0
23241
23242 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23243
23244 else
23245 conftest_s='
23246 .section ".tdata","awT",@progbits'
23247 tls_first_major=2
23248 tls_first_minor=14
23249 tls_as_opt="--fatal-warnings"
23250 fi
23251 conftest_s="$conftest_s
23252 foo: .long 25
23253 .text
23254 movl %gs:0, %eax
23255 leal foo@tlsgd(,%ebx,1), %eax
23256 leal foo@tlsldm(%ebx), %eax
23257 leal foo@dtpoff(%eax), %edx
23258 movl foo@gottpoff(%ebx), %eax
23259 subl foo@gottpoff(%ebx), %eax
23260 addl foo@gotntpoff(%ebx), %eax
23261 movl foo@indntpoff, %eax
23262 movl \$foo@tpoff, %eax
23263 subl \$foo@tpoff, %eax
23264 leal foo@ntpoff(%ecx), %eax"
23265 ;;
23266 x86_64-*-*)
23267 conftest_s='
23268 .section ".tdata","awT",@progbits
23269 foo: .long 25
23270 .text
23271 movq %fs:0, %rax
23272 leaq foo@TLSGD(%rip), %rdi
23273 leaq foo@TLSLD(%rip), %rdi
23274 leaq foo@DTPOFF(%rax), %rdx
23275 movq foo@GOTTPOFF(%rip), %rax
23276 movq $foo@TPOFF, %rax'
23277 tls_first_major=2
23278 tls_first_minor=14
23279 tls_as_opt=--fatal-warnings
23280 ;;
23281 ia64-*-*)
23282 conftest_s='
23283 .section ".tdata","awT",@progbits
23284 foo: data8 25
23285 .text
23286 addl r16 = @ltoff(@dtpmod(foo#)), gp
23287 addl r17 = @ltoff(@dtprel(foo#)), gp
23288 addl r18 = @ltoff(@tprel(foo#)), gp
23289 addl r19 = @dtprel(foo#), gp
23290 adds r21 = @dtprel(foo#), r13
23291 movl r23 = @dtprel(foo#)
23292 addl r20 = @tprel(foo#), gp
23293 adds r22 = @tprel(foo#), r13
23294 movl r24 = @tprel(foo#)'
23295 tls_first_major=2
23296 tls_first_minor=13
23297 tls_as_opt=--fatal-warnings
23298 ;;
23299 mips*-*-*)
23300 conftest_s='
23301 .section .tdata,"awT",@progbits
23302 x:
23303 .word 2
23304 .text
23305 addiu $4, $28, %tlsgd(x)
23306 addiu $4, $28, %tlsldm(x)
23307 lui $4, %dtprel_hi(x)
23308 addiu $4, $4, %dtprel_lo(x)
23309 lw $4, %gottprel(x)($28)
23310 lui $4, %tprel_hi(x)
23311 addiu $4, $4, %tprel_lo(x)'
23312 tls_first_major=2
23313 tls_first_minor=16
23314 tls_as_opt='-32 --fatal-warnings'
23315 ;;
23316 m68k-*-*)
23317 conftest_s='
23318 .section .tdata,"awT",@progbits
23319 x:
23320 .word 2
23321 .text
23322 foo:
23323 move.l x@TLSGD(%a5),%a0
23324 move.l x@TLSLDM(%a5),%a0
23325 move.l x@TLSLDO(%a5),%a0
23326 move.l x@TLSIE(%a5),%a0
23327 move.l x@TLSLE(%a5),%a0'
23328 tls_first_major=2
23329 tls_first_minor=19
23330 tls_as_opt='--fatal-warnings'
23331 ;;
23332 powerpc-*-*)
23333 conftest_s='
23334 .section ".tdata","awT",@progbits
23335 .align 2
23336 ld0: .space 4
23337 ld1: .space 4
23338 x1: .space 4
23339 x2: .space 4
23340 x3: .space 4
23341 .text
23342 addi 3,31,ld0@got@tlsgd
23343 bl __tls_get_addr
23344 addi 3,31,x1@got@tlsld
23345 bl __tls_get_addr
23346 addi 9,3,x1@dtprel
23347 addis 9,3,x2@dtprel@ha
23348 addi 9,9,x2@dtprel@l
23349 lwz 9,x3@got@tprel(31)
23350 add 9,9,x@tls
23351 addi 9,2,x1@tprel
23352 addis 9,2,x2@tprel@ha
23353 addi 9,9,x2@tprel@l'
23354 tls_first_major=2
23355 tls_first_minor=14
23356 tls_as_opt="-a32 --fatal-warnings"
23357 ;;
23358 powerpc64-*-*)
23359 conftest_s='
23360 .section ".tdata","awT",@progbits
23361 .align 3
23362 ld0: .space 8
23363 ld1: .space 8
23364 x1: .space 8
23365 x2: .space 8
23366 x3: .space 8
23367 .text
23368 addi 3,2,ld0@got@tlsgd
23369 bl .__tls_get_addr
23370 nop
23371 addi 3,2,ld1@toc
23372 bl .__tls_get_addr
23373 nop
23374 addi 3,2,x1@got@tlsld
23375 bl .__tls_get_addr
23376 nop
23377 addi 9,3,x1@dtprel
23378 bl .__tls_get_addr
23379 nop
23380 addis 9,3,x2@dtprel@ha
23381 addi 9,9,x2@dtprel@l
23382 bl .__tls_get_addr
23383 nop
23384 ld 9,x3@got@dtprel(2)
23385 add 9,9,3
23386 bl .__tls_get_addr
23387 nop'
23388 tls_first_major=2
23389 tls_first_minor=14
23390 tls_as_opt="-a64 --fatal-warnings"
23391 ;;
23392 s390-*-*)
23393 conftest_s='
23394 .section ".tdata","awT",@progbits
23395 foo: .long 25
23396 .text
23397 .long foo@TLSGD
23398 .long foo@TLSLDM
23399 .long foo@DTPOFF
23400 .long foo@NTPOFF
23401 .long foo@GOTNTPOFF
23402 .long foo@INDNTPOFF
23403 l %r1,foo@GOTNTPOFF(%r12)
23404 l %r1,0(%r1):tls_load:foo
23405 bas %r14,0(%r1,%r13):tls_gdcall:foo
23406 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23407 tls_first_major=2
23408 tls_first_minor=14
23409 tls_as_opt="-m31 --fatal-warnings"
23410 ;;
23411 s390x-*-*)
23412 conftest_s='
23413 .section ".tdata","awT",@progbits
23414 foo: .long 25
23415 .text
23416 .quad foo@TLSGD
23417 .quad foo@TLSLDM
23418 .quad foo@DTPOFF
23419 .quad foo@NTPOFF
23420 .quad foo@GOTNTPOFF
23421 lg %r1,foo@GOTNTPOFF(%r12)
23422 larl %r1,foo@INDNTPOFF
23423 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23424 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23425 tls_first_major=2
23426 tls_first_minor=14
23427 tls_as_opt="-m64 -Aesame --fatal-warnings"
23428 ;;
23429 sh-*-* | sh[34]-*-*)
23430 conftest_s='
23431 .section ".tdata","awT",@progbits
23432 foo: .long 25
23433 .text
23434 .long foo@TLSGD
23435 .long foo@TLSLDM
23436 .long foo@DTPOFF
23437 .long foo@GOTTPOFF
23438 .long foo@TPOFF'
23439 tls_first_major=2
23440 tls_first_minor=13
23441 tls_as_opt=--fatal-warnings
23442 ;;
23443 sparc*-*-*)
23444 case "$target" in
23445 sparc*-sun-solaris2.*)
23446 on_solaris=yes
23447 tga_func=__tls_get_addr
23448 ;;
23449 *)
23450 on_solaris=no
23451 ;;
23452 esac
23453 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23454 conftest_s='
23455 .section ".tdata",#alloc,#write,#tls'
23456 tls_first_major=0
23457 tls_first_minor=0
23458 else
23459 conftest_s='
23460 .section ".tdata","awT",@progbits'
23461 tls_first_major=2
23462 tls_first_minor=14
23463 tls_as_opt="-32 --fatal-warnings"
23464 fi
23465 conftest_s="$conftest_s
23466 foo: .long 25
23467 .text
23468 sethi %tgd_hi22(foo), %o0
23469 add %o0, %tgd_lo10(foo), %o1
23470 add %l7, %o1, %o0, %tgd_add(foo)
23471 call __tls_get_addr, %tgd_call(foo)
23472 sethi %tldm_hi22(foo), %l1
23473 add %l1, %tldm_lo10(foo), %l2
23474 add %l7, %l2, %o0, %tldm_add(foo)
23475 call __tls_get_addr, %tldm_call(foo)
23476 sethi %tldo_hix22(foo), %l3
23477 xor %l3, %tldo_lox10(foo), %l4
23478 add %o0, %l4, %l5, %tldo_add(foo)
23479 sethi %tie_hi22(foo), %o3
23480 add %o3, %tie_lo10(foo), %o3
23481 ld [%l7 + %o3], %o2, %tie_ld(foo)
23482 add %g7, %o2, %o4, %tie_add(foo)
23483 sethi %tle_hix22(foo), %l1
23484 xor %l1, %tle_lox10(foo), %o5
23485 ld [%g7 + %o5], %o1"
23486 ;;
23487 xtensa*-*-*)
23488 conftest_s='
23489 .section ".tdata","awT",@progbits
23490 foo: .long 25
23491 .text
23492 movi a8, foo@TLSFUNC
23493 movi a10, foo@TLSARG
23494 callx8.tls a8, foo@TLSCALL'
23495 tls_first_major=2
23496 tls_first_minor=19
23497 ;;
23498 esac
23499 set_have_as_tls=no
23500 if test "x$enable_tls" = xno ; then
23501 : # TLS explicitly disabled.
23502 elif test "x$enable_tls" = xyes ; then
23503 set_have_as_tls=yes # TLS explicitly enabled.
23504 elif test -z "$tls_first_major"; then
23505 : # If we don't have a check, assume no support.
23506 else
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23508 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23509 if test "${gcc_cv_as_tls+set}" = set; then :
23510 $as_echo_n "(cached) " >&6
23511 else
23512 gcc_cv_as_tls=no
23513 if test $in_tree_gas = yes; then
23514 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23515 then gcc_cv_as_tls=yes
23516 fi
23517 elif test x$gcc_cv_as != x; then
23518 $as_echo "$conftest_s" > conftest.s
23519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23522 ac_status=$?
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23525 then
23526 gcc_cv_as_tls=yes
23527 else
23528 echo "configure: failed program was" >&5
23529 cat conftest.s >&5
23530 fi
23531 rm -f conftest.o conftest.s
23532 fi
23533 fi
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23535 $as_echo "$gcc_cv_as_tls" >&6; }
23536 if test $gcc_cv_as_tls = yes; then
23537 set_have_as_tls=yes
23538 fi
23539 fi
23540 case "$target" in
23541 *-*-irix6*)
23542 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23543 # with TLS support are in use, native TLS cannot work.
23544 set_have_as_tls=no
23545 ;;
23546 *-*-osf*)
23547 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23548 # gld with TLS support are in use, native TLS cannot work.
23549 set_have_as_tls=no
23550 ;;
23551 # TLS was introduced in the Solaris 9 FCS release and backported to
23552 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23553 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23554 # ld and GCC don't support any longer.
23555 *-*-solaris2.*)
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23557 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23558 ld_tls_support=no
23559 # Check ld and ld.so.1 TLS support.
23560 if echo "$ld_ver" | grep GNU > /dev/null; then
23561 # Assume all interesting versions of GNU ld have TLS support.
23562 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23563 ld_tls_support=yes
23564 else
23565 case "$target" in
23566 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23567 i?86-*-solaris2.8)
23568 min_tls_ld_vers_minor=280
23569 ;;
23570 # Solaris 8/SPARC ld has TLS support since version 1.272.
23571 sparc*-*-solaris2.8)
23572 min_tls_ld_vers_minor=272
23573 ;;
23574 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23575 i?86-*-solaris2.9)
23576 min_tls_ld_vers_minor=374
23577 ;;
23578 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23579 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23580 min_tls_ld_vers_minor=343
23581 ;;
23582 esac
23583 if test "$ld_vers_major" -gt 1 || \
23584 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23585 ld_tls_support=yes
23586 else
23587 set_have_as_tls=no
23588 fi
23589 fi
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23591 $as_echo "$ld_tls_support" >&6; }
23592
23593 save_LIBS="$LIBS"
23594 save_LDFLAGS="$LDFLAGS"
23595 LIBS=
23596 LDFLAGS=
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23599 $as_echo_n "checking alternate thread library... " >&6; }
23600 case "$target" in
23601 # TLS support was backported to Solaris 8 patches, but only lives in
23602 # the alternate thread library which became the default in Solaris 9.
23603 # We want to always use that, irrespective of TLS support.
23604 *-*-solaris2.8)
23605 # Take multilib subdir into account. There's no spec to handle
23606 # this. The 64 symlink exists since Solaris 8.
23607 lwp_dir=/usr/lib/lwp
23608 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23609 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23610 ;;
23611 *-*-solaris2*)
23612 lwp_dir="none"
23613 lwp_spec=""
23614 ;;
23615 esac
23616 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23617
23618 cat >>confdefs.h <<_ACEOF
23619 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23620 _ACEOF
23621
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23623 $as_echo "$lwp_dir" >&6; }
23624
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23626 $as_echo_n "checking library containing $tga_func... " >&6; }
23627 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23628 # (32-bit x86) only lived in libthread, so check for that. Keep
23629 # set_have_as_tls if found, disable if not.
23630 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23632 $as_echo_n "checking for library containing $tga_func... " >&6; }
23633 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23634 $as_echo_n "(cached) " >&6
23635 else
23636 ac_func_search_save_LIBS=$LIBS
23637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23638 /* end confdefs.h. */
23639
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23643 #ifdef __cplusplus
23644 extern "C"
23645 #endif
23646 char $tga_func ();
23647 int
23648 main ()
23649 {
23650 return $tga_func ();
23651 ;
23652 return 0;
23653 }
23654 _ACEOF
23655 for ac_lib in '' thread; do
23656 if test -z "$ac_lib"; then
23657 ac_res="none required"
23658 else
23659 ac_res=-l$ac_lib
23660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23661 fi
23662 if ac_fn_c_try_link "$LINENO"; then :
23663 eval "$as_ac_Search=\$ac_res"
23664 fi
23665 rm -f core conftest.err conftest.$ac_objext \
23666 conftest$ac_exeext
23667 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23668 break
23669 fi
23670 done
23671 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23672
23673 else
23674 eval "$as_ac_Search=no"
23675 fi
23676 rm conftest.$ac_ext
23677 LIBS=$ac_func_search_save_LIBS
23678 fi
23679 eval ac_res=\$$as_ac_Search
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23682 eval ac_res=\$$as_ac_Search
23683 if test "$ac_res" != no; then :
23684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23685
23686 else
23687 set_have_as_tls=no
23688 fi
23689
23690 # Clear LIBS if we cannot support TLS.
23691 if test $set_have_as_tls = no; then
23692 LIBS=
23693 fi
23694 # Always define LIB_TLS_SPEC, even without TLS support.
23695
23696 cat >>confdefs.h <<_ACEOF
23697 #define LIB_TLS_SPEC "$LIBS"
23698 _ACEOF
23699
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23701 $as_echo "$LIBS" >&6; }
23702
23703 LIBS="$save_LIBS"
23704 LDFLAGS="$save_LDFLAGS"
23705 ;;
23706 esac
23707 if test $set_have_as_tls = yes ; then
23708
23709 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23710
23711 fi
23712
23713 # Target-specific assembler checks.
23714
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23716 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23717 gcc_cv_ld_static_dynamic=no
23718 gcc_cv_ld_static_option='-Bstatic'
23719 gcc_cv_ld_dynamic_option='-Bdynamic'
23720 if test $in_tree_ld = yes ; then
23721 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
23722 gcc_cv_ld_static_dynamic=yes
23723 fi
23724 elif test x$gcc_cv_ld != x; then
23725 # Check if linker supports -Bstatic/-Bdynamic option
23726 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23727 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23728 gcc_cv_ld_static_dynamic=yes
23729 else
23730 case "$target" in
23731 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23732 alpha*-dec-osf*)
23733 gcc_cv_ld_static_dynamic=yes
23734 gcc_cv_ld_static_option="-noso"
23735 gcc_cv_ld_dynamic_option="-so_archive"
23736 ;;
23737 # HP-UX ld uses -a flags to select between shared and archive.
23738 *-*-hpux*)
23739 if test x"$gnu_ld" = xno; then
23740 gcc_cv_ld_static_dynamic=yes
23741 gcc_cv_ld_static_option="-aarchive_shared"
23742 gcc_cv_ld_dynamic_option="-adefault"
23743 fi
23744 ;;
23745 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23746 mips-sgi-irix6*)
23747 gcc_cv_ld_static_dynamic=yes
23748 ;;
23749 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23750 *-*-solaris2*)
23751 gcc_cv_ld_static_dynamic=yes
23752 ;;
23753 esac
23754 fi
23755 fi
23756 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23757
23758 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23759
23760
23761 cat >>confdefs.h <<_ACEOF
23762 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23763 _ACEOF
23764
23765
23766 cat >>confdefs.h <<_ACEOF
23767 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23768 _ACEOF
23769
23770 fi
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23772 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23773
23774 if test x"$demangler_in_ld" = xyes; then
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23776 $as_echo_n "checking linker --demangle support... " >&6; }
23777 gcc_cv_ld_demangle=no
23778 if test $in_tree_ld = yes; then
23779 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 \
23780 gcc_cv_ld_demangle=yes
23781 fi
23782 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23783 # Check if the GNU linker supports --demangle option
23784 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23785 gcc_cv_ld_demangle=yes
23786 fi
23787 fi
23788 if test x"$gcc_cv_ld_demangle" = xyes; then
23789
23790 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23791
23792 fi
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23794 $as_echo "$gcc_cv_ld_demangle" >&6; }
23795 fi
23796
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23798 $as_echo_n "checking linker plugin support... " >&6; }
23799 gcc_cv_lto_plugin=0
23800 if test -f liblto_plugin.la; then
23801 save_ld_ver="$ld_ver"
23802 save_ld_vers_major="$ld_vers_major"
23803 save_ld_vers_minor="$ld_vers_minor"
23804 save_ld_is_gold="$ld_is_gold"
23805
23806 ld_is_gold=no
23807
23808 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23809 ld_ver="GNU ld"
23810 # FIXME: ld_is_gold?
23811 ld_vers_major="$gcc_cv_gld_major_version"
23812 ld_vers_minor="$gcc_cv_gld_minor_version"
23813 else
23814 # Determine plugin linker version.
23815 # FIXME: Partial duplicate from above, generalize.
23816 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23817 if echo "$ld_ver" | grep GNU > /dev/null; then
23818 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23819 ld_is_gold=yes
23820 ld_vers=`echo $ld_ver | sed -n \
23821 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23822 else
23823 ld_vers=`echo $ld_ver | sed -n \
23824 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23825 fi
23826 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23827 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23828 fi
23829 fi
23830
23831 # Determine plugin support.
23832 if echo "$ld_ver" | grep GNU > /dev/null; then
23833 # Require GNU ld or gold 2.21+ for plugin support by default.
23834 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23835 gcc_cv_lto_plugin=2
23836 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23837 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23838 gcc_cv_lto_plugin=1
23839 fi
23840 fi
23841
23842 ld_ver="$save_ld_ver"
23843 ld_vers_major="$save_ld_vers_major"
23844 ld_vers_minor="$save_ld_vers_minor"
23845 ld_is_gold="$save_ld_is_gold"
23846 fi
23847
23848 cat >>confdefs.h <<_ACEOF
23849 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23850 _ACEOF
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23853 $as_echo "$gcc_cv_lto_plugin" >&6; }
23854
23855 case "$target" in
23856 # All TARGET_ABI_OSF targets.
23857 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23859 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23860 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23861 $as_echo_n "(cached) " >&6
23862 else
23863 gcc_cv_as_alpha_explicit_relocs=no
23864 if test $in_tree_gas = yes; then
23865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23866 then gcc_cv_as_alpha_explicit_relocs=yes
23867 fi
23868 elif test x$gcc_cv_as != x; then
23869 $as_echo ' .set nomacro
23870 .text
23871 extbl $3, $2, $3 !lituse_bytoff!1
23872 ldq $2, a($29) !literal!1
23873 ldq $4, b($29) !literal!2
23874 ldq_u $3, 0($2) !lituse_base!1
23875 ldq $27, f($29) !literal!5
23876 jsr $26, ($27), f !lituse_jsr!5
23877 ldah $29, 0($26) !gpdisp!3
23878 lda $0, c($29) !gprel
23879 ldah $1, d($29) !gprelhigh
23880 lda $1, d($1) !gprellow
23881 lda $29, 0($29) !gpdisp!3' > conftest.s
23882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23885 ac_status=$?
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23888 then
23889 gcc_cv_as_alpha_explicit_relocs=yes
23890 else
23891 echo "configure: failed program was" >&5
23892 cat conftest.s >&5
23893 fi
23894 rm -f conftest.o conftest.s
23895 fi
23896 fi
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23898 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23899 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23900
23901 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23902
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23905 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23906 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23908 else
23909 gcc_cv_as_alpha_jsrdirect_relocs=no
23910 if test $in_tree_gas = yes; then
23911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23912 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23913 fi
23914 elif test x$gcc_cv_as != x; then
23915 $as_echo ' .set nomacro
23916 .text
23917 ldq $27, a($29) !literal!1
23918 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924 test $ac_status = 0; }; }
23925 then
23926 gcc_cv_as_alpha_jsrdirect_relocs=yes
23927 else
23928 echo "configure: failed program was" >&5
23929 cat conftest.s >&5
23930 fi
23931 rm -f conftest.o conftest.s
23932 fi
23933 fi
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23935 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23936 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23937
23938 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23939
23940 fi
23941 ;;
23942
23943 cris-*-*)
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23945 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23946 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23948 else
23949 gcc_cv_as_cris_no_mul_bug=no
23950 if test $in_tree_gas = yes; then
23951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23952 then gcc_cv_as_cris_no_mul_bug=yes
23953 fi
23954 elif test x$gcc_cv_as != x; then
23955 $as_echo '.text' > conftest.s
23956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961 test $ac_status = 0; }; }
23962 then
23963 gcc_cv_as_cris_no_mul_bug=yes
23964 else
23965 echo "configure: failed program was" >&5
23966 cat conftest.s >&5
23967 fi
23968 rm -f conftest.o conftest.s
23969 fi
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23972 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23973 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23974
23975 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23976
23977 fi
23978 ;;
23979
23980 sparc*-*-*)
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23982 $as_echo_n "checking assembler for .register... " >&6; }
23983 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23984 $as_echo_n "(cached) " >&6
23985 else
23986 gcc_cv_as_sparc_register_op=no
23987 if test x$gcc_cv_as != x; then
23988 $as_echo '.register %g2, #scratch' > conftest.s
23989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23994 test $ac_status = 0; }; }
23995 then
23996 gcc_cv_as_sparc_register_op=yes
23997 else
23998 echo "configure: failed program was" >&5
23999 cat conftest.s >&5
24000 fi
24001 rm -f conftest.o conftest.s
24002 fi
24003 fi
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24005 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24006 if test $gcc_cv_as_sparc_register_op = yes; then
24007
24008 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24009
24010 fi
24011
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24013 $as_echo_n "checking assembler for -relax option... " >&6; }
24014 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24015 $as_echo_n "(cached) " >&6
24016 else
24017 gcc_cv_as_sparc_relax=no
24018 if test x$gcc_cv_as != x; then
24019 $as_echo '.text' > conftest.s
24020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025 test $ac_status = 0; }; }
24026 then
24027 gcc_cv_as_sparc_relax=yes
24028 else
24029 echo "configure: failed program was" >&5
24030 cat conftest.s >&5
24031 fi
24032 rm -f conftest.o conftest.s
24033 fi
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24036 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24037 if test $gcc_cv_as_sparc_relax = yes; then
24038
24039 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24040
24041 fi
24042
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24044 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24045 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24046 $as_echo_n "(cached) " >&6
24047 else
24048 gcc_cv_as_sparc_gotdata_op=no
24049 if test x$gcc_cv_as != x; then
24050 $as_echo '.text
24051 .align 4
24052 foo:
24053 nop
24054 bar:
24055 sethi %gdop_hix22(foo), %g1
24056 xor %g1, %gdop_lox10(foo), %g1
24057 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24064 then
24065 if test x$gcc_cv_ld != x \
24066 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24067 if test x$gcc_cv_objdump != x; then
24068 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24069 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24070 gcc_cv_as_sparc_gotdata_op=no
24071 else
24072 gcc_cv_as_sparc_gotdata_op=yes
24073 fi
24074 fi
24075 fi
24076 rm -f conftest
24077 else
24078 echo "configure: failed program was" >&5
24079 cat conftest.s >&5
24080 fi
24081 rm -f conftest.o conftest.s
24082 fi
24083 fi
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24085 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24086 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24087
24088 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24089
24090 fi
24091
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24093 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24094 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24095 $as_echo_n "(cached) " >&6
24096 else
24097 gcc_cv_as_sparc_ua_pcrel=no
24098 if test x$gcc_cv_as != x; then
24099 $as_echo '.text
24100 foo:
24101 nop
24102 .data
24103 .align 4
24104 .byte 0
24105 .uaword %r_disp32(foo)' > conftest.s
24106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24109 ac_status=$?
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }
24112 then
24113 if test x$gcc_cv_ld != x \
24114 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24115 gcc_cv_as_sparc_ua_pcrel=yes
24116 fi
24117 rm -f conftest
24118 else
24119 echo "configure: failed program was" >&5
24120 cat conftest.s >&5
24121 fi
24122 rm -f conftest.o conftest.s
24123 fi
24124 fi
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24126 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24127 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24128
24129 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24130
24131
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24133 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24134 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24135 $as_echo_n "(cached) " >&6
24136 else
24137 gcc_cv_as_sparc_ua_pcrel_hidden=no
24138 if test x$gcc_cv_as != x; then
24139 $as_echo '.data
24140 .align 4
24141 .byte 0x31
24142 .uaword %r_disp32(foo)
24143 .byte 0x32, 0x33, 0x34
24144 .global foo
24145 .hidden foo
24146 foo:
24147 .skip 4' > conftest.s
24148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24154 then
24155 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24156 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24157 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24158 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24159 if $gcc_cv_objdump -R conftest 2> /dev/null \
24160 | grep 'DISP32' > /dev/null 2>&1; then
24161 :
24162 else
24163 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24164 fi
24165 fi
24166 rm -f conftest
24167 else
24168 echo "configure: failed program was" >&5
24169 cat conftest.s >&5
24170 fi
24171 rm -f conftest.o conftest.s
24172 fi
24173 fi
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24175 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24176 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24177
24178 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24179
24180 fi
24181
24182 fi # unaligned pcrel relocs
24183
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24185 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24186 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24188 else
24189 gcc_cv_as_sparc_offsetable_lo10=no
24190 if test x$gcc_cv_as != x; then
24191 $as_echo '.text
24192 or %g1, %lo(ab) + 12, %g1
24193 or %g1, %lo(ab + 12), %g1' > conftest.s
24194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }; }
24200 then
24201 if test x$gcc_cv_objdump != x \
24202 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24203 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24204 gcc_cv_as_sparc_offsetable_lo10=yes
24205 fi
24206 else
24207 echo "configure: failed program was" >&5
24208 cat conftest.s >&5
24209 fi
24210 rm -f conftest.o conftest.s
24211 fi
24212 fi
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24214 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24215 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24216
24217 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24218
24219 fi
24220
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24222 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24223 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226 gcc_cv_as_sparc_fmaf=no
24227 if test x$gcc_cv_as != x; then
24228 $as_echo '.text
24229 .register %g2, #scratch
24230 .register %g3, #scratch
24231 .align 4
24232 fmaddd %f0, %f2, %f4, %f6
24233 addxccc %g1, %g2, %g3
24234 fsrl32 %f2, %f4, %f8
24235 fnaddd %f10, %f12, %f14' > conftest.s
24236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24242 then
24243 gcc_cv_as_sparc_fmaf=yes
24244 else
24245 echo "configure: failed program was" >&5
24246 cat conftest.s >&5
24247 fi
24248 rm -f conftest.o conftest.s
24249 fi
24250 fi
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24252 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24253 if test $gcc_cv_as_sparc_fmaf = yes; then
24254
24255 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24256
24257 fi
24258 ;;
24259
24260 i[34567]86-*-* | x86_64-*-*)
24261 case $target_os in
24262 cygwin*)
24263 # Full C++ conformance when using a shared libstdc++-v3 requires some
24264 # support from the Cygwin DLL, which in more recent versions exports
24265 # wrappers to aid in interposing and redirecting operators new, delete,
24266 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24267 # are configuring for a version of Cygwin that exports the wrappers.
24268 if test x$host = x$target; then
24269 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24270 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24271 gcc_ac_cygwin_dll_wrappers=yes
24272 else
24273 gcc_ac_cygwin_dll_wrappers=no
24274 fi
24275
24276 else
24277 # Can't check presence of libc functions during cross-compile, so
24278 # we just have to assume we're building for an up-to-date target.
24279 gcc_ac_cygwin_dll_wrappers=yes
24280 fi
24281
24282 cat >>confdefs.h <<_ACEOF
24283 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24284 _ACEOF
24285
24286 esac
24287 case $target_os in
24288 cygwin* | pe | mingw32*)
24289 # Recent binutils allows the three-operand form of ".comm" on PE. This
24290 # definition is used unconditionally to initialise the default state of
24291 # the target option variable that governs usage of the feature.
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24293 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24294 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24295 $as_echo_n "(cached) " >&6
24296 else
24297 gcc_cv_as_comm_has_align=no
24298 if test $in_tree_gas = yes; then
24299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24300 then gcc_cv_as_comm_has_align=yes
24301 fi
24302 elif test x$gcc_cv_as != x; then
24303 $as_echo '.comm foo,1,32' > conftest.s
24304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24306 (eval $ac_try) 2>&5
24307 ac_status=$?
24308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }; }
24310 then
24311 gcc_cv_as_comm_has_align=yes
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24315 fi
24316 rm -f conftest.o conftest.s
24317 fi
24318 fi
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24320 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24321
24322
24323 cat >>confdefs.h <<_ACEOF
24324 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24325 _ACEOF
24326
24327 # Used for DWARF 2 in PE
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24329 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24330 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 gcc_cv_as_ix86_pe_secrel32=no
24334 if test $in_tree_gas = yes; then
24335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24336 then gcc_cv_as_ix86_pe_secrel32=yes
24337 fi
24338 elif test x$gcc_cv_as != x; then
24339 $as_echo '.text
24340 foo: nop
24341 .data
24342 .secrel32 foo' > conftest.s
24343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24349 then
24350 if test x$gcc_cv_ld != x \
24351 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24352 gcc_cv_as_ix86_pe_secrel32=yes
24353 fi
24354 rm -f conftest
24355 else
24356 echo "configure: failed program was" >&5
24357 cat conftest.s >&5
24358 fi
24359 rm -f conftest.o conftest.s
24360 fi
24361 fi
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24363 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24364 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24365
24366 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24367
24368 fi
24369 # Test if the assembler supports the extended form of the .section
24370 # directive that specifies section alignment. LTO support uses this,
24371 # but normally only after installation, so we warn but don't fail the
24372 # configure if LTO is enabled but the assembler does not support it.
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24374 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24375 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24377 else
24378 gcc_cv_as_section_has_align=no
24379 if test $in_tree_gas = yes; then
24380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24381 then gcc_cv_as_section_has_align=yes
24382 fi
24383 elif test x$gcc_cv_as != x; then
24384 $as_echo '.section lto_test,"dr0"' > conftest.s
24385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390 test $ac_status = 0; }; }
24391 then
24392 gcc_cv_as_section_has_align=yes
24393 else
24394 echo "configure: failed program was" >&5
24395 cat conftest.s >&5
24396 fi
24397 rm -f conftest.o conftest.s
24398 fi
24399 fi
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24401 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24402
24403 if test x$gcc_cv_as_section_has_align != xyes; then
24404 case ",$enable_languages," in
24405 *,lto,*)
24406 { $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
24407 $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;}
24408 ;;
24409 esac
24410 fi
24411 # Test if the assembler supports the section flag 'e' for specifying
24412 # an excluded section.
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24414 $as_echo_n "checking assembler for .section with e... " >&6; }
24415 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24416 $as_echo_n "(cached) " >&6
24417 else
24418 gcc_cv_as_section_has_e=no
24419 if test $in_tree_gas = yes; then
24420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24421 then gcc_cv_as_section_has_e=yes
24422 fi
24423 elif test x$gcc_cv_as != x; then
24424 $as_echo '.section foo1,"e"
24425 .byte 0,0,0,0' > conftest.s
24426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24432 then
24433 gcc_cv_as_section_has_e=yes
24434 else
24435 echo "configure: failed program was" >&5
24436 cat conftest.s >&5
24437 fi
24438 rm -f conftest.o conftest.s
24439 fi
24440 fi
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24442 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24443
24444
24445 cat >>confdefs.h <<_ACEOF
24446 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24447 _ACEOF
24448
24449 ;;
24450 esac
24451
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24453 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24454 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24456 else
24457 gcc_cv_as_ix86_filds=no
24458 if test x$gcc_cv_as != x; then
24459 $as_echo 'filds mem; fists mem' > conftest.s
24460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; }
24466 then
24467 gcc_cv_as_ix86_filds=yes
24468 else
24469 echo "configure: failed program was" >&5
24470 cat conftest.s >&5
24471 fi
24472 rm -f conftest.o conftest.s
24473 fi
24474 fi
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24476 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24477 if test $gcc_cv_as_ix86_filds = yes; then
24478
24479 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24480
24481 fi
24482
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24484 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24485 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24486 $as_echo_n "(cached) " >&6
24487 else
24488 gcc_cv_as_ix86_fildq=no
24489 if test x$gcc_cv_as != x; then
24490 $as_echo 'fildq mem; fistpq mem' > conftest.s
24491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24496 test $ac_status = 0; }; }
24497 then
24498 gcc_cv_as_ix86_fildq=yes
24499 else
24500 echo "configure: failed program was" >&5
24501 cat conftest.s >&5
24502 fi
24503 rm -f conftest.o conftest.s
24504 fi
24505 fi
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24507 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24508 if test $gcc_cv_as_ix86_fildq = yes; then
24509
24510 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24511
24512 fi
24513
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24515 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24516 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24517 $as_echo_n "(cached) " >&6
24518 else
24519 gcc_cv_as_ix86_cmov_sun_syntax=no
24520 if test x$gcc_cv_as != x; then
24521 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24524 (eval $ac_try) 2>&5
24525 ac_status=$?
24526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24527 test $ac_status = 0; }; }
24528 then
24529 gcc_cv_as_ix86_cmov_sun_syntax=yes
24530 else
24531 echo "configure: failed program was" >&5
24532 cat conftest.s >&5
24533 fi
24534 rm -f conftest.o conftest.s
24535 fi
24536 fi
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24538 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24539 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24540
24541 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24542
24543 fi
24544
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24546 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24547 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24549 else
24550 gcc_cv_as_ix86_ffreep=no
24551 if test x$gcc_cv_as != x; then
24552 $as_echo 'ffreep %st(1)' > conftest.s
24553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24558 test $ac_status = 0; }; }
24559 then
24560 gcc_cv_as_ix86_ffreep=yes
24561 else
24562 echo "configure: failed program was" >&5
24563 cat conftest.s >&5
24564 fi
24565 rm -f conftest.o conftest.s
24566 fi
24567 fi
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24569 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24570 if test $gcc_cv_as_ix86_ffreep = yes; then
24571
24572 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24573
24574 fi
24575
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24577 $as_echo_n "checking assembler for .quad directive... " >&6; }
24578 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24579 $as_echo_n "(cached) " >&6
24580 else
24581 gcc_cv_as_ix86_quad=no
24582 if test x$gcc_cv_as != x; then
24583 $as_echo '.quad 0' > conftest.s
24584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24589 test $ac_status = 0; }; }
24590 then
24591 gcc_cv_as_ix86_quad=yes
24592 else
24593 echo "configure: failed program was" >&5
24594 cat conftest.s >&5
24595 fi
24596 rm -f conftest.o conftest.s
24597 fi
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24600 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24601 if test $gcc_cv_as_ix86_quad = yes; then
24602
24603 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24604
24605 fi
24606
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24608 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24609 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24611 else
24612 gcc_cv_as_ix86_sahf=no
24613 if test x$gcc_cv_as != x; then
24614 $as_echo '.code64
24615 sahf' > conftest.s
24616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24618 (eval $ac_try) 2>&5
24619 ac_status=$?
24620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24621 test $ac_status = 0; }; }
24622 then
24623 gcc_cv_as_ix86_sahf=yes
24624 else
24625 echo "configure: failed program was" >&5
24626 cat conftest.s >&5
24627 fi
24628 rm -f conftest.o conftest.s
24629 fi
24630 fi
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24632 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24633 if test $gcc_cv_as_ix86_sahf = yes; then
24634
24635 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24636
24637 fi
24638
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24640 $as_echo_n "checking assembler for swap suffix... " >&6; }
24641 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24643 else
24644 gcc_cv_as_ix86_swap=no
24645 if test x$gcc_cv_as != x; then
24646 $as_echo 'movl.s %esp, %ebp' > conftest.s
24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24653 then
24654 gcc_cv_as_ix86_swap=yes
24655 else
24656 echo "configure: failed program was" >&5
24657 cat conftest.s >&5
24658 fi
24659 rm -f conftest.o conftest.s
24660 fi
24661 fi
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24663 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24664 if test $gcc_cv_as_ix86_swap = yes; then
24665
24666 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24667
24668 fi
24669
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24671 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24672 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24674 else
24675 gcc_cv_as_ix86_diff_sect_delta=no
24676 if test x$gcc_cv_as != x; then
24677 $as_echo '.section .rodata
24678 .L1:
24679 .long .L2-.L1
24680 .long .L3-.L1
24681 .text
24682 .L3: nop
24683 .L2: nop' > conftest.s
24684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24690 then
24691 gcc_cv_as_ix86_diff_sect_delta=yes
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24695 fi
24696 rm -f conftest.o conftest.s
24697 fi
24698 fi
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24700 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24701 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24702
24703 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24704
24705 fi
24706
24707 # These two are used unconditionally by i386.[ch]; it is to be defined
24708 # to 1 if the feature is present, 0 otherwise.
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24710 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24711 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24712 $as_echo_n "(cached) " >&6
24713 else
24714 gcc_cv_as_ix86_gotoff_in_data=no
24715 if test $in_tree_gas = yes; then
24716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24717 then gcc_cv_as_ix86_gotoff_in_data=yes
24718 fi
24719 elif test x$gcc_cv_as != x; then
24720 $as_echo ' .text
24721 .L0:
24722 nop
24723 .data
24724 .long .L0@GOTOFF' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24731 then
24732 gcc_cv_as_ix86_gotoff_in_data=yes
24733 else
24734 echo "configure: failed program was" >&5
24735 cat conftest.s >&5
24736 fi
24737 rm -f conftest.o conftest.s
24738 fi
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24741 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24742
24743
24744 cat >>confdefs.h <<_ACEOF
24745 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24746 _ACEOF
24747
24748
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24750 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24751 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24753 else
24754 gcc_cv_as_ix86_rep_lock_prefix=no
24755 if test x$gcc_cv_as != x; then
24756 $as_echo 'rep movsl
24757 lock addl %edi, (%eax,%esi)
24758 lock orl $0, (%esp)' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_ix86_rep_lock_prefix=yes
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24770 fi
24771 rm -f conftest.o conftest.s
24772 fi
24773 fi
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24775 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24776 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24777
24778 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24779
24780 fi
24781
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24783 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24784 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24786 else
24787 gcc_cv_as_ix86_tlsgdplt=no
24788 if test x$gcc_cv_as != x; then
24789 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24796 then
24797 gcc_cv_as_ix86_tlsgdplt=yes
24798 else
24799 echo "configure: failed program was" >&5
24800 cat conftest.s >&5
24801 fi
24802 rm -f conftest.o conftest.s
24803 fi
24804 fi
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24806 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24807 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24808
24809 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24810
24811 fi
24812
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24814 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24815 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 gcc_cv_as_ix86_tlsldmplt=no
24819 if test x$gcc_cv_as != x; then
24820 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24824 ac_status=$?
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24827 then
24828 gcc_cv_as_ix86_tlsldmplt=yes
24829 else
24830 echo "configure: failed program was" >&5
24831 cat conftest.s >&5
24832 fi
24833 rm -f conftest.o conftest.s
24834 fi
24835 fi
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24837 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24838 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24839
24840 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24841
24842 fi
24843
24844 ;;
24845
24846 ia64*-*-*)
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24848 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24849 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24851 else
24852 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24853 if test $in_tree_gas = yes; then
24854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24855 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24856 fi
24857 elif test x$gcc_cv_as != x; then
24858 $as_echo ' .text
24859 addl r15 = @ltoffx(x#), gp
24860 ;;
24861 ld8.mov r16 = [r15], x#' > conftest.s
24862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24867 test $ac_status = 0; }; }
24868 then
24869 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24870 else
24871 echo "configure: failed program was" >&5
24872 cat conftest.s >&5
24873 fi
24874 rm -f conftest.o conftest.s
24875 fi
24876 fi
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24878 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24880
24881 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24882
24883 fi
24884
24885 ;;
24886
24887 powerpc*-*-*)
24888 case $target in
24889 *-*-aix*) conftest_s=' .machine "pwr5"
24890 .csect .text[PR]
24891 mfcr 3,128';;
24892 *-*-darwin*)
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24894 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24895 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24898 gcc_cv_as_machine_directive=no
24899 if test x$gcc_cv_as != x; then
24900 $as_echo ' .machine ppc7400' > conftest.s
24901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24907 then
24908 gcc_cv_as_machine_directive=yes
24909 else
24910 echo "configure: failed program was" >&5
24911 cat conftest.s >&5
24912 fi
24913 rm -f conftest.o conftest.s
24914 fi
24915 fi
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24917 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24918
24919 if test x$gcc_cv_as_machine_directive != xyes; then
24920 echo "*** This target requires an assembler supporting \".machine\"" >&2
24921 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24922 test x$build = x$target && exit 1
24923 fi
24924 conftest_s=' .text
24925 mfcr r3,128';;
24926 *) conftest_s=' .machine power4
24927 .text
24928 mfcr 3,128';;
24929 esac
24930
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24932 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24933 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24934 $as_echo_n "(cached) " >&6
24935 else
24936 gcc_cv_as_powerpc_mfcrf=no
24937 if test $in_tree_gas = yes; then
24938 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24939 then gcc_cv_as_powerpc_mfcrf=yes
24940 fi
24941 elif test x$gcc_cv_as != x; then
24942 $as_echo "$conftest_s" > conftest.s
24943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24949 then
24950 gcc_cv_as_powerpc_mfcrf=yes
24951 else
24952 echo "configure: failed program was" >&5
24953 cat conftest.s >&5
24954 fi
24955 rm -f conftest.o conftest.s
24956 fi
24957 fi
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24959 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24960 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24961
24962 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24963
24964 fi
24965
24966 case $target in
24967 *-*-aix*) conftest_s=' .machine "pwr5"
24968 .csect .text[PR]
24969 popcntb 3,3';;
24970 *) conftest_s=' .machine power5
24971 .text
24972 popcntb 3,3';;
24973 esac
24974
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24976 $as_echo_n "checking assembler for popcntb support... " >&6; }
24977 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_powerpc_popcntb=no
24981 if test $in_tree_gas = yes; then
24982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24983 then gcc_cv_as_powerpc_popcntb=yes
24984 fi
24985 elif test x$gcc_cv_as != x; then
24986 $as_echo "$conftest_s" > conftest.s
24987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24989 (eval $ac_try) 2>&5
24990 ac_status=$?
24991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24992 test $ac_status = 0; }; }
24993 then
24994 gcc_cv_as_powerpc_popcntb=yes
24995 else
24996 echo "configure: failed program was" >&5
24997 cat conftest.s >&5
24998 fi
24999 rm -f conftest.o conftest.s
25000 fi
25001 fi
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25003 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25004 if test $gcc_cv_as_powerpc_popcntb = yes; then
25005
25006 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25007
25008 fi
25009
25010 case $target in
25011 *-*-aix*) conftest_s=' .machine "pwr5x"
25012 .csect .text[PR]
25013 frin 1,1';;
25014 *) conftest_s=' .machine power5
25015 .text
25016 frin 1,1';;
25017 esac
25018
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25020 $as_echo_n "checking assembler for fp round support... " >&6; }
25021 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25022 $as_echo_n "(cached) " >&6
25023 else
25024 gcc_cv_as_powerpc_fprnd=no
25025 if test $in_tree_gas = yes; then
25026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25027 then gcc_cv_as_powerpc_fprnd=yes
25028 fi
25029 elif test x$gcc_cv_as != x; then
25030 $as_echo "$conftest_s" > conftest.s
25031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25037 then
25038 gcc_cv_as_powerpc_fprnd=yes
25039 else
25040 echo "configure: failed program was" >&5
25041 cat conftest.s >&5
25042 fi
25043 rm -f conftest.o conftest.s
25044 fi
25045 fi
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25047 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25048 if test $gcc_cv_as_powerpc_fprnd = yes; then
25049
25050 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25051
25052 fi
25053
25054 case $target in
25055 *-*-aix*) conftest_s=' .machine "pwr6"
25056 .csect .text[PR]
25057 mffgpr 1,3';;
25058 *) conftest_s=' .machine power6
25059 .text
25060 mffgpr 1,3';;
25061 esac
25062
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25064 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25065 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25067 else
25068 gcc_cv_as_powerpc_mfpgpr=no
25069 if test $in_tree_gas = yes; then
25070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25071 then gcc_cv_as_powerpc_mfpgpr=yes
25072 fi
25073 elif test x$gcc_cv_as != x; then
25074 $as_echo "$conftest_s" > conftest.s
25075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25081 then
25082 gcc_cv_as_powerpc_mfpgpr=yes
25083 else
25084 echo "configure: failed program was" >&5
25085 cat conftest.s >&5
25086 fi
25087 rm -f conftest.o conftest.s
25088 fi
25089 fi
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25091 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25092 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25093
25094 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25095
25096 fi
25097
25098 case $target in
25099 *-*-aix*) conftest_s=' .csect .text[PR]
25100 LCF..0:
25101 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25102 *-*-darwin*)
25103 conftest_s=' .text
25104 LCF0:
25105 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25106 *) conftest_s=' .text
25107 .LCF0:
25108 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25109 esac
25110
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25112 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25113 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25115 else
25116 gcc_cv_as_powerpc_rel16=no
25117 if test $in_tree_gas = yes; then
25118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25119 then gcc_cv_as_powerpc_rel16=yes
25120 fi
25121 elif test x$gcc_cv_as != x; then
25122 $as_echo "$conftest_s" > conftest.s
25123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25128 test $ac_status = 0; }; }
25129 then
25130 gcc_cv_as_powerpc_rel16=yes
25131 else
25132 echo "configure: failed program was" >&5
25133 cat conftest.s >&5
25134 fi
25135 rm -f conftest.o conftest.s
25136 fi
25137 fi
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25139 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25140 if test $gcc_cv_as_powerpc_rel16 = yes; then
25141
25142 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25143
25144 fi
25145
25146 case $target in
25147 *-*-aix*) conftest_s=' .machine "pwr6"
25148 .csect .text[PR]
25149 cmpb 3,4,5';;
25150 *) conftest_s=' .machine power6
25151 .text
25152 cmpb 3,4,5';;
25153 esac
25154
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25156 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25157 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25159 else
25160 gcc_cv_as_powerpc_cmpb=no
25161 if test $in_tree_gas = yes; then
25162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25163 then gcc_cv_as_powerpc_cmpb=yes
25164 fi
25165 elif test x$gcc_cv_as != x; then
25166 $as_echo "$conftest_s" > conftest.s
25167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25173 then
25174 gcc_cv_as_powerpc_cmpb=yes
25175 else
25176 echo "configure: failed program was" >&5
25177 cat conftest.s >&5
25178 fi
25179 rm -f conftest.o conftest.s
25180 fi
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25183 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25184 if test $gcc_cv_as_powerpc_cmpb = yes; then
25185
25186 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25187
25188 fi
25189
25190 case $target in
25191 *-*-aix*) conftest_s=' .machine "pwr6"
25192 .csect .text[PR]
25193 dadd 1,2,3';;
25194 *) conftest_s=' .machine power6
25195 .text
25196 dadd 1,2,3';;
25197 esac
25198
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25200 $as_echo_n "checking assembler for decimal float support... " >&6; }
25201 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 gcc_cv_as_powerpc_dfp=no
25205 if test $in_tree_gas = yes; then
25206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25207 then gcc_cv_as_powerpc_dfp=yes
25208 fi
25209 elif test x$gcc_cv_as != x; then
25210 $as_echo "$conftest_s" > conftest.s
25211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25217 then
25218 gcc_cv_as_powerpc_dfp=yes
25219 else
25220 echo "configure: failed program was" >&5
25221 cat conftest.s >&5
25222 fi
25223 rm -f conftest.o conftest.s
25224 fi
25225 fi
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25227 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25228 if test $gcc_cv_as_powerpc_dfp = yes; then
25229
25230 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25231
25232 fi
25233
25234 case $target in
25235 *-*-aix*) conftest_s=' .machine "pwr7"
25236 .csect .text[PR]
25237 lxvd2x 1,2,3';;
25238 *) conftest_s=' .machine power7
25239 .text
25240 lxvd2x 1,2,3';;
25241 esac
25242
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25244 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25245 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25247 else
25248 gcc_cv_as_powerpc_vsx=no
25249 if test $in_tree_gas = yes; then
25250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25251 then gcc_cv_as_powerpc_vsx=yes
25252 fi
25253 elif test x$gcc_cv_as != x; then
25254 $as_echo "$conftest_s" > conftest.s
25255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25261 then
25262 gcc_cv_as_powerpc_vsx=yes
25263 else
25264 echo "configure: failed program was" >&5
25265 cat conftest.s >&5
25266 fi
25267 rm -f conftest.o conftest.s
25268 fi
25269 fi
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25271 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25272 if test $gcc_cv_as_powerpc_vsx = yes; then
25273
25274 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25275
25276 fi
25277
25278 case $target in
25279 *-*-aix*) conftest_s=' .machine "pwr7"
25280 .csect .text[PR]
25281 popcntd 3,3';;
25282 *) conftest_s=' .machine power7
25283 .text
25284 popcntd 3,3';;
25285 esac
25286
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25288 $as_echo_n "checking assembler for popcntd support... " >&6; }
25289 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25290 $as_echo_n "(cached) " >&6
25291 else
25292 gcc_cv_as_powerpc_popcntd=no
25293 if test $in_tree_gas = yes; then
25294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25295 then gcc_cv_as_powerpc_popcntd=yes
25296 fi
25297 elif test x$gcc_cv_as != x; then
25298 $as_echo "$conftest_s" > conftest.s
25299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25302 ac_status=$?
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25305 then
25306 gcc_cv_as_powerpc_popcntd=yes
25307 else
25308 echo "configure: failed program was" >&5
25309 cat conftest.s >&5
25310 fi
25311 rm -f conftest.o conftest.s
25312 fi
25313 fi
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25315 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25316 if test $gcc_cv_as_powerpc_popcntd = yes; then
25317
25318 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25319
25320 fi
25321
25322 case $target in
25323 *-*-aix*) conftest_s=' .csect .text[PR]
25324 lwsync';;
25325 *) conftest_s=' .text
25326 lwsync';;
25327 esac
25328
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25330 $as_echo_n "checking assembler for lwsync support... " >&6; }
25331 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25333 else
25334 gcc_cv_as_powerpc_lwsync=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25337 then gcc_cv_as_powerpc_lwsync=yes
25338 fi
25339 elif test x$gcc_cv_as != x; then
25340 $as_echo "$conftest_s" > conftest.s
25341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25347 then
25348 gcc_cv_as_powerpc_lwsync=yes
25349 else
25350 echo "configure: failed program was" >&5
25351 cat conftest.s >&5
25352 fi
25353 rm -f conftest.o conftest.s
25354 fi
25355 fi
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25357 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25358 if test $gcc_cv_as_powerpc_lwsync = yes; then
25359
25360 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25361
25362 fi
25363
25364 case $target in
25365 *-*-aix*) conftest_s=' .machine "476"
25366 .csect .text[PR]
25367 dci 0';;
25368 *) conftest_s=' .machine "476"
25369 .text
25370 dci 0';;
25371 esac
25372
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25374 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25375 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25377 else
25378 gcc_cv_as_powerpc_dci=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25381 then gcc_cv_as_powerpc_dci=yes
25382 fi
25383 elif test x$gcc_cv_as != x; then
25384 $as_echo "$conftest_s" > conftest.s
25385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25391 then
25392 gcc_cv_as_powerpc_dci=yes
25393 else
25394 echo "configure: failed program was" >&5
25395 cat conftest.s >&5
25396 fi
25397 rm -f conftest.o conftest.s
25398 fi
25399 fi
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25401 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25402 if test $gcc_cv_as_powerpc_dci = yes; then
25403
25404 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25405
25406 fi
25407
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25409 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25410 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25412 else
25413 gcc_cv_as_powerpc_gnu_attribute=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25416 then gcc_cv_as_powerpc_gnu_attribute=yes
25417 fi
25418 elif test x$gcc_cv_as != x; then
25419 $as_echo '.gnu_attribute 4,1' > conftest.s
25420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25426 then
25427 gcc_cv_as_powerpc_gnu_attribute=yes
25428 else
25429 echo "configure: failed program was" >&5
25430 cat conftest.s >&5
25431 fi
25432 rm -f conftest.o conftest.s
25433 fi
25434 fi
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25436 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25437 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25438
25439 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25440
25441 fi
25442
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25444 $as_echo_n "checking assembler for tls marker support... " >&6; }
25445 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25447 else
25448 gcc_cv_as_powerpc_tls_markers=no
25449 if test $in_tree_gas = yes; then
25450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25451 then gcc_cv_as_powerpc_tls_markers=yes
25452 fi
25453 elif test x$gcc_cv_as != x; then
25454 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25461 then
25462 gcc_cv_as_powerpc_tls_markers=yes
25463 else
25464 echo "configure: failed program was" >&5
25465 cat conftest.s >&5
25466 fi
25467 rm -f conftest.o conftest.s
25468 fi
25469 fi
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25471 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25472 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25473
25474 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25475
25476 fi
25477
25478 case $target in
25479 *-*-aix*)
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25481 $as_echo_n "checking assembler for .ref support... " >&6; }
25482 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25483 $as_echo_n "(cached) " >&6
25484 else
25485 gcc_cv_as_aix_ref=no
25486 if test $in_tree_gas = yes; then
25487 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25488 then :
25489 fi
25490 elif test x$gcc_cv_as != x; then
25491 $as_echo ' .csect stuff[rw]
25492 stuff:
25493 .long 1
25494 .extern sym
25495 .ref sym
25496 ' > conftest.s
25497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25503 then
25504 gcc_cv_as_aix_ref=yes
25505 else
25506 echo "configure: failed program was" >&5
25507 cat conftest.s >&5
25508 fi
25509 rm -f conftest.o conftest.s
25510 fi
25511 fi
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25513 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25514 if test $gcc_cv_as_aix_ref = yes; then
25515
25516 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25517
25518 fi
25519 ;;
25520 esac
25521 ;;
25522
25523 mips*-*-*)
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25525 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25526 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25527 $as_echo_n "(cached) " >&6
25528 else
25529 gcc_cv_as_mips_explicit_relocs=no
25530 if test $in_tree_gas = yes; then
25531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25532 then gcc_cv_as_mips_explicit_relocs=yes
25533 fi
25534 elif test x$gcc_cv_as != x; then
25535 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25542 then
25543 gcc_cv_as_mips_explicit_relocs=yes
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25547 fi
25548 rm -f conftest.o conftest.s
25549 fi
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25552 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25553 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25554 if test x$target_cpu_default = x
25555 then target_cpu_default=MASK_EXPLICIT_RELOCS
25556 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25557 fi
25558 fi
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25560 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25561 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 gcc_cv_as_mips_no_shared=no
25565 if test $in_tree_gas = yes; then
25566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25567 then gcc_cv_as_mips_no_shared=yes
25568 fi
25569 elif test x$gcc_cv_as != x; then
25570 $as_echo 'nop' > conftest.s
25571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25577 then
25578 gcc_cv_as_mips_no_shared=yes
25579 else
25580 echo "configure: failed program was" >&5
25581 cat conftest.s >&5
25582 fi
25583 rm -f conftest.o conftest.s
25584 fi
25585 fi
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25587 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25588 if test $gcc_cv_as_mips_no_shared = yes; then
25589
25590 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25591
25592 fi
25593
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25595 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25596 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
25598 else
25599 gcc_cv_as_mips_gnu_attribute=no
25600 if test $in_tree_gas = yes; then
25601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25602 then gcc_cv_as_mips_gnu_attribute=yes
25603 fi
25604 elif test x$gcc_cv_as != x; then
25605 $as_echo '.gnu_attribute 4,1' > conftest.s
25606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25612 then
25613 gcc_cv_as_mips_gnu_attribute=yes
25614 else
25615 echo "configure: failed program was" >&5
25616 cat conftest.s >&5
25617 fi
25618 rm -f conftest.o conftest.s
25619 fi
25620 fi
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25622 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25623 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25624
25625 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25626
25627 fi
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25630 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25631 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_mips_dtprelword=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25637 then gcc_cv_as_mips_dtprelword=yes
25638 fi
25639 elif test x$gcc_cv_as != x; then
25640 $as_echo '.section .tdata,"awT",@progbits
25641 x:
25642 .word 2
25643 .text
25644 .dtprelword x+0x8000' > conftest.s
25645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25650 test $ac_status = 0; }; }
25651 then
25652 gcc_cv_as_mips_dtprelword=yes
25653 else
25654 echo "configure: failed program was" >&5
25655 cat conftest.s >&5
25656 fi
25657 rm -f conftest.o conftest.s
25658 fi
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25661 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25662 if test $gcc_cv_as_mips_dtprelword = yes; then
25663
25664 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25665
25666 fi
25667
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25669 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25670 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25671 $as_echo_n "(cached) " >&6
25672 else
25673 gcc_cv_as_mips_dspr1_mult=no
25674 if test x$gcc_cv_as != x; then
25675 $as_echo ' .set mips32r2
25676 .set nodspr2
25677 .set dsp
25678 madd $ac3,$4,$5
25679 maddu $ac3,$4,$5
25680 msub $ac3,$4,$5
25681 msubu $ac3,$4,$5
25682 mult $ac3,$4,$5
25683 multu $ac3,$4,$5' > conftest.s
25684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25690 then
25691 gcc_cv_as_mips_dspr1_mult=yes
25692 else
25693 echo "configure: failed program was" >&5
25694 cat conftest.s >&5
25695 fi
25696 rm -f conftest.o conftest.s
25697 fi
25698 fi
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25700 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25701 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25702
25703 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25704
25705 fi
25706
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25708 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25709 gcc_cv_as_ld_jalr_reloc=no
25710 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25711 if test $in_tree_ld = yes ; then
25712 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 \
25713 && test $in_tree_ld_is_elf = yes; then
25714 gcc_cv_as_ld_jalr_reloc=yes
25715 fi
25716 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25717 echo ' .ent x' > conftest.s
25718 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25719 echo ' ld $25,%call16(y)($28)' >> conftest.s
25720 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25721 echo '1: jalr $25' >> conftest.s
25722 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25723 echo '1: jalr $25' >> conftest.s
25724 echo ' .end x' >> conftest.s
25725 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25726 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25727 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25728 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25729 gcc_cv_as_ld_jalr_reloc=yes
25730 fi
25731 fi
25732 rm -f conftest.*
25733 fi
25734 fi
25735 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25736 if test x$target_cpu_default = x; then
25737 target_cpu_default=MASK_RELAX_PIC_CALLS
25738 else
25739 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25740 fi
25741 fi
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25743 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25744
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25746 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25747 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25749 else
25750 gcc_cv_ld_mips_personality_relaxation=no
25751 if test $in_tree_ld = yes ; then
25752 if test "$gcc_cv_gld_major_version" -eq 2 \
25753 -a "$gcc_cv_gld_minor_version" -ge 21 \
25754 -o "$gcc_cv_gld_major_version" -gt 2; then
25755 gcc_cv_ld_mips_personality_relaxation=yes
25756 fi
25757 elif test x$gcc_cv_as != x \
25758 -a x$gcc_cv_ld != x \
25759 -a x$gcc_cv_readelf != x ; then
25760 cat > conftest.s <<EOF
25761 .cfi_startproc
25762 .cfi_personality 0x80,indirect_ptr
25763 .ent test
25764 test:
25765 nop
25766 .end test
25767 .cfi_endproc
25768
25769 .section .data,"aw",@progbits
25770 indirect_ptr:
25771 .dc.a personality
25772 EOF
25773 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25774 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25775 if $gcc_cv_readelf -d conftest 2>&1 \
25776 | grep TEXTREL > /dev/null 2>&1; then
25777 :
25778 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25779 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25780 :
25781 else
25782 gcc_cv_ld_mips_personality_relaxation=yes
25783 fi
25784 fi
25785 fi
25786 rm -f conftest.s conftest.o conftest
25787 fi
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25789 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25790 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25791
25792 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25793
25794 fi
25795 ;;
25796 esac
25797
25798 # Mips and HP-UX need the GNU assembler.
25799 # Linux on IA64 might be able to use the Intel assembler.
25800
25801 case "$target" in
25802 mips*-*-* | *-*-hpux* )
25803 if test x$gas_flag = xyes \
25804 || test x"$host" != x"$build" \
25805 || test ! -x "$gcc_cv_as" \
25806 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25807 :
25808 else
25809 echo "*** This configuration requires the GNU assembler" >&2
25810 exit 1
25811 fi
25812 ;;
25813 esac
25814
25815 # ??? Not all targets support dwarf2 debug_line, even within a version
25816 # of gas. Moreover, we need to emit a valid instruction to trigger any
25817 # info to the output file. So, as supported targets are added to gas 2.11,
25818 # add some instruction here to (also) show we expect this might work.
25819 # ??? Once 2.11 is released, probably need to add first known working
25820 # version to the per-target configury.
25821 case "$cpu_type" in
25822 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25823 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25824 insn="nop"
25825 ;;
25826 ia64 | s390)
25827 insn="nop 0"
25828 ;;
25829 mmix)
25830 insn="swym 0"
25831 ;;
25832 esac
25833 if test x"$insn" != x; then
25834 conftest_s="\
25835 .file 1 \"conftest.s\"
25836 .loc 1 3 0
25837 $insn"
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25839 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25840 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25841 $as_echo_n "(cached) " >&6
25842 else
25843 gcc_cv_as_dwarf2_debug_line=no
25844 if test $in_tree_gas = yes; then
25845 if test $in_tree_gas_is_elf = yes \
25846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25847 then gcc_cv_as_dwarf2_debug_line=yes
25848 fi
25849 elif test x$gcc_cv_as != x; then
25850 $as_echo "$conftest_s" > conftest.s
25851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25856 test $ac_status = 0; }; }
25857 then
25858 if test x$gcc_cv_objdump != x \
25859 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25860 | grep debug_line > /dev/null 2>&1; then
25861 gcc_cv_as_dwarf2_debug_line=yes
25862 fi
25863 else
25864 echo "configure: failed program was" >&5
25865 cat conftest.s >&5
25866 fi
25867 rm -f conftest.o conftest.s
25868 fi
25869 fi
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25871 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25872
25873
25874 # The .debug_line file table must be in the exact order that
25875 # we specified the files, since these indices are also used
25876 # by DW_AT_decl_file. Approximate this test by testing if
25877 # the assembler bitches if the same index is assigned twice.
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25879 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25880 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25882 else
25883 gcc_cv_as_dwarf2_file_buggy=no
25884 if test x$gcc_cv_as != x; then
25885 $as_echo ' .file 1 "foo.s"
25886 .file 1 "bar.s"' > conftest.s
25887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25889 (eval $ac_try) 2>&5
25890 ac_status=$?
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; }; }
25893 then
25894 gcc_cv_as_dwarf2_file_buggy=yes
25895 else
25896 echo "configure: failed program was" >&5
25897 cat conftest.s >&5
25898 fi
25899 rm -f conftest.o conftest.s
25900 fi
25901 fi
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25903 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25904
25905
25906 if test $gcc_cv_as_dwarf2_debug_line = yes \
25907 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25908
25909 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25910
25911 fi
25912
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25914 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25915 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25917 else
25918 gcc_cv_as_gdwarf2_flag=no
25919 if test $in_tree_gas = yes; then
25920 if test $in_tree_gas_is_elf = yes \
25921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25922 then gcc_cv_as_gdwarf2_flag=yes
25923 fi
25924 elif test x$gcc_cv_as != x; then
25925 $as_echo "$insn" > conftest.s
25926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25932 then
25933 gcc_cv_as_gdwarf2_flag=yes
25934 else
25935 echo "configure: failed program was" >&5
25936 cat conftest.s >&5
25937 fi
25938 rm -f conftest.o conftest.s
25939 fi
25940 fi
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25942 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25943 if test $gcc_cv_as_gdwarf2_flag = yes; then
25944
25945 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25946
25947 fi
25948
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25950 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25951 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25953 else
25954 gcc_cv_as_gstabs_flag=no
25955 if test $in_tree_gas = yes; then
25956 if test $in_tree_gas_is_elf = yes \
25957 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25958 then gcc_cv_as_gstabs_flag=yes
25959 fi
25960 elif test x$gcc_cv_as != x; then
25961 $as_echo "$insn" > conftest.s
25962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25968 then
25969 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25970 # and warns about it, but still exits successfully. So check for
25971 # this.
25972 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25978 then :
25979 else gcc_cv_as_gstabs_flag=yes
25980 fi
25981 else
25982 echo "configure: failed program was" >&5
25983 cat conftest.s >&5
25984 fi
25985 rm -f conftest.o conftest.s
25986 fi
25987 fi
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25989 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25990 if test $gcc_cv_as_gstabs_flag = yes; then
25991
25992 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25993
25994 fi
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25997 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25998 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26000 else
26001 gcc_cv_as_debug_prefix_map_flag=no
26002 if test $in_tree_gas = yes; then
26003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26004 then gcc_cv_as_debug_prefix_map_flag=yes
26005 fi
26006 elif test x$gcc_cv_as != x; then
26007 $as_echo "$insn" > conftest.s
26008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26014 then
26015 gcc_cv_as_debug_prefix_map_flag=yes
26016 else
26017 echo "configure: failed program was" >&5
26018 cat conftest.s >&5
26019 fi
26020 rm -f conftest.o conftest.s
26021 fi
26022 fi
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26024 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26025 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26026
26027 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26028
26029 fi
26030 fi
26031
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26033 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26034 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26036 else
26037 gcc_cv_as_lcomm_with_alignment=no
26038 if test x$gcc_cv_as != x; then
26039 $as_echo '.lcomm bar,4,16' > conftest.s
26040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26045 test $ac_status = 0; }; }
26046 then
26047 gcc_cv_as_lcomm_with_alignment=yes
26048 else
26049 echo "configure: failed program was" >&5
26050 cat conftest.s >&5
26051 fi
26052 rm -f conftest.o conftest.s
26053 fi
26054 fi
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26056 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26057 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26058
26059 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26060
26061 fi
26062
26063 # Check whether --enable-gnu-unique-object was given.
26064 if test "${enable_gnu_unique_object+set}" = set; then :
26065 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26066 yes | no) ;;
26067 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26068 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26069 esac
26070 else
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26072 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26073 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26074 $as_echo_n "(cached) " >&6
26075 else
26076 gcc_cv_as_gnu_unique_object=no
26077 if test $in_tree_gas = yes; then
26078 if test $in_tree_gas_is_elf = yes \
26079 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26080 then gcc_cv_as_gnu_unique_object=yes
26081 fi
26082 elif test x$gcc_cv_as != x; then
26083 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 gcc_cv_as_gnu_unique_object=yes
26092 else
26093 echo "configure: failed program was" >&5
26094 cat conftest.s >&5
26095 fi
26096 rm -f conftest.o conftest.s
26097 fi
26098 fi
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26100 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26101 if test $gcc_cv_as_gnu_unique_object = yes; then
26102 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26103 if test x$host = x$build -a x$host = x$target &&
26104 ldd --version 2>/dev/null &&
26105 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26106 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26107 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26108 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26109 if test "$glibcnum" -ge 2011 ; then
26110 enable_gnu_unique_object=yes
26111 fi
26112 fi
26113 fi
26114 fi
26115
26116 if test x$enable_gnu_unique_object = xyes; then
26117
26118 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26119
26120 fi
26121
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26123 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26124 if test "${gcc_cv_as_line_zero+set}" = set; then :
26125 $as_echo_n "(cached) " >&6
26126 else
26127 gcc_cv_as_line_zero=no
26128 if test $in_tree_gas = yes; then
26129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26130 then gcc_cv_as_line_zero=yes
26131 fi
26132 elif test "x$gcc_cv_as" != x; then
26133 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26134 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139 test $ac_status = 0; }; } &&
26140 test "x`cat conftest.out`" = x
26141 then
26142 gcc_cv_as_line_zero=yes
26143 else
26144 echo "configure: failed program was" >&5
26145 cat conftest.s >&5
26146 echo "configure: error output was" >&5
26147 cat conftest.out >&5
26148 fi
26149 rm -f conftest.o conftest.s conftest.out
26150 fi
26151 fi
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26153 $as_echo "$gcc_cv_as_line_zero" >&6; }
26154 if test "x$gcc_cv_as_line_zero" = xyes; then
26155
26156 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26157
26158 fi
26159
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26161 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26162 gcc_cv_ld_eh_frame_hdr=no
26163 if test $in_tree_ld = yes ; then
26164 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 \
26165 && test $in_tree_ld_is_elf = yes; then
26166 gcc_cv_ld_eh_frame_hdr=yes
26167 fi
26168 elif test x$gcc_cv_ld != x; then
26169 if echo "$ld_ver" | grep GNU > /dev/null; then
26170 # Check if linker supports --eh-frame-hdr option
26171 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26172 gcc_cv_ld_eh_frame_hdr=yes
26173 fi
26174 else
26175 case "$target" in
26176 *-*-solaris2*)
26177 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26178 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26179 gcc_cv_ld_eh_frame_hdr=yes
26180 fi
26181 ;;
26182 esac
26183 fi
26184 fi
26185
26186 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26187
26188 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26189
26190 fi
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26192 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26193
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26195 $as_echo_n "checking linker position independent executable support... " >&6; }
26196 gcc_cv_ld_pie=no
26197 if test $in_tree_ld = yes ; then
26198 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 \
26199 && test $in_tree_ld_is_elf = yes; then
26200 gcc_cv_ld_pie=yes
26201 fi
26202 elif test x$gcc_cv_ld != x; then
26203 # Check if linker supports -pie option
26204 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26205 gcc_cv_ld_pie=yes
26206 fi
26207 fi
26208 if test x"$gcc_cv_ld_pie" = xyes; then
26209
26210 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26211
26212 fi
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26214 $as_echo "$gcc_cv_ld_pie" >&6; }
26215
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26217 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26218 gcc_cv_ld_eh_gc_sections=no
26219 if test $in_tree_ld = yes ; then
26220 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 \
26221 && test $in_tree_ld_is_elf = yes; then
26222 gcc_cv_ld_eh_gc_sections=yes
26223 fi
26224 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26225 cat > conftest.s <<EOF
26226 .section .text
26227 .globl _start
26228 .type _start, @function
26229 _start:
26230 .long foo
26231 .size _start, .-_start
26232 .section .text.foo,"ax",@progbits
26233 .type foo, @function
26234 foo:
26235 .long 0
26236 .size foo, .-foo
26237 .section .gcc_except_table.foo,"a",@progbits
26238 .L0:
26239 .long 0
26240 .section .eh_frame,"a",@progbits
26241 .long .L0
26242 EOF
26243 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26244 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26245 | grep "gc-sections option ignored" > /dev/null; then
26246 gcc_cv_ld_eh_gc_sections=no
26247 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26248 | grep gcc_except_table > /dev/null; then
26249 gcc_cv_ld_eh_gc_sections=yes
26250 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26251 if test x$gcc_cv_as_comdat_group != xyes; then
26252 gcc_cv_ld_eh_gc_sections=no
26253 cat > conftest.s <<EOF
26254 .section .text
26255 .globl _start
26256 .type _start, @function
26257 _start:
26258 .long foo
26259 .size _start, .-_start
26260 .section .gnu.linkonce.t.foo,"ax",@progbits
26261 .type foo, @function
26262 foo:
26263 .long 0
26264 .size foo, .-foo
26265 .section .gcc_except_table.foo,"a",@progbits
26266 .L0:
26267 .long 0
26268 .section .eh_frame,"a",@progbits
26269 .long .L0
26270 EOF
26271 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26272 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26273 | grep "gc-sections option ignored" > /dev/null; then
26274 gcc_cv_ld_eh_gc_sections=no
26275 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26276 | grep gcc_except_table > /dev/null; then
26277 gcc_cv_ld_eh_gc_sections=yes
26278 fi
26279 fi
26280 fi
26281 fi
26282 fi
26283 rm -f conftest.s conftest.o conftest
26284 fi
26285 case "$target" in
26286 hppa*-*-linux*)
26287 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26288 gcc_cv_ld_eh_gc_sections=no
26289 ;;
26290 esac
26291 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26292
26293 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26294
26295 fi
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26297 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26298
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26300 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26301 gcc_cv_ld_eh_gc_sections_bug=no
26302 if test $in_tree_ld = yes ; then
26303 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 \
26304 && test $in_tree_ld_is_elf = yes; then
26305 gcc_cv_ld_eh_gc_sections_bug=yes
26306 fi
26307 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
26308 gcc_cv_ld_eh_gc_sections_bug=yes
26309 cat > conftest.s <<EOF
26310 .section .text
26311 .globl _start
26312 .type _start, @function
26313 _start:
26314 .long foo
26315 .size _start, .-_start
26316 .section .text.startup.foo,"ax",@progbits
26317 .type foo, @function
26318 foo:
26319 .long 0
26320 .size foo, .-foo
26321 .section .gcc_except_table.foo,"a",@progbits
26322 .L0:
26323 .long 0
26324 .section .eh_frame,"a",@progbits
26325 .long .L0
26326 EOF
26327 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26328 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26329 | grep "gc-sections option ignored" > /dev/null; then
26330 :
26331 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26332 | grep gcc_except_table > /dev/null; then
26333 gcc_cv_ld_eh_gc_sections_bug=no
26334 fi
26335 fi
26336 rm -f conftest.s conftest.o conftest
26337 fi
26338 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26339
26340 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26341
26342 fi
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26344 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26345
26346 # --------
26347 # UNSORTED
26348 # --------
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26351 $as_echo_n "checking linker --as-needed support... " >&6; }
26352 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26354 else
26355 gcc_cv_ld_as_needed=no
26356 if test $in_tree_ld = yes ; then
26357 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 \
26358 && test $in_tree_ld_is_elf = yes; then
26359 gcc_cv_ld_as_needed=yes
26360 fi
26361 elif test x$gcc_cv_ld != x; then
26362 # Check if linker supports --as-needed and --no-as-needed options
26363 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26364 gcc_cv_ld_as_needed=yes
26365 fi
26366 fi
26367
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26370 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26371 if test x"$gcc_cv_ld_as_needed" = xyes; then
26372
26373 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26374
26375 fi
26376
26377 case "$target:$tm_file" in
26378 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26380 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26381 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26382 $as_echo_n "(cached) " >&6
26383 else
26384 gcc_cv_ld_no_dot_syms=no
26385 if test $in_tree_ld = yes ; then
26386 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
26387 gcc_cv_ld_no_dot_syms=yes
26388 fi
26389 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26390 cat > conftest1.s <<EOF
26391 .text
26392 bl .foo
26393 EOF
26394 cat > conftest2.s <<EOF
26395 .section ".opd","aw"
26396 .align 3
26397 .globl foo
26398 .type foo,@function
26399 foo:
26400 .quad .LEfoo,.TOC.@tocbase,0
26401 .text
26402 .LEfoo:
26403 blr
26404 .size foo,.-.LEfoo
26405 EOF
26406 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26407 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26408 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26409 gcc_cv_ld_no_dot_syms=yes
26410 fi
26411 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26412 fi
26413
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26416 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26417 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26418
26419 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26420
26421 fi
26422
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26424 $as_echo_n "checking linker large toc support... " >&6; }
26425 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_ld_large_toc=no
26429 if test $in_tree_ld = yes ; then
26430 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
26431 gcc_cv_ld_large_toc=yes
26432 fi
26433 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26434 cat > conftest.s <<EOF
26435 .section ".tbss","awT",@nobits
26436 .align 3
26437 ie0: .space 8
26438 .global _start
26439 .text
26440 _start:
26441 addis 9,13,ie0@got@tprel@ha
26442 ld 9,ie0@got@tprel@l(9)
26443 EOF
26444 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26445 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26446 gcc_cv_ld_large_toc=yes
26447 fi
26448 rm -f conftest conftest.o conftest.s
26449 fi
26450
26451 fi
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26453 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26454 if test x"$gcc_cv_ld_large_toc" = xyes; then
26455
26456 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26457
26458 fi
26459 ;;
26460 esac
26461
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26463 $as_echo_n "checking linker --build-id support... " >&6; }
26464 if test "${gcc_cv_ld_buildid+set}" = set; then :
26465 $as_echo_n "(cached) " >&6
26466 else
26467 gcc_cv_ld_buildid=no
26468 if test $in_tree_ld = yes ; then
26469 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26470 "$gcc_cv_gld_minor_version" -ge 18 -o \
26471 "$gcc_cv_gld_major_version" -gt 2 \
26472 && test $in_tree_ld_is_elf = yes; then
26473 gcc_cv_ld_buildid=yes
26474 fi
26475 elif test x$gcc_cv_ld != x; then
26476 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26477 gcc_cv_ld_buildid=yes
26478 fi
26479 fi
26480 fi
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26482 $as_echo "$gcc_cv_ld_buildid" >&6; }
26483 if test x"$gcc_cv_ld_buildid" = xyes; then
26484
26485 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26486
26487 fi
26488
26489 # Check whether --enable-linker-build-id was given.
26490 if test "${enable_linker_build_id+set}" = set; then :
26491 enableval=$enable_linker_build_id;
26492 else
26493 enable_linker_build_id=no
26494 fi
26495
26496
26497 if test x"$enable_linker_build_id" = xyes; then
26498 if test x"$gcc_cv_ld_buildid" = xyes; then
26499
26500 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26501
26502 else
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26504 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26505 fi
26506 fi
26507
26508 # In binutils 2.21, GNU ld gained support for new emulations fully
26509 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26511 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26512 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26514 else
26515 gcc_cv_ld_sol2_emulation=no
26516 if test $in_tree_ld = yes ; then
26517 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26518 "$gcc_cv_gld_minor_version" -ge 21 -o \
26519 "$gcc_cv_gld_major_version" -gt 2 \
26520 && test $in_tree_ld_is_elf = yes; then
26521 gcc_cv_ld_sol2_emulation=yes
26522 fi
26523 elif test x$gcc_cv_ld != x; then
26524 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26525 grep _sol2 > /dev/null; then
26526 gcc_cv_ld_sol2_emulation=yes
26527 fi
26528 fi
26529 fi
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26531 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26532 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26533
26534 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26535
26536 fi
26537
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26539 $as_echo_n "checking linker --sysroot support... " >&6; }
26540 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26543 gcc_cv_ld_sysroot=no
26544 if test $in_tree_ld = yes ; then
26545 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
26546 gcc_cv_ld_sysroot=yes
26547 fi
26548 elif test x$gcc_cv_ld != x; then
26549 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26550 gcc_cv_ld_sysroot=yes
26551 fi
26552 fi
26553 fi
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26555 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26556 if test x"$gcc_cv_ld_sysroot" = xyes; then
26557
26558 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26559
26560 fi
26561
26562 if test x$with_sysroot = x && test x$host = x$target \
26563 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26564 && test "$prefix" != "NONE"; then
26565
26566 cat >>confdefs.h <<_ACEOF
26567 #define PREFIX_INCLUDE_DIR "$prefix/include"
26568 _ACEOF
26569
26570 fi
26571
26572 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26573 if test "x$with_headers" != x; then
26574 target_header_dir=$with_headers
26575 elif test "x$with_sysroot" = x; then
26576 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26577 elif test "x$with_build_sysroot" != "x"; then
26578 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26579 elif test "x$with_sysroot" = xyes; then
26580 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26581 else
26582 target_header_dir="${with_sysroot}${native_system_header_dir}"
26583 fi
26584 else
26585 target_header_dir=${native_system_header_dir}
26586 fi
26587
26588 # Test for stack protector support in target C library.
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26590 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26591 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26592 $as_echo_n "(cached) " >&6
26593 else
26594 gcc_cv_libc_provides_ssp=no
26595 case "$target" in
26596 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26597 # glibc 2.4 and later provides __stack_chk_fail and
26598 # either __stack_chk_guard, or TLS access to stack guard canary.
26599 if test -f $target_header_dir/features.h \
26600 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26601 $target_header_dir/features.h > /dev/null; then
26602 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26603 $target_header_dir/features.h > /dev/null; then
26604 gcc_cv_libc_provides_ssp=yes
26605 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26606 $target_header_dir/features.h > /dev/null \
26607 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26608 $target_header_dir/features.h > /dev/null; then
26609 gcc_cv_libc_provides_ssp=yes
26610 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26611 $target_header_dir/features.h > /dev/null && \
26612 test -f $target_header_dir/bits/uClibc_config.h && \
26613 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26614 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26615 gcc_cv_libc_provides_ssp=yes
26616 fi
26617 fi
26618 ;;
26619 *-*-gnu*)
26620 # Avoid complicated tests (see
26621 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26622 # simply assert that glibc does provide this, which is true for all
26623 # realistically usable GNU/Hurd configurations.
26624 gcc_cv_libc_provides_ssp=yes;;
26625 *-*-darwin* | *-*-freebsd*)
26626 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26627 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26628 gcc_cv_libc_provides_ssp=yes
26629 else
26630 echo "no __stack_chk_fail on this target"
26631 fi
26632
26633 ;;
26634 *) gcc_cv_libc_provides_ssp=no ;;
26635 esac
26636 fi
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26638 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26639
26640 if test x$gcc_cv_libc_provides_ssp = xyes; then
26641
26642 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26643
26644 fi
26645
26646 # Test for <sys/sdt.h> on the target.
26647
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26649 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26650 have_sys_sdt_h=no
26651 if test -f $target_header_dir/sys/sdt.h; then
26652 have_sys_sdt_h=yes
26653
26654 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26655
26656 fi
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26658 $as_echo "$have_sys_sdt_h" >&6; }
26659
26660 # Check if TFmode long double should be used by default or not.
26661 # Some glibc targets used DFmode long double, but with glibc 2.4
26662 # and later they can use TFmode.
26663 case "$target" in
26664 powerpc*-*-linux* | \
26665 sparc*-*-linux* | \
26666 s390*-*-linux* | \
26667 alpha*-*-linux*)
26668
26669 # Check whether --with-long-double-128 was given.
26670 if test "${with_long_double_128+set}" = set; then :
26671 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26672 else
26673 gcc_cv_target_ldbl128=no
26674 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26675 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26676 && gcc_cv_target_ldbl128=yes
26677
26678 fi
26679
26680 ;;
26681 esac
26682 if test x$gcc_cv_target_ldbl128 = xyes; then
26683
26684 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26685
26686 fi
26687
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26689 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26690 gcc_cv_target_dl_iterate_phdr=unknown
26691 case "$target" in
26692 *-*-solaris2*)
26693 # <link.h> needs both a dl_iterate_phdr declaration and support for
26694 # compilation with largefile support.
26695 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26696 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26697 gcc_cv_target_dl_iterate_phdr=yes
26698 else
26699 gcc_cv_target_dl_iterate_phdr=no
26700 fi
26701 ;;
26702 esac
26703
26704 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26705
26706 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26707
26708 fi
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26710 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26711
26712 # Find out what GC implementation we want, or may, use.
26713
26714 # Check whether --with-gc was given.
26715 if test "${with_gc+set}" = set; then :
26716 withval=$with_gc; case "$withval" in
26717 page)
26718 GGC=ggc-$withval
26719 ;;
26720 zone)
26721 GGC=ggc-$withval
26722
26723 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26724
26725 ;;
26726 *)
26727 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26728 ;;
26729 esac
26730 else
26731 GGC=ggc-page
26732 fi
26733
26734
26735 echo "Using $GGC for garbage collection."
26736
26737 # Libraries to use on the host. This will normally be set by the top
26738 # level Makefile. Here we simply capture the value for our Makefile.
26739 if test -z "${HOST_LIBS+set}"; then
26740 HOST_LIBS=
26741 fi
26742
26743
26744 # Use the system's zlib library.
26745 zlibdir=-L../zlib
26746 zlibinc="-I\$(srcdir)/../zlib"
26747
26748 # Check whether --with-system-zlib was given.
26749 if test "${with_system_zlib+set}" = set; then :
26750 withval=$with_system_zlib; zlibdir=
26751 zlibinc=
26752
26753 fi
26754
26755
26756
26757
26758
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26760 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26761 # Check whether --enable-maintainer-mode was given.
26762 if test "${enable_maintainer_mode+set}" = set; then :
26763 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26764 else
26765 maintainer_mode=no
26766 fi
26767
26768
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26770 $as_echo "$maintainer_mode" >&6; }
26771
26772 if test "$maintainer_mode" = "yes"; then
26773 MAINT=''
26774 else
26775 MAINT='#'
26776 fi
26777
26778 # --------------
26779 # Language hooks
26780 # --------------
26781
26782 # Make empty files to contain the specs and options for each language.
26783 # Then add #include lines to for a compiler that has specs and/or options.
26784
26785 subdirs=
26786 lang_opt_files=
26787 lang_specs_files=
26788 lang_tree_files=
26789 # These (without "all_") are set in each config-lang.in.
26790 # `language' must be a single word so is spelled singularly.
26791 all_languages=
26792 all_compilers=
26793 all_outputs='Makefile'
26794 # List of language makefile fragments.
26795 all_lang_makefrags=
26796 # Additional files for gengtype
26797 all_gtfiles="$target_gtfiles"
26798
26799 # These are the languages that are set in --enable-languages,
26800 # and are available in the GCC tree.
26801 all_selected_languages=
26802
26803 # Add the language fragments.
26804 # Languages are added via two mechanisms. Some information must be
26805 # recorded in makefile variables, these are defined in config-lang.in.
26806 # We accumulate them and plug them into the main Makefile.
26807 # The other mechanism is a set of hooks for each of the main targets
26808 # like `clean', `install', etc.
26809
26810 language_hooks="Make-hooks"
26811
26812 for lang in ${srcdir}/*/config-lang.in
26813 do
26814 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26815
26816 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26817 if test "x$lang_alias" = x
26818 then
26819 echo "$lang doesn't set \$language." 1>&2
26820 exit 1
26821 fi
26822 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26823 subdirs="$subdirs $subdir"
26824
26825 # $gcc_subdir is where the gcc integration files are to be found
26826 # for a language, both for internal compiler purposes (compiler
26827 # sources implementing front-end to GCC tree converters), and for
26828 # build infrastructure purposes (Make-lang.in, etc.)
26829 #
26830 # This will be <subdir> (relative to $srcdir) if a line like
26831 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26832 # is found in <langdir>/config-lang.in, and will remain <langdir>
26833 # otherwise.
26834 #
26835 # Except for the language alias (fetched above), the regular
26836 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26837 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26838 # only this and the language alias.
26839
26840 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26841 if [ "$gcc_subdir" = "" ]; then
26842 gcc_subdir="$subdir"
26843 fi
26844
26845 case ",$enable_languages," in
26846 *,$lang_alias,*)
26847 all_selected_languages="$all_selected_languages $lang_alias"
26848 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26849 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26850 fi
26851 ;;
26852 esac
26853
26854 language=
26855 boot_language=
26856 compilers=
26857 outputs=
26858 gtfiles=
26859 subdir_requires=
26860 . ${srcdir}/$gcc_subdir/config-lang.in
26861 if test "x$language" = x
26862 then
26863 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26864 exit 1
26865 fi
26866
26867 ok=:
26868 case ",$enable_languages," in
26869 *,$lang_alias,*) ;;
26870 *)
26871 for i in $subdir_requires; do
26872 test -f "${srcdir}/$i/config-lang.in" && continue
26873 ok=false
26874 break
26875 done
26876 ;;
26877 esac
26878 $ok || continue
26879
26880 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26881 if test -f $srcdir/$gcc_subdir/lang.opt; then
26882 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26883 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26884 fi
26885 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26886 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26887 fi
26888 all_languages="$all_languages $language"
26889 all_compilers="$all_compilers $compilers"
26890 all_outputs="$all_outputs $outputs"
26891 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26892 case ",$enable_languages," in
26893 *,lto,*)
26894
26895 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26896
26897 enable_lto=yes
26898
26899 ;;
26900 *) ;;
26901 esac
26902 done
26903
26904 # Pick up gtfiles for c
26905 gtfiles=
26906 . ${srcdir}/c-config-lang.in
26907 all_gtfiles="$all_gtfiles [c] $gtfiles"
26908
26909 check_languages=
26910 for language in $all_selected_languages
26911 do
26912 check_languages="$check_languages check-$language"
26913 done
26914
26915 # We link each language in with a set of hooks, reached indirectly via
26916 # lang.${target}. Only do so for selected languages.
26917
26918 rm -f Make-hooks
26919 touch Make-hooks
26920 target_list="all.cross start.encap rest.encap tags \
26921 install-common install-man install-info install-pdf install-html dvi \
26922 pdf html uninstall info man srcextra srcman srcinfo \
26923 mostlyclean clean distclean maintainer-clean install-plugin"
26924
26925 for t in $target_list
26926 do
26927 x=
26928 for lang in $all_selected_languages
26929 do
26930 x="$x $lang.$t"
26931 done
26932 echo "lang.$t: $x" >> Make-hooks
26933 done
26934
26935 # --------
26936 # Option include files
26937 # --------
26938
26939 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26940 option_includes="option-includes.mk"
26941
26942
26943 # --------
26944 # UNSORTED
26945 # --------
26946
26947 # Create .gdbinit.
26948
26949 echo "dir ." > .gdbinit
26950 echo "dir ${srcdir}" >> .gdbinit
26951 if test x$gdb_needs_out_file_path = xyes
26952 then
26953 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26954 fi
26955 if test "x$subdirs" != x; then
26956 for s in $subdirs
26957 do
26958 echo "dir ${srcdir}/$s" >> .gdbinit
26959 done
26960 fi
26961 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26962
26963 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26964
26965
26966
26967 # Find a directory in which to install a shared libgcc.
26968
26969 # Check whether --enable-version-specific-runtime-libs was given.
26970 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26971 enableval=$enable_version_specific_runtime_libs;
26972 fi
26973
26974
26975 # Substitute configuration variables
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038 # Echo link setup.
27039 if test x${build} = x${host} ; then
27040 if test x${host} = x${target} ; then
27041 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27042 else
27043 echo "Links are now set up to build a cross-compiler" 1>&2
27044 echo " from ${host} to ${target}." 1>&2
27045 fi
27046 else
27047 if test x${host} = x${target} ; then
27048 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27049 echo " for ${target}." 1>&2
27050 else
27051 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27052 echo " from ${host} to ${target}." 1>&2
27053 fi
27054 fi
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064 if test "x${CLOOGLIBS}" != "x" ; then
27065
27066 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27067
27068 fi
27069
27070 # Check for plugin support
27071 # Check whether --enable-plugin was given.
27072 if test "${enable_plugin+set}" = set; then :
27073 enableval=$enable_plugin; enable_plugin=$enableval
27074 else
27075 enable_plugin=yes; default_plugin=yes
27076 fi
27077
27078
27079 pluginlibs=
27080
27081 case "${host}" in
27082 *-*-darwin*)
27083 if test x$build = x$host; then
27084 export_sym_check="nm${exeext} -g"
27085 elif test x$host = x$target; then
27086 export_sym_check="$gcc_cv_nm -g"
27087 else
27088 export_sym_check=
27089 fi
27090 ;;
27091 *)
27092 if test x$build = x$host; then
27093 export_sym_check="objdump${exeext} -T"
27094 elif test x$host = x$target; then
27095 export_sym_check="$gcc_cv_objdump -T"
27096 else
27097 export_sym_check=
27098 fi
27099 ;;
27100 esac
27101
27102 if test x"$enable_plugin" = x"yes"; then
27103
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27105 $as_echo_n "checking for exported symbols... " >&6; }
27106 if test "x$export_sym_check" != x; then
27107 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27108 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27109 if $export_sym_check conftest | grep foobar > /dev/null; then
27110 : # No need to use a flag
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27112 $as_echo "yes" >&6; }
27113 else
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27115 $as_echo "yes" >&6; }
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27117 $as_echo_n "checking for -rdynamic... " >&6; }
27118 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27119 if $export_sym_check conftest | grep foobar > /dev/null; then
27120 plugin_rdynamic=yes
27121 pluginlibs="-rdynamic"
27122 else
27123 plugin_rdynamic=no
27124 enable_plugin=no
27125 fi
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27127 $as_echo "$plugin_rdynamic" >&6; }
27128 fi
27129 else
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27131 $as_echo "unable to check" >&6; }
27132 fi
27133
27134 # Check -ldl
27135 saved_LIBS="$LIBS"
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27137 $as_echo_n "checking for library containing dlopen... " >&6; }
27138 if test "${ac_cv_search_dlopen+set}" = set; then :
27139 $as_echo_n "(cached) " >&6
27140 else
27141 ac_func_search_save_LIBS=$LIBS
27142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h. */
27144
27145 /* Override any GCC internal prototype to avoid an error.
27146 Use char because int might match the return type of a GCC
27147 builtin and then its argument prototype would still apply. */
27148 #ifdef __cplusplus
27149 extern "C"
27150 #endif
27151 char dlopen ();
27152 int
27153 main ()
27154 {
27155 return dlopen ();
27156 ;
27157 return 0;
27158 }
27159 _ACEOF
27160 for ac_lib in '' dl; do
27161 if test -z "$ac_lib"; then
27162 ac_res="none required"
27163 else
27164 ac_res=-l$ac_lib
27165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27166 fi
27167 if ac_fn_c_try_link "$LINENO"; then :
27168 ac_cv_search_dlopen=$ac_res
27169 fi
27170 rm -f core conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext
27172 if test "${ac_cv_search_dlopen+set}" = set; then :
27173 break
27174 fi
27175 done
27176 if test "${ac_cv_search_dlopen+set}" = set; then :
27177
27178 else
27179 ac_cv_search_dlopen=no
27180 fi
27181 rm conftest.$ac_ext
27182 LIBS=$ac_func_search_save_LIBS
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27185 $as_echo "$ac_cv_search_dlopen" >&6; }
27186 ac_res=$ac_cv_search_dlopen
27187 if test "$ac_res" != no; then :
27188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27189
27190 fi
27191
27192 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27193 pluginlibs="$pluginlibs -ldl"
27194 fi
27195 LIBS="$saved_LIBS"
27196
27197 # Check that we can build shared objects with -fPIC -shared
27198 saved_LDFLAGS="$LDFLAGS"
27199 saved_CFLAGS="$CFLAGS"
27200 case "${host}" in
27201 *-*-darwin*)
27202 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27203 CFLAGS="$CFLAGS -fPIC"
27204 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27205 ;;
27206 *)
27207 CFLAGS="$CFLAGS -fPIC"
27208 LDFLAGS="$LDFLAGS -fPIC -shared"
27209 ;;
27210 esac
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27212 $as_echo_n "checking for -fPIC -shared... " >&6; }
27213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27214 /* end confdefs.h. */
27215 extern int X;
27216 int
27217 main ()
27218 {
27219 return X == 0;
27220 ;
27221 return 0;
27222 }
27223 _ACEOF
27224 if ac_fn_c_try_link "$LINENO"; then :
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }; have_pic_shared=yes
27227 else
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27229 $as_echo "no" >&6; }; have_pic_shared=no
27230 fi
27231 rm -f core conftest.err conftest.$ac_objext \
27232 conftest$ac_exeext conftest.$ac_ext
27233 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27234 pluginlibs=
27235 enable_plugin=no
27236 fi
27237 LDFLAGS="$saved_LDFLAGS"
27238 CFLAGS="$saved_CFLAGS"
27239
27240 # If plugin support had been requested but not available, fail.
27241 if test x"$enable_plugin" = x"no" ; then
27242 if test x"$default_plugin" != x"yes"; then
27243 as_fn_error "
27244 Building GCC with plugin support requires a host that supports
27245 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27246 fi
27247 fi
27248 fi
27249
27250
27251
27252 if test x"$enable_plugin" = x"yes"; then
27253
27254 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27255
27256 fi
27257
27258
27259 # Check whether --enable-libquadmath-support was given.
27260 if test "${enable_libquadmath_support+set}" = set; then :
27261 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27262 else
27263 ENABLE_LIBQUADMATH_SUPPORT=yes
27264 fi
27265
27266 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27267
27268 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27269
27270 fi
27271
27272
27273 # Specify what hash style to use by default.
27274
27275 # Check whether --with-linker-hash-style was given.
27276 if test "${with_linker_hash_style+set}" = set; then :
27277 withval=$with_linker_hash_style; case x"$withval" in
27278 xsysv)
27279 LINKER_HASH_STYLE=sysv
27280 ;;
27281 xgnu)
27282 LINKER_HASH_STYLE=gnu
27283 ;;
27284 xboth)
27285 LINKER_HASH_STYLE=both
27286 ;;
27287 *)
27288 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27289 ;;
27290 esac
27291 else
27292 LINKER_HASH_STYLE=''
27293 fi
27294
27295 if test x"${LINKER_HASH_STYLE}" != x; then
27296
27297 cat >>confdefs.h <<_ACEOF
27298 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27299 _ACEOF
27300
27301 fi
27302
27303 # Configure the subdirectories
27304 # AC_CONFIG_SUBDIRS($subdirs)
27305
27306 # Create the Makefile
27307 # and configure language subdirectories
27308 ac_config_files="$ac_config_files $all_outputs"
27309
27310
27311 ac_config_commands="$ac_config_commands default"
27312
27313 cat >confcache <<\_ACEOF
27314 # This file is a shell script that caches the results of configure
27315 # tests run on this system so they can be shared between configure
27316 # scripts and configure runs, see configure's option --config-cache.
27317 # It is not useful on other systems. If it contains results you don't
27318 # want to keep, you may remove or edit it.
27319 #
27320 # config.status only pays attention to the cache file if you give it
27321 # the --recheck option to rerun configure.
27322 #
27323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27325 # following values.
27326
27327 _ACEOF
27328
27329 # The following way of writing the cache mishandles newlines in values,
27330 # but we know of no workaround that is simple, portable, and efficient.
27331 # So, we kill variables containing newlines.
27332 # Ultrix sh set writes to stderr and can't be redirected directly,
27333 # and sets the high bit in the cache file unless we assign to the vars.
27334 (
27335 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27336 eval ac_val=\$$ac_var
27337 case $ac_val in #(
27338 *${as_nl}*)
27339 case $ac_var in #(
27340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27342 esac
27343 case $ac_var in #(
27344 _ | IFS | as_nl) ;; #(
27345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27346 *) { eval $ac_var=; unset $ac_var;} ;;
27347 esac ;;
27348 esac
27349 done
27350
27351 (set) 2>&1 |
27352 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27353 *${as_nl}ac_space=\ *)
27354 # `set' does not quote correctly, so add quotes: double-quote
27355 # substitution turns \\\\ into \\, and sed turns \\ into \.
27356 sed -n \
27357 "s/'/'\\\\''/g;
27358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27359 ;; #(
27360 *)
27361 # `set' quotes correctly as required by POSIX, so do not add quotes.
27362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27363 ;;
27364 esac |
27365 sort
27366 ) |
27367 sed '
27368 /^ac_cv_env_/b end
27369 t clear
27370 :clear
27371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27372 t end
27373 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27374 :end' >>confcache
27375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27376 if test -w "$cache_file"; then
27377 test "x$cache_file" != "x/dev/null" &&
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27379 $as_echo "$as_me: updating cache $cache_file" >&6;}
27380 cat confcache >$cache_file
27381 else
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27384 fi
27385 fi
27386 rm -f confcache
27387
27388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27389 # Let make expand exec_prefix.
27390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27391
27392 DEFS=-DHAVE_CONFIG_H
27393
27394 ac_libobjs=
27395 ac_ltlibobjs=
27396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27397 # 1. Remove the extension, and $U if already installed.
27398 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27399 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27400 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27401 # will be set to the directory where LIBOBJS objects are built.
27402 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27403 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27404 done
27405 LIBOBJS=$ac_libobjs
27406
27407 LTLIBOBJS=$ac_ltlibobjs
27408
27409
27410
27411
27412 : ${CONFIG_STATUS=./config.status}
27413 ac_write_fail=0
27414 ac_clean_files_save=$ac_clean_files
27415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27418 as_write_fail=0
27419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27420 #! $SHELL
27421 # Generated by $as_me.
27422 # Run this file to recreate the current configuration.
27423 # Compiler output produced by configure, useful for debugging
27424 # configure, is in config.log if it exists.
27425
27426 debug=false
27427 ac_cs_recheck=false
27428 ac_cs_silent=false
27429
27430 SHELL=\${CONFIG_SHELL-$SHELL}
27431 export SHELL
27432 _ASEOF
27433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27434 ## -------------------- ##
27435 ## M4sh Initialization. ##
27436 ## -------------------- ##
27437
27438 # Be more Bourne compatible
27439 DUALCASE=1; export DUALCASE # for MKS sh
27440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27441 emulate sh
27442 NULLCMD=:
27443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27444 # is contrary to our usage. Disable this feature.
27445 alias -g '${1+"$@"}'='"$@"'
27446 setopt NO_GLOB_SUBST
27447 else
27448 case `(set -o) 2>/dev/null` in #(
27449 *posix*) :
27450 set -o posix ;; #(
27451 *) :
27452 ;;
27453 esac
27454 fi
27455
27456
27457 as_nl='
27458 '
27459 export as_nl
27460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27464 # Prefer a ksh shell builtin over an external printf program on Solaris,
27465 # but without wasting forks for bash or zsh.
27466 if test -z "$BASH_VERSION$ZSH_VERSION" \
27467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27468 as_echo='print -r --'
27469 as_echo_n='print -rn --'
27470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27471 as_echo='printf %s\n'
27472 as_echo_n='printf %s'
27473 else
27474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27476 as_echo_n='/usr/ucb/echo -n'
27477 else
27478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27479 as_echo_n_body='eval
27480 arg=$1;
27481 case $arg in #(
27482 *"$as_nl"*)
27483 expr "X$arg" : "X\\(.*\\)$as_nl";
27484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27485 esac;
27486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27487 '
27488 export as_echo_n_body
27489 as_echo_n='sh -c $as_echo_n_body as_echo'
27490 fi
27491 export as_echo_body
27492 as_echo='sh -c $as_echo_body as_echo'
27493 fi
27494
27495 # The user is always right.
27496 if test "${PATH_SEPARATOR+set}" != set; then
27497 PATH_SEPARATOR=:
27498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27500 PATH_SEPARATOR=';'
27501 }
27502 fi
27503
27504
27505 # IFS
27506 # We need space, tab and new line, in precisely that order. Quoting is
27507 # there to prevent editors from complaining about space-tab.
27508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27509 # splitting by setting IFS to empty value.)
27510 IFS=" "" $as_nl"
27511
27512 # Find who we are. Look in the path if we contain no directory separator.
27513 case $0 in #((
27514 *[\\/]* ) as_myself=$0 ;;
27515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27516 for as_dir in $PATH
27517 do
27518 IFS=$as_save_IFS
27519 test -z "$as_dir" && as_dir=.
27520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27521 done
27522 IFS=$as_save_IFS
27523
27524 ;;
27525 esac
27526 # We did not find ourselves, most probably we were run as `sh COMMAND'
27527 # in which case we are not to be found in the path.
27528 if test "x$as_myself" = x; then
27529 as_myself=$0
27530 fi
27531 if test ! -f "$as_myself"; then
27532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27533 exit 1
27534 fi
27535
27536 # Unset variables that we do not need and which cause bugs (e.g. in
27537 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27538 # suppresses any "Segmentation fault" message there. '((' could
27539 # trigger a bug in pdksh 5.2.14.
27540 for as_var in BASH_ENV ENV MAIL MAILPATH
27541 do eval test x\${$as_var+set} = xset \
27542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27543 done
27544 PS1='$ '
27545 PS2='> '
27546 PS4='+ '
27547
27548 # NLS nuisances.
27549 LC_ALL=C
27550 export LC_ALL
27551 LANGUAGE=C
27552 export LANGUAGE
27553
27554 # CDPATH.
27555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27556
27557
27558 # as_fn_error ERROR [LINENO LOG_FD]
27559 # ---------------------------------
27560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27562 # script with status $?, using 1 if that was 0.
27563 as_fn_error ()
27564 {
27565 as_status=$?; test $as_status -eq 0 && as_status=1
27566 if test "$3"; then
27567 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27569 fi
27570 $as_echo "$as_me: error: $1" >&2
27571 as_fn_exit $as_status
27572 } # as_fn_error
27573
27574
27575 # as_fn_set_status STATUS
27576 # -----------------------
27577 # Set $? to STATUS, without forking.
27578 as_fn_set_status ()
27579 {
27580 return $1
27581 } # as_fn_set_status
27582
27583 # as_fn_exit STATUS
27584 # -----------------
27585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27586 as_fn_exit ()
27587 {
27588 set +e
27589 as_fn_set_status $1
27590 exit $1
27591 } # as_fn_exit
27592
27593 # as_fn_unset VAR
27594 # ---------------
27595 # Portably unset VAR.
27596 as_fn_unset ()
27597 {
27598 { eval $1=; unset $1;}
27599 }
27600 as_unset=as_fn_unset
27601 # as_fn_append VAR VALUE
27602 # ----------------------
27603 # Append the text in VALUE to the end of the definition contained in VAR. Take
27604 # advantage of any shell optimizations that allow amortized linear growth over
27605 # repeated appends, instead of the typical quadratic growth present in naive
27606 # implementations.
27607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27608 eval 'as_fn_append ()
27609 {
27610 eval $1+=\$2
27611 }'
27612 else
27613 as_fn_append ()
27614 {
27615 eval $1=\$$1\$2
27616 }
27617 fi # as_fn_append
27618
27619 # as_fn_arith ARG...
27620 # ------------------
27621 # Perform arithmetic evaluation on the ARGs, and store the result in the
27622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27623 # must be portable across $(()) and expr.
27624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27625 eval 'as_fn_arith ()
27626 {
27627 as_val=$(( $* ))
27628 }'
27629 else
27630 as_fn_arith ()
27631 {
27632 as_val=`expr "$@" || test $? -eq 1`
27633 }
27634 fi # as_fn_arith
27635
27636
27637 if expr a : '\(a\)' >/dev/null 2>&1 &&
27638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27639 as_expr=expr
27640 else
27641 as_expr=false
27642 fi
27643
27644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27645 as_basename=basename
27646 else
27647 as_basename=false
27648 fi
27649
27650 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27651 as_dirname=dirname
27652 else
27653 as_dirname=false
27654 fi
27655
27656 as_me=`$as_basename -- "$0" ||
27657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27658 X"$0" : 'X\(//\)$' \| \
27659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27660 $as_echo X/"$0" |
27661 sed '/^.*\/\([^/][^/]*\)\/*$/{
27662 s//\1/
27663 q
27664 }
27665 /^X\/\(\/\/\)$/{
27666 s//\1/
27667 q
27668 }
27669 /^X\/\(\/\).*/{
27670 s//\1/
27671 q
27672 }
27673 s/.*/./; q'`
27674
27675 # Avoid depending upon Character Ranges.
27676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27679 as_cr_digits='0123456789'
27680 as_cr_alnum=$as_cr_Letters$as_cr_digits
27681
27682 ECHO_C= ECHO_N= ECHO_T=
27683 case `echo -n x` in #(((((
27684 -n*)
27685 case `echo 'xy\c'` in
27686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27687 xy) ECHO_C='\c';;
27688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27689 ECHO_T=' ';;
27690 esac;;
27691 *)
27692 ECHO_N='-n';;
27693 esac
27694
27695 rm -f conf$$ conf$$.exe conf$$.file
27696 if test -d conf$$.dir; then
27697 rm -f conf$$.dir/conf$$.file
27698 else
27699 rm -f conf$$.dir
27700 mkdir conf$$.dir 2>/dev/null
27701 fi
27702 if (echo >conf$$.file) 2>/dev/null; then
27703 if ln -s conf$$.file conf$$ 2>/dev/null; then
27704 as_ln_s='ln -s'
27705 # ... but there are two gotchas:
27706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27708 # In both cases, we have to default to `cp -p'.
27709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27710 as_ln_s='cp -p'
27711 elif ln conf$$.file conf$$ 2>/dev/null; then
27712 as_ln_s=ln
27713 else
27714 as_ln_s='cp -p'
27715 fi
27716 else
27717 as_ln_s='cp -p'
27718 fi
27719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27720 rmdir conf$$.dir 2>/dev/null
27721
27722
27723 # as_fn_mkdir_p
27724 # -------------
27725 # Create "$as_dir" as a directory, including parents if necessary.
27726 as_fn_mkdir_p ()
27727 {
27728
27729 case $as_dir in #(
27730 -*) as_dir=./$as_dir;;
27731 esac
27732 test -d "$as_dir" || eval $as_mkdir_p || {
27733 as_dirs=
27734 while :; do
27735 case $as_dir in #(
27736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27737 *) as_qdir=$as_dir;;
27738 esac
27739 as_dirs="'$as_qdir' $as_dirs"
27740 as_dir=`$as_dirname -- "$as_dir" ||
27741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27742 X"$as_dir" : 'X\(//\)[^/]' \| \
27743 X"$as_dir" : 'X\(//\)$' \| \
27744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27745 $as_echo X"$as_dir" |
27746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27747 s//\1/
27748 q
27749 }
27750 /^X\(\/\/\)[^/].*/{
27751 s//\1/
27752 q
27753 }
27754 /^X\(\/\/\)$/{
27755 s//\1/
27756 q
27757 }
27758 /^X\(\/\).*/{
27759 s//\1/
27760 q
27761 }
27762 s/.*/./; q'`
27763 test -d "$as_dir" && break
27764 done
27765 test -z "$as_dirs" || eval "mkdir $as_dirs"
27766 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27767
27768
27769 } # as_fn_mkdir_p
27770 if mkdir -p . 2>/dev/null; then
27771 as_mkdir_p='mkdir -p "$as_dir"'
27772 else
27773 test -d ./-p && rmdir ./-p
27774 as_mkdir_p=false
27775 fi
27776
27777 if test -x / >/dev/null 2>&1; then
27778 as_test_x='test -x'
27779 else
27780 if ls -dL / >/dev/null 2>&1; then
27781 as_ls_L_option=L
27782 else
27783 as_ls_L_option=
27784 fi
27785 as_test_x='
27786 eval sh -c '\''
27787 if test -d "$1"; then
27788 test -d "$1/.";
27789 else
27790 case $1 in #(
27791 -*)set "./$1";;
27792 esac;
27793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27794 ???[sx]*):;;*)false;;esac;fi
27795 '\'' sh
27796 '
27797 fi
27798 as_executable_p=$as_test_x
27799
27800 # Sed expression to map a string onto a valid CPP name.
27801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27802
27803 # Sed expression to map a string onto a valid variable name.
27804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27805
27806
27807 exec 6>&1
27808 ## ----------------------------------- ##
27809 ## Main body of $CONFIG_STATUS script. ##
27810 ## ----------------------------------- ##
27811 _ASEOF
27812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27813
27814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27815 # Save the log message, to keep $0 and so on meaningful, and to
27816 # report actual input values of CONFIG_FILES etc. instead of their
27817 # values after options handling.
27818 ac_log="
27819 This file was extended by $as_me, which was
27820 generated by GNU Autoconf 2.64. Invocation command line was
27821
27822 CONFIG_FILES = $CONFIG_FILES
27823 CONFIG_HEADERS = $CONFIG_HEADERS
27824 CONFIG_LINKS = $CONFIG_LINKS
27825 CONFIG_COMMANDS = $CONFIG_COMMANDS
27826 $ $0 $@
27827
27828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27829 "
27830
27831 _ACEOF
27832
27833 case $ac_config_files in *"
27834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27835 esac
27836
27837 case $ac_config_headers in *"
27838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27839 esac
27840
27841
27842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27843 # Files that config.status was made for.
27844 config_files="$ac_config_files"
27845 config_headers="$ac_config_headers"
27846 config_commands="$ac_config_commands"
27847
27848 _ACEOF
27849
27850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27851 ac_cs_usage="\
27852 \`$as_me' instantiates files and other configuration actions
27853 from templates according to the current configuration. Unless the files
27854 and actions are specified as TAGs, all are instantiated by default.
27855
27856 Usage: $0 [OPTION]... [TAG]...
27857
27858 -h, --help print this help, then exit
27859 -V, --version print version number and configuration settings, then exit
27860 -q, --quiet, --silent
27861 do not print progress messages
27862 -d, --debug don't remove temporary files
27863 --recheck update $as_me by reconfiguring in the same conditions
27864 --file=FILE[:TEMPLATE]
27865 instantiate the configuration file FILE
27866 --header=FILE[:TEMPLATE]
27867 instantiate the configuration header FILE
27868
27869 Configuration files:
27870 $config_files
27871
27872 Configuration headers:
27873 $config_headers
27874
27875 Configuration commands:
27876 $config_commands
27877
27878 Report bugs to the package provider."
27879
27880 _ACEOF
27881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27882 ac_cs_version="\\
27883 config.status
27884 configured by $0, generated by GNU Autoconf 2.64,
27885 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27886
27887 Copyright (C) 2009 Free Software Foundation, Inc.
27888 This config.status script is free software; the Free Software Foundation
27889 gives unlimited permission to copy, distribute and modify it."
27890
27891 ac_pwd='$ac_pwd'
27892 srcdir='$srcdir'
27893 AWK='$AWK'
27894 test -n "\$AWK" || AWK=awk
27895 _ACEOF
27896
27897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27898 # The default lists apply if the user does not specify any file.
27899 ac_need_defaults=:
27900 while test $# != 0
27901 do
27902 case $1 in
27903 --*=*)
27904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27906 ac_shift=:
27907 ;;
27908 *)
27909 ac_option=$1
27910 ac_optarg=$2
27911 ac_shift=shift
27912 ;;
27913 esac
27914
27915 case $ac_option in
27916 # Handling of the options.
27917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27918 ac_cs_recheck=: ;;
27919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27920 $as_echo "$ac_cs_version"; exit ;;
27921 --debug | --debu | --deb | --de | --d | -d )
27922 debug=: ;;
27923 --file | --fil | --fi | --f )
27924 $ac_shift
27925 case $ac_optarg in
27926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27927 esac
27928 as_fn_append CONFIG_FILES " '$ac_optarg'"
27929 ac_need_defaults=false;;
27930 --header | --heade | --head | --hea )
27931 $ac_shift
27932 case $ac_optarg in
27933 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27934 esac
27935 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27936 ac_need_defaults=false;;
27937 --he | --h)
27938 # Conflict between --help and --header
27939 as_fn_error "ambiguous option: \`$1'
27940 Try \`$0 --help' for more information.";;
27941 --help | --hel | -h )
27942 $as_echo "$ac_cs_usage"; exit ;;
27943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27945 ac_cs_silent=: ;;
27946
27947 # This is an error.
27948 -*) as_fn_error "unrecognized option: \`$1'
27949 Try \`$0 --help' for more information." ;;
27950
27951 *) as_fn_append ac_config_targets " $1"
27952 ac_need_defaults=false ;;
27953
27954 esac
27955 shift
27956 done
27957
27958 ac_configure_extra_args=
27959
27960 if $ac_cs_silent; then
27961 exec 6>/dev/null
27962 ac_configure_extra_args="$ac_configure_extra_args --silent"
27963 fi
27964
27965 _ACEOF
27966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27967 if \$ac_cs_recheck; then
27968 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27969 shift
27970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27971 CONFIG_SHELL='$SHELL'
27972 export CONFIG_SHELL
27973 exec "\$@"
27974 fi
27975
27976 _ACEOF
27977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27978 exec 5>>config.log
27979 {
27980 echo
27981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27982 ## Running $as_me. ##
27983 _ASBOX
27984 $as_echo "$ac_log"
27985 } >&5
27986
27987 _ACEOF
27988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27989 #
27990 # INIT-COMMANDS
27991 #
27992 subdirs='$subdirs'
27993
27994 _ACEOF
27995
27996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27997
27998 # Handling of arguments.
27999 for ac_config_target in $ac_config_targets
28000 do
28001 case $ac_config_target in
28002 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28003 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28004 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28005 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28006 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28007 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28008
28009 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28010 esac
28011 done
28012
28013
28014 # If the user did not use the arguments to specify the items to instantiate,
28015 # then the envvar interface is used. Set only those that are not.
28016 # We use the long form for the default assignment because of an extremely
28017 # bizarre bug on SunOS 4.1.3.
28018 if $ac_need_defaults; then
28019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28022 fi
28023
28024 # Have a temporary directory for convenience. Make it in the build tree
28025 # simply because there is no reason against having it here, and in addition,
28026 # creating and moving files from /tmp can sometimes cause problems.
28027 # Hook for its removal unless debugging.
28028 # Note that there is a small window in which the directory will not be cleaned:
28029 # after its creation but before its name has been assigned to `$tmp'.
28030 $debug ||
28031 {
28032 tmp=
28033 trap 'exit_status=$?
28034 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28035 ' 0
28036 trap 'as_fn_exit 1' 1 2 13 15
28037 }
28038 # Create a (secure) tmp directory for tmp files.
28039
28040 {
28041 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28042 test -n "$tmp" && test -d "$tmp"
28043 } ||
28044 {
28045 tmp=./conf$$-$RANDOM
28046 (umask 077 && mkdir "$tmp")
28047 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28048
28049 # Set up the scripts for CONFIG_FILES section.
28050 # No need to generate them if there are no CONFIG_FILES.
28051 # This happens for instance with `./config.status config.h'.
28052 if test -n "$CONFIG_FILES"; then
28053
28054 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28055 ac_cs_awk_getline=:
28056 ac_cs_awk_pipe_init=
28057 ac_cs_awk_read_file='
28058 while ((getline aline < (F[key])) > 0)
28059 print(aline)
28060 close(F[key])'
28061 ac_cs_awk_pipe_fini=
28062 else
28063 ac_cs_awk_getline=false
28064 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28065 ac_cs_awk_read_file='
28066 print "|#_!!_#|"
28067 print "cat " F[key] " &&"
28068 '$ac_cs_awk_pipe_init
28069 # The final `:' finishes the AND list.
28070 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28071 fi
28072 ac_cr=`echo X | tr X '\015'`
28073 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28074 # But we know of no other shell where ac_cr would be empty at this
28075 # point, so we can use a bashism as a fallback.
28076 if test "x$ac_cr" = x; then
28077 eval ac_cr=\$\'\\r\'
28078 fi
28079 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28081 ac_cs_awk_cr='\r'
28082 else
28083 ac_cs_awk_cr=$ac_cr
28084 fi
28085
28086 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28087 _ACEOF
28088
28089 # Create commands to substitute file output variables.
28090 {
28091 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28092 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28093 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28094 echo "_ACAWK" &&
28095 echo "_ACEOF"
28096 } >conf$$files.sh &&
28097 . ./conf$$files.sh ||
28098 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28099 rm -f conf$$files.sh
28100
28101 {
28102 echo "cat >conf$$subs.awk <<_ACEOF" &&
28103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28104 echo "_ACEOF"
28105 } >conf$$subs.sh ||
28106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28107 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28108 ac_delim='%!_!# '
28109 for ac_last_try in false false false false false :; do
28110 . ./conf$$subs.sh ||
28111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28112
28113 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28114 if test $ac_delim_n = $ac_delim_num; then
28115 break
28116 elif $ac_last_try; then
28117 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28118 else
28119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28120 fi
28121 done
28122 rm -f conf$$subs.sh
28123
28124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28125 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28126 _ACEOF
28127 sed -n '
28128 h
28129 s/^/S["/; s/!.*/"]=/
28130 p
28131 g
28132 s/^[^!]*!//
28133 :repl
28134 t repl
28135 s/'"$ac_delim"'$//
28136 t delim
28137 :nl
28138 h
28139 s/\(.\{148\}\).*/\1/
28140 t more1
28141 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28142 p
28143 n
28144 b repl
28145 :more1
28146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28147 p
28148 g
28149 s/.\{148\}//
28150 t nl
28151 :delim
28152 h
28153 s/\(.\{148\}\).*/\1/
28154 t more2
28155 s/["\\]/\\&/g; s/^/"/; s/$/"/
28156 p
28157 b
28158 :more2
28159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28160 p
28161 g
28162 s/.\{148\}//
28163 t delim
28164 ' <conf$$subs.awk | sed '
28165 /^[^""]/{
28166 N
28167 s/\n//
28168 }
28169 ' >>$CONFIG_STATUS || ac_write_fail=1
28170 rm -f conf$$subs.awk
28171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28172 _ACAWK
28173 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28174 for (key in S) S_is_set[key] = 1
28175 FS = "\a"
28176 \$ac_cs_awk_pipe_init
28177 }
28178 {
28179 line = $ 0
28180 nfields = split(line, field, "@")
28181 substed = 0
28182 len = length(field[1])
28183 for (i = 2; i < nfields; i++) {
28184 key = field[i]
28185 keylen = length(key)
28186 if (S_is_set[key]) {
28187 value = S[key]
28188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28189 len += length(value) + length(field[++i])
28190 substed = 1
28191 } else
28192 len += 1 + keylen
28193 }
28194 if (nfields == 3 && !substed) {
28195 key = field[2]
28196 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28197 \$ac_cs_awk_read_file
28198 next
28199 }
28200 }
28201 print line
28202 }
28203 \$ac_cs_awk_pipe_fini
28204 _ACAWK
28205 _ACEOF
28206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28209 else
28210 cat
28211 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28212 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28213 _ACEOF
28214
28215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28217 # trailing colons and then remove the whole line if VPATH becomes empty
28218 # (actually we leave an empty line to preserve line numbers).
28219 if test "x$srcdir" = x.; then
28220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28221 s/:*\$(srcdir):*/:/
28222 s/:*\${srcdir}:*/:/
28223 s/:*@srcdir@:*/:/
28224 s/^\([^=]*=[ ]*\):*/\1/
28225 s/:*$//
28226 s/^[^=]*=[ ]*$//
28227 }'
28228 fi
28229
28230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28231 fi # test -n "$CONFIG_FILES"
28232
28233 # Set up the scripts for CONFIG_HEADERS section.
28234 # No need to generate them if there are no CONFIG_HEADERS.
28235 # This happens for instance with `./config.status Makefile'.
28236 if test -n "$CONFIG_HEADERS"; then
28237 cat >"$tmp/defines.awk" <<\_ACAWK ||
28238 BEGIN {
28239 _ACEOF
28240
28241 # Transform confdefs.h into an awk script `defines.awk', embedded as
28242 # here-document in config.status, that substitutes the proper values into
28243 # config.h.in to produce config.h.
28244
28245 # Create a delimiter string that does not exist in confdefs.h, to ease
28246 # handling of long lines.
28247 ac_delim='%!_!# '
28248 for ac_last_try in false false :; do
28249 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28250 if test -z "$ac_t"; then
28251 break
28252 elif $ac_last_try; then
28253 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28254 else
28255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28256 fi
28257 done
28258
28259 # For the awk script, D is an array of macro values keyed by name,
28260 # likewise P contains macro parameters if any. Preserve backslash
28261 # newline sequences.
28262
28263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28264 sed -n '
28265 s/.\{148\}/&'"$ac_delim"'/g
28266 t rset
28267 :rset
28268 s/^[ ]*#[ ]*define[ ][ ]*/ /
28269 t def
28270 d
28271 :def
28272 s/\\$//
28273 t bsnl
28274 s/["\\]/\\&/g
28275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28276 D["\1"]=" \3"/p
28277 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28278 d
28279 :bsnl
28280 s/["\\]/\\&/g
28281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28282 D["\1"]=" \3\\\\\\n"\\/p
28283 t cont
28284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28285 t cont
28286 d
28287 :cont
28288 n
28289 s/.\{148\}/&'"$ac_delim"'/g
28290 t clear
28291 :clear
28292 s/\\$//
28293 t bsnlc
28294 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28295 d
28296 :bsnlc
28297 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28298 b cont
28299 ' <confdefs.h | sed '
28300 s/'"$ac_delim"'/"\\\
28301 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28302
28303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28304 for (key in D) D_is_set[key] = 1
28305 FS = "\a"
28306 }
28307 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28308 line = \$ 0
28309 split(line, arg, " ")
28310 if (arg[1] == "#") {
28311 defundef = arg[2]
28312 mac1 = arg[3]
28313 } else {
28314 defundef = substr(arg[1], 2)
28315 mac1 = arg[2]
28316 }
28317 split(mac1, mac2, "(") #)
28318 macro = mac2[1]
28319 prefix = substr(line, 1, index(line, defundef) - 1)
28320 if (D_is_set[macro]) {
28321 # Preserve the white space surrounding the "#".
28322 print prefix "define", macro P[macro] D[macro]
28323 next
28324 } else {
28325 # Replace #undef with comments. This is necessary, for example,
28326 # in the case of _POSIX_SOURCE, which is predefined and required
28327 # on some systems where configure will not decide to define it.
28328 if (defundef == "undef") {
28329 print "/*", prefix defundef, macro, "*/"
28330 next
28331 }
28332 }
28333 }
28334 { print }
28335 _ACAWK
28336 _ACEOF
28337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28338 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28339 fi # test -n "$CONFIG_HEADERS"
28340
28341
28342 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28343 shift
28344 for ac_tag
28345 do
28346 case $ac_tag in
28347 :[FHLC]) ac_mode=$ac_tag; continue;;
28348 esac
28349 case $ac_mode$ac_tag in
28350 :[FHL]*:*);;
28351 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28352 :[FH]-) ac_tag=-:-;;
28353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28354 esac
28355 ac_save_IFS=$IFS
28356 IFS=:
28357 set x $ac_tag
28358 IFS=$ac_save_IFS
28359 shift
28360 ac_file=$1
28361 shift
28362
28363 case $ac_mode in
28364 :L) ac_source=$1;;
28365 :[FH])
28366 ac_file_inputs=
28367 for ac_f
28368 do
28369 case $ac_f in
28370 -) ac_f="$tmp/stdin";;
28371 *) # Look for the file first in the build tree, then in the source tree
28372 # (if the path is not absolute). The absolute path cannot be DOS-style,
28373 # because $ac_f cannot contain `:'.
28374 test -f "$ac_f" ||
28375 case $ac_f in
28376 [\\/$]*) false;;
28377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28378 esac ||
28379 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28380 esac
28381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28382 as_fn_append ac_file_inputs " '$ac_f'"
28383 done
28384
28385 # Let's still pretend it is `configure' which instantiates (i.e., don't
28386 # use $as_me), people would be surprised to read:
28387 # /* config.h. Generated by config.status. */
28388 configure_input='Generated from '`
28389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28390 `' by configure.'
28391 if test x"$ac_file" != x-; then
28392 configure_input="$ac_file. $configure_input"
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28394 $as_echo "$as_me: creating $ac_file" >&6;}
28395 fi
28396 # Neutralize special characters interpreted by sed in replacement strings.
28397 case $configure_input in #(
28398 *\&* | *\|* | *\\* )
28399 ac_sed_conf_input=`$as_echo "$configure_input" |
28400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28401 *) ac_sed_conf_input=$configure_input;;
28402 esac
28403
28404 case $ac_tag in
28405 *:-:* | *:-) cat >"$tmp/stdin" \
28406 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28407 esac
28408 ;;
28409 esac
28410
28411 ac_dir=`$as_dirname -- "$ac_file" ||
28412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28413 X"$ac_file" : 'X\(//\)[^/]' \| \
28414 X"$ac_file" : 'X\(//\)$' \| \
28415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28416 $as_echo X"$ac_file" |
28417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28418 s//\1/
28419 q
28420 }
28421 /^X\(\/\/\)[^/].*/{
28422 s//\1/
28423 q
28424 }
28425 /^X\(\/\/\)$/{
28426 s//\1/
28427 q
28428 }
28429 /^X\(\/\).*/{
28430 s//\1/
28431 q
28432 }
28433 s/.*/./; q'`
28434 as_dir="$ac_dir"; as_fn_mkdir_p
28435 ac_builddir=.
28436
28437 case "$ac_dir" in
28438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28439 *)
28440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28441 # A ".." for each directory in $ac_dir_suffix.
28442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28443 case $ac_top_builddir_sub in
28444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28446 esac ;;
28447 esac
28448 ac_abs_top_builddir=$ac_pwd
28449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28450 # for backward compatibility:
28451 ac_top_builddir=$ac_top_build_prefix
28452
28453 case $srcdir in
28454 .) # We are building in place.
28455 ac_srcdir=.
28456 ac_top_srcdir=$ac_top_builddir_sub
28457 ac_abs_top_srcdir=$ac_pwd ;;
28458 [\\/]* | ?:[\\/]* ) # Absolute name.
28459 ac_srcdir=$srcdir$ac_dir_suffix;
28460 ac_top_srcdir=$srcdir
28461 ac_abs_top_srcdir=$srcdir ;;
28462 *) # Relative name.
28463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28464 ac_top_srcdir=$ac_top_build_prefix$srcdir
28465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28466 esac
28467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28468
28469
28470 case $ac_mode in
28471 :F)
28472 #
28473 # CONFIG_FILE
28474 #
28475
28476 _ACEOF
28477
28478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28479 # If the template does not know about datarootdir, expand it.
28480 # FIXME: This hack should be removed a few years after 2.60.
28481 ac_datarootdir_hack=; ac_datarootdir_seen=
28482 ac_sed_dataroot='
28483 /datarootdir/ {
28484 p
28485 q
28486 }
28487 /@datadir@/p
28488 /@docdir@/p
28489 /@infodir@/p
28490 /@localedir@/p
28491 /@mandir@/p'
28492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28493 *datarootdir*) ac_datarootdir_seen=yes;;
28494 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28497 _ACEOF
28498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28499 ac_datarootdir_hack='
28500 s&@datadir@&$datadir&g
28501 s&@docdir@&$docdir&g
28502 s&@infodir@&$infodir&g
28503 s&@localedir@&$localedir&g
28504 s&@mandir@&$mandir&g
28505 s&\\\${datarootdir}&$datarootdir&g' ;;
28506 esac
28507 _ACEOF
28508
28509 # Neutralize VPATH when `$srcdir' = `.'.
28510 # Shell code in configure.ac might set extrasub.
28511 # FIXME: do we really want to maintain this feature?
28512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28513 ac_sed_extra="$ac_vpsub
28514 $extrasub
28515 _ACEOF
28516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28517 :t
28518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28519 s|@configure_input@|$ac_sed_conf_input|;t t
28520 s&@top_builddir@&$ac_top_builddir_sub&;t t
28521 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28522 s&@srcdir@&$ac_srcdir&;t t
28523 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28524 s&@top_srcdir@&$ac_top_srcdir&;t t
28525 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28526 s&@builddir@&$ac_builddir&;t t
28527 s&@abs_builddir@&$ac_abs_builddir&;t t
28528 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28529 $ac_datarootdir_hack
28530 "
28531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28532 if $ac_cs_awk_getline; then
28533 $AWK -f "$tmp/subs.awk"
28534 else
28535 $AWK -f "$tmp/subs.awk" | $SHELL
28536 fi >$tmp/out \
28537 || as_fn_error "could not create $ac_file" "$LINENO" 5
28538
28539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28543 which seems to be undefined. Please make sure it is defined." >&5
28544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28545 which seems to be undefined. Please make sure it is defined." >&2;}
28546
28547 rm -f "$tmp/stdin"
28548 case $ac_file in
28549 -) cat "$tmp/out" && rm -f "$tmp/out";;
28550 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28551 esac \
28552 || as_fn_error "could not create $ac_file" "$LINENO" 5
28553 ;;
28554 :H)
28555 #
28556 # CONFIG_HEADER
28557 #
28558 if test x"$ac_file" != x-; then
28559 {
28560 $as_echo "/* $configure_input */" \
28561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28562 } >"$tmp/config.h" \
28563 || as_fn_error "could not create $ac_file" "$LINENO" 5
28564 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28567 else
28568 rm -f "$ac_file"
28569 mv "$tmp/config.h" "$ac_file" \
28570 || as_fn_error "could not create $ac_file" "$LINENO" 5
28571 fi
28572 else
28573 $as_echo "/* $configure_input */" \
28574 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28575 || as_fn_error "could not create -" "$LINENO" 5
28576 fi
28577 ;;
28578
28579 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28580 $as_echo "$as_me: executing $ac_file commands" >&6;}
28581 ;;
28582 esac
28583
28584
28585 case $ac_file$ac_mode in
28586 "as":F) chmod +x as ;;
28587 "collect-ld":F) chmod +x collect-ld ;;
28588 "nm":F) chmod +x nm ;;
28589 "default":C)
28590 case ${CONFIG_HEADERS} in
28591 *auto-host.h:config.in*)
28592 echo > cstamp-h ;;
28593 esac
28594 # Make sure all the subdirs exist.
28595 for d in $subdirs doc build common c-family
28596 do
28597 test -d $d || mkdir $d
28598 done
28599 ;;
28600
28601 esac
28602 done # for ac_tag
28603
28604
28605 as_fn_exit 0
28606 _ACEOF
28607 ac_clean_files=$ac_clean_files_save
28608
28609 test $ac_write_fail = 0 ||
28610 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28611
28612
28613 # configure is writing to config.log, and then calls config.status.
28614 # config.status does its own redirection, appending to config.log.
28615 # Unfortunately, on DOS this fails, as config.log is still kept open
28616 # by configure, so config.status won't be able to write to it; its
28617 # output is simply discarded. So we exec the FD to /dev/null,
28618 # effectively closing config.log, so it can be properly (re)opened and
28619 # appended to by config.status. When coming back to configure, we
28620 # need to make the FD available again.
28621 if test "$no_create" != yes; then
28622 ac_cs_success=:
28623 ac_config_status_args=
28624 test "$silent" = yes &&
28625 ac_config_status_args="$ac_config_status_args --quiet"
28626 exec 5>/dev/null
28627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28628 exec 5>>config.log
28629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28630 # would make configure fail if this is the last instruction.
28631 $ac_cs_success || as_fn_exit $?
28632 fi
28633 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28635 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28636 fi
28637
28638