configure.ac (gcc_cv_as_comdat_group_group): Default to no.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
712 ALL
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 noexception_flags
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
784 CPP
785 PICFLAG_FOR_TARGET
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_sjlj_exceptions
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_initfini_array
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 ISLLIBS
936 ISLINC
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-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid'
1580 or 'dpd' choses which decimal floating point format
1581 to use
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1584 package
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1599 x86
1600 --disable-win32-registry
1601 disable lookup of installation paths in the Registry
1602 on Windows hosts
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1606 of the registry key
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1614 glibc systems
1615 --enable-initfini-array use .init_array/.fini_array sections
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1631
1632 Optional Packages:
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1663 both]
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-plugin-ld=[ARG] specify the plugin linker
1666 --with-long-double-128 use 128-bit long double by default
1667 --with-gc={page,zone} choose the garbage collection mechanism to use with
1668 the compiler
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv,gnu,both}
1671 specify the linker hash style
1672
1673 Some influential environment variables:
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677 nonstandard directory <lib dir>
1678 LIBS libraries to pass to the linker, e.g. -l<library>
1679 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680 you have headers in a nonstandard directory <include dir>
1681 CXX C++ compiler command
1682 CXXFLAGS C++ compiler flags
1683 CPP C preprocessor
1684 CXXCPP C++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to find GMP include files
1687 ISLLIBS How to link ISL
1688 ISLINC How to find ISL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to find CLOOG include files
1691
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1694
1695 Report bugs to the package provider.
1696 _ACEOF
1697 ac_status=$?
1698 fi
1699
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 continue
1706 ac_builddir=.
1707
1708 case "$ac_dir" in
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *)
1711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1717 esac ;;
1718 esac
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1723
1724 case $srcdir in
1725 .) # We are building in place.
1726 ac_srcdir=.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1733 *) # Relative name.
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 esac
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1748 else
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 fi || ac_status=$?
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1752 done
1753 fi
1754
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1757 cat <<\_ACEOF
1758 configure
1759 generated by GNU Autoconf 2.64
1760
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1764 _ACEOF
1765 exit
1766 fi
1767
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1771
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.$ac_objext; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1807
1808 } # ac_fn_c_try_compile
1809
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext
1817 if { { ac_try="$ac_compile"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1845
1846 } # ac_fn_cxx_try_compile
1847
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_cpp ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev/null && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879 fi
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1882
1883 } # ac_fn_c_try_cpp
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913 else
1914 ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929 else
1930 ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970 } # ac_fn_c_check_header_mongrel
1971
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=$ac_status
2007 fi
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 return $ac_retval
2011
2012 } # ac_fn_c_try_run
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2049 # computed
2050 ac_fn_c_compute_int ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2062 test_array [0] = 0
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=0 ac_mid=0
2070 while :; do
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 test_array [0] = 0
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086 else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=-1 ac_mid=-1
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 test_array [0] = 0
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2128 else
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2131 ac_lo= ac_hi=
2132 break
2133 fi
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 else
2139 ac_lo= ac_hi=
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_hi=$ac_mid
2162 else
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 case $ac_lo in #((
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2169 '') ac_retval=1 ;;
2170 esac
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2177 #include <stdio.h>
2178 #include <stdlib.h>
2179 int
2180 main ()
2181 {
2182
2183 FILE *f = fopen ("conftest.val", "w");
2184 if (! f)
2185 return 1;
2186 if (($2) < 0)
2187 {
2188 long int i = longval ();
2189 if (i != ($2))
2190 return 1;
2191 fprintf (f, "%ld", i);
2192 }
2193 else
2194 {
2195 unsigned long int i = ulongval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%lu", i);
2199 }
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2210 else
2211 ac_retval=1
2212 fi
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 rm -f conftest.val
2216
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 return $ac_retval
2220
2221 } # ac_fn_c_compute_int
2222
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type ()
2228 {
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=no"
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 $4
2239 int
2240 main ()
2241 {
2242 if (sizeof ($2))
2243 return 0;
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $4
2252 int
2253 main ()
2254 {
2255 if (sizeof (($2)))
2256 return 0;
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262
2263 else
2264 eval "$3=yes"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_c_check_type
2276
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2280 # accordingly.
2281 ac_fn_c_find_intX_t ()
2282 {
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 eval "$3=no"
2290 for ac_type in int$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2299 test_array [0] = 0
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2314 test_array [0] = 0
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321
2322 else
2323 case $ac_type in #(
2324 int$2_t) :
2325 eval "$3=yes" ;; #(
2326 *) :
2327 eval "$3=\$ac_type" ;;
2328 esac
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval as_val=\$$3
2334 if test "x$as_val" = x""no; then :
2335
2336 else
2337 break
2338 fi
2339 done
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_find_intX_t
2347
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2351 ac_fn_c_try_link ()
2352 {
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 rm -f conftest.$ac_objext conftest$ac_exeext
2355 if { { ac_try="$ac_link"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2363 ac_status=$?
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2368 fi
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2376 }; then :
2377 ac_retval=0
2378 else
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 ac_retval=1
2383 fi
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 return $ac_retval
2391
2392 } # ac_fn_c_try_link
2393
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2397 # accordingly.
2398 ac_fn_c_find_uintX_t ()
2399 {
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 eval "$3=no"
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2412 int
2413 main ()
2414 {
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2416 test_array [0] = 0
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_compile "$LINENO"; then :
2423 case $ac_type in #(
2424 uint$2_t) :
2425 eval "$3=yes" ;; #(
2426 *) :
2427 eval "$3=\$ac_type" ;;
2428 esac
2429 fi
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 eval as_val=\$$3
2432 if test "x$as_val" = x""no; then :
2433
2434 else
2435 break
2436 fi
2437 done
2438 fi
2439 eval ac_res=\$$3
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443
2444 } # ac_fn_c_find_uintX_t
2445
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2450 {
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 #include <$2>
2460 _ACEOF
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2462 eval "$3=yes"
2463 else
2464 eval "$3=no"
2465 fi
2466 rm -f conftest.err conftest.$ac_ext
2467 fi
2468 eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2472
2473 } # ac_fn_c_check_header_preproc
2474
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2479 {
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489 ac_status=$?
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2494 fi
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev/null && {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 }; then :
2500 ac_retval=0
2501 else
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506 fi
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 return $ac_retval
2509
2510 } # ac_fn_cxx_try_cpp
2511
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc ()
2516 {
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_cxx_try_cpp "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_cxx_check_header_preproc
2540
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2557
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2562
2563 #ifdef __STDC__
2564 # include <limits.h>
2565 #else
2566 # include <assert.h>
2567 #endif
2568
2569 #undef $2
2570
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2574 #ifdef __cplusplus
2575 extern "C"
2576 #endif
2577 char $2 ();
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2582 choke me
2583 #endif
2584
2585 int
2586 main ()
2587 {
2588 return $2 ();
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_link "$LINENO"; then :
2594 eval "$3=yes"
2595 else
2596 eval "$3=no"
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2605
2606 } # ac_fn_c_check_func
2607
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link ()
2612 {
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 rm -f conftest.$ac_objext conftest$ac_exeext
2615 if { { ac_try="$ac_link"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2623 ac_status=$?
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2628 fi
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2636 }; then :
2637 ac_retval=0
2638 else
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_retval=1
2643 fi
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 return $ac_retval
2651
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2656
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2659
2660 $ $0 $@
2661
2662 _ACEOF
2663 exec 5>>config.log
2664 {
2665 cat <<_ASUNAME
2666 ## --------- ##
2667 ## Platform. ##
2668 ## --------- ##
2669
2670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2675
2676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2678
2679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2686
2687 _ASUNAME
2688
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2695 done
2696 IFS=$as_save_IFS
2697
2698 } >&5
2699
2700 cat >&5 <<_ACEOF
2701
2702
2703 ## ----------- ##
2704 ## Core tests. ##
2705 ## ----------- ##
2706
2707 _ACEOF
2708
2709
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2715 ac_configure_args=
2716 ac_configure_args0=
2717 ac_configure_args1=
2718 ac_must_keep_next=false
2719 for ac_pass in 1 2
2720 do
2721 for ac_arg
2722 do
2723 case $ac_arg in
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2727 continue ;;
2728 *\'*)
2729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2730 esac
2731 case $ac_pass in
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2733 2)
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2737 else
2738 case $ac_arg in
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2745 esac
2746 ;;
2747 -* ) ac_must_keep_next=true ;;
2748 esac
2749 fi
2750 as_fn_append ac_configure_args " '$ac_arg'"
2751 ;;
2752 esac
2753 done
2754 done
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2757
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2765 {
2766 echo
2767
2768 cat <<\_ASBOX
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2772 _ASBOX
2773 echo
2774 # The following way of writing the cache mishandles newlines in values,
2775 (
2776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777 eval ac_val=\$$ac_var
2778 case $ac_val in #(
2779 *${as_nl}*)
2780 case $ac_var in #(
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2783 esac
2784 case $ac_var in #(
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2788 esac ;;
2789 esac
2790 done
2791 (set) 2>&1 |
2792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2794 sed -n \
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2797 ;; #(
2798 *)
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2800 ;;
2801 esac |
2802 sort
2803 )
2804 echo
2805
2806 cat <<\_ASBOX
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2810 _ASBOX
2811 echo
2812 for ac_var in $ac_subst_vars
2813 do
2814 eval ac_val=\$$ac_var
2815 case $ac_val in
2816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817 esac
2818 $as_echo "$ac_var='\''$ac_val'\''"
2819 done | sort
2820 echo
2821
2822 if test -n "$ac_subst_files"; then
2823 cat <<\_ASBOX
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2827 _ASBOX
2828 echo
2829 for ac_var in $ac_subst_files
2830 do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2838 fi
2839
2840 if test -s confdefs.h; then
2841 cat <<\_ASBOX
2842 ## ----------- ##
2843 ## confdefs.h. ##
2844 ## ----------- ##
2845 _ASBOX
2846 echo
2847 cat confdefs.h
2848 echo
2849 fi
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2853 } >&5
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856 exit $exit_status
2857 ' 0
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2860 done
2861 ac_signal=0
2862
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2865
2866 $as_echo "/* confdefs.h */" > confdefs.h
2867
2868 # Predefined preprocessor variables.
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2872 _ACEOF
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2892 _ACEOF
2893
2894
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2897 ac_site_file1=NONE
2898 ac_site_file2=NONE
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2904 else
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2907 fi
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2909 do
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2915 . "$ac_site_file"
2916 fi
2917 done
2918
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2925 case $cache_file in
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2928 esac
2929 fi
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2933 >$cache_file
2934 fi
2935
2936 # Check that the precious variables saved in the cache have kept the same
2937 # value.
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2945 set,)
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2949 ,set)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,);;
2954 *)
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x $ac_old_val`
2958 ac_new_val_w=`echo x $ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2962 ac_cache_corrupted=:
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2972 fi;;
2973 esac
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2976 case $ac_new_val in
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2979 esac
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2983 esac
2984 fi
2985 done
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2992 fi
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2996
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002
3003
3004
3005
3006
3007
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3009
3010
3011 gcc_version=`cat $srcdir/BASE-VER`
3012
3013 # Determine the host, build, and target systems
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3020 break 2
3021 fi
3022 done
3023 done
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3026 fi
3027
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3035
3036
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3053
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3058 *-*-*) ;;
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3060 esac
3061 build=$ac_cv_build
3062 ac_save_IFS=$IFS; IFS='-'
3063 set x $ac_cv_build
3064 shift
3065 build_cpu=$1
3066 build_vendor=$2
3067 shift; shift
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3070 build_os=$*
3071 IFS=$ac_save_IFS
3072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3082 else
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3085 fi
3086
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3090 case $ac_cv_host in
3091 *-*-*) ;;
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3093 esac
3094 host=$ac_cv_host
3095 ac_save_IFS=$IFS; IFS='-'
3096 set x $ac_cv_host
3097 shift
3098 host_cpu=$1
3099 host_vendor=$2
3100 shift; shift
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3103 host_os=$*
3104 IFS=$ac_save_IFS
3105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3115 else
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3118 fi
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3126 esac
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_target
3130 shift
3131 target_cpu=$1
3132 target_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 target_os=$*
3137 IFS=$ac_save_IFS
3138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3145 NONENONEs,x,x, &&
3146 program_prefix=${target_alias}-
3147
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3152 esac
3153
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3157 esac
3158
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3162 esac
3163
3164
3165
3166
3167 # Determine the target- and build-specific subdirectories
3168
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3174 # finishes. So:
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3177
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3180
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3184 else
3185 build_libsubdir="$build_subdir"
3186 fi
3187
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3192 else
3193 host_subdir=.
3194 fi
3195 # No prefix.
3196 target_subdir=${target_noncanonical}
3197
3198
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s,x,x', remove it if useless.
3207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3209
3210
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3215 # is true:
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3224 ;;
3225 *)
3226 library_path_setting="ok"
3227 ;;
3228 esac
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3232 as_fn_error "
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again." "$LINENO" 5
3236 fi
3237
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3241 # is true:
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory"
3250 ;;
3251 *)
3252 gcc_exec_prefix_setting="ok"
3253 ;;
3254 esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok"; then
3258 as_fn_error "
3259 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3262 fi
3263
3264 # -----------
3265 # Directories
3266 # -----------
3267
3268 # Specify the local prefix
3269 local_prefix=
3270
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3275 no) ;;
3276 *) local_prefix=$with_local_prefix ;;
3277 esac
3278 fi
3279
3280
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3284 fi
3285
3286 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir=
3290 # Specify the g++ header file directory
3291
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3296 no) ;;
3297 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3298 esac
3299 fi
3300
3301
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x${gcc_gxx_include_dir} = x; then
3304 if test x${enable_version_specific_runtime_libs} = xyes; then
3305 gcc_gxx_include_dir='${libsubdir}/include/c++'
3306 else
3307 libstdcxx_incdir='include/c++/$(version)'
3308 if test x$host != x$target; then
3309 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3310 fi
3311 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3312 fi
3313 fi
3314
3315 gcc_gxx_include_dir_add_sysroot=0
3316 if test "${with_sysroot+set}" = set; then
3317 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3318 if test "${gcc_gxx_without_sysroot}"; then
3319 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3320 gcc_gxx_include_dir_add_sysroot=1
3321 fi
3322 fi
3323
3324
3325 # Check whether --with-cpp_install_dir was given.
3326 if test "${with_cpp_install_dir+set}" = set; then :
3327 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3328 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3329 elif test x$withval != xno; then
3330 cpp_install_dir=$withval
3331 fi
3332 fi
3333
3334
3335 # We would like to our source tree to be readonly. However when releases or
3336 # pre-releases are generated, the flex/bison generated files as well as the
3337 # various formats of manuals need to be included along with the rest of the
3338 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3339 # just that.
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3342 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3343 # Check whether --enable-generated-files-in-srcdir was given.
3344 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3345 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3346 else
3347 generated_files_in_srcdir=no
3348 fi
3349
3350
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3352 $as_echo "$generated_files_in_srcdir" >&6; }
3353
3354 if test "$generated_files_in_srcdir" = "yes"; then
3355 GENINSRC=''
3356 else
3357 GENINSRC='#'
3358 fi
3359
3360
3361 # -------------------
3362 # Find default linker
3363 # -------------------
3364
3365 # With GNU ld
3366
3367 # Check whether --with-gnu-ld was given.
3368 if test "${with_gnu_ld+set}" = set; then :
3369 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3370 else
3371 gnu_ld_flag=no
3372 fi
3373
3374
3375 # With pre-defined ld
3376
3377 # Check whether --with-ld was given.
3378 if test "${with_ld+set}" = set; then :
3379 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3380 fi
3381
3382 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3383 if test ! -x "$DEFAULT_LINKER"; then
3384 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3385 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3386 gnu_ld_flag=yes
3387 fi
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3391 _ACEOF
3392
3393 fi
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3445 fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3454 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test x"$gas_flag" = x"no"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3458 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3461 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3462 fi
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468 # ---------------
3469 # Find C compiler
3470 # ---------------
3471
3472 # If a non-executable a.out is present (e.g. created by GNU as above even if
3473 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3474 # file, even when creating an executable, so an execution test fails.
3475 # Remove possible default executable files to avoid this.
3476 #
3477 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3478 # Autoconf includes it.
3479 rm -f a.out a.exe b.out
3480
3481 # Find the native compiler
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$ac_cv_prog_CC"; then
3527 ac_ct_CC=$CC
3528 # Extract the first word of "gcc", so it can be a program name with args.
3529 set dummy gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_ac_ct_CC="gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 $as_echo "$ac_ct_CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564 if test "x$ac_ct_CC" = x; then
3565 CC=""
3566 else
3567 case $cross_compiling:$ac_tool_warned in
3568 yes:)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573 CC=$ac_ct_CC
3574 fi
3575 else
3576 CC="$ac_cv_prog_CC"
3577 fi
3578
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3582 set dummy ${ac_tool_prefix}cc; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC="${ac_tool_prefix}cc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 fi
3619 fi
3620 if test -z "$CC"; then
3621 # Extract the first word of "cc", so it can be a program name with args.
3622 set dummy cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631 ac_prog_rejected=no
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3640 ac_prog_rejected=yes
3641 continue
3642 fi
3643 ac_cv_prog_CC="cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 if test $ac_prog_rejected = yes; then
3652 # We found a bogon in the path, so make sure we never use it.
3653 set dummy $ac_cv_prog_CC
3654 shift
3655 if test $# != 0; then
3656 # We chose a different compiler from the bogus one.
3657 # However, it has the same basename, so the bogon will be chosen
3658 # first if we set CC to just the basename; use the full file name.
3659 shift
3660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661 fi
3662 fi
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 for ac_prog in cl.exe
3679 do
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3704
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717 test -n "$CC" && break
3718 done
3719 fi
3720 if test -z "$CC"; then
3721 ac_ct_CC=$CC
3722 for ac_prog in cl.exe
3723 do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761 test -n "$ac_ct_CC" && break
3762 done
3763
3764 if test "x$ac_ct_CC" = x; then
3765 CC=""
3766 else
3767 case $cross_compiling:$ac_tool_warned in
3768 yes:)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3771 ac_tool_warned=yes ;;
3772 esac
3773 CC=$ac_ct_CC
3774 fi
3775 fi
3776
3777 fi
3778
3779
3780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error "no acceptable C compiler found in \$PATH
3783 See \`config.log' for more details." "$LINENO" 5; }
3784
3785 # Provide some information about the compiler.
3786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3787 set X $ac_compile
3788 ac_compiler=$2
3789 for ac_option in --version -v -V -qversion; do
3790 { { ac_try="$ac_compiler $ac_option >&5"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3798 ac_status=$?
3799 if test -s conftest.err; then
3800 sed '10a\
3801 ... rest of stderr output deleted ...
3802 10q' conftest.err >conftest.er1
3803 cat conftest.er1 >&5
3804 rm -f conftest.er1 conftest.err
3805 fi
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }
3808 done
3809
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files_save=$ac_clean_files
3822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3823 # Try to create an executable without -o first, disregard a.out.
3824 # It will help us diagnose broken compilers, and finding out an intuition
3825 # of exeext.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3827 $as_echo_n "checking for C compiler default output file name... " >&6; }
3828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3829
3830 # The possible output files:
3831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3832
3833 ac_rmfiles=
3834 for ac_file in $ac_files
3835 do
3836 case $ac_file in
3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3839 esac
3840 done
3841 rm -f $ac_rmfiles
3842
3843 if { { ac_try="$ac_link_default"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link_default") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3857 # so that the user can short-circuit this test for compilers unknown to
3858 # Autoconf.
3859 for ac_file in $ac_files ''
3860 do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3864 ;;
3865 [ab].out )
3866 # We found the default executable, but exeext='' is most
3867 # certainly right.
3868 break;;
3869 *.* )
3870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3871 then :; else
3872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873 fi
3874 # We set ac_cv_exeext here because the later test for it is not
3875 # safe: cross compilers may not add the suffix if given an `-o'
3876 # argument, so we may need to know it at that point already.
3877 # Even if this section looks crufty: it has the advantage of
3878 # actually working.
3879 break;;
3880 * )
3881 break;;
3882 esac
3883 done
3884 test "$ac_cv_exeext" = no && ac_cv_exeext=
3885
3886 else
3887 ac_file=''
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 $as_echo "$ac_file" >&6; }
3891 if test -z "$ac_file"; then :
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { as_fn_set_status 77
3898 as_fn_error "C compiler cannot create executables
3899 See \`config.log' for more details." "$LINENO" 5; }; }
3900 fi
3901 ac_exeext=$ac_cv_exeext
3902
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 $as_echo_n "checking whether the C compiler works... " >&6; }
3907 # If not cross compiling, check that we can run a simple program.
3908 if test "$cross_compiling" != yes; then
3909 if { ac_try='./$ac_file'
3910 { { case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3920 cross_compiling=no
3921 else
3922 if test "$cross_compiling" = maybe; then
3923 cross_compiling=yes
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot run C compiled programs.
3928 If you meant to cross compile, use \`--host'.
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 fi
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3937 ac_clean_files=$ac_clean_files_save
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3943 $as_echo "$cross_compiling" >&6; }
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3946 $as_echo_n "checking for suffix of executables... " >&6; }
3947 if { { ac_try="$ac_link"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3959 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3960 # work properly (i.e., refer to `conftest.exe'), while it won't with
3961 # `rm'.
3962 for ac_file in conftest.exe conftest conftest.*; do
3963 test -f "$ac_file" || continue
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3967 break;;
3968 * ) break;;
3969 esac
3970 done
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot compute suffix of executables: cannot compile and link
3975 See \`config.log' for more details." "$LINENO" 5; }
3976 fi
3977 rm -f conftest$ac_cv_exeext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3979 $as_echo "$ac_cv_exeext" >&6; }
3980
3981 rm -f conftest.$ac_ext
3982 EXEEXT=$ac_cv_exeext
3983 ac_exeext=$EXEEXT
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if test "${ac_cv_objext+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main ()
3994 {
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try="$ac_compile"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4009 ac_status=$?
4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }; then :
4012 for ac_file in conftest.o conftest.obj conftest.*; do
4013 test -f "$ac_file" || continue;
4014 case $ac_file in
4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 break;;
4018 esac
4019 done
4020 else
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of object files: cannot compile
4027 See \`config.log' for more details." "$LINENO" 5; }
4028 fi
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4034 ac_objext=$OBJEXT
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046 #ifndef __GNUC__
4047 choke me
4048 #endif
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_compiler_gnu=yes
4056 else
4057 ac_compiler_gnu=no
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4066 GCC=yes
4067 else
4068 GCC=
4069 fi
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if test "${ac_cv_prog_cc_g+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4079 ac_cv_prog_cc_g=no
4080 CFLAGS="-g"
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main ()
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093 ac_cv_prog_cc_g=yes
4094 else
4095 CFLAGS=""
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108
4109 else
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4111 CFLAGS="-g"
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114
4115 int
4116 main ()
4117 {
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_cv_prog_cc_g=yes
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4139 CFLAGS="-g -O2"
4140 else
4141 CFLAGS="-g"
4142 fi
4143 else
4144 if test "$GCC" = yes; then
4145 CFLAGS="-O2"
4146 else
4147 CFLAGS=
4148 fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_cv_prog_cc_c89=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #include <stdarg.h>
4160 #include <stdio.h>
4161 #include <sys/types.h>
4162 #include <sys/stat.h>
4163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4164 struct buf { int x; };
4165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4166 static char *e (p, i)
4167 char **p;
4168 int i;
4169 {
4170 return p[i];
4171 }
4172 static char *f (char * (*g) (char **, int), char **p, ...)
4173 {
4174 char *s;
4175 va_list v;
4176 va_start (v,p);
4177 s = g (p, va_arg (v,int));
4178 va_end (v);
4179 return s;
4180 }
4181
4182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4183 function prototypes and stuff, but not '\xHH' hex character constants.
4184 These don't provoke an error unfortunately, instead are silently treated
4185 as 'x'. The following induces an error, until -std is added to get
4186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4187 array size at least. It's necessary to write '\x00'==0 to get something
4188 that's true only with -std. */
4189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4190
4191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4192 inside strings and character constants. */
4193 #define FOO(x) 'x'
4194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4195
4196 int test (int i, double x);
4197 struct s1 {int (*f) (int a);};
4198 struct s2 {int (*f) (double a);};
4199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 int argc;
4201 char **argv;
4202 int
4203 main ()
4204 {
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 do
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_c89=$ac_arg
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext
4218 test "x$ac_cv_prog_cc_c89" != "xno" && break
4219 done
4220 rm -f conftest.$ac_ext
4221 CC=$ac_save_CC
4222
4223 fi
4224 # AC_CACHE_VAL
4225 case "x$ac_cv_prog_cc_c89" in
4226 x)
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228 $as_echo "none needed" >&6; } ;;
4229 xno)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;;
4232 *)
4233 CC="$CC $ac_cv_prog_cc_c89"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4236 esac
4237 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238
4239 fi
4240
4241 ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247 if test "x$CC" != xcc; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4249 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4252 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4253 fi
4254 set dummy $CC; ac_cc=`$as_echo "$2" |
4255 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4256 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main ()
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 # Make sure it works both with $CC and with simple cc.
4271 # We do the test twice because some compilers refuse to overwrite an
4272 # existing .o file with -o, though they will create one.
4273 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4274 rm -f conftest2.*
4275 if { { case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; } &&
4285 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; };
4295 then
4296 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4297 if test "x$CC" != xcc; then
4298 # Test first that cc exists at all.
4299 if { ac_try='cc -c conftest.$ac_ext >&5'
4300 { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; }; then
4310 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4311 rm -f conftest2.*
4312 if { { case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_try") 2>&5
4319 ac_status=$?
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; } &&
4322 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; };
4332 then
4333 # cc works too.
4334 :
4335 else
4336 # cc exists but doesn't like -o.
4337 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4338 fi
4339 fi
4340 fi
4341 else
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343 fi
4344 rm -f core conftest*
4345
4346 fi
4347 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353
4354 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4355
4356 fi
4357
4358 # expand $ac_aux_dir to an absolute path
4359 am_aux_dir=`cd $ac_aux_dir && pwd`
4360
4361 # FIXME: we rely on the cache variable name because
4362 # there is no other way.
4363 set dummy $CC
4364 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4365 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4366 if test "$am_t" != yes; then
4367 # Losing compiler, so override with the script.
4368 # FIXME: It is wrong to rewrite CC.
4369 # But if we don't then we get into trouble of one sort or another.
4370 # A longer-term fix would be to have automake use am__CC in this case,
4371 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372 CC="$am_aux_dir/compile $CC"
4373 fi
4374
4375
4376 ac_ext=cpp
4377 ac_cpp='$CXXCPP $CPPFLAGS'
4378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4381 if test -z "$CXX"; then
4382 if test -n "$CCC"; then
4383 CXX=$CCC
4384 else
4385 if test -n "$ac_tool_prefix"; then
4386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4387 do
4388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CXX+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$CXX"; then
4396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 CXX=$ac_cv_prog_CXX
4416 if test -n "$CXX"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4418 $as_echo "$CXX" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425 test -n "$CXX" && break
4426 done
4427 fi
4428 if test -z "$CXX"; then
4429 ac_ct_CXX=$CXX
4430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4431 do
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$ac_ct_CXX"; then
4440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_ac_ct_CXX="$ac_prog"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4460 if test -n "$ac_ct_CXX"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4462 $as_echo "$ac_ct_CXX" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467
4468
4469 test -n "$ac_ct_CXX" && break
4470 done
4471
4472 if test "x$ac_ct_CXX" = x; then
4473 CXX="g++"
4474 else
4475 case $cross_compiling:$ac_tool_warned in
4476 yes:)
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 CXX=$ac_ct_CXX
4482 fi
4483 fi
4484
4485 fi
4486 fi
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4489 set X $ac_compile
4490 ac_compiler=$2
4491 for ac_option in --version -v -V -qversion; do
4492 { { ac_try="$ac_compiler $ac_option >&5"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4500 ac_status=$?
4501 if test -s conftest.err; then
4502 sed '10a\
4503 ... rest of stderr output deleted ...
4504 10q' conftest.err >conftest.er1
4505 cat conftest.er1 >&5
4506 rm -f conftest.er1 conftest.err
4507 fi
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 done
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4514 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main ()
4522 {
4523 #ifndef __GNUC__
4524 choke me
4525 #endif
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_compiler_gnu=yes
4533 else
4534 ac_compiler_gnu=no
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4538
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4543 GXX=yes
4544 else
4545 GXX=
4546 fi
4547 ac_test_CXXFLAGS=${CXXFLAGS+set}
4548 ac_save_CXXFLAGS=$CXXFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4555 ac_cxx_werror_flag=yes
4556 ac_cv_prog_cxx_g=no
4557 CXXFLAGS="-g"
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570 ac_cv_prog_cxx_g=yes
4571 else
4572 CXXFLAGS=""
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585
4586 else
4587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4588 CXXFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 ac_cv_prog_cxx_g=yes
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4612 if test "$ac_test_CXXFLAGS" = set; then
4613 CXXFLAGS=$ac_save_CXXFLAGS
4614 elif test $ac_cv_prog_cxx_g = yes; then
4615 if test "$GXX" = yes; then
4616 CXXFLAGS="-g -O2"
4617 else
4618 CXXFLAGS="-g"
4619 fi
4620 else
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-O2"
4623 else
4624 CXXFLAGS=
4625 fi
4626 fi
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633
4634
4635
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$GNATBIND"; then
4645 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 GNATBIND=$ac_cv_prog_GNATBIND
4665 if test -n "$GNATBIND"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4667 $as_echo "$GNATBIND" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674 fi
4675 if test -z "$ac_cv_prog_GNATBIND"; then
4676 ac_ct_GNATBIND=$GNATBIND
4677 # Extract the first word of "gnatbind", so it can be a program name with args.
4678 set dummy gnatbind; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$ac_ct_GNATBIND"; then
4685 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4705 if test -n "$ac_ct_GNATBIND"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4707 $as_echo "$ac_ct_GNATBIND" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713 if test "x$ac_ct_GNATBIND" = x; then
4714 GNATBIND="no"
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722 GNATBIND=$ac_ct_GNATBIND
4723 fi
4724 else
4725 GNATBIND="$ac_cv_prog_GNATBIND"
4726 fi
4727
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$GNATMAKE"; then
4737 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 GNATMAKE=$ac_cv_prog_GNATMAKE
4757 if test -n "$GNATMAKE"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4759 $as_echo "$GNATMAKE" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765
4766 fi
4767 if test -z "$ac_cv_prog_GNATMAKE"; then
4768 ac_ct_GNATMAKE=$GNATMAKE
4769 # Extract the first word of "gnatmake", so it can be a program name with args.
4770 set dummy gnatmake; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$ac_ct_GNATMAKE"; then
4777 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4797 if test -n "$ac_ct_GNATMAKE"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4799 $as_echo "$ac_ct_GNATMAKE" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805 if test "x$ac_ct_GNATMAKE" = x; then
4806 GNATMAKE="no"
4807 else
4808 case $cross_compiling:$ac_tool_warned in
4809 yes:)
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 GNATMAKE=$ac_ct_GNATMAKE
4815 fi
4816 else
4817 GNATMAKE="$ac_cv_prog_GNATMAKE"
4818 fi
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4821 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4822 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 cat >conftest.adb <<EOF
4826 procedure conftest is begin null; end conftest;
4827 EOF
4828 acx_cv_cc_gcc_supports_ada=no
4829 # There is a bug in old released versions of GCC which causes the
4830 # driver to exit successfully when the appropriate language module
4831 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4832 # Therefore we must check for the error message as well as an
4833 # unsuccessful exit.
4834 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4835 # given a .adb file, but produce no object file. So we must check
4836 # if an object file was really produced to guard against this.
4837 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4838 if test x"$errors" = x && test -f conftest.$ac_objext; then
4839 acx_cv_cc_gcc_supports_ada=yes
4840 fi
4841 rm -f conftest.*
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4844 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4845
4846 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4847 have_gnat=yes
4848 else
4849 have_gnat=no
4850 fi
4851
4852
4853 # autoconf is lame and doesn't give us any substitution variable for this.
4854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4855 NO_MINUS_C_MINUS_O=yes
4856 else
4857 OUTPUT_OPTION='-o $@'
4858 fi
4859
4860
4861
4862 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4863 # optimizations to be activated explicitly by the toplevel.
4864 case "$CC" in
4865 */prev-gcc/xgcc*) ;;
4866 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4867 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4868 esac
4869
4870
4871
4872 # Determine PICFLAG for target gnatlib.
4873
4874
4875
4876
4877 case "${target}" in
4878 # PIC is the default on some targets or must not be used.
4879 *-*-darwin*)
4880 # PIC is the default on this platform
4881 # Common symbols not allowed in MH_DYLIB files
4882 PICFLAG_FOR_TARGET=-fno-common
4883 ;;
4884 alpha*-dec-osf5*)
4885 # PIC is the default.
4886 ;;
4887 hppa*64*-*-hpux*)
4888 # PIC is the default for 64-bit PA HP-UX.
4889 ;;
4890 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4891 ;;
4892 i[34567]86-*-interix[3-9]*)
4893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4894 # Instead, we relocate shared libraries at runtime.
4895 ;;
4896 i[34567]86-*-nto-qnx*)
4897 # QNX uses GNU C++, but need to define -shared option too, otherwise
4898 # it will coredump.
4899 PICFLAG_FOR_TARGET='-fPIC -shared'
4900 ;;
4901 i[34567]86-pc-msdosdjgpp*)
4902 # DJGPP does not support shared libraries at all.
4903 ;;
4904 ia64*-*-hpux*)
4905 # On IA64 HP-UX, PIC is the default but the pic flag
4906 # sets the default TLS model and affects inlining.
4907 PICFLAG_FOR_TARGET=-fPIC
4908 ;;
4909 mips-sgi-irix6*)
4910 # PIC is the default.
4911 ;;
4912 rs6000-ibm-aix* | powerpc-ibm-aix*)
4913 # All AIX code is PIC.
4914 ;;
4915
4916 # Some targets support both -fPIC and -fpic, but prefer the latter.
4917 # FIXME: Why?
4918 i[34567]86-*-* | x86_64-*-*)
4919 PICFLAG_FOR_TARGET=-fpic
4920 ;;
4921 m68k-*-*)
4922 PICFLAG_FOR_TARGET=-fpic
4923 ;;
4924 # FIXME: Override -fPIC default in libgcc only?
4925 sh-*-linux* | sh[2346lbe]*-*-linux*)
4926 PICFLAG_FOR_TARGET=-fpic
4927 ;;
4928 # FIXME: Simplify to sh*-*-netbsd*?
4929 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4930 sh64-*-netbsd* | sh64l*-*-netbsd*)
4931 PICFLAG_FOR_TARGET=-fpic
4932 ;;
4933 # Default to -fPIC unless specified otherwise.
4934 *)
4935 PICFLAG_FOR_TARGET=-fPIC
4936 ;;
4937 esac
4938
4939 # If the user explicitly uses -fpic/-fPIC, keep that.
4940 case "${CFLAGS_FOR_TARGET}" in
4941 *-fpic*)
4942 PICFLAG_FOR_TARGET=-fpic
4943 ;;
4944 *-fPIC*)
4945 PICFLAG_FOR_TARGET=-fPIC
4946 ;;
4947 esac
4948
4949
4950
4951 # -------------------------
4952 # Check C compiler features
4953 # -------------------------
4954
4955
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4963 # On Suns, sometimes $CPP names a directory.
4964 if test -n "$CPP" && test -d "$CPP"; then
4965 CPP=
4966 fi
4967 if test -z "$CPP"; then
4968 if test "${ac_cv_prog_CPP+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 # Double quotes because CPP needs to be expanded
4972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4973 do
4974 ac_preproc_ok=false
4975 for ac_c_preproc_warn_flag in '' yes
4976 do
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #ifdef __STDC__
4986 # include <limits.h>
4987 #else
4988 # include <assert.h>
4989 #endif
4990 Syntax error
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993
4994 else
4995 # Broken: fails on valid input.
4996 continue
4997 fi
4998 rm -f conftest.err conftest.$ac_ext
4999
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ac_nonexistent.h>
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014 rm -f conftest.err conftest.$ac_ext
5015
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5020 break
5021 fi
5022
5023 done
5024 ac_cv_prog_CPP=$CPP
5025
5026 fi
5027 CPP=$ac_cv_prog_CPP
5028 else
5029 ac_cv_prog_CPP=$CPP
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5032 $as_echo "$CPP" >&6; }
5033 ac_preproc_ok=false
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049 Syntax error
5050 _ACEOF
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5052
5053 else
5054 # Broken: fails on valid input.
5055 continue
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include <ac_nonexistent.h>
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: success on invalid input.
5067 continue
5068 else
5069 # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then :
5079
5080 else
5081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5083 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." "$LINENO" 5; }
5085 fi
5086
5087 ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -z "$GREP"; then
5100 ac_path_GREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in grep ggrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112 # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'GREP' >> "conftest.nl"
5125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_GREP="$ac_path_GREP"
5131 ac_path_GREP_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_GREP_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_GREP"; then
5145 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_GREP=$GREP
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154 GREP="$ac_cv_path_GREP"
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5163 then ac_cv_path_EGREP="$GREP -E"
5164 else
5165 if test -z "$EGREP"; then
5166 ac_path_EGREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_prog in egrep; do
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5176 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178 # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5180 *GNU*)
5181 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 *)
5183 ac_count=0
5184 $as_echo_n 0123456789 >"conftest.in"
5185 while :
5186 do
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'EGREP' >> "conftest.nl"
5191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_EGREP="$ac_path_EGREP"
5197 ac_path_EGREP_max=$ac_count
5198 fi
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5201 done
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 esac
5204
5205 $ac_path_EGREP_found && break 3
5206 done
5207 done
5208 done
5209 IFS=$as_save_IFS
5210 if test -z "$ac_cv_path_EGREP"; then
5211 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212 fi
5213 else
5214 ac_cv_path_EGREP=$EGREP
5215 fi
5216
5217 fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5220 $as_echo "$ac_cv_path_EGREP" >&6; }
5221 EGREP="$ac_cv_path_EGREP"
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5225 $as_echo_n "checking for ANSI C header files... " >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <stdlib.h>
5232 #include <stdarg.h>
5233 #include <string.h>
5234 #include <float.h>
5235
5236 int
5237 main ()
5238 {
5239
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 ac_cv_header_stdc=yes
5246 else
5247 ac_cv_header_stdc=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250
5251 if test $ac_cv_header_stdc = yes; then
5252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <string.h>
5256
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then :
5260
5261 else
5262 ac_cv_header_stdc=no
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <stdlib.h>
5273
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev/null 2>&1; then :
5277
5278 else
5279 ac_cv_header_stdc=no
5280 fi
5281 rm -f conftest*
5282
5283 fi
5284
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then :
5288 :
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <ctype.h>
5293 #include <stdlib.h>
5294 #if ((' ' & 0x0FF) == 0x020)
5295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5297 #else
5298 # define ISLOWER(c) \
5299 (('a' <= (c) && (c) <= 'i') \
5300 || ('j' <= (c) && (c) <= 'r') \
5301 || ('s' <= (c) && (c) <= 'z'))
5302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5303 #endif
5304
5305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5306 int
5307 main ()
5308 {
5309 int i;
5310 for (i = 0; i < 256; i++)
5311 if (XOR (islower (i), ISLOWER (i))
5312 || toupper (i) != TOUPPER (i))
5313 return 2;
5314 return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_run "$LINENO"; then :
5318
5319 else
5320 ac_cv_header_stdc=no
5321 fi
5322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5323 conftest.$ac_objext conftest.beam conftest.$ac_ext
5324 fi
5325
5326 fi
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5329 $as_echo "$ac_cv_header_stdc" >&6; }
5330 if test $ac_cv_header_stdc = yes; then
5331
5332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5333
5334 fi
5335
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338 inttypes.h stdint.h unistd.h
5339 do :
5340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5342 "
5343 eval as_val=\$$as_ac_Header
5344 if test "x$as_val" = x""yes; then :
5345 cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353
5354
5355 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5357 MINIX=yes
5358 else
5359 MINIX=
5360 fi
5361
5362
5363 if test "$MINIX" = yes; then
5364
5365 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5366
5367
5368 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5369
5370
5371 $as_echo "#define _MINIX 1" >>confdefs.h
5372
5373 fi
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383
5384 # define __EXTENSIONS__ 1
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 ac_cv_safe_to_define___extensions__=yes
5396 else
5397 ac_cv_safe_to_define___extensions__=no
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5403 test $ac_cv_safe_to_define___extensions__ = yes &&
5404 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5405
5406 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5407
5408 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5409
5410 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5411
5412 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5413
5414
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5422 # On Suns, sometimes $CPP names a directory.
5423 if test -n "$CPP" && test -d "$CPP"; then
5424 CPP=
5425 fi
5426 if test -z "$CPP"; then
5427 if test "${ac_cv_prog_CPP+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 # Double quotes because CPP needs to be expanded
5431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5432 do
5433 ac_preproc_ok=false
5434 for ac_c_preproc_warn_flag in '' yes
5435 do
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449 Syntax error
5450 _ACEOF
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5452
5453 else
5454 # Broken: fails on valid input.
5455 continue
5456 fi
5457 rm -f conftest.err conftest.$ac_ext
5458
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466 # Broken: success on invalid input.
5467 continue
5468 else
5469 # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5472 fi
5473 rm -f conftest.err conftest.$ac_ext
5474
5475 done
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then :
5479 break
5480 fi
5481
5482 done
5483 ac_cv_prog_CPP=$CPP
5484
5485 fi
5486 CPP=$ac_cv_prog_CPP
5487 else
5488 ac_cv_prog_CPP=$CPP
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5491 $as_echo "$CPP" >&6; }
5492 ac_preproc_ok=false
5493 for ac_c_preproc_warn_flag in '' yes
5494 do
5495 # Use a header file that comes with gcc, so configuring glibc
5496 # with a fresh cross-compiler works.
5497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498 # <limits.h> exists even on freestanding compilers.
5499 # On the NeXT, cc -E runs the code through the compiler's parser,
5500 # not just through cpp. "Syntax error" is here to catch this case.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508 Syntax error
5509 _ACEOF
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5511
5512 else
5513 # Broken: fails on valid input.
5514 continue
5515 fi
5516 rm -f conftest.err conftest.$ac_ext
5517
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <ac_nonexistent.h>
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525 # Broken: success on invalid input.
5526 continue
5527 else
5528 # Passes both tests.
5529 ac_preproc_ok=:
5530 break
5531 fi
5532 rm -f conftest.err conftest.$ac_ext
5533
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then :
5538
5539 else
5540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5543 See \`config.log' for more details." "$LINENO" 5; }
5544 fi
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5553 $as_echo_n "checking for inline... " >&6; }
5554 if test "${ac_cv_c_inline+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 ac_cv_c_inline=no
5558 for ac_kw in inline __inline__ __inline; do
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #ifndef __cplusplus
5562 typedef int foo_t;
5563 static $ac_kw foo_t static_foo () {return 0; }
5564 $ac_kw foo_t foo () {return 0; }
5565 #endif
5566
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_c_inline=$ac_kw
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 test "$ac_cv_c_inline" != no && break
5573 done
5574
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5577 $as_echo "$ac_cv_c_inline" >&6; }
5578
5579 case $ac_cv_c_inline in
5580 inline | yes) ;;
5581 *)
5582 case $ac_cv_c_inline in
5583 no) ac_val=;;
5584 *) ac_val=$ac_cv_c_inline;;
5585 esac
5586 cat >>confdefs.h <<_ACEOF
5587 #ifndef __cplusplus
5588 #define inline $ac_val
5589 #endif
5590 _ACEOF
5591 ;;
5592 esac
5593
5594
5595 # Check whether --enable-largefile was given.
5596 if test "${enable_largefile+set}" = set; then :
5597 enableval=$enable_largefile;
5598 fi
5599
5600 if test "$enable_largefile" != no; then
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5604 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 ac_cv_sys_largefile_CC=no
5608 if test "$GCC" != yes; then
5609 ac_save_CC=$CC
5610 while :; do
5611 # IRIX 6.2 and later do not support large files by default,
5612 # so use the C compiler's -n32 option if that helps.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5623 ? 1 : -1];
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 break
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext
5636 CC="$CC -n32"
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 ac_cv_sys_largefile_CC=' -n32'; break
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext
5641 break
5642 done
5643 CC=$ac_save_CC
5644 rm -f conftest.$ac_ext
5645 fi
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5649 if test "$ac_cv_sys_largefile_CC" != no; then
5650 CC=$CC$ac_cv_sys_largefile_CC
5651 fi
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 while :; do
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5669 ? 1 : -1];
5670 int
5671 main ()
5672 {
5673
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_cv_sys_file_offset_bits=no; break
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5693 ? 1 : -1];
5694 int
5695 main ()
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_cv_sys_file_offset_bits=64; break
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 ac_cv_sys_file_offset_bits=unknown
5707 break
5708 done
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5713 no | unknown) ;;
5714 *)
5715 cat >>confdefs.h <<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5717 _ACEOF
5718 ;;
5719 esac
5720 rm -rf conftest*
5721 if test $ac_cv_sys_file_offset_bits = unknown; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 while :; do
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5738 ? 1 : -1];
5739 int
5740 main ()
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748 ac_cv_sys_large_files=no; break
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755 /* Check that off_t can represent 2**63 - 1 correctly.
5756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757 since some C++ compilers masquerading as C compilers
5758 incorrectly reject 9223372036854775807. */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761 && LARGE_OFF_T % 2147483647 == 1)
5762 ? 1 : -1];
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 ac_cv_sys_large_files=1; break
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 ac_cv_sys_large_files=unknown
5776 break
5777 done
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5780 $as_echo "$ac_cv_sys_large_files" >&6; }
5781 case $ac_cv_sys_large_files in #(
5782 no | unknown) ;;
5783 *)
5784 cat >>confdefs.h <<_ACEOF
5785 #define _LARGE_FILES $ac_cv_sys_large_files
5786 _ACEOF
5787 ;;
5788 esac
5789 rm -rf conftest*
5790 fi
5791 fi
5792
5793
5794 # sizeof(char) is 1 by definition.
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5800 $as_echo_n "checking size of void *... " >&6; }
5801 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5805
5806 else
5807 if test "$ac_cv_type_void_p" = yes; then
5808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status 77
5811 as_fn_error "cannot compute sizeof (void *)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5813 else
5814 ac_cv_sizeof_void_p=0
5815 fi
5816 fi
5817
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5820 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5821
5822
5823
5824 cat >>confdefs.h <<_ACEOF
5825 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5826 _ACEOF
5827
5828
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5834 $as_echo_n "checking size of short... " >&6; }
5835 if test "${ac_cv_sizeof_short+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5839
5840 else
5841 if test "$ac_cv_type_short" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (short)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847 else
5848 ac_cv_sizeof_short=0
5849 fi
5850 fi
5851
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5854 $as_echo "$ac_cv_sizeof_short" >&6; }
5855
5856
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_SHORT $ac_cv_sizeof_short
5860 _ACEOF
5861
5862
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5868 $as_echo_n "checking size of int... " >&6; }
5869 if test "${ac_cv_sizeof_int+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5873
5874 else
5875 if test "$ac_cv_type_int" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status 77
5879 as_fn_error "cannot compute sizeof (int)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5881 else
5882 ac_cv_sizeof_int=0
5883 fi
5884 fi
5885
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5888 $as_echo "$ac_cv_sizeof_int" >&6; }
5889
5890
5891
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF_INT $ac_cv_sizeof_int
5894 _ACEOF
5895
5896
5897 # The cast to long int works around a bug in the HP C Compiler
5898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5900 # This bug is HP SR number 8606223364.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5902 $as_echo_n "checking size of long... " >&6; }
5903 if test "${ac_cv_sizeof_long+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5907
5908 else
5909 if test "$ac_cv_type_long" = yes; then
5910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5912 { as_fn_set_status 77
5913 as_fn_error "cannot compute sizeof (long)
5914 See \`config.log' for more details." "$LINENO" 5; }; }
5915 else
5916 ac_cv_sizeof_long=0
5917 fi
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5922 $as_echo "$ac_cv_sizeof_long" >&6; }
5923
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define SIZEOF_LONG $ac_cv_sizeof_long
5928 _ACEOF
5929
5930
5931 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5932 if test "x$ac_cv_type_long_long" = x""yes; then :
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define HAVE_LONG_LONG 1
5936 _ACEOF
5937
5938 # The cast to long int works around a bug in the HP C Compiler
5939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5941 # This bug is HP SR number 8606223364.
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5943 $as_echo_n "checking size of long long... " >&6; }
5944 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5948
5949 else
5950 if test "$ac_cv_type_long_long" = yes; then
5951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5953 { as_fn_set_status 77
5954 as_fn_error "cannot compute sizeof (long long)
5955 See \`config.log' for more details." "$LINENO" 5; }; }
5956 else
5957 ac_cv_sizeof_long_long=0
5958 fi
5959 fi
5960
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5963 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5964
5965
5966
5967 cat >>confdefs.h <<_ACEOF
5968 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5969 _ACEOF
5970
5971
5972 fi
5973
5974 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5975 if test "x$ac_cv_type___int64" = x""yes; then :
5976
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE___INT64 1
5979 _ACEOF
5980
5981 # The cast to long int works around a bug in the HP C Compiler
5982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5984 # This bug is HP SR number 8606223364.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5986 $as_echo_n "checking size of __int64... " >&6; }
5987 if test "${ac_cv_sizeof___int64+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5991
5992 else
5993 if test "$ac_cv_type___int64" = yes; then
5994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5996 { as_fn_set_status 77
5997 as_fn_error "cannot compute sizeof (__int64)
5998 See \`config.log' for more details." "$LINENO" 5; }; }
5999 else
6000 ac_cv_sizeof___int64=0
6001 fi
6002 fi
6003
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6006 $as_echo "$ac_cv_sizeof___int64" >&6; }
6007
6008
6009
6010 cat >>confdefs.h <<_ACEOF
6011 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6012 _ACEOF
6013
6014
6015 fi
6016
6017 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6018 case $ac_cv_c_int8_t in #(
6019 no|yes) ;; #(
6020 *)
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define int8_t $ac_cv_c_int8_t
6024 _ACEOF
6025 ;;
6026 esac
6027
6028 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6029 case $ac_cv_c_int16_t in #(
6030 no|yes) ;; #(
6031 *)
6032
6033 cat >>confdefs.h <<_ACEOF
6034 #define int16_t $ac_cv_c_int16_t
6035 _ACEOF
6036 ;;
6037 esac
6038
6039 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6040 case $ac_cv_c_int32_t in #(
6041 no|yes) ;; #(
6042 *)
6043
6044 cat >>confdefs.h <<_ACEOF
6045 #define int32_t $ac_cv_c_int32_t
6046 _ACEOF
6047 ;;
6048 esac
6049
6050 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6051 case $ac_cv_c_int64_t in #(
6052 no|yes) ;; #(
6053 *)
6054
6055 cat >>confdefs.h <<_ACEOF
6056 #define int64_t $ac_cv_c_int64_t
6057 _ACEOF
6058 ;;
6059 esac
6060
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6063 $as_echo_n "checking for long long int... " >&6; }
6064 if test "${ac_cv_type_long_long_int+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069
6070 /* For now, do not test the preprocessor; as of 2007 there are too many
6071 implementations with broken preprocessors. Perhaps this can
6072 be revisited in 2012. In the meantime, code should not expect
6073 #if to work with literals wider than 32 bits. */
6074 /* Test literals. */
6075 long long int ll = 9223372036854775807ll;
6076 long long int nll = -9223372036854775807LL;
6077 unsigned long long int ull = 18446744073709551615ULL;
6078 /* Test constant expressions. */
6079 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6080 ? 1 : -1)];
6081 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6082 ? 1 : -1)];
6083 int i = 63;
6084 int
6085 main ()
6086 {
6087 /* Test availability of runtime routines for shift and division. */
6088 long long int llmax = 9223372036854775807ll;
6089 unsigned long long int ullmax = 18446744073709551615ull;
6090 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6091 | (llmax / ll) | (llmax % ll)
6092 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6093 | (ullmax / ull) | (ullmax % ull));
6094 ;
6095 return 0;
6096 }
6097
6098 _ACEOF
6099 if ac_fn_c_try_link "$LINENO"; then :
6100 if test "$cross_compiling" = yes; then :
6101 ac_cv_type_long_long_int=yes
6102 else
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <limits.h>
6106 #ifndef LLONG_MAX
6107 # define HALF \
6108 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6109 # define LLONG_MAX (HALF - 1 + HALF)
6110 #endif
6111 int
6112 main ()
6113 {
6114 long long int n = 1;
6115 int i;
6116 for (i = 0; ; i++)
6117 {
6118 long long int m = n << i;
6119 if (m >> i != n)
6120 return 1;
6121 if (LLONG_MAX / 2 < m)
6122 break;
6123 }
6124 return 0;
6125 ;
6126 return 0;
6127 }
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6130 ac_cv_type_long_long_int=yes
6131 else
6132 ac_cv_type_long_long_int=no
6133 fi
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6136 fi
6137
6138 else
6139 ac_cv_type_long_long_int=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6145 $as_echo "$ac_cv_type_long_long_int" >&6; }
6146 if test $ac_cv_type_long_long_int = yes; then
6147
6148 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6149
6150 fi
6151
6152
6153
6154 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6155 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6156
6157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6158
6159 else
6160 test $ac_cv_type_long_long_int = yes \
6161 && ac_type='long long int' \
6162 || ac_type='long int'
6163
6164 cat >>confdefs.h <<_ACEOF
6165 #define intmax_t $ac_type
6166 _ACEOF
6167
6168 fi
6169
6170
6171
6172 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6174
6175 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6176
6177 else
6178 for ac_type in 'int' 'long int' 'long long int'; do
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 $ac_includes_default
6182 int
6183 main ()
6184 {
6185 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6186 test_array [0] = 0
6187
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193
6194 cat >>confdefs.h <<_ACEOF
6195 #define intptr_t $ac_type
6196 _ACEOF
6197
6198 ac_type=
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 test -z "$ac_type" && break
6202 done
6203 fi
6204
6205
6206 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6207 case $ac_cv_c_uint8_t in #(
6208 no|yes) ;; #(
6209 *)
6210
6211 $as_echo "#define _UINT8_T 1" >>confdefs.h
6212
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define uint8_t $ac_cv_c_uint8_t
6216 _ACEOF
6217 ;;
6218 esac
6219
6220 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6221 case $ac_cv_c_uint16_t in #(
6222 no|yes) ;; #(
6223 *)
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint16_t $ac_cv_c_uint16_t
6228 _ACEOF
6229 ;;
6230 esac
6231
6232 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6233 case $ac_cv_c_uint32_t in #(
6234 no|yes) ;; #(
6235 *)
6236
6237 $as_echo "#define _UINT32_T 1" >>confdefs.h
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint32_t $ac_cv_c_uint32_t
6242 _ACEOF
6243 ;;
6244 esac
6245
6246 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6247 case $ac_cv_c_uint64_t in #(
6248 no|yes) ;; #(
6249 *)
6250
6251 $as_echo "#define _UINT64_T 1" >>confdefs.h
6252
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint64_t $ac_cv_c_uint64_t
6256 _ACEOF
6257 ;;
6258 esac
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6262 $as_echo_n "checking for unsigned long long int... " >&6; }
6263 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268
6269 /* For now, do not test the preprocessor; as of 2007 there are too many
6270 implementations with broken preprocessors. Perhaps this can
6271 be revisited in 2012. In the meantime, code should not expect
6272 #if to work with literals wider than 32 bits. */
6273 /* Test literals. */
6274 long long int ll = 9223372036854775807ll;
6275 long long int nll = -9223372036854775807LL;
6276 unsigned long long int ull = 18446744073709551615ULL;
6277 /* Test constant expressions. */
6278 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6279 ? 1 : -1)];
6280 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6281 ? 1 : -1)];
6282 int i = 63;
6283 int
6284 main ()
6285 {
6286 /* Test availability of runtime routines for shift and division. */
6287 long long int llmax = 9223372036854775807ll;
6288 unsigned long long int ullmax = 18446744073709551615ull;
6289 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6290 | (llmax / ll) | (llmax % ll)
6291 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6292 | (ullmax / ull) | (ullmax % ull));
6293 ;
6294 return 0;
6295 }
6296
6297 _ACEOF
6298 if ac_fn_c_try_link "$LINENO"; then :
6299 ac_cv_type_unsigned_long_long_int=yes
6300 else
6301 ac_cv_type_unsigned_long_long_int=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6308 if test $ac_cv_type_unsigned_long_long_int = yes; then
6309
6310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6311
6312 fi
6313
6314
6315
6316 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6317 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6318
6319 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6320
6321 else
6322 test $ac_cv_type_unsigned_long_long_int = yes \
6323 && ac_type='unsigned long long int' \
6324 || ac_type='unsigned long int'
6325
6326 cat >>confdefs.h <<_ACEOF
6327 #define uintmax_t $ac_type
6328 _ACEOF
6329
6330 fi
6331
6332
6333
6334 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6336
6337 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6338
6339 else
6340 for ac_type in 'unsigned int' 'unsigned long int' \
6341 'unsigned long long int'; do
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 $ac_includes_default
6345 int
6346 main ()
6347 {
6348 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6349 test_array [0] = 0
6350
6351 ;
6352 return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356
6357 cat >>confdefs.h <<_ACEOF
6358 #define uintptr_t $ac_type
6359 _ACEOF
6360
6361 ac_type=
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 test -z "$ac_type" && break
6365 done
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 # ---------------------
6383 # Warnings and checking
6384 # ---------------------
6385
6386 # Check $CC warning features (if it's GCC).
6387 # We want to use -pedantic, but we don't want warnings about
6388 # * 'long long'
6389 # * variadic macros
6390 # * overlong strings
6391 # * C++11 narrowing conversions in { }
6392 # So, we only use -pedantic if we can disable those warnings.
6393
6394 loose_warn=
6395 save_CFLAGS="$CFLAGS"
6396 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6397 # Do the check with the no- prefix removed since gcc silently
6398 # accepts any -Wno-* option on purpose
6399 case $real_option in
6400 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401 *) option=$real_option ;;
6402 esac
6403 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 CFLAGS="$option"
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 int
6415 main ()
6416 {
6417
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 eval "$as_acx_Woption=yes"
6424 else
6425 eval "$as_acx_Woption=no"
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429 fi
6430 eval ac_res=\$$as_acx_Woption
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6435 fi
6436 done
6437 CFLAGS="$save_CFLAGS"
6438
6439 c_loose_warn=
6440 save_CFLAGS="$CFLAGS"
6441 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6442 # Do the check with the no- prefix removed since gcc silently
6443 # accepts any -Wno-* option on purpose
6444 case $real_option in
6445 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446 *) option=$real_option ;;
6447 esac
6448 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451 $as_echo_n "checking whether $CC supports $option... " >&6; }
6452 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 CFLAGS="$option"
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458
6459 int
6460 main ()
6461 {
6462
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 eval "$as_acx_Woption=yes"
6469 else
6470 eval "$as_acx_Woption=no"
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473
6474 fi
6475 eval ac_res=\$$as_acx_Woption
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477 $as_echo "$ac_res" >&6; }
6478 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6480 fi
6481 done
6482 CFLAGS="$save_CFLAGS"
6483
6484 strict_warn=
6485 save_CFLAGS="$CFLAGS"
6486 for real_option in -Wmissing-format-attribute; do
6487 # Do the check with the no- prefix removed since gcc silently
6488 # accepts any -Wno-* option on purpose
6489 case $real_option in
6490 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6491 *) option=$real_option ;;
6492 esac
6493 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6496 $as_echo_n "checking whether $CC supports $option... " >&6; }
6497 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 CFLAGS="$option"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503
6504 int
6505 main ()
6506 {
6507
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 eval "$as_acx_Woption=yes"
6514 else
6515 eval "$as_acx_Woption=no"
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518
6519 fi
6520 eval ac_res=\$$as_acx_Woption
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6523 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6524 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6525 fi
6526 done
6527 CFLAGS="$save_CFLAGS"
6528
6529 c_strict_warn=
6530 save_CFLAGS="$CFLAGS"
6531 for real_option in -Wold-style-definition -Wc++-compat; do
6532 # Do the check with the no- prefix removed since gcc silently
6533 # accepts any -Wno-* option on purpose
6534 case $real_option in
6535 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6536 *) option=$real_option ;;
6537 esac
6538 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6541 $as_echo_n "checking whether $CC supports $option... " >&6; }
6542 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 CFLAGS="$option"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548
6549 int
6550 main ()
6551 {
6552
6553 ;
6554 return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 eval "$as_acx_Woption=yes"
6559 else
6560 eval "$as_acx_Woption=no"
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563
6564 fi
6565 eval ac_res=\$$as_acx_Woption
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6567 $as_echo "$ac_res" >&6; }
6568 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6569 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6570 fi
6571 done
6572 CFLAGS="$save_CFLAGS"
6573
6574 # Do the check with the no- prefix removed from the warning options
6575 # since gcc silently accepts any -Wno-* option on purpose
6576 if test "$GCC" = yes; then :
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6578 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6579 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 save_CFLAGS="$CFLAGS"
6583 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586
6587 int
6588 main ()
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6597 else
6598 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 CFLAGS="$save_CFLAGS"
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6604 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6605 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6606 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6607 fi
6608
6609 fi
6610
6611 # Check whether --enable-werror-always was given.
6612 if test "${enable_werror_always+set}" = set; then :
6613 enableval=$enable_werror_always;
6614 else
6615 enable_werror_always=no
6616 fi
6617
6618 if test $enable_werror_always = yes; then :
6619 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6620 fi
6621
6622
6623
6624 # The above macros do nothing if the compiler is not GCC. However, the
6625 # Makefile has more goo to add other flags, so these variables are used
6626 # to enable warnings only for GCC.
6627 warn_cflags=
6628 warn_cxxflags=
6629 if test "x$GCC" = "xyes"; then
6630 warn_cflags='$(GCC_WARN_CFLAGS)'
6631 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6632 fi
6633
6634
6635
6636 # Disable exceptions and RTTI if building with g++
6637 noexception_flags=
6638 save_CFLAGS="$CFLAGS"
6639 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6640 # Do the check with the no- prefix removed since gcc silently
6641 # accepts any -Wno-* option on purpose
6642 case $real_option in
6643 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6644 *) option=$real_option ;;
6645 esac
6646 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6647
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6649 $as_echo_n "checking whether $CC supports $option... " >&6; }
6650 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 CFLAGS="$option"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656
6657 int
6658 main ()
6659 {
6660
6661 ;
6662 return 0;
6663 }
6664 _ACEOF
6665 if ac_fn_c_try_compile "$LINENO"; then :
6666 eval "$as_acx_Woption=yes"
6667 else
6668 eval "$as_acx_Woption=no"
6669 fi
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671
6672 fi
6673 eval ac_res=\$$as_acx_Woption
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6677 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6678 fi
6679 done
6680 CFLAGS="$save_CFLAGS"
6681
6682
6683 # Enable expensive internal checks
6684 is_release=
6685 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6686 is_release=yes
6687 fi
6688
6689 # Check whether --enable-checking was given.
6690 if test "${enable_checking+set}" = set; then :
6691 enableval=$enable_checking; ac_checking_flags="${enableval}"
6692 else
6693
6694 # Determine the default checks.
6695 if test x$is_release = x ; then
6696 ac_checking_flags=yes
6697 else
6698 ac_checking_flags=release
6699 fi
6700 fi
6701
6702 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6703 for check in release $ac_checking_flags
6704 do
6705 case $check in
6706 # these set all the flags to specific states
6707 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6708 ac_fold_checking= ; ac_gc_checking=1 ;
6709 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6710 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6711 ac_tree_checking=1 ; ac_valgrind_checking= ;
6712 ac_types_checking=1 ;;
6713 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking= ;
6715 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6716 ac_rtlflag_checking= ; ac_runtime_checking= ;
6717 ac_tree_checking= ; ac_valgrind_checking= ;
6718 ac_types_checking= ;;
6719 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6720 ac_fold_checking=1 ; ac_gc_checking=1 ;
6721 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 # these enable particular checks
6732 assert) ac_assert_checking=1 ;;
6733 df) ac_df_checking=1 ;;
6734 fold) ac_fold_checking=1 ;;
6735 gc) ac_gc_checking=1 ;;
6736 gcac) ac_gc_always_collect=1 ;;
6737 gimple) ac_gimple_checking=1 ;;
6738 misc) ac_checking=1 ;;
6739 rtl) ac_rtl_checking=1 ;;
6740 rtlflag) ac_rtlflag_checking=1 ;;
6741 runtime) ac_runtime_checking=1 ;;
6742 tree) ac_tree_checking=1 ;;
6743 types) ac_types_checking=1 ;;
6744 valgrind) ac_valgrind_checking=1 ;;
6745 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6746 esac
6747 done
6748 IFS="$ac_save_IFS"
6749
6750 nocommon_flag=""
6751 if test x$ac_checking != x ; then
6752
6753 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6754
6755 nocommon_flag=-fno-common
6756 fi
6757
6758 if test x$ac_df_checking != x ; then
6759
6760 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6761
6762 fi
6763 if test x$ac_assert_checking != x ; then
6764
6765 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6766
6767 fi
6768 if test x$ac_gimple_checking != x ; then
6769
6770 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6771
6772 fi
6773
6774 if test x$ac_runtime_checking != x ; then
6775
6776 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6777
6778 fi
6779 if test x$ac_tree_checking != x ; then
6780
6781 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6782
6783 TREEBROWSER=tree-browser.o
6784 fi
6785 if test x$ac_types_checking != x ; then
6786
6787 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6788
6789 fi
6790
6791 if test x$ac_rtl_checking != x ; then
6792
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6794
6795 fi
6796 if test x$ac_rtlflag_checking != x ; then
6797
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6799
6800 fi
6801 if test x$ac_gc_checking != x ; then
6802
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6804
6805 fi
6806 if test x$ac_gc_always_collect != x ; then
6807
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6809
6810 fi
6811 if test x$ac_fold_checking != x ; then
6812
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6814
6815 fi
6816 valgrind_path_defines=
6817 valgrind_command=
6818
6819 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6821 have_valgrind_h=yes
6822 else
6823 have_valgrind_h=no
6824 fi
6825
6826
6827
6828 if test x$ac_valgrind_checking != x ; then
6829 # It is certainly possible that there's valgrind but no valgrind.h.
6830 # GCC relies on making annotations so we must have both.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6832 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <valgrind/memcheck.h>
6836 #ifndef VALGRIND_DISCARD
6837 #error VALGRIND_DISCARD not defined
6838 #endif
6839 _ACEOF
6840 if ac_fn_c_try_cpp "$LINENO"; then :
6841 gcc_cv_header_valgrind_memcheck_h=yes
6842 else
6843 gcc_cv_header_valgrind_memcheck_h=no
6844 fi
6845 rm -f conftest.err conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6847 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6855 #endif
6856 _ACEOF
6857 if ac_fn_c_try_cpp "$LINENO"; then :
6858 gcc_cv_header_memcheck_h=yes
6859 else
6860 gcc_cv_header_memcheck_h=no
6861 fi
6862 rm -f conftest.err conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6865
6866 # Prepare PATH_SEPARATOR.
6867 # The user is always right.
6868 if test "${PATH_SEPARATOR+set}" != set; then
6869 echo "#! /bin/sh" >conf$$.sh
6870 echo "exit 0" >>conf$$.sh
6871 chmod +x conf$$.sh
6872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6873 PATH_SEPARATOR=';'
6874 else
6875 PATH_SEPARATOR=:
6876 fi
6877 rm -f conf$$.sh
6878 fi
6879
6880 # Find out how to test for executable files. Don't use a zero-byte file,
6881 # as systems may use methods other than mode bits to determine executability.
6882 cat >conf$$.file <<_ASEOF
6883 #! /bin/sh
6884 exit 0
6885 _ASEOF
6886 chmod +x conf$$.file
6887 if test -x conf$$.file >/dev/null 2>&1; then
6888 ac_executable_p="test -x"
6889 else
6890 ac_executable_p="test -f"
6891 fi
6892 rm -f conf$$.file
6893
6894 # Extract the first word of "valgrind", so it can be a program name with args.
6895 set dummy valgrind; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 case "$valgrind_path" in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6904 ;;
6905 *)
6906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6907 for ac_dir in $PATH; do
6908 IFS="$ac_save_IFS"
6909 test -z "$ac_dir" && ac_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6912 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6913 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6914 break 2
6915 fi
6916 fi
6917 done
6918 done
6919 IFS="$ac_save_IFS"
6920 ;;
6921 esac
6922 fi
6923 valgrind_path="$ac_cv_path_valgrind_path"
6924 if test -n "$valgrind_path"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6926 $as_echo "$valgrind_path" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932 if test "x$valgrind_path" = "x" \
6933 || (test $have_valgrind_h = no \
6934 && test $gcc_cv_header_memcheck_h = no \
6935 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6936 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6937 fi
6938 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6939 valgrind_command="$valgrind_path -q"
6940
6941 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6942
6943 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6944
6945 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6946
6947 fi
6948 if test $gcc_cv_header_memcheck_h = yes; then
6949
6950 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6951
6952 fi
6953 fi
6954
6955
6956
6957 # Enable code coverage collection
6958 # Check whether --enable-coverage was given.
6959 if test "${enable_coverage+set}" = set; then :
6960 enableval=$enable_coverage; case "${enableval}" in
6961 yes|noopt)
6962 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6963 ;;
6964 opt)
6965 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6966 ;;
6967 no)
6968 # a.k.a. --disable-coverage
6969 coverage_flags=""
6970 ;;
6971 *)
6972 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6973 ;;
6974 esac
6975 else
6976 coverage_flags=""
6977 fi
6978
6979
6980
6981 # Check whether --enable-gather-detailed-mem-stats was given.
6982 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6983 enableval=$enable_gather_detailed_mem_stats;
6984 else
6985 enable_gather_detailed_mem_stats=no
6986 fi
6987
6988 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6989
6990 cat >>confdefs.h <<_ACEOF
6991 #define GATHER_STATISTICS $gather_stats
6992 _ACEOF
6993
6994
6995 # -------------------------------
6996 # Miscenalleous configure options
6997 # -------------------------------
6998
6999 # With stabs
7000
7001 # Check whether --with-stabs was given.
7002 if test "${with_stabs+set}" = set; then :
7003 withval=$with_stabs; stabs="$with_stabs"
7004 else
7005 stabs=no
7006 fi
7007
7008
7009 # Determine whether or not multilibs are enabled.
7010 # Check whether --enable-multilib was given.
7011 if test "${enable_multilib+set}" = set; then :
7012 enableval=$enable_multilib;
7013 else
7014 enable_multilib=yes
7015 fi
7016
7017
7018
7019 # Enable __cxa_atexit for C++.
7020 # Check whether --enable-__cxa_atexit was given.
7021 if test "${enable___cxa_atexit+set}" = set; then :
7022 enableval=$enable___cxa_atexit;
7023 fi
7024
7025
7026 # Enable C extension for decimal float if target supports it.
7027
7028 # Check whether --enable-decimal-float was given.
7029 if test "${enable_decimal_float+set}" = set; then :
7030 enableval=$enable_decimal_float;
7031 case $enable_decimal_float in
7032 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7033 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7034 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7035 esac
7036
7037 else
7038
7039 case $target in
7040 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7041 i?86*-*-mingw* | x86_64*-*-mingw* | \
7042 i?86*-*-cygwin*)
7043 enable_decimal_float=yes
7044 ;;
7045 *)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7047 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7048 enable_decimal_float=no
7049 ;;
7050 esac
7051
7052 fi
7053
7054
7055 # x86's use BID format instead of DPD
7056 case x$enable_decimal_float in
7057 xyes)
7058 case $target in
7059 i?86*-*-* | x86_64*-*-*)
7060 enable_decimal_float=bid
7061 ;;
7062 *)
7063 enable_decimal_float=dpd
7064 ;;
7065 esac
7066 default_decimal_float=$enable_decimal_float
7067 ;;
7068 xno)
7069 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7070 # dependency on libdecnumber.
7071 default_decimal_float=dpd
7072 ;;
7073 esac
7074
7075
7076
7077
7078 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7079
7080 cat >>confdefs.h <<_ACEOF
7081 #define ENABLE_DECIMAL_FLOAT $dfp
7082 _ACEOF
7083
7084
7085 # Use default_decimal_float for dependency.
7086 enable_decimal_float=$default_decimal_float
7087
7088 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7089
7090 cat >>confdefs.h <<_ACEOF
7091 #define ENABLE_DECIMAL_BID_FORMAT $bid
7092 _ACEOF
7093
7094
7095 # Enable C extension for fixed-point arithmetic.
7096 # Check whether --enable-fixed-point was given.
7097 if test "${enable_fixed_point+set}" = set; then :
7098 enableval=$enable_fixed_point;
7099 else
7100
7101 case $target in
7102 arm*)
7103 enable_fixed_point=yes
7104 ;;
7105
7106 mips*-*-*)
7107 enable_fixed_point=yes
7108 ;;
7109 *)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7111 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7112 enable_fixed_point=no
7113 ;;
7114 esac
7115
7116 fi
7117
7118
7119
7120 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7121
7122 cat >>confdefs.h <<_ACEOF
7123 #define ENABLE_FIXED_POINT $fixedpoint
7124 _ACEOF
7125
7126
7127 # Enable threads
7128 # Pass with no value to take the default
7129 # Pass with a value to specify a thread package
7130 # Check whether --enable-threads was given.
7131 if test "${enable_threads+set}" = set; then :
7132 enableval=$enable_threads;
7133 else
7134 enable_threads=''
7135 fi
7136
7137
7138 # Check whether --enable-tls was given.
7139 if test "${enable_tls+set}" = set; then :
7140 enableval=$enable_tls;
7141 case $enable_tls in
7142 yes | no) ;;
7143 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7144 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7145 esac
7146
7147 else
7148 enable_tls=''
7149 fi
7150
7151
7152 # Check whether --enable-objc-gc was given.
7153 if test "${enable_objc_gc+set}" = set; then :
7154 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7155 objc_boehm_gc=''
7156 else
7157 objc_boehm_gc=1
7158 fi
7159 else
7160 objc_boehm_gc=''
7161 fi
7162
7163
7164
7165 # Check whether --with-dwarf2 was given.
7166 if test "${with_dwarf2+set}" = set; then :
7167 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7168 else
7169 dwarf2=no
7170 fi
7171
7172
7173 # Check whether --enable-shared was given.
7174 if test "${enable_shared+set}" = set; then :
7175 enableval=$enable_shared;
7176 case $enable_shared in
7177 yes | no) ;;
7178 *)
7179 enable_shared=no
7180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7181 for pkg in $enableval; do
7182 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7183 enable_shared=yes
7184 fi
7185 done
7186 IFS="$ac_save_ifs"
7187 ;;
7188 esac
7189
7190 else
7191 enable_shared=yes
7192 fi
7193
7194
7195
7196
7197 # Check whether --with-native-system-header-dir was given.
7198 if test "${with_native_system_header_dir+set}" = set; then :
7199 withval=$with_native_system_header_dir;
7200 case ${with_native_system_header_dir} in
7201 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7202 /* | [A-Za-z]:[\\/]*) ;;
7203 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7204 esac
7205 configured_native_system_header_dir="${withval}"
7206
7207 else
7208 configured_native_system_header_dir=
7209 fi
7210
7211
7212
7213 # Check whether --with-build-sysroot was given.
7214 if test "${with_build_sysroot+set}" = set; then :
7215 withval=$with_build_sysroot; if test x"$withval" != x ; then
7216 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7217 fi
7218 else
7219 SYSROOT_CFLAGS_FOR_TARGET=
7220 fi
7221
7222
7223
7224 if test "x$prefix" = xNONE; then
7225 test_prefix=/usr/local
7226 else
7227 test_prefix=$prefix
7228 fi
7229 if test "x$exec_prefix" = xNONE; then
7230 test_exec_prefix=$test_prefix
7231 else
7232 test_exec_prefix=$exec_prefix
7233 fi
7234
7235
7236 # Check whether --with-sysroot was given.
7237 if test "${with_sysroot+set}" = set; then :
7238 withval=$with_sysroot;
7239 case ${with_sysroot} in
7240 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7241 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7242 esac
7243
7244 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7245 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7246
7247 case ${TARGET_SYSTEM_ROOT} in
7248 "${test_prefix}"|"${test_prefix}/"*|\
7249 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7250 '${prefix}'|'${prefix}/'*|\
7251 '${exec_prefix}'|'${exec_prefix}/'*)
7252 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7253 TARGET_SYSTEM_ROOT_DEFINE="$t"
7254 ;;
7255 esac
7256
7257 else
7258
7259 TARGET_SYSTEM_ROOT=
7260 TARGET_SYSTEM_ROOT_DEFINE=
7261 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7262
7263 fi
7264
7265
7266
7267
7268
7269
7270 # Check whether --with-specs was given.
7271 if test "${with_specs+set}" = set; then :
7272 withval=$with_specs; CONFIGURE_SPECS=$withval
7273 else
7274 CONFIGURE_SPECS=
7275
7276 fi
7277
7278
7279
7280
7281
7282 # Check whether --with-pkgversion was given.
7283 if test "${with_pkgversion+set}" = set; then :
7284 withval=$with_pkgversion; case "$withval" in
7285 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7286 no) PKGVERSION= ;;
7287 *) PKGVERSION="($withval) " ;;
7288 esac
7289 else
7290 PKGVERSION="(GCC) "
7291
7292 fi
7293
7294
7295
7296
7297
7298 # Check whether --with-bugurl was given.
7299 if test "${with_bugurl+set}" = set; then :
7300 withval=$with_bugurl; case "$withval" in
7301 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7302 no) BUGURL=
7303 ;;
7304 *) BUGURL="$withval"
7305 ;;
7306 esac
7307 else
7308 BUGURL="http://gcc.gnu.org/bugs.html"
7309
7310 fi
7311
7312 case ${BUGURL} in
7313 "")
7314 REPORT_BUGS_TO=
7315 REPORT_BUGS_TEXI=
7316 ;;
7317 *)
7318 REPORT_BUGS_TO="<$BUGURL>"
7319 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7320 ;;
7321 esac;
7322
7323
7324
7325
7326 # Sanity check enable_languages in case someone does not run the toplevel
7327 # configure # script.
7328 # Check whether --enable-languages was given.
7329 if test "${enable_languages+set}" = set; then :
7330 enableval=$enable_languages; case ,${enable_languages}, in
7331 ,,|,yes,)
7332 # go safe -- we cannot be much sure without the toplevel
7333 # configure's
7334 # analysis of which target libs are present and usable
7335 enable_languages=c
7336 ;;
7337 *,all,*)
7338 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7339 ;;
7340 *,c,*)
7341 ;;
7342 *)
7343 enable_languages=c,${enable_languages}
7344 ;;
7345 esac
7346 else
7347 enable_languages=c
7348 fi
7349
7350
7351
7352 # Check whether --with-multilib-list was given.
7353 if test "${with_multilib_list+set}" = set; then :
7354 withval=$with_multilib_list; :
7355 else
7356 with_multilib_list=default
7357 fi
7358
7359
7360 # -------------------------
7361 # Checks for other programs
7362 # -------------------------
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7365 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7366 set x ${MAKE-make}
7367 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7368 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 cat >conftest.make <<\_ACEOF
7372 SHELL = /bin/sh
7373 all:
7374 @echo '@@@%%%=$(MAKE)=@@@%%%'
7375 _ACEOF
7376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7377 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7378 *@@@%%%=?*=@@@%%%*)
7379 eval ac_cv_prog_make_${ac_make}_set=yes;;
7380 *)
7381 eval ac_cv_prog_make_${ac_make}_set=no;;
7382 esac
7383 rm -f conftest.make
7384 fi
7385 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7387 $as_echo "yes" >&6; }
7388 SET_MAKE=
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 SET_MAKE="MAKE=${MAKE-make}"
7393 fi
7394
7395
7396 # Find some useful tools
7397 for ac_prog in gawk mawk nawk awk
7398 do
7399 # Extract the first word of "$ac_prog", so it can be a program name with args.
7400 set dummy $ac_prog; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if test "${ac_cv_prog_AWK+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$AWK"; then
7407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_AWK="$ac_prog"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 AWK=$ac_cv_prog_AWK
7427 if test -n "$AWK"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7429 $as_echo "$AWK" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435
7436 test -n "$AWK" && break
7437 done
7438
7439 # We need awk to create options.c and options.h.
7440 # Bail out if it's missing.
7441 case ${AWK} in
7442 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7443 esac
7444
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7446 $as_echo_n "checking whether ln -s works... " >&6; }
7447 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 rm -f conftestdata_t
7451 echo >conftestdata_f
7452 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7453 then
7454 gcc_cv_prog_LN_S="ln -s"
7455 else
7456 if ln conftestdata_f conftestdata_t 2>/dev/null
7457 then
7458 gcc_cv_prog_LN_S=ln
7459 else
7460 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7461 then
7462 gcc_cv_prog_LN_S="cp -p"
7463 else
7464 gcc_cv_prog_LN_S=cp
7465 fi
7466 fi
7467 fi
7468 rm -f conftestdata_f conftestdata_t
7469
7470 fi
7471 LN_S="$gcc_cv_prog_LN_S"
7472 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7475 else
7476 if test "$gcc_cv_prog_LN_S" = "ln"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7478 $as_echo "no, using ln" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7481 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7482 fi
7483 fi
7484
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7486 $as_echo_n "checking whether ln works... " >&6; }
7487 if test "${acx_cv_prog_LN+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 rm -f conftestdata_t
7491 echo >conftestdata_f
7492 if ln conftestdata_f conftestdata_t 2>/dev/null
7493 then
7494 acx_cv_prog_LN=ln
7495 else
7496 acx_cv_prog_LN=no
7497 fi
7498 rm -f conftestdata_f conftestdata_t
7499
7500 fi
7501 if test $acx_cv_prog_LN = no; then
7502 LN="$LN_S"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7504 $as_echo "no, using $LN" >&6; }
7505 else
7506 LN="$acx_cv_prog_LN"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7509 fi
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$RANLIB"; then
7520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 RANLIB=$ac_cv_prog_RANLIB
7540 if test -n "$RANLIB"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7542 $as_echo "$RANLIB" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_RANLIB"; then
7551 ac_ct_RANLIB=$RANLIB
7552 # Extract the first word of "ranlib", so it can be a program name with args.
7553 set dummy ranlib; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 if test -n "$ac_ct_RANLIB"; then
7560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_RANLIB="ranlib"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7580 if test -n "$ac_ct_RANLIB"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7582 $as_echo "$ac_ct_RANLIB" >&6; }
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588 if test "x$ac_ct_RANLIB" = x; then
7589 RANLIB=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 RANLIB=$ac_ct_RANLIB
7598 fi
7599 else
7600 RANLIB="$ac_cv_prog_RANLIB"
7601 fi
7602
7603 ranlib_flags=""
7604
7605
7606 # Find a good install program. We prefer a C program (faster),
7607 # so one script is as good as another. But avoid the broken or
7608 # incompatible versions:
7609 # SysV /etc/install, /usr/sbin/install
7610 # SunOS /usr/etc/install
7611 # IRIX /sbin/install
7612 # AIX /bin/install
7613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7615 # ./install, which can be erroneously created by make from ./install.sh.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7617 $as_echo_n "checking for a BSD compatible install... " >&6; }
7618 if test -z "$INSTALL"; then
7619 if test "${ac_cv_path_install+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7623 for ac_dir in $PATH; do
7624 # Account for people who put trailing slashes in PATH elements.
7625 case "$ac_dir/" in
7626 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7627 *)
7628 # OSF1 and SCO ODT 3.0 have their own names for install.
7629 for ac_prog in ginstall scoinst install; do
7630 if test -f $ac_dir/$ac_prog; then
7631 if test $ac_prog = install &&
7632 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7633 # AIX install. It has an incompatible calling convention.
7634 # OSF/1 installbsd also uses dspmsg, but is usable.
7635 :
7636 else
7637 ac_cv_path_install="$ac_dir/$ac_prog -c"
7638 break 2
7639 fi
7640 fi
7641 done
7642 ;;
7643 esac
7644 done
7645 IFS="$ac_save_IFS"
7646
7647 fi
7648 if test "${ac_cv_path_install+set}" = set; then
7649 INSTALL="$ac_cv_path_install"
7650 else
7651 # As a last resort, use the slow shell script. We don't cache a
7652 # path for INSTALL within a source directory, because that will
7653 # break other packages using the cache if that directory is
7654 # removed, or if the path is relative.
7655 INSTALL="$ac_install_sh"
7656 fi
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7659 $as_echo "$INSTALL" >&6; }
7660
7661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7662 # It thinks the first close brace ends the variable substitution.
7663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7664
7665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7666
7667
7668 # See if cmp has --ignore-initial.
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7670 $as_echo_n "checking for cmp's capabilities... " >&6; }
7671 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 echo abfoo >t1
7675 echo cdfoo >t2
7676 gcc_cv_prog_cmp_skip=slowcompare
7677 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7678 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7679 :
7680 else
7681 gcc_cv_prog_cmp_skip=gnucompare
7682 fi
7683 fi
7684 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7685 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7686 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7687 :
7688 else
7689 gcc_cv_prog_cmp_skip=fastcompare
7690 fi
7691 fi
7692 fi
7693 rm t1 t2
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7697 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7698 make_compare_target=$gcc_cv_prog_cmp_skip
7699
7700
7701
7702 # See if we have the mktemp command.
7703 # Extract the first word of "mktemp", so it can be a program name with args.
7704 set dummy mktemp; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$have_mktemp_command"; then
7711 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_prog_have_mktemp_command="yes"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7729 fi
7730 fi
7731 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7732 if test -n "$have_mktemp_command"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7734 $as_echo "$have_mktemp_command" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741
7742 # See if makeinfo has been installed and is modern enough
7743 # that we can use it.
7744
7745 # Extract the first word of "makeinfo", so it can be a program name with args.
7746 set dummy makeinfo; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 if test -n "$MAKEINFO"; then
7753 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_MAKEINFO="makeinfo"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 MAKEINFO=$ac_cv_prog_MAKEINFO
7773 if test -n "$MAKEINFO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7775 $as_echo "$MAKEINFO" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781
7782 if test -n "$MAKEINFO"; then
7783 # Found it, now check the version.
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7785 $as_echo_n "checking for modern makeinfo... " >&6; }
7786 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7790 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7791
7792 case $ac_prog_version in
7793 '') gcc_cv_prog_makeinfo_modern=no;;
7794 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7795 *) gcc_cv_prog_makeinfo_modern=no;;
7796 esac
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7800 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7801 else
7802 gcc_cv_prog_makeinfo_modern=no
7803 fi
7804 if test $gcc_cv_prog_makeinfo_modern = no; then
7805 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7806 fi
7807
7808 if test $gcc_cv_prog_makeinfo_modern = no; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7810 *** Makeinfo is missing or too old.
7811 *** Info documentation will not be built." >&5
7812 $as_echo "$as_me: WARNING:
7813 *** Makeinfo is missing or too old.
7814 *** Info documentation will not be built." >&2;}
7815 BUILD_INFO=
7816 else
7817 BUILD_INFO=info
7818 fi
7819
7820
7821 # Is pod2man recent enough to regenerate manpages?
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7823 $as_echo_n "checking for recent Pod::Man... " >&6; }
7824 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7826 $as_echo "yes" >&6; }
7827 GENERATED_MANPAGES=generated-manpages
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 GENERATED_MANPAGES=
7832 fi
7833
7834
7835 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7836
7837 # How about lex?
7838 for ac_prog in flex
7839 do
7840 # Extract the first word of "$ac_prog", so it can be a program name with args.
7841 set dummy $ac_prog; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_FLEX+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 if test -n "$FLEX"; then
7848 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_FLEX="$ac_prog"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 FLEX=$ac_cv_prog_FLEX
7868 if test -n "$FLEX"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7870 $as_echo "$FLEX" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 test -n "$FLEX" && break
7878 done
7879 test -n "$FLEX" || FLEX="$MISSING flex"
7880
7881
7882 # Bison?
7883 for ac_prog in bison
7884 do
7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
7886 set dummy $ac_prog; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if test "${ac_cv_prog_BISON+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 if test -n "$BISON"; then
7893 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_BISON="$ac_prog"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 BISON=$ac_cv_prog_BISON
7913 if test -n "$BISON"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7915 $as_echo "$BISON" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 test -n "$BISON" && break
7923 done
7924 test -n "$BISON" || BISON="$MISSING bison"
7925
7926
7927 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7928 # check for build == host before using them.
7929
7930 # NM
7931 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7932 && test -d ../binutils ; then
7933 NM='${objdir}/../binutils/nm-new'
7934 else
7935 # Extract the first word of "nm", so it can be a program name with args.
7936 set dummy nm; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if test "${ac_cv_prog_NM+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$NM"; then
7943 ac_cv_prog_NM="$NM" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_prog_NM="nm"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7961 fi
7962 fi
7963 NM=$ac_cv_prog_NM
7964 if test -n "$NM"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7966 $as_echo "$NM" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 fi
7974
7975 # AR
7976 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7977 && test -d ../binutils ; then
7978 AR='${objdir}/../binutils/ar'
7979 else
7980 # Extract the first word of "ar", so it can be a program name with args.
7981 set dummy ar; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_AR+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$AR"; then
7988 ac_cv_prog_AR="$AR" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_AR="ar"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8006 fi
8007 fi
8008 AR=$ac_cv_prog_AR
8009 if test -n "$AR"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8011 $as_echo "$AR" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019
8020
8021 # --------------------
8022 # Checks for C headers
8023 # --------------------
8024
8025 # Need to reject headers which give warnings, so that the -Werror bootstrap
8026 # works later. *sigh* This needs to come before all header checks.
8027
8028 ac_c_preproc_warn_flag=yes
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8031 $as_echo_n "checking for ANSI C header files... " >&6; }
8032 if test "${ac_cv_header_stdc+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <stdlib.h>
8038 #include <stdarg.h>
8039 #include <string.h>
8040 #include <float.h>
8041
8042 int
8043 main ()
8044 {
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 ac_cv_header_stdc=yes
8052 else
8053 ac_cv_header_stdc=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056
8057 if test $ac_cv_header_stdc = yes; then
8058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #include <string.h>
8062
8063 _ACEOF
8064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8065 $EGREP "memchr" >/dev/null 2>&1; then :
8066
8067 else
8068 ac_cv_header_stdc=no
8069 fi
8070 rm -f conftest*
8071
8072 fi
8073
8074 if test $ac_cv_header_stdc = yes; then
8075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <stdlib.h>
8079
8080 _ACEOF
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "free" >/dev/null 2>&1; then :
8083
8084 else
8085 ac_cv_header_stdc=no
8086 fi
8087 rm -f conftest*
8088
8089 fi
8090
8091 if test $ac_cv_header_stdc = yes; then
8092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8093 if test "$cross_compiling" = yes; then :
8094 :
8095 else
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 #include <ctype.h>
8099 #include <stdlib.h>
8100 #if ((' ' & 0x0FF) == 0x020)
8101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8103 #else
8104 # define ISLOWER(c) \
8105 (('a' <= (c) && (c) <= 'i') \
8106 || ('j' <= (c) && (c) <= 'r') \
8107 || ('s' <= (c) && (c) <= 'z'))
8108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8109 #endif
8110
8111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8112 int
8113 main ()
8114 {
8115 int i;
8116 for (i = 0; i < 256; i++)
8117 if (XOR (islower (i), ISLOWER (i))
8118 || toupper (i) != TOUPPER (i))
8119 return 2;
8120 return 0;
8121 }
8122 _ACEOF
8123 if ac_fn_c_try_run "$LINENO"; then :
8124
8125 else
8126 ac_cv_header_stdc=no
8127 fi
8128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8129 conftest.$ac_objext conftest.beam conftest.$ac_ext
8130 fi
8131
8132 fi
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8135 $as_echo "$ac_cv_header_stdc" >&6; }
8136 if test $ac_cv_header_stdc = yes; then
8137
8138 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8139
8140 fi
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8143 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8144 if test "${ac_cv_header_time+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 #include <sys/time.h>
8151 #include <time.h>
8152
8153 int
8154 main ()
8155 {
8156 if ((struct tm *) 0)
8157 return 0;
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 if ac_fn_c_try_compile "$LINENO"; then :
8163 ac_cv_header_time=yes
8164 else
8165 ac_cv_header_time=no
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8170 $as_echo "$ac_cv_header_time" >&6; }
8171 if test $ac_cv_header_time = yes; then
8172
8173 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8174
8175 fi
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8178 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8179 if test "${gcc_cv_header_string+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <string.h>
8185 #include <strings.h>
8186 int
8187 main ()
8188 {
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 gcc_cv_header_string=yes
8196 else
8197 gcc_cv_header_string=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8202 $as_echo "$gcc_cv_header_string" >&6; }
8203 if test $gcc_cv_header_string = yes; then
8204
8205 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8206
8207 fi
8208
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8210 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8211 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/wait.h>
8218 #ifndef WEXITSTATUS
8219 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8220 #endif
8221 #ifndef WIFEXITED
8222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8223 #endif
8224
8225 int
8226 main ()
8227 {
8228 int s;
8229 wait (&s);
8230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"; then :
8236 ac_cv_header_sys_wait_h=yes
8237 else
8238 ac_cv_header_sys_wait_h=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8243 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8244 if test $ac_cv_header_sys_wait_h = yes; then
8245
8246 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8247
8248 fi
8249
8250 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8251 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8252 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8253 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8254 do :
8255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8256 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8257 eval as_val=\$$as_ac_Header
8258 if test "x$as_val" = x""yes; then :
8259 cat >>confdefs.h <<_ACEOF
8260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8261 _ACEOF
8262
8263 fi
8264 done
8265
8266
8267 # Check for thread headers.
8268 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8269 if test "x$ac_cv_header_thread_h" = x""yes; then :
8270 have_thread_h=yes
8271 else
8272 have_thread_h=
8273 fi
8274
8275 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8276 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8277 have_pthread_h=yes
8278 else
8279 have_pthread_h=
8280 fi
8281
8282
8283 # These tests can't be done till we know if we have limits.h.
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8285 $as_echo_n "checking for CHAR_BIT... " >&6; }
8286 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #ifdef HAVE_LIMITS_H
8292 #include <limits.h>
8293 #endif
8294 #ifdef CHAR_BIT
8295 found
8296 #endif
8297 _ACEOF
8298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8299 $EGREP "found" >/dev/null 2>&1; then :
8300 gcc_cv_decl_char_bit=yes
8301 else
8302 gcc_cv_decl_char_bit=no
8303 fi
8304 rm -f conftest*
8305
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8309 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8310 if test $gcc_cv_decl_char_bit = no; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8312 $as_echo_n "checking number of bits in a byte... " >&6; }
8313 if test "${gcc_cv_c_nbby+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 i=8
8317 gcc_cv_c_nbby=
8318 while test $i -lt 65; do
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321
8322 int
8323 main ()
8324 {
8325 switch(0) {
8326 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8327 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8328 ; }
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_compile "$LINENO"; then :
8334 gcc_cv_c_nbby=$i; break
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 i=`expr $i + 1`
8338 done
8339 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8340
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8343 $as_echo "$gcc_cv_c_nbby" >&6; }
8344 if test $gcc_cv_c_nbby = failed; then
8345 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8346 else
8347
8348 cat >>confdefs.h <<_ACEOF
8349 #define CHAR_BIT $gcc_cv_c_nbby
8350 _ACEOF
8351
8352 fi
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8355 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8356 if test "${ac_cv_c_bigendian+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 ac_cv_c_bigendian=unknown
8360 # See if we're dealing with a universal compiler.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #ifndef __APPLE_CC__
8364 not a universal capable compiler
8365 #endif
8366 typedef int dummy;
8367
8368 _ACEOF
8369 if ac_fn_c_try_compile "$LINENO"; then :
8370
8371 # Check for potential -arch flags. It is not universal unless
8372 # there are at least two -arch flags with different values.
8373 ac_arch=
8374 ac_prev=
8375 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8376 if test -n "$ac_prev"; then
8377 case $ac_word in
8378 i?86 | x86_64 | ppc | ppc64)
8379 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8380 ac_arch=$ac_word
8381 else
8382 ac_cv_c_bigendian=universal
8383 break
8384 fi
8385 ;;
8386 esac
8387 ac_prev=
8388 elif test "x$ac_word" = "x-arch"; then
8389 ac_prev=arch
8390 fi
8391 done
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 if test $ac_cv_c_bigendian = unknown; then
8395 # See if sys/param.h defines the BYTE_ORDER macro.
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8400
8401 int
8402 main ()
8403 {
8404 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8405 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8406 && LITTLE_ENDIAN)
8407 bogus endian macros
8408 #endif
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 # It does; now see whether it defined to BIG_ENDIAN or not.
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <sys/types.h>
8419 #include <sys/param.h>
8420
8421 int
8422 main ()
8423 {
8424 #if BYTE_ORDER != BIG_ENDIAN
8425 not big endian
8426 #endif
8427
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 ac_cv_c_bigendian=yes
8434 else
8435 ac_cv_c_bigendian=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 fi
8441 if test $ac_cv_c_bigendian = unknown; then
8442 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #include <limits.h>
8446
8447 int
8448 main ()
8449 {
8450 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8451 bogus endian macros
8452 #endif
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_compile "$LINENO"; then :
8459 # It does; now see whether it defined to _BIG_ENDIAN or not.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #include <limits.h>
8463
8464 int
8465 main ()
8466 {
8467 #ifndef _BIG_ENDIAN
8468 not big endian
8469 #endif
8470
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476 ac_cv_c_bigendian=yes
8477 else
8478 ac_cv_c_bigendian=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 if test $ac_cv_c_bigendian = unknown; then
8485 # Compile a test program.
8486 if test "$cross_compiling" = yes; then :
8487 # Try to guess by grepping values from an object file.
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 short int ascii_mm[] =
8491 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8492 short int ascii_ii[] =
8493 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8494 int use_ascii (int i) {
8495 return ascii_mm[i] + ascii_ii[i];
8496 }
8497 short int ebcdic_ii[] =
8498 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8499 short int ebcdic_mm[] =
8500 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8501 int use_ebcdic (int i) {
8502 return ebcdic_mm[i] + ebcdic_ii[i];
8503 }
8504 extern int foo;
8505
8506 int
8507 main ()
8508 {
8509 return use_ascii (foo) == use_ebcdic (foo);
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8516 ac_cv_c_bigendian=yes
8517 fi
8518 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8519 if test "$ac_cv_c_bigendian" = unknown; then
8520 ac_cv_c_bigendian=no
8521 else
8522 # finding both strings is unlikely to happen, but who knows?
8523 ac_cv_c_bigendian=unknown
8524 fi
8525 fi
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 else
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 int
8533 main ()
8534 {
8535
8536 /* Are we little or big endian? From Harbison&Steele. */
8537 union
8538 {
8539 long int l;
8540 char c[sizeof (long int)];
8541 } u;
8542 u.l = 1;
8543 return u.c[sizeof (long int) - 1] == 1;
8544
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_run "$LINENO"; then :
8550 ac_cv_c_bigendian=no
8551 else
8552 ac_cv_c_bigendian=yes
8553 fi
8554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8555 conftest.$ac_objext conftest.beam conftest.$ac_ext
8556 fi
8557
8558 fi
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8561 $as_echo "$ac_cv_c_bigendian" >&6; }
8562 case $ac_cv_c_bigendian in #(
8563 yes)
8564 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8565 ;; #(
8566 no)
8567 ;; #(
8568 universal)
8569
8570 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8571
8572 ;; #(
8573 *)
8574 as_fn_error "unknown endianness
8575 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8576 esac
8577
8578
8579 # ----------------------
8580 # Checks for C++ headers
8581 # ----------------------
8582
8583 ac_ext=cpp
8584 ac_cpp='$CXXCPP $CPPFLAGS'
8585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8589 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8590 if test -z "$CXXCPP"; then
8591 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 # Double quotes because CXXCPP needs to be expanded
8595 for CXXCPP in "$CXX -E" "/lib/cpp"
8596 do
8597 ac_preproc_ok=false
8598 for ac_cxx_preproc_warn_flag in '' yes
8599 do
8600 # Use a header file that comes with gcc, so configuring glibc
8601 # with a fresh cross-compiler works.
8602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8603 # <limits.h> exists even on freestanding compilers.
8604 # On the NeXT, cc -E runs the code through the compiler's parser,
8605 # not just through cpp. "Syntax error" is here to catch this case.
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 #ifdef __STDC__
8609 # include <limits.h>
8610 #else
8611 # include <assert.h>
8612 #endif
8613 Syntax error
8614 _ACEOF
8615 if ac_fn_cxx_try_cpp "$LINENO"; then :
8616
8617 else
8618 # Broken: fails on valid input.
8619 continue
8620 fi
8621 rm -f conftest.err conftest.$ac_ext
8622
8623 # OK, works on sane cases. Now check whether nonexistent headers
8624 # can be detected and how.
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <ac_nonexistent.h>
8628 _ACEOF
8629 if ac_fn_cxx_try_cpp "$LINENO"; then :
8630 # Broken: success on invalid input.
8631 continue
8632 else
8633 # Passes both tests.
8634 ac_preproc_ok=:
8635 break
8636 fi
8637 rm -f conftest.err conftest.$ac_ext
8638
8639 done
8640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8641 rm -f conftest.err conftest.$ac_ext
8642 if $ac_preproc_ok; then :
8643 break
8644 fi
8645
8646 done
8647 ac_cv_prog_CXXCPP=$CXXCPP
8648
8649 fi
8650 CXXCPP=$ac_cv_prog_CXXCPP
8651 else
8652 ac_cv_prog_CXXCPP=$CXXCPP
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8655 $as_echo "$CXXCPP" >&6; }
8656 ac_preproc_ok=false
8657 for ac_cxx_preproc_warn_flag in '' yes
8658 do
8659 # Use a header file that comes with gcc, so configuring glibc
8660 # with a fresh cross-compiler works.
8661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 # <limits.h> exists even on freestanding compilers.
8663 # On the NeXT, cc -E runs the code through the compiler's parser,
8664 # not just through cpp. "Syntax error" is here to catch this case.
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #ifdef __STDC__
8668 # include <limits.h>
8669 #else
8670 # include <assert.h>
8671 #endif
8672 Syntax error
8673 _ACEOF
8674 if ac_fn_cxx_try_cpp "$LINENO"; then :
8675
8676 else
8677 # Broken: fails on valid input.
8678 continue
8679 fi
8680 rm -f conftest.err conftest.$ac_ext
8681
8682 # OK, works on sane cases. Now check whether nonexistent headers
8683 # can be detected and how.
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #include <ac_nonexistent.h>
8687 _ACEOF
8688 if ac_fn_cxx_try_cpp "$LINENO"; then :
8689 # Broken: success on invalid input.
8690 continue
8691 else
8692 # Passes both tests.
8693 ac_preproc_ok=:
8694 break
8695 fi
8696 rm -f conftest.err conftest.$ac_ext
8697
8698 done
8699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8700 rm -f conftest.err conftest.$ac_ext
8701 if $ac_preproc_ok; then :
8702
8703 else
8704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8707 See \`config.log' for more details." >&5
8708 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8709 See \`config.log' for more details." >&2;}; }
8710 fi
8711
8712 ac_ext=c
8713 ac_cpp='$CPP $CPPFLAGS'
8714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717
8718
8719 ac_ext=cpp
8720 ac_cpp='$CXXCPP $CPPFLAGS'
8721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8724
8725
8726
8727
8728 for ac_header in unordered_map
8729 do :
8730 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8731 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_UNORDERED_MAP 1
8734 _ACEOF
8735
8736 fi
8737 done
8738
8739 for ac_header in tr1/unordered_map
8740 do :
8741 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8742 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8743 cat >>confdefs.h <<_ACEOF
8744 #define HAVE_TR1_UNORDERED_MAP 1
8745 _ACEOF
8746
8747 fi
8748 done
8749
8750 for ac_header in ext/hash_map
8751 do :
8752 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8753 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8754 cat >>confdefs.h <<_ACEOF
8755 #define HAVE_EXT_HASH_MAP 1
8756 _ACEOF
8757
8758 fi
8759 done
8760
8761
8762 ac_ext=c
8763 ac_cpp='$CPP $CPPFLAGS'
8764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8767
8768
8769 # --------
8770 # UNSORTED
8771 # --------
8772
8773
8774 # These libraries may be used by collect2.
8775 # We may need a special search path to get them linked.
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8777 $as_echo_n "checking for collect2 libraries... " >&6; }
8778 if test "${gcc_cv_collect2_libs+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 save_LIBS="$LIBS"
8782 for libs in '' -lld -lmld \
8783 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8784 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8785 do
8786 LIBS="$libs"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char ldopen ();
8797 int
8798 main ()
8799 {
8800 return ldopen ();
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 gcc_cv_collect2_libs="$libs"; break
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 done
8811 LIBS="$save_LIBS"
8812 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8815 $as_echo "$gcc_cv_collect2_libs" >&6; }
8816 case $gcc_cv_collect2_libs in
8817 "none required") ;;
8818 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8819 esac
8820
8821
8822 # When building Ada code on Alpha, we need exc_resume which is usually in
8823 # -lexc. So test for it.
8824 save_LIBS="$LIBS"
8825 LIBS=
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8827 $as_echo_n "checking for library containing exc_resume... " >&6; }
8828 if test "${ac_cv_search_exc_resume+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 ac_func_search_save_LIBS=$LIBS
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834
8835 /* Override any GCC internal prototype to avoid an error.
8836 Use char because int might match the return type of a GCC
8837 builtin and then its argument prototype would still apply. */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 char exc_resume ();
8842 int
8843 main ()
8844 {
8845 return exc_resume ();
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 for ac_lib in '' exc; do
8851 if test -z "$ac_lib"; then
8852 ac_res="none required"
8853 else
8854 ac_res=-l$ac_lib
8855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8856 fi
8857 if ac_fn_c_try_link "$LINENO"; then :
8858 ac_cv_search_exc_resume=$ac_res
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext
8862 if test "${ac_cv_search_exc_resume+set}" = set; then :
8863 break
8864 fi
8865 done
8866 if test "${ac_cv_search_exc_resume+set}" = set; then :
8867
8868 else
8869 ac_cv_search_exc_resume=no
8870 fi
8871 rm conftest.$ac_ext
8872 LIBS=$ac_func_search_save_LIBS
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8875 $as_echo "$ac_cv_search_exc_resume" >&6; }
8876 ac_res=$ac_cv_search_exc_resume
8877 if test "$ac_res" != no; then :
8878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8879
8880 fi
8881
8882 GNAT_LIBEXC="$LIBS"
8883 LIBS="$save_LIBS"
8884
8885
8886 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8887 save_LIBS="$LIBS"
8888 LIBS=
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8890 $as_echo_n "checking for library containing kstat_open... " >&6; }
8891 if test "${ac_cv_search_kstat_open+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 ac_func_search_save_LIBS=$LIBS
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901 #ifdef __cplusplus
8902 extern "C"
8903 #endif
8904 char kstat_open ();
8905 int
8906 main ()
8907 {
8908 return kstat_open ();
8909 ;
8910 return 0;
8911 }
8912 _ACEOF
8913 for ac_lib in '' kstat; do
8914 if test -z "$ac_lib"; then
8915 ac_res="none required"
8916 else
8917 ac_res=-l$ac_lib
8918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8919 fi
8920 if ac_fn_c_try_link "$LINENO"; then :
8921 ac_cv_search_kstat_open=$ac_res
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext
8925 if test "${ac_cv_search_kstat_open+set}" = set; then :
8926 break
8927 fi
8928 done
8929 if test "${ac_cv_search_kstat_open+set}" = set; then :
8930
8931 else
8932 ac_cv_search_kstat_open=no
8933 fi
8934 rm conftest.$ac_ext
8935 LIBS=$ac_func_search_save_LIBS
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8938 $as_echo "$ac_cv_search_kstat_open" >&6; }
8939 ac_res=$ac_cv_search_kstat_open
8940 if test "$ac_res" != no; then :
8941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8942
8943 fi
8944
8945 EXTRA_GCC_LIBS="$LIBS"
8946 LIBS="$save_LIBS"
8947
8948
8949 # Some systems put ldexp and frexp in libm instead of libc; assume
8950 # they're both in the same place. jcf-dump needs them.
8951 save_LIBS="$LIBS"
8952 LIBS=
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8954 $as_echo_n "checking for library containing ldexp... " >&6; }
8955 if test "${ac_cv_search_ldexp+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 ac_func_search_save_LIBS=$LIBS
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 char ldexp ();
8969 int
8970 main ()
8971 {
8972 return ldexp ();
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 for ac_lib in '' m; do
8978 if test -z "$ac_lib"; then
8979 ac_res="none required"
8980 else
8981 ac_res=-l$ac_lib
8982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8983 fi
8984 if ac_fn_c_try_link "$LINENO"; then :
8985 ac_cv_search_ldexp=$ac_res
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext
8989 if test "${ac_cv_search_ldexp+set}" = set; then :
8990 break
8991 fi
8992 done
8993 if test "${ac_cv_search_ldexp+set}" = set; then :
8994
8995 else
8996 ac_cv_search_ldexp=no
8997 fi
8998 rm conftest.$ac_ext
8999 LIBS=$ac_func_search_save_LIBS
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9002 $as_echo "$ac_cv_search_ldexp" >&6; }
9003 ac_res=$ac_cv_search_ldexp
9004 if test "$ac_res" != no; then :
9005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9006
9007 fi
9008
9009 LDEXP_LIB="$LIBS"
9010 LIBS="$save_LIBS"
9011
9012
9013 # Use <inttypes.h> only if it exists,
9014 # doesn't clash with <sys/types.h>, and declares intmax_t.
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9016 $as_echo_n "checking for inttypes.h... " >&6; }
9017 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 #include <inttypes.h>
9024 int
9025 main ()
9026 {
9027 intmax_t i = -1;
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_compile "$LINENO"; then :
9033 gcc_cv_header_inttypes_h=yes
9034 else
9035 gcc_cv_header_inttypes_h=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 fi
9039
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9041 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9042 if test $gcc_cv_header_inttypes_h = yes; then
9043
9044 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9045
9046 fi
9047
9048
9049
9050 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9051 sysconf strsignal getrusage nl_langinfo \
9052 gettimeofday mbstowcs wcswidth mmap setlocale \
9053 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
9054 do :
9055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9057 eval as_val=\$$as_ac_var
9058 if test "x$as_val" = x""yes; then :
9059 cat >>confdefs.h <<_ACEOF
9060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9061 _ACEOF
9062
9063 fi
9064 done
9065
9066
9067 if test x$ac_cv_func_mbstowcs = xyes; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9069 $as_echo_n "checking whether mbstowcs works... " >&6; }
9070 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test "$cross_compiling" = yes; then :
9074 gcc_cv_func_mbstowcs_works=yes
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #include <stdlib.h>
9079 int main()
9080 {
9081 mbstowcs(0, "", 0);
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_run "$LINENO"; then :
9086 gcc_cv_func_mbstowcs_works=yes
9087 else
9088 gcc_cv_func_mbstowcs_works=no
9089 fi
9090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9091 conftest.$ac_objext conftest.beam conftest.$ac_ext
9092 fi
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9096 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9097 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9098
9099 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9100
9101 fi
9102 fi
9103
9104 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9105 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9106
9107 else
9108
9109 cat >>confdefs.h <<_ACEOF
9110 #define ssize_t int
9111 _ACEOF
9112
9113 fi
9114
9115 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9116 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9117
9118 else
9119
9120 cat >>confdefs.h <<_ACEOF
9121 #define caddr_t char *
9122 _ACEOF
9123
9124 fi
9125
9126
9127
9128 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9129 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9130 gcc_header_sys_mman_h=yes
9131 else
9132 gcc_header_sys_mman_h=no
9133 fi
9134
9135 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9136 if test "x$ac_cv_func_mmap" = x""yes; then :
9137 gcc_func_mmap=yes
9138 else
9139 gcc_func_mmap=no
9140 fi
9141
9142 if test "$gcc_header_sys_mman_h" != yes \
9143 || test "$gcc_func_mmap" != yes; then
9144 gcc_cv_func_mmap_file=no
9145 gcc_cv_func_mmap_dev_zero=no
9146 gcc_cv_func_mmap_anon=no
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9149 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9150 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 # Add a system to this blacklist if
9154 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9155 # memory area containing the same data that you'd get if you applied
9156 # read() to the same fd. The only system known to have a problem here
9157 # is VMS, where text files have record structure.
9158 case "$host_os" in
9159 *vms* | ultrix*)
9160 gcc_cv_func_mmap_file=no ;;
9161 *)
9162 gcc_cv_func_mmap_file=yes;;
9163 esac
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9166 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9168 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9169 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 # Add a system to this blacklist if it has mmap() but /dev/zero
9173 # does not exist, or if mmapping /dev/zero does not give anonymous
9174 # zeroed pages with both the following properties:
9175 # 1. If you map N consecutive pages in with one call, and then
9176 # unmap any subset of those pages, the pages that were not
9177 # explicitly unmapped remain accessible.
9178 # 2. If you map two adjacent blocks of memory and then unmap them
9179 # both at once, they must both go away.
9180 # Systems known to be in this category are Windows (all variants),
9181 # VMS, and Darwin.
9182 case "$host_os" in
9183 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9184 gcc_cv_func_mmap_dev_zero=no ;;
9185 *)
9186 gcc_cv_func_mmap_dev_zero=yes;;
9187 esac
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9190 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9191
9192 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9194 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9195 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 #include <sys/mman.h>
9202 #include <unistd.h>
9203
9204 #ifndef MAP_ANONYMOUS
9205 #define MAP_ANONYMOUS MAP_ANON
9206 #endif
9207
9208 int
9209 main ()
9210 {
9211 int n = MAP_ANONYMOUS;
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"; then :
9217 gcc_cv_decl_map_anon=yes
9218 else
9219 gcc_cv_decl_map_anon=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9224 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9225
9226 if test $gcc_cv_decl_map_anon = no; then
9227 gcc_cv_func_mmap_anon=no
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9230 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9231 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9235 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9236 # doesn't give anonymous zeroed pages with the same properties listed
9237 # above for use of /dev/zero.
9238 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9239 case "$host_os" in
9240 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9241 gcc_cv_func_mmap_anon=no ;;
9242 *)
9243 gcc_cv_func_mmap_anon=yes;;
9244 esac
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9247 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9248 fi
9249 fi
9250
9251 if test $gcc_cv_func_mmap_file = yes; then
9252
9253 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9254
9255 fi
9256 if test $gcc_cv_func_mmap_dev_zero = yes; then
9257
9258 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9259
9260 fi
9261 if test $gcc_cv_func_mmap_anon = yes; then
9262
9263 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9264
9265 fi
9266
9267
9268 case "${host}" in
9269 *-*-*vms*)
9270 # Under VMS, vfork works very differently than on Unix. The standard test
9271 # won't work, and it isn't easily adaptable. It makes more sense to
9272 # just force it.
9273 ac_cv_func_vfork_works=yes
9274 ;;
9275 esac
9276 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9277 if test "x$ac_cv_type_pid_t" = x""yes; then :
9278
9279 else
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define pid_t int
9283 _ACEOF
9284
9285 fi
9286
9287 for ac_header in vfork.h
9288 do :
9289 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9290 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_VFORK_H 1
9293 _ACEOF
9294
9295 fi
9296 done
9297
9298 for ac_func in fork vfork
9299 do :
9300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9302 eval as_val=\$$as_ac_var
9303 if test "x$as_val" = x""yes; then :
9304 cat >>confdefs.h <<_ACEOF
9305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9306 _ACEOF
9307
9308 fi
9309 done
9310
9311 if test "x$ac_cv_func_fork" = xyes; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9313 $as_echo_n "checking for working fork... " >&6; }
9314 if test "${ac_cv_func_fork_works+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 if test "$cross_compiling" = yes; then :
9318 ac_cv_func_fork_works=cross
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 int
9324 main ()
9325 {
9326
9327 /* By Ruediger Kuhlmann. */
9328 return fork () < 0;
9329
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 if ac_fn_c_try_run "$LINENO"; then :
9335 ac_cv_func_fork_works=yes
9336 else
9337 ac_cv_func_fork_works=no
9338 fi
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9340 conftest.$ac_objext conftest.beam conftest.$ac_ext
9341 fi
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9345 $as_echo "$ac_cv_func_fork_works" >&6; }
9346
9347 else
9348 ac_cv_func_fork_works=$ac_cv_func_fork
9349 fi
9350 if test "x$ac_cv_func_fork_works" = xcross; then
9351 case $host in
9352 *-*-amigaos* | *-*-msdosdjgpp*)
9353 # Override, as these systems have only a dummy fork() stub
9354 ac_cv_func_fork_works=no
9355 ;;
9356 *)
9357 ac_cv_func_fork_works=yes
9358 ;;
9359 esac
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9361 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9362 fi
9363 ac_cv_func_vfork_works=$ac_cv_func_vfork
9364 if test "x$ac_cv_func_vfork" = xyes; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9366 $as_echo_n "checking for working vfork... " >&6; }
9367 if test "${ac_cv_func_vfork_works+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 if test "$cross_compiling" = yes; then :
9371 ac_cv_func_vfork_works=cross
9372 else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 /* Thanks to Paul Eggert for this test. */
9376 $ac_includes_default
9377 #include <sys/wait.h>
9378 #ifdef HAVE_VFORK_H
9379 # include <vfork.h>
9380 #endif
9381 /* On some sparc systems, changes by the child to local and incoming
9382 argument registers are propagated back to the parent. The compiler
9383 is told about this with #include <vfork.h>, but some compilers
9384 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9385 static variable whose address is put into a register that is
9386 clobbered by the vfork. */
9387 static void
9388 #ifdef __cplusplus
9389 sparc_address_test (int arg)
9390 # else
9391 sparc_address_test (arg) int arg;
9392 #endif
9393 {
9394 static pid_t child;
9395 if (!child) {
9396 child = vfork ();
9397 if (child < 0) {
9398 perror ("vfork");
9399 _exit(2);
9400 }
9401 if (!child) {
9402 arg = getpid();
9403 write(-1, "", 0);
9404 _exit (arg);
9405 }
9406 }
9407 }
9408
9409 int
9410 main ()
9411 {
9412 pid_t parent = getpid ();
9413 pid_t child;
9414
9415 sparc_address_test (0);
9416
9417 child = vfork ();
9418
9419 if (child == 0) {
9420 /* Here is another test for sparc vfork register problems. This
9421 test uses lots of local variables, at least as many local
9422 variables as main has allocated so far including compiler
9423 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9424 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9425 reuse the register of parent for one of the local variables,
9426 since it will think that parent can't possibly be used any more
9427 in this routine. Assigning to the local variable will thus
9428 munge parent in the parent process. */
9429 pid_t
9430 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9431 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9432 /* Convince the compiler that p..p7 are live; otherwise, it might
9433 use the same hardware register for all 8 local variables. */
9434 if (p != p1 || p != p2 || p != p3 || p != p4
9435 || p != p5 || p != p6 || p != p7)
9436 _exit(1);
9437
9438 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9439 from child file descriptors. If the child closes a descriptor
9440 before it execs or exits, this munges the parent's descriptor
9441 as well. Test for this by closing stdout in the child. */
9442 _exit(close(fileno(stdout)) != 0);
9443 } else {
9444 int status;
9445 struct stat st;
9446
9447 while (wait(&status) != child)
9448 ;
9449 return (
9450 /* Was there some problem with vforking? */
9451 child < 0
9452
9453 /* Did the child fail? (This shouldn't happen.) */
9454 || status
9455
9456 /* Did the vfork/compiler bug occur? */
9457 || parent != getpid()
9458
9459 /* Did the file descriptor bug occur? */
9460 || fstat(fileno(stdout), &st) != 0
9461 );
9462 }
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_run "$LINENO"; then :
9466 ac_cv_func_vfork_works=yes
9467 else
9468 ac_cv_func_vfork_works=no
9469 fi
9470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9471 conftest.$ac_objext conftest.beam conftest.$ac_ext
9472 fi
9473
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9476 $as_echo "$ac_cv_func_vfork_works" >&6; }
9477
9478 fi;
9479 if test "x$ac_cv_func_fork_works" = xcross; then
9480 ac_cv_func_vfork_works=$ac_cv_func_vfork
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9482 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9483 fi
9484
9485 if test "x$ac_cv_func_vfork_works" = xyes; then
9486
9487 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9488
9489 else
9490
9491 $as_echo "#define vfork fork" >>confdefs.h
9492
9493 fi
9494 if test "x$ac_cv_func_fork_works" = xyes; then
9495
9496 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9497
9498 fi
9499
9500
9501 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9502 # iconv() prototype.
9503 ac_ext=cpp
9504 ac_cpp='$CXXCPP $CPPFLAGS'
9505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9508
9509
9510 if test "X$prefix" = "XNONE"; then
9511 acl_final_prefix="$ac_default_prefix"
9512 else
9513 acl_final_prefix="$prefix"
9514 fi
9515 if test "X$exec_prefix" = "XNONE"; then
9516 acl_final_exec_prefix='${prefix}'
9517 else
9518 acl_final_exec_prefix="$exec_prefix"
9519 fi
9520 acl_save_prefix="$prefix"
9521 prefix="$acl_final_prefix"
9522 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9523 prefix="$acl_save_prefix"
9524
9525
9526 # Check whether --with-gnu-ld was given.
9527 if test "${with_gnu_ld+set}" = set; then :
9528 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9529 else
9530 with_gnu_ld=no
9531 fi
9532
9533 # Prepare PATH_SEPARATOR.
9534 # The user is always right.
9535 if test "${PATH_SEPARATOR+set}" != set; then
9536 echo "#! /bin/sh" >conf$$.sh
9537 echo "exit 0" >>conf$$.sh
9538 chmod +x conf$$.sh
9539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9540 PATH_SEPARATOR=';'
9541 else
9542 PATH_SEPARATOR=:
9543 fi
9544 rm -f conf$$.sh
9545 fi
9546 ac_prog=ld
9547 if test "$GCC" = yes; then
9548 # Check if gcc -print-prog-name=ld gives a path.
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9550 $as_echo_n "checking for ld used by GCC... " >&6; }
9551 case $host in
9552 *-*-mingw*)
9553 # gcc leaves a trailing carriage return which upsets mingw
9554 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9555 *)
9556 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9557 esac
9558 case $ac_prog in
9559 # Accept absolute paths.
9560 [\\/]* | [A-Za-z]:[\\/]*)
9561 re_direlt='/[^/][^/]*/\.\./'
9562 # Canonicalize the path of ld
9563 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9564 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9565 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9566 done
9567 test -z "$LD" && LD="$ac_prog"
9568 ;;
9569 "")
9570 # If it fails, then pretend we aren't using GCC.
9571 ac_prog=ld
9572 ;;
9573 *)
9574 # If it is relative, then search for the first ld in PATH.
9575 with_gnu_ld=unknown
9576 ;;
9577 esac
9578 elif test "$with_gnu_ld" = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9580 $as_echo_n "checking for GNU ld... " >&6; }
9581 else
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9583 $as_echo_n "checking for non-GNU ld... " >&6; }
9584 fi
9585 if test "${acl_cv_path_LD+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 if test -z "$LD"; then
9589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9590 for ac_dir in $PATH; do
9591 test -z "$ac_dir" && ac_dir=.
9592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9593 acl_cv_path_LD="$ac_dir/$ac_prog"
9594 # Check to see if the program is GNU ld. I'd rather use --version,
9595 # but apparently some GNU ld's only accept -v.
9596 # Break only if it was the GNU/non-GNU ld that we prefer.
9597 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9598 test "$with_gnu_ld" != no && break
9599 else
9600 test "$with_gnu_ld" != yes && break
9601 fi
9602 fi
9603 done
9604 IFS="$ac_save_ifs"
9605 else
9606 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9607 fi
9608 fi
9609
9610 LD="$acl_cv_path_LD"
9611 if test -n "$LD"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9613 $as_echo "$LD" >&6; }
9614 else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9617 fi
9618 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9621 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9625 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9626 acl_cv_prog_gnu_ld=yes
9627 else
9628 acl_cv_prog_gnu_ld=no
9629 fi
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9632 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9633 with_gnu_ld=$acl_cv_prog_gnu_ld
9634
9635
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9638 $as_echo_n "checking for shared library run path origin... " >&6; }
9639 if test "${acl_cv_rpath+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642
9643 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9644 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9645 . ./conftest.sh
9646 rm -f ./conftest.sh
9647 acl_cv_rpath=done
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9651 $as_echo "$acl_cv_rpath" >&6; }
9652 wl="$acl_cv_wl"
9653 libext="$acl_cv_libext"
9654 shlibext="$acl_cv_shlibext"
9655 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9656 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9657 hardcode_direct="$acl_cv_hardcode_direct"
9658 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9659 # Check whether --enable-rpath was given.
9660 if test "${enable_rpath+set}" = set; then :
9661 enableval=$enable_rpath; :
9662 else
9663 enable_rpath=yes
9664 fi
9665
9666
9667
9668
9669
9670
9671
9672
9673 use_additional=yes
9674
9675 acl_save_prefix="$prefix"
9676 prefix="$acl_final_prefix"
9677 acl_save_exec_prefix="$exec_prefix"
9678 exec_prefix="$acl_final_exec_prefix"
9679
9680 eval additional_includedir=\"$includedir\"
9681 eval additional_libdir=\"$libdir\"
9682
9683 exec_prefix="$acl_save_exec_prefix"
9684 prefix="$acl_save_prefix"
9685
9686
9687 # Check whether --with-libiconv-prefix was given.
9688 if test "${with_libiconv_prefix+set}" = set; then :
9689 withval=$with_libiconv_prefix;
9690 if test "X$withval" = "Xno"; then
9691 use_additional=no
9692 else
9693 if test "X$withval" = "X"; then
9694
9695 acl_save_prefix="$prefix"
9696 prefix="$acl_final_prefix"
9697 acl_save_exec_prefix="$exec_prefix"
9698 exec_prefix="$acl_final_exec_prefix"
9699
9700 eval additional_includedir=\"$includedir\"
9701 eval additional_libdir=\"$libdir\"
9702
9703 exec_prefix="$acl_save_exec_prefix"
9704 prefix="$acl_save_prefix"
9705
9706 else
9707 additional_includedir="$withval/include"
9708 additional_libdir="$withval/lib"
9709 fi
9710 fi
9711
9712 fi
9713
9714 LIBICONV=
9715 LTLIBICONV=
9716 INCICONV=
9717 rpathdirs=
9718 ltrpathdirs=
9719 names_already_handled=
9720 names_next_round='iconv '
9721 while test -n "$names_next_round"; do
9722 names_this_round="$names_next_round"
9723 names_next_round=
9724 for name in $names_this_round; do
9725 already_handled=
9726 for n in $names_already_handled; do
9727 if test "$n" = "$name"; then
9728 already_handled=yes
9729 break
9730 fi
9731 done
9732 if test -z "$already_handled"; then
9733 names_already_handled="$names_already_handled $name"
9734 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9735 eval value=\"\$HAVE_LIB$uppername\"
9736 if test -n "$value"; then
9737 if test "$value" = yes; then
9738 eval value=\"\$LIB$uppername\"
9739 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9740 eval value=\"\$LTLIB$uppername\"
9741 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9742 else
9743 :
9744 fi
9745 else
9746 found_dir=
9747 found_la=
9748 found_so=
9749 found_a=
9750 if test $use_additional = yes; then
9751 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9752 found_dir="$additional_libdir"
9753 found_so="$additional_libdir/lib$name.$shlibext"
9754 if test -f "$additional_libdir/lib$name.la"; then
9755 found_la="$additional_libdir/lib$name.la"
9756 fi
9757 else
9758 if test -f "$additional_libdir/lib$name.$libext"; then
9759 found_dir="$additional_libdir"
9760 found_a="$additional_libdir/lib$name.$libext"
9761 if test -f "$additional_libdir/lib$name.la"; then
9762 found_la="$additional_libdir/lib$name.la"
9763 fi
9764 fi
9765 fi
9766 fi
9767 if test "X$found_dir" = "X"; then
9768 for x in $LDFLAGS $LTLIBICONV; do
9769
9770 acl_save_prefix="$prefix"
9771 prefix="$acl_final_prefix"
9772 acl_save_exec_prefix="$exec_prefix"
9773 exec_prefix="$acl_final_exec_prefix"
9774 eval x=\"$x\"
9775 exec_prefix="$acl_save_exec_prefix"
9776 prefix="$acl_save_prefix"
9777
9778 case "$x" in
9779 -L*)
9780 dir=`echo "X$x" | sed -e 's/^X-L//'`
9781 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9782 found_dir="$dir"
9783 found_so="$dir/lib$name.$shlibext"
9784 if test -f "$dir/lib$name.la"; then
9785 found_la="$dir/lib$name.la"
9786 fi
9787 else
9788 if test -f "$dir/lib$name.$libext"; then
9789 found_dir="$dir"
9790 found_a="$dir/lib$name.$libext"
9791 if test -f "$dir/lib$name.la"; then
9792 found_la="$dir/lib$name.la"
9793 fi
9794 fi
9795 fi
9796 ;;
9797 esac
9798 if test "X$found_dir" != "X"; then
9799 break
9800 fi
9801 done
9802 fi
9803 if test "X$found_dir" != "X"; then
9804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9805 if test "X$found_so" != "X"; then
9806 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9807 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9808 else
9809 haveit=
9810 for x in $ltrpathdirs; do
9811 if test "X$x" = "X$found_dir"; then
9812 haveit=yes
9813 break
9814 fi
9815 done
9816 if test -z "$haveit"; then
9817 ltrpathdirs="$ltrpathdirs $found_dir"
9818 fi
9819 if test "$hardcode_direct" = yes; then
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9821 else
9822 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824 haveit=
9825 for x in $rpathdirs; do
9826 if test "X$x" = "X$found_dir"; then
9827 haveit=yes
9828 break
9829 fi
9830 done
9831 if test -z "$haveit"; then
9832 rpathdirs="$rpathdirs $found_dir"
9833 fi
9834 else
9835 haveit=
9836 for x in $LDFLAGS $LIBICONV; do
9837
9838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9842 eval x=\"$x\"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
9845
9846 if test "X$x" = "X-L$found_dir"; then
9847 haveit=yes
9848 break
9849 fi
9850 done
9851 if test -z "$haveit"; then
9852 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9853 fi
9854 if test "$hardcode_minus_L" != no; then
9855 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9856 else
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9858 fi
9859 fi
9860 fi
9861 fi
9862 else
9863 if test "X$found_a" != "X"; then
9864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9865 else
9866 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9867 fi
9868 fi
9869 additional_includedir=
9870 case "$found_dir" in
9871 */lib | */lib/)
9872 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9873 additional_includedir="$basedir/include"
9874 ;;
9875 esac
9876 if test "X$additional_includedir" != "X"; then
9877 if test "X$additional_includedir" != "X/usr/include"; then
9878 haveit=
9879 if test "X$additional_includedir" = "X/usr/local/include"; then
9880 if test -n "$GCC"; then
9881 case $host_os in
9882 linux*) haveit=yes;;
9883 esac
9884 fi
9885 fi
9886 if test -z "$haveit"; then
9887 for x in $CPPFLAGS $INCICONV; do
9888
9889 acl_save_prefix="$prefix"
9890 prefix="$acl_final_prefix"
9891 acl_save_exec_prefix="$exec_prefix"
9892 exec_prefix="$acl_final_exec_prefix"
9893 eval x=\"$x\"
9894 exec_prefix="$acl_save_exec_prefix"
9895 prefix="$acl_save_prefix"
9896
9897 if test "X$x" = "X-I$additional_includedir"; then
9898 haveit=yes
9899 break
9900 fi
9901 done
9902 if test -z "$haveit"; then
9903 if test -d "$additional_includedir"; then
9904 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9905 fi
9906 fi
9907 fi
9908 fi
9909 fi
9910 if test -n "$found_la"; then
9911 save_libdir="$libdir"
9912 case "$found_la" in
9913 */* | *\\*) . "$found_la" ;;
9914 *) . "./$found_la" ;;
9915 esac
9916 libdir="$save_libdir"
9917 for dep in $dependency_libs; do
9918 case "$dep" in
9919 -L*)
9920 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9921 if test "X$additional_libdir" != "X/usr/lib"; then
9922 haveit=
9923 if test "X$additional_libdir" = "X/usr/local/lib"; then
9924 if test -n "$GCC"; then
9925 case $host_os in
9926 linux*) haveit=yes;;
9927 esac
9928 fi
9929 fi
9930 if test -z "$haveit"; then
9931 haveit=
9932 for x in $LDFLAGS $LIBICONV; do
9933
9934 acl_save_prefix="$prefix"
9935 prefix="$acl_final_prefix"
9936 acl_save_exec_prefix="$exec_prefix"
9937 exec_prefix="$acl_final_exec_prefix"
9938 eval x=\"$x\"
9939 exec_prefix="$acl_save_exec_prefix"
9940 prefix="$acl_save_prefix"
9941
9942 if test "X$x" = "X-L$additional_libdir"; then
9943 haveit=yes
9944 break
9945 fi
9946 done
9947 if test -z "$haveit"; then
9948 if test -d "$additional_libdir"; then
9949 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9950 fi
9951 fi
9952 haveit=
9953 for x in $LDFLAGS $LTLIBICONV; do
9954
9955 acl_save_prefix="$prefix"
9956 prefix="$acl_final_prefix"
9957 acl_save_exec_prefix="$exec_prefix"
9958 exec_prefix="$acl_final_exec_prefix"
9959 eval x=\"$x\"
9960 exec_prefix="$acl_save_exec_prefix"
9961 prefix="$acl_save_prefix"
9962
9963 if test "X$x" = "X-L$additional_libdir"; then
9964 haveit=yes
9965 break
9966 fi
9967 done
9968 if test -z "$haveit"; then
9969 if test -d "$additional_libdir"; then
9970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9971 fi
9972 fi
9973 fi
9974 fi
9975 ;;
9976 -R*)
9977 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9978 if test "$enable_rpath" != no; then
9979 haveit=
9980 for x in $rpathdirs; do
9981 if test "X$x" = "X$dir"; then
9982 haveit=yes
9983 break
9984 fi
9985 done
9986 if test -z "$haveit"; then
9987 rpathdirs="$rpathdirs $dir"
9988 fi
9989 haveit=
9990 for x in $ltrpathdirs; do
9991 if test "X$x" = "X$dir"; then
9992 haveit=yes
9993 break
9994 fi
9995 done
9996 if test -z "$haveit"; then
9997 ltrpathdirs="$ltrpathdirs $dir"
9998 fi
9999 fi
10000 ;;
10001 -l*)
10002 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10003 ;;
10004 *.la)
10005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10006 ;;
10007 *)
10008 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10010 ;;
10011 esac
10012 done
10013 fi
10014 else
10015 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10017 fi
10018 fi
10019 fi
10020 done
10021 done
10022 if test "X$rpathdirs" != "X"; then
10023 if test -n "$hardcode_libdir_separator"; then
10024 alldirs=
10025 for found_dir in $rpathdirs; do
10026 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10027 done
10028 acl_save_libdir="$libdir"
10029 libdir="$alldirs"
10030 eval flag=\"$hardcode_libdir_flag_spec\"
10031 libdir="$acl_save_libdir"
10032 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10033 else
10034 for found_dir in $rpathdirs; do
10035 acl_save_libdir="$libdir"
10036 libdir="$found_dir"
10037 eval flag=\"$hardcode_libdir_flag_spec\"
10038 libdir="$acl_save_libdir"
10039 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10040 done
10041 fi
10042 fi
10043 if test "X$ltrpathdirs" != "X"; then
10044 for found_dir in $ltrpathdirs; do
10045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10046 done
10047 fi
10048
10049
10050
10051
10052
10053
10054
10055 am_save_CPPFLAGS="$CPPFLAGS"
10056
10057 for element in $INCICONV; do
10058 haveit=
10059 for x in $CPPFLAGS; do
10060
10061 acl_save_prefix="$prefix"
10062 prefix="$acl_final_prefix"
10063 acl_save_exec_prefix="$exec_prefix"
10064 exec_prefix="$acl_final_exec_prefix"
10065 eval x=\"$x\"
10066 exec_prefix="$acl_save_exec_prefix"
10067 prefix="$acl_save_prefix"
10068
10069 if test "X$x" = "X$element"; then
10070 haveit=yes
10071 break
10072 fi
10073 done
10074 if test -z "$haveit"; then
10075 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10076 fi
10077 done
10078
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10081 $as_echo_n "checking for iconv... " >&6; }
10082 if test "${am_cv_func_iconv+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085
10086 am_cv_func_iconv="no, consider installing GNU libiconv"
10087 am_cv_lib_iconv=no
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 #include <stdlib.h>
10091 #include <iconv.h>
10092 int
10093 main ()
10094 {
10095 iconv_t cd = iconv_open("","");
10096 iconv(cd,NULL,NULL,NULL,NULL);
10097 iconv_close(cd);
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 if ac_fn_cxx_try_link "$LINENO"; then :
10103 am_cv_func_iconv=yes
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 if test "$am_cv_func_iconv" != yes; then
10108 am_save_LIBS="$LIBS"
10109 LIBS="$LIBS $LIBICONV"
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112 #include <stdlib.h>
10113 #include <iconv.h>
10114 int
10115 main ()
10116 {
10117 iconv_t cd = iconv_open("","");
10118 iconv(cd,NULL,NULL,NULL,NULL);
10119 iconv_close(cd);
10120 ;
10121 return 0;
10122 }
10123 _ACEOF
10124 if ac_fn_cxx_try_link "$LINENO"; then :
10125 am_cv_lib_iconv=yes
10126 am_cv_func_iconv=yes
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS="$am_save_LIBS"
10131 fi
10132
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10135 $as_echo "$am_cv_func_iconv" >&6; }
10136 if test "$am_cv_func_iconv" = yes; then
10137
10138 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10139
10140 fi
10141 if test "$am_cv_lib_iconv" = yes; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10143 $as_echo_n "checking how to link with libiconv... " >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10145 $as_echo "$LIBICONV" >&6; }
10146 else
10147 CPPFLAGS="$am_save_CPPFLAGS"
10148 LIBICONV=
10149 LTLIBICONV=
10150 fi
10151
10152
10153
10154 if test "$am_cv_func_iconv" = yes; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10156 $as_echo_n "checking for iconv declaration... " >&6; }
10157 if test "${am_cv_proto_iconv+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163
10164 #include <stdlib.h>
10165 #include <iconv.h>
10166 extern
10167 #ifdef __cplusplus
10168 "C"
10169 #endif
10170 #if defined(__STDC__) || defined(__cplusplus)
10171 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10172 #else
10173 size_t iconv();
10174 #endif
10175
10176 int
10177 main ()
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_cxx_try_compile "$LINENO"; then :
10185 am_cv_proto_iconv_arg1=""
10186 else
10187 am_cv_proto_iconv_arg1="const"
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 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);"
10191 fi
10192
10193 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10195 }$am_cv_proto_iconv" >&5
10196 $as_echo "${ac_t:-
10197 }$am_cv_proto_iconv" >&6; }
10198
10199 cat >>confdefs.h <<_ACEOF
10200 #define ICONV_CONST $am_cv_proto_iconv_arg1
10201 _ACEOF
10202
10203 fi
10204
10205 ac_ext=c
10206 ac_cpp='$CPP $CPPFLAGS'
10207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10210
10211
10212 # Until we have in-tree GNU iconv:
10213 LIBICONV_DEP=
10214
10215
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10218 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10219 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <locale.h>
10225 int
10226 main ()
10227 {
10228 return LC_MESSAGES
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_link "$LINENO"; then :
10234 am_cv_val_LC_MESSAGES=yes
10235 else
10236 am_cv_val_LC_MESSAGES=no
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10242 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10243 if test $am_cv_val_LC_MESSAGES = yes; then
10244
10245 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10246
10247 fi
10248
10249
10250
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10252 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10253 if test "${am_cv_langinfo_codeset+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <langinfo.h>
10259 int
10260 main ()
10261 {
10262 char* cs = nl_langinfo(CODESET);
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 am_cv_langinfo_codeset=yes
10269 else
10270 am_cv_langinfo_codeset=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10277 $as_echo "$am_cv_langinfo_codeset" >&6; }
10278 if test $am_cv_langinfo_codeset = yes; then
10279
10280 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10281
10282 fi
10283
10284
10285 # We will need to find libiberty.h and ansidecl.h
10286 saved_CFLAGS="$CFLAGS"
10287 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10288 saved_CXXFLAGS="$CXXFLAGS"
10289 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10290 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10291 strsignal strstr stpcpy strverscmp \
10292 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10293 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10294 do
10295 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10297 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10298 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 #undef $ac_tr_decl
10304 #define $ac_tr_decl 1
10305
10306 #include "ansidecl.h"
10307 #include "system.h"
10308
10309 int
10310 main ()
10311 {
10312 #ifndef $ac_func
10313 char *(*pfn) = (char *(*)) $ac_func ;
10314 #endif
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320 eval "gcc_cv_have_decl_$ac_func=yes"
10321 else
10322 eval "gcc_cv_have_decl_$ac_func=no"
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 fi
10326
10327 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10330 #define $ac_tr_decl 1
10331 _ACEOF
10332
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10336 #define $ac_tr_decl 0
10337 _ACEOF
10338
10339 fi
10340
10341 done
10342
10343
10344 for ac_func in getrlimit setrlimit getrusage
10345 do
10346 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10348 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10349 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #undef $ac_tr_decl
10355 #define $ac_tr_decl 1
10356
10357 #include "ansidecl.h"
10358 #include "system.h"
10359 #ifdef HAVE_SYS_RESOURCE_H
10360 #include <sys/resource.h>
10361 #endif
10362
10363
10364 int
10365 main ()
10366 {
10367 #ifndef $ac_func
10368 char *(*pfn) = (char *(*)) $ac_func ;
10369 #endif
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_compile "$LINENO"; then :
10375 eval "gcc_cv_have_decl_$ac_func=yes"
10376 else
10377 eval "gcc_cv_have_decl_$ac_func=no"
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381
10382 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10384 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10385 #define $ac_tr_decl 1
10386 _ACEOF
10387
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10391 #define $ac_tr_decl 0
10392 _ACEOF
10393
10394 fi
10395
10396 done
10397
10398
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401
10402 #include "ansidecl.h"
10403 #include "system.h"
10404 #ifdef HAVE_SYS_RESOURCE_H
10405 #include <sys/resource.h>
10406 #endif
10407
10408 int
10409 main ()
10410 {
10411 rlim_t l = 0;
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417
10418 else
10419
10420 $as_echo "#define rlim_t long" >>confdefs.h
10421
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424
10425 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10426 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10427 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10428 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10429 for ac_func in ldgetname
10430 do
10431 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10433 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10434 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 #undef $ac_tr_decl
10440 #define $ac_tr_decl 1
10441
10442 #include "ansidecl.h"
10443 #include "system.h"
10444 #ifdef HAVE_LDFCN_H
10445 #undef FREAD
10446 #undef FWRITE
10447 #include <ldfcn.h>
10448 #endif
10449
10450
10451 int
10452 main ()
10453 {
10454 #ifndef $ac_func
10455 char *(*pfn) = (char *(*)) $ac_func ;
10456 #endif
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_compile "$LINENO"; then :
10462 eval "gcc_cv_have_decl_$ac_func=yes"
10463 else
10464 eval "gcc_cv_have_decl_$ac_func=no"
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 fi
10468
10469 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10472 #define $ac_tr_decl 1
10473 _ACEOF
10474
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10478 #define $ac_tr_decl 0
10479 _ACEOF
10480
10481 fi
10482
10483 done
10484
10485
10486 for ac_func in times
10487 do
10488 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10490 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10491 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #undef $ac_tr_decl
10497 #define $ac_tr_decl 1
10498
10499 #include "ansidecl.h"
10500 #include "system.h"
10501 #ifdef HAVE_SYS_TIMES_H
10502 #include <sys/times.h>
10503 #endif
10504
10505
10506 int
10507 main ()
10508 {
10509 #ifndef $ac_func
10510 char *(*pfn) = (char *(*)) $ac_func ;
10511 #endif
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_compile "$LINENO"; then :
10517 eval "gcc_cv_have_decl_$ac_func=yes"
10518 else
10519 eval "gcc_cv_have_decl_$ac_func=no"
10520 fi
10521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10522 fi
10523
10524 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10526 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10527 #define $ac_tr_decl 1
10528 _ACEOF
10529
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10533 #define $ac_tr_decl 0
10534 _ACEOF
10535
10536 fi
10537
10538 done
10539
10540
10541 for ac_func in sigaltstack
10542 do
10543 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10545 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10546 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 #undef $ac_tr_decl
10552 #define $ac_tr_decl 1
10553
10554 #include "ansidecl.h"
10555 #include "system.h"
10556 #include <signal.h>
10557
10558
10559 int
10560 main ()
10561 {
10562 #ifndef $ac_func
10563 char *(*pfn) = (char *(*)) $ac_func ;
10564 #endif
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_compile "$LINENO"; then :
10570 eval "gcc_cv_have_decl_$ac_func=yes"
10571 else
10572 eval "gcc_cv_have_decl_$ac_func=no"
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 fi
10576
10577 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10580 #define $ac_tr_decl 1
10581 _ACEOF
10582
10583 else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10586 #define $ac_tr_decl 0
10587 _ACEOF
10588
10589 fi
10590
10591 done
10592
10593
10594 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10595 # prototype.
10596 ac_ext=cpp
10597 ac_cpp='$CXXCPP $CPPFLAGS'
10598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10601
10602 for ac_func in madvise
10603 do
10604 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10606 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10607 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 #undef $ac_tr_decl
10613 #define $ac_tr_decl 1
10614
10615 #include "ansidecl.h"
10616 #include "system.h"
10617
10618
10619 int
10620 main ()
10621 {
10622 #ifndef $ac_func
10623 char *(*pfn) = (char *(*)) $ac_func ;
10624 #endif
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_cxx_try_compile "$LINENO"; then :
10630 eval "gcc_cv_have_decl_$ac_func=yes"
10631 else
10632 eval "gcc_cv_have_decl_$ac_func=no"
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10635 fi
10636
10637 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10640 #define $ac_tr_decl 1
10641 _ACEOF
10642
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10646 #define $ac_tr_decl 0
10647 _ACEOF
10648
10649 fi
10650
10651 done
10652
10653 ac_ext=c
10654 ac_cpp='$CPP $CPPFLAGS'
10655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659
10660 # More time-related stuff.
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10662 $as_echo_n "checking for struct tms... " >&6; }
10663 if test "${ac_cv_struct_tms+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669
10670 #include "ansidecl.h"
10671 #include "system.h"
10672 #ifdef HAVE_SYS_TIMES_H
10673 #include <sys/times.h>
10674 #endif
10675
10676 int
10677 main ()
10678 {
10679 struct tms tms;
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_compile "$LINENO"; then :
10685 ac_cv_struct_tms=yes
10686 else
10687 ac_cv_struct_tms=no
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10692 $as_echo "$ac_cv_struct_tms" >&6; }
10693 if test $ac_cv_struct_tms = yes; then
10694
10695 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10696
10697 fi
10698
10699 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10700 # revisit after autoconf 2.50.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10702 $as_echo_n "checking for clock_t... " >&6; }
10703 if test "${gcc_cv_type_clock_t+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709
10710 #include "ansidecl.h"
10711 #include "system.h"
10712
10713 int
10714 main ()
10715 {
10716 clock_t x;
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_compile "$LINENO"; then :
10722 gcc_cv_type_clock_t=yes
10723 else
10724 gcc_cv_type_clock_t=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10729 $as_echo "$gcc_cv_type_clock_t" >&6; }
10730 if test $gcc_cv_type_clock_t = yes; then
10731
10732 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10733
10734 fi
10735
10736 # Check if F_SETLKW is supported by fcntl.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10738 $as_echo_n "checking for F_SETLKW... " >&6; }
10739 if test "${ac_cv_f_setlkw+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745
10746 #include <fcntl.h>
10747 int
10748 main ()
10749 {
10750
10751 struct flock fl;
10752 fl.l_whence = 0;
10753 fl.l_start = 0;
10754 fl.l_len = 0;
10755 fl.l_pid = 0;
10756 return fcntl (1, F_SETLKW, &fl);
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762 ac_cv_f_setlkw=yes
10763 else
10764 ac_cv_f_setlkw=no
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10769 $as_echo "$ac_cv_f_setlkw" >&6; }
10770 if test $ac_cv_f_setlkw = yes; then
10771
10772 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10773
10774 fi
10775
10776 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10777 CFLAGS="$saved_CFLAGS"
10778 CXXFLAGS="$saved_CXXFLAGS"
10779
10780 # mkdir takes a single argument on some systems.
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10782 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10783 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788
10789 #include <sys/types.h>
10790 #ifdef HAVE_SYS_STAT_H
10791 # include <sys/stat.h>
10792 #endif
10793 #ifdef HAVE_UNISTD_H
10794 # include <unistd.h>
10795 #endif
10796 #ifdef HAVE_DIRECT_H
10797 # include <direct.h>
10798 #endif
10799 int
10800 main ()
10801 {
10802 mkdir ("foo", 0);
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_compile "$LINENO"; then :
10808 gcc_cv_mkdir_takes_one_arg=no
10809 else
10810 gcc_cv_mkdir_takes_one_arg=yes
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10815 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10816 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10817
10818 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10819
10820 fi
10821
10822
10823 # File extensions
10824 manext='.1'
10825 objext='.o'
10826
10827
10828
10829 # With Setjmp/Longjmp based exception handling.
10830 # Check whether --enable-sjlj-exceptions was given.
10831 if test "${enable_sjlj_exceptions+set}" = set; then :
10832 enableval=$enable_sjlj_exceptions; case $target in
10833 *-*-hpux10*)
10834 if test $enableval != yes; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10836 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10837 enableval=yes
10838 fi
10839 ;;
10840 esac
10841 force_sjlj_exceptions=yes
10842 else
10843 case $target in
10844 *-*-hpux10*)
10845 force_sjlj_exceptions=yes
10846 enableval=yes
10847 ;;
10848 *)
10849 force_sjlj_exceptions=no
10850 ;;
10851 esac
10852 fi
10853
10854 if test $force_sjlj_exceptions = yes; then
10855 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10856
10857 cat >>confdefs.h <<_ACEOF
10858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10859 _ACEOF
10860
10861 fi
10862
10863 # --------------------------------------------------------
10864 # Build, host, and target specific configuration fragments
10865 # --------------------------------------------------------
10866
10867 # Collect build-machine-specific information.
10868 . ${srcdir}/config.build
10869
10870 # Collect host-machine-specific information.
10871 . ${srcdir}/config.host
10872
10873 target_gtfiles=
10874
10875 # Collect target-machine-specific information.
10876 . ${srcdir}/config.gcc
10877
10878 extra_objs="${host_extra_objs} ${extra_objs}"
10879 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10880
10881 # Default the target-machine variables that were not explicitly set.
10882 if test x"$tm_file" = x
10883 then tm_file=$cpu_type/$cpu_type.h; fi
10884
10885 if test x"$extra_headers" = x
10886 then extra_headers=; fi
10887
10888 if test x$md_file = x
10889 then md_file=$cpu_type/$cpu_type.md; fi
10890
10891 if test x$out_file = x
10892 then out_file=$cpu_type/$cpu_type.c; fi
10893
10894 if test x"$tmake_file" = x
10895 then tmake_file=$cpu_type/t-$cpu_type
10896 fi
10897
10898 # Support --enable-initfini-array.
10899 if test x$enable_initfini_array != xno; then
10900 tm_file="${tm_file} initfini-array.h"
10901 fi
10902
10903 if test x"$dwarf2" = xyes
10904 then tm_file="$tm_file tm-dwarf2.h"
10905 fi
10906
10907 # Say what files are being used for the output code and MD file.
10908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10909 echo "Using \`$srcdir/config/$md_file' as machine description file."
10910
10911 # If any of the xm_file variables contain nonexistent files, warn
10912 # about them and drop them.
10913
10914 bx=
10915 for x in $build_xm_file; do
10916 if test -f $srcdir/config/$x
10917 then bx="$bx $x"
10918 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10919 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10920 fi
10921 done
10922 build_xm_file="$bx"
10923
10924 hx=
10925 for x in $host_xm_file; do
10926 if test -f $srcdir/config/$x
10927 then hx="$hx $x"
10928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10930 fi
10931 done
10932 host_xm_file="$hx"
10933
10934 tx=
10935 for x in $xm_file; do
10936 if test -f $srcdir/config/$x
10937 then tx="$tx $x"
10938 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10939 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10940 fi
10941 done
10942 xm_file="$tx"
10943
10944 count=a
10945 for f in $tm_file; do
10946 count=${count}x
10947 done
10948 if test $count = ax; then
10949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10950 else
10951 echo "Using the following target machine macro files:"
10952 for f in $tm_file; do
10953 echo " $srcdir/config/$f"
10954 done
10955 fi
10956
10957 if test x$need_64bit_hwint = xyes; then
10958
10959 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10960
10961 fi
10962
10963 if test x$use_long_long_for_widest_fast_int = xyes; then
10964
10965 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10966
10967 fi
10968
10969 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
10970
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_GNU_LD $gnu_ld_bool
10973 _ACEOF
10974
10975
10976 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
10977
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_GNU_AS $gnu_as_bool
10980 _ACEOF
10981
10982
10983 count=a
10984 for f in $host_xm_file; do
10985 count=${count}x
10986 done
10987 if test $count = a; then
10988 :
10989 elif test $count = ax; then
10990 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10991 else
10992 echo "Using the following host machine macro files:"
10993 for f in $host_xm_file; do
10994 echo " $srcdir/config/$f"
10995 done
10996 fi
10997 echo "Using ${out_host_hook_obj} for host machine hooks."
10998
10999 if test "$host_xm_file" != "$build_xm_file"; then
11000 count=a
11001 for f in $build_xm_file; do
11002 count=${count}x
11003 done
11004 if test $count = a; then
11005 :
11006 elif test $count = ax; then
11007 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11008 else
11009 echo "Using the following build machine macro files:"
11010 for f in $build_xm_file; do
11011 echo " $srcdir/config/$f"
11012 done
11013 fi
11014 fi
11015
11016 if test -n "$configured_native_system_header_dir"; then
11017 native_system_header_dir=$configured_native_system_header_dir
11018 fi
11019 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11020
11021
11022 case ${host} in
11023 powerpc*-*-darwin*)
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11025 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11026 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031
11032 #include <sys/cdefs.h>
11033 #include <sys/signal.h>
11034 #include <ucontext.h>
11035 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11036
11037 _ACEOF
11038 if ac_fn_c_try_compile "$LINENO"; then :
11039 gcc_cv_mcontext_underscores=no
11040 else
11041 gcc_cv_mcontext_underscores=yes
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11046 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11047 if test $gcc_cv_mcontext_underscores = yes; then
11048
11049 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11050
11051 fi
11052 ;;
11053 esac
11054
11055 # ---------
11056 # Threading
11057 # ---------
11058
11059 # Check if a valid thread package
11060 case ${enable_threads} in
11061 "" | no)
11062 # No threads
11063 target_thread_file='single'
11064 ;;
11065 yes)
11066 # default
11067 target_thread_file='single'
11068 ;;
11069 aix | dce | lynx | mipssde | posix | rtems | \
11070 single | tpf | vxworks | win32)
11071 target_thread_file=${enable_threads}
11072 ;;
11073 *)
11074 echo "${enable_threads} is an unknown thread package" 1>&2
11075 exit 1
11076 ;;
11077 esac
11078
11079 if test x${thread_file} = x; then
11080 # No thread file set by target-specific clauses in config.gcc,
11081 # so use file chosen by default logic above
11082 thread_file=${target_thread_file}
11083 fi
11084
11085 # --------
11086 # UNSORTED
11087 # --------
11088
11089 use_cxa_atexit=no
11090 if test x$enable___cxa_atexit = xyes || \
11091 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11092 if test x$host = x$target; then
11093 case $host in
11094 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11095 # keyed to flag_use_cxa_atexit
11096 *-*-mingw32*)
11097 use_cxa_atexit=yes
11098 ;;
11099 *)
11100 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11101 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11102 use_cxa_atexit=yes
11103 else
11104 echo "__cxa_atexit can't be enabled on this target"
11105 fi
11106
11107 ;;
11108 esac
11109 else
11110 # We can't check for __cxa_atexit when building a cross, so assume
11111 # it is available
11112 use_cxa_atexit=yes
11113 fi
11114 if test x$use_cxa_atexit = xyes; then
11115
11116 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11117
11118 fi
11119 fi
11120
11121 # Look for a file containing extra machine modes.
11122 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11123 extra_modes_file='$(srcdir)'/config/${extra_modes}
11124
11125
11126 cat >>confdefs.h <<_ACEOF
11127 #define EXTRA_MODES_FILE "config/$extra_modes"
11128 _ACEOF
11129
11130 fi
11131
11132 # Convert extra_options into a form suitable for Makefile use.
11133 extra_opt_files=
11134 all_opt_files=
11135 for f in $extra_options; do
11136 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11137 all_opt_files="$all_opt_files $srcdir/config/$f"
11138 done
11139
11140
11141 # auto-host.h is the file containing items generated by autoconf and is
11142 # the first file included by config.h.
11143 # If host=build, it is correct to have bconfig include auto-host.h
11144 # as well. If host!=build, we are in error and need to do more
11145 # work to find out the build config parameters.
11146 if test x$host = x$build
11147 then
11148 build_auto=auto-host.h
11149 else
11150 # We create a subdir, then run autoconf in the subdir.
11151 # To prevent recursion we set host and build for the new
11152 # invocation of configure to the build for this invocation
11153 # of configure.
11154 tempdir=build.$$
11155 rm -rf $tempdir
11156 mkdir $tempdir
11157 cd $tempdir
11158 case ${srcdir} in
11159 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11160 *) realsrcdir=../${srcdir};;
11161 esac
11162 saved_CFLAGS="${CFLAGS}"
11163 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11164 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11165 ${realsrcdir}/configure \
11166 --enable-languages=${enable_languages-all} \
11167 --target=$target_alias --host=$build_alias --build=$build_alias
11168 CFLAGS="${saved_CFLAGS}"
11169
11170 # We just finished tests for the build machine, so rename
11171 # the file auto-build.h in the gcc directory.
11172 mv auto-host.h ../auto-build.h
11173 cd ..
11174 rm -rf $tempdir
11175 build_auto=auto-build.h
11176 fi
11177
11178
11179 tm_file="${tm_file} defaults.h"
11180 tm_p_file="${tm_p_file} tm-preds.h"
11181 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11182 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11183 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11184 # put this back in temporarily.
11185 xm_file="auto-host.h ansidecl.h ${xm_file}"
11186
11187 # --------
11188 # UNSORTED
11189 # --------
11190
11191 # Compile in configure arguments.
11192 if test -f configargs.h ; then
11193 # Being re-configured.
11194 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11195 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11196 else
11197 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11198 fi
11199
11200 # Double all backslashes and backslash all quotes to turn
11201 # gcc_config_arguments into a C string.
11202 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11203 $gcc_config_arguments
11204 EOF
11205 gcc_config_arguments_str=`cat conftest.out`
11206 rm -f conftest.out
11207
11208 cat > configargs.h <<EOF
11209 /* Generated automatically. */
11210 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11211 static const char thread_model[] = "$thread_file";
11212
11213 static const struct {
11214 const char *name, *value;
11215 } configure_default_options[] = $configure_default_options;
11216 EOF
11217
11218 gcc_BASEVER=`cat $srcdir/BASE-VER`
11219 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11220 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11221 if test -f $srcdir/REVISION ; then
11222 gcc_REVISION=`cat $srcdir/REVISION`
11223 else
11224 gcc_REVISION=""
11225 fi
11226 cat > plugin-version.h <<EOF
11227 #include "configargs.h"
11228
11229 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11230 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11231 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11232 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11233
11234 static char basever[] = "$gcc_BASEVER";
11235 static char datestamp[] = "$gcc_DATESTAMP";
11236 static char devphase[] = "$gcc_DEVPHASE";
11237 static char revision[] = "$gcc_REVISION";
11238
11239 /* FIXME plugins: We should make the version information more precise.
11240 One way to do is to add a checksum. */
11241
11242 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11243 devphase, revision,
11244 configuration_arguments};
11245 EOF
11246
11247 # Internationalization
11248 # If we haven't got the data from the intl directory,
11249 # assume NLS is disabled.
11250 USE_NLS=no
11251 LIBINTL=
11252 LIBINTL_DEP=
11253 INCINTL=
11254 XGETTEXT=
11255 GMSGFMT=
11256 POSUB=
11257
11258 if test -f ../intl/config.intl; then
11259 . ../intl/config.intl
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11262 $as_echo_n "checking whether NLS is requested... " >&6; }
11263 if test x"$USE_NLS" != xyes; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; }
11269
11270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11271
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11274 $as_echo_n "checking for catalogs to be installed... " >&6; }
11275 # Look for .po and .gmo files in the source directory.
11276 CATALOGS=
11277 XLINGUAS=
11278 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11279 # If there aren't any .gmo files the shell will give us the
11280 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11281 # weeded out.
11282 case "$cat" in *\**)
11283 continue;;
11284 esac
11285 # The quadruple backslash is collapsed to a double backslash
11286 # by the backticks, then collapsed again by the double quotes,
11287 # leaving us with one backslash in the sed expression (right
11288 # before the dot that mustn't act as a wildcard).
11289 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11290 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11291 # The user is allowed to set LINGUAS to a list of languages to
11292 # install catalogs for. If it's empty that means "all of them."
11293 if test "x$LINGUAS" = x; then
11294 CATALOGS="$CATALOGS $cat"
11295 XLINGUAS="$XLINGUAS $lang"
11296 else
11297 case "$LINGUAS" in *$lang*)
11298 CATALOGS="$CATALOGS $cat"
11299 XLINGUAS="$XLINGUAS $lang"
11300 ;;
11301 esac
11302 fi
11303 done
11304 LINGUAS="$XLINGUAS"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11306 $as_echo "$LINGUAS" >&6; }
11307
11308
11309 DATADIRNAME=share
11310
11311 INSTOBJEXT=.mo
11312
11313 GENCAT=gencat
11314
11315 CATOBJEXT=.gmo
11316
11317 fi
11318
11319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11320 # -liconv on the link line twice.
11321 case "$LIBINTL" in *$LIBICONV*)
11322 LIBICONV= ;;
11323 esac
11324
11325 # Check whether --enable-secureplt was given.
11326 if test "${enable_secureplt+set}" = set; then :
11327 enableval=$enable_secureplt;
11328 fi
11329
11330
11331 # Check whether --enable-leading-mingw64-underscores was given.
11332 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11333 enableval=$enable_leading_mingw64_underscores;
11334 fi
11335
11336 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11337
11338 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11339
11340 fi
11341
11342 # Check whether --enable-cld was given.
11343 if test "${enable_cld+set}" = set; then :
11344 enableval=$enable_cld;
11345 else
11346 enable_cld=no
11347 fi
11348
11349
11350 # Check whether --enable-frame-pointer was given.
11351 if test "${enable_frame_pointer+set}" = set; then :
11352 enableval=$enable_frame_pointer;
11353 else
11354
11355 case $target_os in
11356 linux* | darwin[8912]*)
11357 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11358 # DWARF2.
11359 enable_frame_pointer=no
11360 ;;
11361 *)
11362 enable_frame_pointer=yes
11363 ;;
11364 esac
11365
11366 fi
11367
11368
11369 # Windows32 Registry support for specifying GCC installation paths.
11370 # Check whether --enable-win32-registry was given.
11371 if test "${enable_win32_registry+set}" = set; then :
11372 enableval=$enable_win32_registry;
11373 fi
11374
11375
11376 case $host_os in
11377 win32 | pe | cygwin* | mingw32* | uwin*)
11378 if test "x$enable_win32_registry" != xno; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11380 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11381 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ac_func_search_save_LIBS=$LIBS
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char RegOpenKeyExA ();
11395 int
11396 main ()
11397 {
11398 return RegOpenKeyExA ();
11399 ;
11400 return 0;
11401 }
11402 _ACEOF
11403 for ac_lib in '' advapi32; do
11404 if test -z "$ac_lib"; then
11405 ac_res="none required"
11406 else
11407 ac_res=-l$ac_lib
11408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11409 fi
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_search_RegOpenKeyExA=$ac_res
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext
11415 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11416 break
11417 fi
11418 done
11419 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11420
11421 else
11422 ac_cv_search_RegOpenKeyExA=no
11423 fi
11424 rm conftest.$ac_ext
11425 LIBS=$ac_func_search_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11428 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11429 ac_res=$ac_cv_search_RegOpenKeyExA
11430 if test "$ac_res" != no; then :
11431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11432
11433 else
11434 enable_win32_registry=no
11435 fi
11436
11437 fi
11438
11439 if test "x$enable_win32_registry" != xno; then
11440
11441 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11442
11443
11444 if test "x$enable_win32_registry" != xyes \
11445 && test "x$enable_win32_registry" != x; then
11446
11447 cat >>confdefs.h <<_ACEOF
11448 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11449 _ACEOF
11450
11451 fi
11452 fi
11453 ;;
11454 esac
11455
11456 # Get an absolute path to the GCC top-level source directory
11457 holddir=`${PWDCMD-pwd}`
11458 cd $srcdir
11459 topdir=`${PWDCMD-pwd}`
11460 cd $holddir
11461
11462 # Conditionalize the makefile for this host machine.
11463 xmake_file=
11464 for f in ${host_xmake_file}
11465 do
11466 if test -f ${srcdir}/config/$f
11467 then
11468 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11469 fi
11470 done
11471
11472 # Conditionalize the makefile for this target machine.
11473 tmake_file_=
11474 for f in ${tmake_file}
11475 do
11476 if test -f ${srcdir}/config/$f
11477 then
11478 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11479 fi
11480 done
11481 tmake_file="${tmake_file_}"
11482
11483 out_object_file=`basename $out_file .c`.o
11484 common_out_object_file=`basename $common_out_file .c`.o
11485
11486 tm_file_list="options.h"
11487 tm_include_list="options.h insn-constants.h"
11488 for f in $tm_file; do
11489 case $f in
11490 ./* )
11491 f=`echo $f | sed 's/^..//'`
11492 tm_file_list="${tm_file_list} $f"
11493 tm_include_list="${tm_include_list} $f"
11494 ;;
11495 defaults.h )
11496 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11497 tm_include_list="${tm_include_list} $f"
11498 ;;
11499 * )
11500 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11501 tm_include_list="${tm_include_list} config/$f"
11502 ;;
11503 esac
11504 done
11505
11506 tm_p_file_list=
11507 tm_p_include_list=
11508 for f in $tm_p_file; do
11509 case $f in
11510 tm-preds.h )
11511 tm_p_file_list="${tm_p_file_list} $f"
11512 tm_p_include_list="${tm_p_include_list} $f"
11513 ;;
11514 * )
11515 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11516 tm_p_include_list="${tm_p_include_list} config/$f"
11517 esac
11518 done
11519
11520 xm_file_list=
11521 xm_include_list=
11522 for f in $xm_file; do
11523 case $f in
11524 ansidecl.h )
11525 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11526 xm_include_list="${xm_include_list} $f"
11527 ;;
11528 auto-host.h )
11529 xm_file_list="${xm_file_list} $f"
11530 xm_include_list="${xm_include_list} $f"
11531 ;;
11532 * )
11533 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11534 xm_include_list="${xm_include_list} config/$f"
11535 ;;
11536 esac
11537 done
11538
11539 host_xm_file_list=
11540 host_xm_include_list=
11541 for f in $host_xm_file; do
11542 case $f in
11543 ansidecl.h )
11544 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11545 host_xm_include_list="${host_xm_include_list} $f"
11546 ;;
11547 auto-host.h )
11548 host_xm_file_list="${host_xm_file_list} $f"
11549 host_xm_include_list="${host_xm_include_list} $f"
11550 ;;
11551 * )
11552 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11553 host_xm_include_list="${host_xm_include_list} config/$f"
11554 ;;
11555 esac
11556 done
11557
11558 build_xm_file_list=
11559 for f in $build_xm_file; do
11560 case $f in
11561 ansidecl.h )
11562 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11563 build_xm_include_list="${build_xm_include_list} $f"
11564 ;;
11565 auto-build.h | auto-host.h )
11566 build_xm_file_list="${build_xm_file_list} $f"
11567 build_xm_include_list="${build_xm_include_list} $f"
11568 ;;
11569 * )
11570 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11571 build_xm_include_list="${build_xm_include_list} config/$f"
11572 ;;
11573 esac
11574 done
11575
11576 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11577 # cross-compiler which does not use the native headers and libraries.
11578 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11579 CROSS=
11580 ALL=all.internal
11581 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11582
11583 if test "x$with_build_sysroot" != x; then
11584 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11585 else
11586 # This value is used, even on a native system, because
11587 # CROSS_SYSTEM_HEADER_DIR is just
11588 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11589 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11590 fi
11591
11592 if test x$host != x$target
11593 then
11594 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11595 ALL=all.cross
11596 SYSTEM_HEADER_DIR=$build_system_header_dir
11597 case "$host","$target" in
11598 # Darwin crosses can use the host system's libraries and headers,
11599 # because of the fat library support. Of course, it must be the
11600 # same version of Darwin on both sides. Allow the user to
11601 # just say --target=foo-darwin without a version number to mean
11602 # "the version on this system".
11603 *-*-darwin*,*-*-darwin*)
11604 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11605 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11606 if test $hostos = $targetos -o $targetos = darwin ; then
11607 CROSS=
11608 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11609 with_headers=yes
11610 fi
11611 ;;
11612
11613 i?86-*-*,x86_64-*-* \
11614 | powerpc*-*-*,powerpc64*-*-*)
11615 CROSS="$CROSS -DNATIVE_CROSS" ;;
11616 esac
11617
11618 case $target in
11619 *-*-mingw*)
11620 if test "x$with_headers" = x; then
11621 with_headers=yes
11622 fi
11623 ;;
11624 *)
11625 ;;
11626 esac
11627 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11628 SYSTEM_HEADER_DIR=$build_system_header_dir
11629 fi
11630
11631 # If this is a cross-compiler that does not
11632 # have its own set of headers then define
11633 # inhibit_libc
11634
11635 # If this is using newlib, without having the headers available now,
11636 # then define inhibit_libc in LIBGCC2_CFLAGS.
11637 # This prevents libgcc2 from containing any code which requires libc
11638 # support.
11639 : ${inhibit_libc=false}
11640 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11641 test x$with_newlib = xyes ; } &&
11642 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11643 inhibit_libc=true
11644 fi
11645
11646
11647 # When building gcc with a cross-compiler, we need to adjust things so
11648 # that the generator programs are still built with the native compiler.
11649 # Also, we cannot run fixincludes.
11650
11651 # These are the normal (build=host) settings:
11652 CC_FOR_BUILD='$(CC)'
11653 CXX_FOR_BUILD='$(CXX)'
11654 BUILD_CFLAGS='$(ALL_CFLAGS)'
11655 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11656 BUILD_LDFLAGS='$(LDFLAGS)'
11657 STMP_FIXINC=stmp-fixinc
11658
11659 # And these apply if build != host, or we are generating coverage data
11660 if test x$build != x$host || test "x$coverage_flags" != x
11661 then
11662 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11663 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11664 fi
11665
11666 # Expand extra_headers to include complete path.
11667 # This substitutes for lots of t-* files.
11668 extra_headers_list=
11669 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11670 for file in ${extra_headers} ; do
11671 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11672 done
11673
11674 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11675 if test x"$use_gcc_tgmath" = xyes
11676 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11677 fi
11678
11679 # Define collect2 in Makefile.
11680 case $host_can_use_collect2 in
11681 no) collect2= ;;
11682 *) collect2='collect2$(exeext)' ;;
11683 esac
11684
11685
11686 # Add a definition of USE_COLLECT2 if system wants one.
11687 case $use_collect2 in
11688 no) use_collect2= ;;
11689 "") ;;
11690 *)
11691 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11692 xm_defines="${xm_defines} USE_COLLECT2"
11693 case $host_can_use_collect2 in
11694 no)
11695 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11696 ;;
11697 esac
11698 ;;
11699 esac
11700
11701
11702 cat >>confdefs.h <<_ACEOF
11703 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11704 _ACEOF
11705
11706
11707 # ---------------------------
11708 # Assembler & linker features
11709 # ---------------------------
11710
11711 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11712 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11713 # However when ld-new is first executed from the build tree, libtool will
11714 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11715 # to the build tree. While doing this we need to use the previous-stage
11716 # linker, or we have an infinite loop. The presence of a shell script as
11717 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11718 # the gcc/collect-ld script. So we need to know how libtool works, or
11719 # exec-tool will fail.
11720
11721
11722 case `pwd` in
11723 *\ * | *\ *)
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11725 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11726 esac
11727
11728
11729
11730 macro_version='2.2.7a'
11731 macro_revision='1.3134'
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745 ltmain="$ac_aux_dir/ltmain.sh"
11746
11747 # Backslashify metacharacters that are still active within
11748 # double-quoted strings.
11749 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11750
11751 # Same as above, but do not quote variable references.
11752 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11753
11754 # Sed substitution to delay expansion of an escaped shell variable in a
11755 # double_quote_subst'ed string.
11756 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11757
11758 # Sed substitution to delay expansion of an escaped single quote.
11759 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11760
11761 # Sed substitution to avoid accidental globbing in evaled expressions
11762 no_glob_subst='s/\*/\\\*/g'
11763
11764 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11765 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11766 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11767
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11769 $as_echo_n "checking how to print strings... " >&6; }
11770 # Test print first, because it will be a builtin if present.
11771 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11772 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11773 ECHO='print -r --'
11774 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11775 ECHO='printf %s\n'
11776 else
11777 # Use this function as a fallback that always works.
11778 func_fallback_echo ()
11779 {
11780 eval 'cat <<_LTECHO_EOF
11781 $1
11782 _LTECHO_EOF'
11783 }
11784 ECHO='func_fallback_echo'
11785 fi
11786
11787 # func_echo_all arg...
11788 # Invoke $ECHO with all args, space-separated.
11789 func_echo_all ()
11790 {
11791 $ECHO ""
11792 }
11793
11794 case "$ECHO" in
11795 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11796 $as_echo "printf" >&6; } ;;
11797 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11798 $as_echo "print -r" >&6; } ;;
11799 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11800 $as_echo "cat" >&6; } ;;
11801 esac
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11817 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11818 if test "${ac_cv_path_SED+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11822 for ac_i in 1 2 3 4 5 6 7; do
11823 ac_script="$ac_script$as_nl$ac_script"
11824 done
11825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11826 { ac_script=; unset ac_script;}
11827 if test -z "$SED"; then
11828 ac_path_SED_found=false
11829 # Loop through the user's path and test for each of PROGNAME-LIST
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_prog in sed gsed; do
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11838 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11839 # Check for GNU ac_path_SED and select it if it is found.
11840 # Check for GNU $ac_path_SED
11841 case `"$ac_path_SED" --version 2>&1` in
11842 *GNU*)
11843 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11844 *)
11845 ac_count=0
11846 $as_echo_n 0123456789 >"conftest.in"
11847 while :
11848 do
11849 cat "conftest.in" "conftest.in" >"conftest.tmp"
11850 mv "conftest.tmp" "conftest.in"
11851 cp "conftest.in" "conftest.nl"
11852 $as_echo '' >> "conftest.nl"
11853 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11855 as_fn_arith $ac_count + 1 && ac_count=$as_val
11856 if test $ac_count -gt ${ac_path_SED_max-0}; then
11857 # Best one so far, save it but keep looking for a better one
11858 ac_cv_path_SED="$ac_path_SED"
11859 ac_path_SED_max=$ac_count
11860 fi
11861 # 10*(2^10) chars as input seems more than enough
11862 test $ac_count -gt 10 && break
11863 done
11864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11865 esac
11866
11867 $ac_path_SED_found && break 3
11868 done
11869 done
11870 done
11871 IFS=$as_save_IFS
11872 if test -z "$ac_cv_path_SED"; then
11873 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11874 fi
11875 else
11876 ac_cv_path_SED=$SED
11877 fi
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11881 $as_echo "$ac_cv_path_SED" >&6; }
11882 SED="$ac_cv_path_SED"
11883 rm -f conftest.sed
11884
11885 test -z "$SED" && SED=sed
11886 Xsed="$SED -e 1s/^X//"
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11899 $as_echo_n "checking for fgrep... " >&6; }
11900 if test "${ac_cv_path_FGREP+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11904 then ac_cv_path_FGREP="$GREP -F"
11905 else
11906 if test -z "$FGREP"; then
11907 ac_path_FGREP_found=false
11908 # Loop through the user's path and test for each of PROGNAME-LIST
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11911 do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_prog in fgrep; do
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11917 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11918 # Check for GNU ac_path_FGREP and select it if it is found.
11919 # Check for GNU $ac_path_FGREP
11920 case `"$ac_path_FGREP" --version 2>&1` in
11921 *GNU*)
11922 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11923 *)
11924 ac_count=0
11925 $as_echo_n 0123456789 >"conftest.in"
11926 while :
11927 do
11928 cat "conftest.in" "conftest.in" >"conftest.tmp"
11929 mv "conftest.tmp" "conftest.in"
11930 cp "conftest.in" "conftest.nl"
11931 $as_echo 'FGREP' >> "conftest.nl"
11932 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11934 as_fn_arith $ac_count + 1 && ac_count=$as_val
11935 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11936 # Best one so far, save it but keep looking for a better one
11937 ac_cv_path_FGREP="$ac_path_FGREP"
11938 ac_path_FGREP_max=$ac_count
11939 fi
11940 # 10*(2^10) chars as input seems more than enough
11941 test $ac_count -gt 10 && break
11942 done
11943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11944 esac
11945
11946 $ac_path_FGREP_found && break 3
11947 done
11948 done
11949 done
11950 IFS=$as_save_IFS
11951 if test -z "$ac_cv_path_FGREP"; then
11952 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11953 fi
11954 else
11955 ac_cv_path_FGREP=$FGREP
11956 fi
11957
11958 fi
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11961 $as_echo "$ac_cv_path_FGREP" >&6; }
11962 FGREP="$ac_cv_path_FGREP"
11963
11964
11965 test -z "$GREP" && GREP=grep
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 # Check whether --with-gnu-ld was given.
11986 if test "${with_gnu_ld+set}" = set; then :
11987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11988 else
11989 with_gnu_ld=no
11990 fi
11991
11992 ac_prog=ld
11993 if test "$GCC" = yes; then
11994 # Check if gcc -print-prog-name=ld gives a path.
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11996 $as_echo_n "checking for ld used by $CC... " >&6; }
11997 case $host in
11998 *-*-mingw*)
11999 # gcc leaves a trailing carriage return which upsets mingw
12000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12001 *)
12002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12003 esac
12004 case $ac_prog in
12005 # Accept absolute paths.
12006 [\\/]* | ?:[\\/]*)
12007 re_direlt='/[^/][^/]*/\.\./'
12008 # Canonicalize the pathname of ld
12009 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12010 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12011 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12012 done
12013 test -z "$LD" && LD="$ac_prog"
12014 ;;
12015 "")
12016 # If it fails, then pretend we aren't using GCC.
12017 ac_prog=ld
12018 ;;
12019 *)
12020 # If it is relative, then search for the first ld in PATH.
12021 with_gnu_ld=unknown
12022 ;;
12023 esac
12024 elif test "$with_gnu_ld" = yes; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12026 $as_echo_n "checking for GNU ld... " >&6; }
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12029 $as_echo_n "checking for non-GNU ld... " >&6; }
12030 fi
12031 if test "${lt_cv_path_LD+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 if test -z "$LD"; then
12035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12036 for ac_dir in $PATH; do
12037 IFS="$lt_save_ifs"
12038 test -z "$ac_dir" && ac_dir=.
12039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12040 lt_cv_path_LD="$ac_dir/$ac_prog"
12041 # Check to see if the program is GNU ld. I'd rather use --version,
12042 # but apparently some variants of GNU ld only accept -v.
12043 # Break only if it was the GNU/non-GNU ld that we prefer.
12044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12045 *GNU* | *'with BFD'*)
12046 test "$with_gnu_ld" != no && break
12047 ;;
12048 *)
12049 test "$with_gnu_ld" != yes && break
12050 ;;
12051 esac
12052 fi
12053 done
12054 IFS="$lt_save_ifs"
12055 else
12056 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12057 fi
12058 fi
12059
12060 LD="$lt_cv_path_LD"
12061 if test -n "$LD"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12063 $as_echo "$LD" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12070 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12071 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12075 case `$LD -v 2>&1 </dev/null` in
12076 *GNU* | *'with BFD'*)
12077 lt_cv_prog_gnu_ld=yes
12078 ;;
12079 *)
12080 lt_cv_prog_gnu_ld=no
12081 ;;
12082 esac
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12085 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12086 with_gnu_ld=$lt_cv_prog_gnu_ld
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12097 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12098 if test "${lt_cv_path_NM+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$NM"; then
12102 # Let the user override the test.
12103 lt_cv_path_NM="$NM"
12104 else
12105 lt_nm_to_check="${ac_tool_prefix}nm"
12106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12107 lt_nm_to_check="$lt_nm_to_check nm"
12108 fi
12109 for lt_tmp_nm in $lt_nm_to_check; do
12110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12111 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12112 IFS="$lt_save_ifs"
12113 test -z "$ac_dir" && ac_dir=.
12114 tmp_nm="$ac_dir/$lt_tmp_nm"
12115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12116 # Check to see if the nm accepts a BSD-compat flag.
12117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12118 # nm: unknown option "B" ignored
12119 # Tru64's nm complains that /dev/null is an invalid object file
12120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12121 */dev/null* | *'Invalid file or object type'*)
12122 lt_cv_path_NM="$tmp_nm -B"
12123 break
12124 ;;
12125 *)
12126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12127 */dev/null*)
12128 lt_cv_path_NM="$tmp_nm -p"
12129 break
12130 ;;
12131 *)
12132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12133 continue # so that we can try to find one that supports BSD flags
12134 ;;
12135 esac
12136 ;;
12137 esac
12138 fi
12139 done
12140 IFS="$lt_save_ifs"
12141 done
12142 : ${lt_cv_path_NM=no}
12143 fi
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12146 $as_echo "$lt_cv_path_NM" >&6; }
12147 if test "$lt_cv_path_NM" != "no"; then
12148 NM="$lt_cv_path_NM"
12149 else
12150 # Didn't find any BSD compatible name lister, look for dumpbin.
12151 if test -n "$DUMPBIN"; then :
12152 # Let the user override the test.
12153 else
12154 if test -n "$ac_tool_prefix"; then
12155 for ac_prog in dumpbin "link -dump"
12156 do
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 if test -n "$DUMPBIN"; then
12165 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12174 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12177 fi
12178 done
12179 done
12180 IFS=$as_save_IFS
12181
12182 fi
12183 fi
12184 DUMPBIN=$ac_cv_prog_DUMPBIN
12185 if test -n "$DUMPBIN"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12187 $as_echo "$DUMPBIN" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192
12193
12194 test -n "$DUMPBIN" && break
12195 done
12196 fi
12197 if test -z "$DUMPBIN"; then
12198 ac_ct_DUMPBIN=$DUMPBIN
12199 for ac_prog in dumpbin "link -dump"
12200 do
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$ac_ct_DUMPBIN"; then
12209 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12229 if test -n "$ac_ct_DUMPBIN"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12231 $as_echo "$ac_ct_DUMPBIN" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 test -n "$ac_ct_DUMPBIN" && break
12239 done
12240
12241 if test "x$ac_ct_DUMPBIN" = x; then
12242 DUMPBIN=":"
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250 DUMPBIN=$ac_ct_DUMPBIN
12251 fi
12252 fi
12253
12254 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12255 *COFF*)
12256 DUMPBIN="$DUMPBIN -symbols"
12257 ;;
12258 *)
12259 DUMPBIN=:
12260 ;;
12261 esac
12262 fi
12263
12264 if test "$DUMPBIN" != ":"; then
12265 NM="$DUMPBIN"
12266 fi
12267 fi
12268 test -z "$NM" && NM=nm
12269
12270
12271
12272
12273
12274
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12276 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12277 if test "${lt_cv_nm_interface+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 lt_cv_nm_interface="BSD nm"
12281 echo "int some_variable = 0;" > conftest.$ac_ext
12282 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12283 (eval "$ac_compile" 2>conftest.err)
12284 cat conftest.err >&5
12285 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12286 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12287 cat conftest.err >&5
12288 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12289 cat conftest.out >&5
12290 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12291 lt_cv_nm_interface="MS dumpbin"
12292 fi
12293 rm -f conftest*
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12296 $as_echo "$lt_cv_nm_interface" >&6; }
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12299 $as_echo_n "checking whether ln -s works... " >&6; }
12300 LN_S=$as_ln_s
12301 if test "$LN_S" = "ln -s"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12306 $as_echo "no, using $LN_S" >&6; }
12307 fi
12308
12309 # find the maximum length of command line arguments
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12311 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12312 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 i=0
12316 teststring="ABCD"
12317
12318 case $build_os in
12319 msdosdjgpp*)
12320 # On DJGPP, this test can blow up pretty badly due to problems in libc
12321 # (any single argument exceeding 2000 bytes causes a buffer overrun
12322 # during glob expansion). Even if it were fixed, the result of this
12323 # check would be larger than it should be.
12324 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12325 ;;
12326
12327 gnu*)
12328 # Under GNU Hurd, this test is not required because there is
12329 # no limit to the length of command line arguments.
12330 # Libtool will interpret -1 as no limit whatsoever
12331 lt_cv_sys_max_cmd_len=-1;
12332 ;;
12333
12334 cygwin* | mingw* | cegcc*)
12335 # On Win9x/ME, this test blows up -- it succeeds, but takes
12336 # about 5 minutes as the teststring grows exponentially.
12337 # Worse, since 9x/ME are not pre-emptively multitasking,
12338 # you end up with a "frozen" computer, even though with patience
12339 # the test eventually succeeds (with a max line length of 256k).
12340 # Instead, let's just punt: use the minimum linelength reported by
12341 # all of the supported platforms: 8192 (on NT/2K/XP).
12342 lt_cv_sys_max_cmd_len=8192;
12343 ;;
12344
12345 mint*)
12346 # On MiNT this can take a long time and run out of memory.
12347 lt_cv_sys_max_cmd_len=8192;
12348 ;;
12349
12350 amigaos*)
12351 # On AmigaOS with pdksh, this test takes hours, literally.
12352 # So we just punt and use a minimum line length of 8192.
12353 lt_cv_sys_max_cmd_len=8192;
12354 ;;
12355
12356 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12357 # This has been around since 386BSD, at least. Likely further.
12358 if test -x /sbin/sysctl; then
12359 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12360 elif test -x /usr/sbin/sysctl; then
12361 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12362 else
12363 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12364 fi
12365 # And add a safety zone
12366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12368 ;;
12369
12370 interix*)
12371 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12372 lt_cv_sys_max_cmd_len=196608
12373 ;;
12374
12375 osf*)
12376 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12377 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12378 # nice to cause kernel panics so lets avoid the loop below.
12379 # First set a reasonable default.
12380 lt_cv_sys_max_cmd_len=16384
12381 #
12382 if test -x /sbin/sysconfig; then
12383 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12384 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12385 esac
12386 fi
12387 ;;
12388 sco3.2v5*)
12389 lt_cv_sys_max_cmd_len=102400
12390 ;;
12391 sysv5* | sco5v6* | sysv4.2uw2*)
12392 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12393 if test -n "$kargmax"; then
12394 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12395 else
12396 lt_cv_sys_max_cmd_len=32768
12397 fi
12398 ;;
12399 *)
12400 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12401 if test -n "$lt_cv_sys_max_cmd_len"; then
12402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12404 else
12405 # Make teststring a little bigger before we do anything with it.
12406 # a 1K string should be a reasonable start.
12407 for i in 1 2 3 4 5 6 7 8 ; do
12408 teststring=$teststring$teststring
12409 done
12410 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12411 # If test is not a shell built-in, we'll probably end up computing a
12412 # maximum length that is only half of the actual maximum length, but
12413 # we can't tell.
12414 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12415 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12416 test $i != 17 # 1/2 MB should be enough
12417 do
12418 i=`expr $i + 1`
12419 teststring=$teststring$teststring
12420 done
12421 # Only check the string length outside the loop.
12422 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12423 teststring=
12424 # Add a significant safety factor because C++ compilers can tack on
12425 # massive amounts of additional arguments before passing them to the
12426 # linker. It appears as though 1/2 is a usable value.
12427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12428 fi
12429 ;;
12430 esac
12431
12432 fi
12433
12434 if test -n $lt_cv_sys_max_cmd_len ; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12436 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12439 $as_echo "none" >&6; }
12440 fi
12441 max_cmd_len=$lt_cv_sys_max_cmd_len
12442
12443
12444
12445
12446
12447
12448 : ${CP="cp -f"}
12449 : ${MV="mv -f"}
12450 : ${RM="rm -f"}
12451
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12453 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12454 # Try some XSI features
12455 xsi_shell=no
12456 ( _lt_dummy="a/b/c"
12457 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12458 = c,a/b,, \
12459 && eval 'test $(( 1 + 1 )) -eq 2 \
12460 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12461 && xsi_shell=yes
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12463 $as_echo "$xsi_shell" >&6; }
12464
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12467 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12468 lt_shell_append=no
12469 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12470 >/dev/null 2>&1 \
12471 && lt_shell_append=yes
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12473 $as_echo "$lt_shell_append" >&6; }
12474
12475
12476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12477 lt_unset=unset
12478 else
12479 lt_unset=false
12480 fi
12481
12482
12483
12484
12485
12486 # test EBCDIC or ASCII
12487 case `echo X|tr X '\101'` in
12488 A) # ASCII based system
12489 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12490 lt_SP2NL='tr \040 \012'
12491 lt_NL2SP='tr \015\012 \040\040'
12492 ;;
12493 *) # EBCDIC based system
12494 lt_SP2NL='tr \100 \n'
12495 lt_NL2SP='tr \r\n \100\100'
12496 ;;
12497 esac
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12508 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12509 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 lt_cv_ld_reload_flag='-r'
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12515 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12516 reload_flag=$lt_cv_ld_reload_flag
12517 case $reload_flag in
12518 "" | " "*) ;;
12519 *) reload_flag=" $reload_flag" ;;
12520 esac
12521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12522 case $host_os in
12523 darwin*)
12524 if test "$GCC" = yes; then
12525 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12526 else
12527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12528 fi
12529 ;;
12530 esac
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540 if test -n "$ac_tool_prefix"; then
12541 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12542 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 if test -n "$OBJDUMP"; then
12549 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12550 else
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12553 do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12561 fi
12562 done
12563 done
12564 IFS=$as_save_IFS
12565
12566 fi
12567 fi
12568 OBJDUMP=$ac_cv_prog_OBJDUMP
12569 if test -n "$OBJDUMP"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12571 $as_echo "$OBJDUMP" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12575 fi
12576
12577
12578 fi
12579 if test -z "$ac_cv_prog_OBJDUMP"; then
12580 ac_ct_OBJDUMP=$OBJDUMP
12581 # Extract the first word of "objdump", so it can be a program name with args.
12582 set dummy objdump; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 if test -n "$ac_ct_OBJDUMP"; then
12589 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12601 fi
12602 done
12603 done
12604 IFS=$as_save_IFS
12605
12606 fi
12607 fi
12608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12609 if test -n "$ac_ct_OBJDUMP"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12611 $as_echo "$ac_ct_OBJDUMP" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617 if test "x$ac_ct_OBJDUMP" = x; then
12618 OBJDUMP="false"
12619 else
12620 case $cross_compiling:$ac_tool_warned in
12621 yes:)
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12624 ac_tool_warned=yes ;;
12625 esac
12626 OBJDUMP=$ac_ct_OBJDUMP
12627 fi
12628 else
12629 OBJDUMP="$ac_cv_prog_OBJDUMP"
12630 fi
12631
12632 test -z "$OBJDUMP" && OBJDUMP=objdump
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12643 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12644 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 lt_cv_file_magic_cmd='$MAGIC_CMD'
12648 lt_cv_file_magic_test_file=
12649 lt_cv_deplibs_check_method='unknown'
12650 # Need to set the preceding variable on all platforms that support
12651 # interlibrary dependencies.
12652 # 'none' -- dependencies not supported.
12653 # `unknown' -- same as none, but documents that we really don't know.
12654 # 'pass_all' -- all dependencies passed with no checks.
12655 # 'test_compile' -- check by making test program.
12656 # 'file_magic [[regex]]' -- check by looking for files in library path
12657 # which responds to the $file_magic_cmd with a given extended regex.
12658 # If you have `file' or equivalent on your system and you're not sure
12659 # whether `pass_all' will *always* work, you probably want this one.
12660
12661 case $host_os in
12662 aix[4-9]*)
12663 lt_cv_deplibs_check_method=pass_all
12664 ;;
12665
12666 beos*)
12667 lt_cv_deplibs_check_method=pass_all
12668 ;;
12669
12670 bsdi[45]*)
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12672 lt_cv_file_magic_cmd='/usr/bin/file -L'
12673 lt_cv_file_magic_test_file=/shlib/libc.so
12674 ;;
12675
12676 cygwin*)
12677 # func_win32_libid is a shell function defined in ltmain.sh
12678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12679 lt_cv_file_magic_cmd='func_win32_libid'
12680 ;;
12681
12682 mingw* | pw32*)
12683 # Base MSYS/MinGW do not provide the 'file' command needed by
12684 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12685 # unless we find 'file', for example because we are cross-compiling.
12686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12687 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12689 lt_cv_file_magic_cmd='func_win32_libid'
12690 else
12691 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12692 lt_cv_file_magic_cmd='$OBJDUMP -f'
12693 fi
12694 ;;
12695
12696 cegcc*)
12697 # use the weaker test based on 'objdump'. See mingw*.
12698 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12699 lt_cv_file_magic_cmd='$OBJDUMP -f'
12700 ;;
12701
12702 darwin* | rhapsody*)
12703 lt_cv_deplibs_check_method=pass_all
12704 ;;
12705
12706 freebsd* | dragonfly*)
12707 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12708 case $host_cpu in
12709 i*86 )
12710 # Not sure whether the presence of OpenBSD here was a mistake.
12711 # Let's accept both of them until this is cleared up.
12712 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12713 lt_cv_file_magic_cmd=/usr/bin/file
12714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12715 ;;
12716 esac
12717 else
12718 lt_cv_deplibs_check_method=pass_all
12719 fi
12720 ;;
12721
12722 gnu*)
12723 lt_cv_deplibs_check_method=pass_all
12724 ;;
12725
12726 haiku*)
12727 lt_cv_deplibs_check_method=pass_all
12728 ;;
12729
12730 hpux10.20* | hpux11*)
12731 lt_cv_file_magic_cmd=/usr/bin/file
12732 case $host_cpu in
12733 ia64*)
12734 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12735 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12736 ;;
12737 hppa*64*)
12738 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]'
12739 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12740 ;;
12741 *)
12742 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12743 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12744 ;;
12745 esac
12746 ;;
12747
12748 interix[3-9]*)
12749 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12751 ;;
12752
12753 irix5* | irix6* | nonstopux*)
12754 case $LD in
12755 *-32|*"-32 ") libmagic=32-bit;;
12756 *-n32|*"-n32 ") libmagic=N32;;
12757 *-64|*"-64 ") libmagic=64-bit;;
12758 *) libmagic=never-match;;
12759 esac
12760 lt_cv_deplibs_check_method=pass_all
12761 ;;
12762
12763 # This must be Linux ELF.
12764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12765 lt_cv_deplibs_check_method=pass_all
12766 ;;
12767
12768 netbsd*)
12769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12771 else
12772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12773 fi
12774 ;;
12775
12776 newos6*)
12777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12778 lt_cv_file_magic_cmd=/usr/bin/file
12779 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12780 ;;
12781
12782 *nto* | *qnx*)
12783 lt_cv_deplibs_check_method=pass_all
12784 ;;
12785
12786 openbsd*)
12787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12789 else
12790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12791 fi
12792 ;;
12793
12794 osf3* | osf4* | osf5*)
12795 lt_cv_deplibs_check_method=pass_all
12796 ;;
12797
12798 rdos*)
12799 lt_cv_deplibs_check_method=pass_all
12800 ;;
12801
12802 solaris*)
12803 lt_cv_deplibs_check_method=pass_all
12804 ;;
12805
12806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12807 lt_cv_deplibs_check_method=pass_all
12808 ;;
12809
12810 sysv4 | sysv4.3*)
12811 case $host_vendor in
12812 motorola)
12813 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]'
12814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12815 ;;
12816 ncr)
12817 lt_cv_deplibs_check_method=pass_all
12818 ;;
12819 sequent)
12820 lt_cv_file_magic_cmd='/bin/file'
12821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12822 ;;
12823 sni)
12824 lt_cv_file_magic_cmd='/bin/file'
12825 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12826 lt_cv_file_magic_test_file=/lib/libc.so
12827 ;;
12828 siemens)
12829 lt_cv_deplibs_check_method=pass_all
12830 ;;
12831 pc)
12832 lt_cv_deplibs_check_method=pass_all
12833 ;;
12834 esac
12835 ;;
12836
12837 tpf*)
12838 lt_cv_deplibs_check_method=pass_all
12839 ;;
12840 esac
12841
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12844 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12845 file_magic_cmd=$lt_cv_file_magic_cmd
12846 deplibs_check_method=$lt_cv_deplibs_check_method
12847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860 if test -n "$ac_tool_prefix"; then
12861 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12862 set dummy ${ac_tool_prefix}ar; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if test "${ac_cv_prog_AR+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 if test -n "$AR"; then
12869 ac_cv_prog_AR="$AR" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_AR="${ac_tool_prefix}ar"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12881 fi
12882 done
12883 done
12884 IFS=$as_save_IFS
12885
12886 fi
12887 fi
12888 AR=$ac_cv_prog_AR
12889 if test -n "$AR"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12891 $as_echo "$AR" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896
12897
12898 fi
12899 if test -z "$ac_cv_prog_AR"; then
12900 ac_ct_AR=$AR
12901 # Extract the first word of "ar", so it can be a program name with args.
12902 set dummy ar; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 if test -n "$ac_ct_AR"; then
12909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12910 else
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_prog_ac_ct_AR="ar"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12921 fi
12922 done
12923 done
12924 IFS=$as_save_IFS
12925
12926 fi
12927 fi
12928 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12929 if test -n "$ac_ct_AR"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12931 $as_echo "$ac_ct_AR" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937 if test "x$ac_ct_AR" = x; then
12938 AR="false"
12939 else
12940 case $cross_compiling:$ac_tool_warned in
12941 yes:)
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12944 ac_tool_warned=yes ;;
12945 esac
12946 AR=$ac_ct_AR
12947 fi
12948 else
12949 AR="$ac_cv_prog_AR"
12950 fi
12951
12952 test -z "$AR" && AR=ar
12953 test -z "$AR_FLAGS" && AR_FLAGS=cru
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 if test -n "$ac_tool_prefix"; then
12966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12967 set dummy ${ac_tool_prefix}strip; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if test "${ac_cv_prog_STRIP+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 if test -n "$STRIP"; then
12974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12986 fi
12987 done
12988 done
12989 IFS=$as_save_IFS
12990
12991 fi
12992 fi
12993 STRIP=$ac_cv_prog_STRIP
12994 if test -n "$STRIP"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12996 $as_echo "$STRIP" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003 fi
13004 if test -z "$ac_cv_prog_STRIP"; then
13005 ac_ct_STRIP=$STRIP
13006 # Extract the first word of "strip", so it can be a program name with args.
13007 set dummy strip; ac_word=$2
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009 $as_echo_n "checking for $ac_word... " >&6; }
13010 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 if test -n "$ac_ct_STRIP"; then
13014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13015 else
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13018 do
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023 ac_cv_prog_ac_ct_STRIP="strip"
13024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13026 fi
13027 done
13028 done
13029 IFS=$as_save_IFS
13030
13031 fi
13032 fi
13033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13034 if test -n "$ac_ct_STRIP"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13036 $as_echo "$ac_ct_STRIP" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041
13042 if test "x$ac_ct_STRIP" = x; then
13043 STRIP=":"
13044 else
13045 case $cross_compiling:$ac_tool_warned in
13046 yes:)
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13049 ac_tool_warned=yes ;;
13050 esac
13051 STRIP=$ac_ct_STRIP
13052 fi
13053 else
13054 STRIP="$ac_cv_prog_STRIP"
13055 fi
13056
13057 test -z "$STRIP" && STRIP=:
13058
13059
13060
13061
13062
13063
13064 if test -n "$ac_tool_prefix"; then
13065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 if test -n "$RANLIB"; then
13073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13074 else
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13085 fi
13086 done
13087 done
13088 IFS=$as_save_IFS
13089
13090 fi
13091 fi
13092 RANLIB=$ac_cv_prog_RANLIB
13093 if test -n "$RANLIB"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13095 $as_echo "$RANLIB" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13099 fi
13100
13101
13102 fi
13103 if test -z "$ac_cv_prog_RANLIB"; then
13104 ac_ct_RANLIB=$RANLIB
13105 # Extract the first word of "ranlib", so it can be a program name with args.
13106 set dummy ranlib; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 $as_echo_n "checking for $ac_word... " >&6; }
13109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if test -n "$ac_ct_RANLIB"; then
13113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13114 else
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_ac_ct_RANLIB="ranlib"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 fi
13131 fi
13132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13133 if test -n "$ac_ct_RANLIB"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13135 $as_echo "$ac_ct_RANLIB" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 fi
13140
13141 if test "x$ac_ct_RANLIB" = x; then
13142 RANLIB=":"
13143 else
13144 case $cross_compiling:$ac_tool_warned in
13145 yes:)
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13148 ac_tool_warned=yes ;;
13149 esac
13150 RANLIB=$ac_ct_RANLIB
13151 fi
13152 else
13153 RANLIB="$ac_cv_prog_RANLIB"
13154 fi
13155
13156 test -z "$RANLIB" && RANLIB=:
13157
13158
13159
13160
13161
13162
13163 # Determine commands to create old-style static archives.
13164 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13165 old_postinstall_cmds='chmod 644 $oldlib'
13166 old_postuninstall_cmds=
13167
13168 if test -n "$RANLIB"; then
13169 case $host_os in
13170 openbsd*)
13171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13172 ;;
13173 *)
13174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13175 ;;
13176 esac
13177 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13178 fi
13179
13180 case $host_os in
13181 darwin*)
13182 lock_old_archive_extraction=yes ;;
13183 *)
13184 lock_old_archive_extraction=no ;;
13185 esac
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225 # If no C compiler was specified, use CC.
13226 LTCC=${LTCC-"$CC"}
13227
13228 # If no C compiler flags were specified, use CFLAGS.
13229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13230
13231 # Allow CC to be a program name with arguments.
13232 compiler=$CC
13233
13234
13235 # Check for command to grab the raw symbol name followed by C symbol from nm.
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13237 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13238 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241
13242 # These are sane defaults that work on at least a few old systems.
13243 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13244
13245 # Character class describing NM global symbol codes.
13246 symcode='[BCDEGRST]'
13247
13248 # Regexp to match symbols that can be accessed directly from C.
13249 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13250
13251 # Define system-specific variables.
13252 case $host_os in
13253 aix*)
13254 symcode='[BCDT]'
13255 ;;
13256 cygwin* | mingw* | pw32* | cegcc*)
13257 symcode='[ABCDGISTW]'
13258 ;;
13259 hpux*)
13260 if test "$host_cpu" = ia64; then
13261 symcode='[ABCDEGRST]'
13262 fi
13263 ;;
13264 irix* | nonstopux*)
13265 symcode='[BCDEGRST]'
13266 ;;
13267 osf*)
13268 symcode='[BCDEGQRST]'
13269 ;;
13270 solaris*)
13271 symcode='[BDRT]'
13272 ;;
13273 sco3.2v5*)
13274 symcode='[DT]'
13275 ;;
13276 sysv4.2uw2*)
13277 symcode='[DT]'
13278 ;;
13279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13280 symcode='[ABDT]'
13281 ;;
13282 sysv4)
13283 symcode='[DFNSTU]'
13284 ;;
13285 esac
13286
13287 # If we're using GNU nm, then use its standard symbol codes.
13288 case `$NM -V 2>&1` in
13289 *GNU* | *'with BFD'*)
13290 symcode='[ABCDGIRSTW]' ;;
13291 esac
13292
13293 # Transform an extracted symbol line into a proper C declaration.
13294 # Some systems (esp. on ia64) link data and code symbols differently,
13295 # so use this general approach.
13296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13297
13298 # Transform an extracted symbol line into symbol name and symbol address
13299 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13300 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'"
13301
13302 # Handle CRLF in mingw tool chain
13303 opt_cr=
13304 case $build_os in
13305 mingw*)
13306 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13307 ;;
13308 esac
13309
13310 # Try without a prefix underscore, then with it.
13311 for ac_symprfx in "" "_"; do
13312
13313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13314 symxfrm="\\1 $ac_symprfx\\2 \\2"
13315
13316 # Write the raw and C identifiers.
13317 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13318 # Fake it for dumpbin and say T for any non-static function
13319 # and D for any global variable.
13320 # Also find C++ and __fastcall symbols from MSVC++,
13321 # which start with @ or ?.
13322 lt_cv_sys_global_symbol_pipe="$AWK '"\
13323 " {last_section=section; section=\$ 3};"\
13324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13325 " \$ 0!~/External *\|/{next};"\
13326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13327 " {if(hide[section]) next};"\
13328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13332 " ' prfx=^$ac_symprfx"
13333 else
13334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13335 fi
13336
13337 # Check to see that the pipe works correctly.
13338 pipe_works=no
13339
13340 rm -f conftest*
13341 cat > conftest.$ac_ext <<_LT_EOF
13342 #ifdef __cplusplus
13343 extern "C" {
13344 #endif
13345 char nm_test_var;
13346 void nm_test_func(void);
13347 void nm_test_func(void){}
13348 #ifdef __cplusplus
13349 }
13350 #endif
13351 int main(){nm_test_var='a';nm_test_func();return(0);}
13352 _LT_EOF
13353
13354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13355 (eval $ac_compile) 2>&5
13356 ac_status=$?
13357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358 test $ac_status = 0; }; then
13359 # Now try to grab the symbols.
13360 nlist=conftest.nm
13361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13362 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13363 ac_status=$?
13364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365 test $ac_status = 0; } && test -s "$nlist"; then
13366 # Try sorting and uniquifying the output.
13367 if sort "$nlist" | uniq > "$nlist"T; then
13368 mv -f "$nlist"T "$nlist"
13369 else
13370 rm -f "$nlist"T
13371 fi
13372
13373 # Make sure that we snagged all the symbols we need.
13374 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13375 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13376 cat <<_LT_EOF > conftest.$ac_ext
13377 #ifdef __cplusplus
13378 extern "C" {
13379 #endif
13380
13381 _LT_EOF
13382 # Now generate the symbol file.
13383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13384
13385 cat <<_LT_EOF >> conftest.$ac_ext
13386
13387 /* The mapping between symbol names and symbols. */
13388 const struct {
13389 const char *name;
13390 void *address;
13391 }
13392 lt__PROGRAM__LTX_preloaded_symbols[] =
13393 {
13394 { "@PROGRAM@", (void *) 0 },
13395 _LT_EOF
13396 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13397 cat <<\_LT_EOF >> conftest.$ac_ext
13398 {0, (void *) 0}
13399 };
13400
13401 /* This works around a problem in FreeBSD linker */
13402 #ifdef FREEBSD_WORKAROUND
13403 static const void *lt_preloaded_setup() {
13404 return lt__PROGRAM__LTX_preloaded_symbols;
13405 }
13406 #endif
13407
13408 #ifdef __cplusplus
13409 }
13410 #endif
13411 _LT_EOF
13412 # Now try linking the two files.
13413 mv conftest.$ac_objext conftstm.$ac_objext
13414 lt_save_LIBS="$LIBS"
13415 lt_save_CFLAGS="$CFLAGS"
13416 LIBS="conftstm.$ac_objext"
13417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13419 (eval $ac_link) 2>&5
13420 ac_status=$?
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13423 pipe_works=yes
13424 fi
13425 LIBS="$lt_save_LIBS"
13426 CFLAGS="$lt_save_CFLAGS"
13427 else
13428 echo "cannot find nm_test_func in $nlist" >&5
13429 fi
13430 else
13431 echo "cannot find nm_test_var in $nlist" >&5
13432 fi
13433 else
13434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13435 fi
13436 else
13437 echo "$progname: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 fi
13440 rm -rf conftest* conftst*
13441
13442 # Do not use the global_symbol_pipe unless it works.
13443 if test "$pipe_works" = yes; then
13444 break
13445 else
13446 lt_cv_sys_global_symbol_pipe=
13447 fi
13448 done
13449
13450 fi
13451
13452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13453 lt_cv_sys_global_symbol_to_cdecl=
13454 fi
13455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13457 $as_echo "failed" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13460 $as_echo "ok" >&6; }
13461 fi
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484 # Check whether --enable-libtool-lock was given.
13485 if test "${enable_libtool_lock+set}" = set; then :
13486 enableval=$enable_libtool_lock;
13487 fi
13488
13489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13490
13491 # Some flags need to be propagated to the compiler or linker for good
13492 # libtool support.
13493 case $host in
13494 ia64-*-hpux*)
13495 # Find out which ABI we are using.
13496 echo 'int i;' > conftest.$ac_ext
13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13498 (eval $ac_compile) 2>&5
13499 ac_status=$?
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501 test $ac_status = 0; }; then
13502 case `/usr/bin/file conftest.$ac_objext` in
13503 *ELF-32*)
13504 HPUX_IA64_MODE="32"
13505 ;;
13506 *ELF-64*)
13507 HPUX_IA64_MODE="64"
13508 ;;
13509 esac
13510 fi
13511 rm -rf conftest*
13512 ;;
13513 *-*-irix6*)
13514 # Find out which ABI we are using.
13515 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13517 (eval $ac_compile) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; }; then
13521 if test "$lt_cv_prog_gnu_ld" = yes; then
13522 case `/usr/bin/file conftest.$ac_objext` in
13523 *32-bit*)
13524 LD="${LD-ld} -melf32bsmip"
13525 ;;
13526 *N32*)
13527 LD="${LD-ld} -melf32bmipn32"
13528 ;;
13529 *64-bit*)
13530 LD="${LD-ld} -melf64bmip"
13531 ;;
13532 esac
13533 else
13534 case `/usr/bin/file conftest.$ac_objext` in
13535 *32-bit*)
13536 LD="${LD-ld} -32"
13537 ;;
13538 *N32*)
13539 LD="${LD-ld} -n32"
13540 ;;
13541 *64-bit*)
13542 LD="${LD-ld} -64"
13543 ;;
13544 esac
13545 fi
13546 fi
13547 rm -rf conftest*
13548 ;;
13549
13550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13552 # Find out which ABI we are using.
13553 echo 'int i;' > conftest.$ac_ext
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13555 (eval $ac_compile) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; }; then
13559 case `/usr/bin/file conftest.o` in
13560 *32-bit*)
13561 case $host in
13562 x86_64-*kfreebsd*-gnu)
13563 LD="${LD-ld} -m elf_i386_fbsd"
13564 ;;
13565 x86_64-*linux*)
13566 case `/usr/bin/file conftest.o` in
13567 *x86-64*)
13568 LD="${LD-ld} -m elf32_x86_64"
13569 ;;
13570 *)
13571 LD="${LD-ld} -m elf_i386"
13572 ;;
13573 esac
13574 ;;
13575 ppc64-*linux*|powerpc64-*linux*)
13576 LD="${LD-ld} -m elf32ppclinux"
13577 ;;
13578 s390x-*linux*)
13579 LD="${LD-ld} -m elf_s390"
13580 ;;
13581 sparc64-*linux*)
13582 LD="${LD-ld} -m elf32_sparc"
13583 ;;
13584 esac
13585 ;;
13586 *64-bit*)
13587 case $host in
13588 x86_64-*kfreebsd*-gnu)
13589 LD="${LD-ld} -m elf_x86_64_fbsd"
13590 ;;
13591 x86_64-*linux*)
13592 LD="${LD-ld} -m elf_x86_64"
13593 ;;
13594 ppc*-*linux*|powerpc*-*linux*)
13595 LD="${LD-ld} -m elf64ppc"
13596 ;;
13597 s390*-*linux*|s390*-*tpf*)
13598 LD="${LD-ld} -m elf64_s390"
13599 ;;
13600 sparc*-*linux*)
13601 LD="${LD-ld} -m elf64_sparc"
13602 ;;
13603 esac
13604 ;;
13605 esac
13606 fi
13607 rm -rf conftest*
13608 ;;
13609
13610 *-*-sco3.2v5*)
13611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13612 SAVE_CFLAGS="$CFLAGS"
13613 CFLAGS="$CFLAGS -belf"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13615 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13616 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 ac_ext=c
13620 ac_cpp='$CPP $CPPFLAGS'
13621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13624
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627
13628 int
13629 main ()
13630 {
13631
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 lt_cv_cc_needs_belf=yes
13638 else
13639 lt_cv_cc_needs_belf=no
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 ac_ext=c
13644 ac_cpp='$CPP $CPPFLAGS'
13645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13648
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13651 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13652 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13653 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13654 CFLAGS="$SAVE_CFLAGS"
13655 fi
13656 ;;
13657 sparc*-*solaris*)
13658 # Find out which ABI we are using.
13659 echo 'int i;' > conftest.$ac_ext
13660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 case `/usr/bin/file conftest.o` in
13666 *64-bit*)
13667 case $lt_cv_prog_gnu_ld in
13668 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13669 *)
13670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13671 LD="${LD-ld} -64"
13672 fi
13673 ;;
13674 esac
13675 ;;
13676 esac
13677 fi
13678 rm -rf conftest*
13679 ;;
13680 esac
13681
13682 need_locks="$enable_libtool_lock"
13683
13684
13685 case $host_os in
13686 rhapsody* | darwin*)
13687 if test -n "$ac_tool_prefix"; then
13688 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13689 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691 $as_echo_n "checking for $ac_word... " >&6; }
13692 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 if test -n "$DSYMUTIL"; then
13696 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13697 else
13698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699 for as_dir in $PATH
13700 do
13701 IFS=$as_save_IFS
13702 test -z "$as_dir" && as_dir=.
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13705 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13707 break 2
13708 fi
13709 done
13710 done
13711 IFS=$as_save_IFS
13712
13713 fi
13714 fi
13715 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13716 if test -n "$DSYMUTIL"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13718 $as_echo "$DSYMUTIL" >&6; }
13719 else
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 $as_echo "no" >&6; }
13722 fi
13723
13724
13725 fi
13726 if test -z "$ac_cv_prog_DSYMUTIL"; then
13727 ac_ct_DSYMUTIL=$DSYMUTIL
13728 # Extract the first word of "dsymutil", so it can be a program name with args.
13729 set dummy dsymutil; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 if test -n "$ac_ct_DSYMUTIL"; then
13736 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13737 else
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13740 do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13745 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13748 fi
13749 done
13750 done
13751 IFS=$as_save_IFS
13752
13753 fi
13754 fi
13755 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13756 if test -n "$ac_ct_DSYMUTIL"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13758 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13759 else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13762 fi
13763
13764 if test "x$ac_ct_DSYMUTIL" = x; then
13765 DSYMUTIL=":"
13766 else
13767 case $cross_compiling:$ac_tool_warned in
13768 yes:)
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13771 ac_tool_warned=yes ;;
13772 esac
13773 DSYMUTIL=$ac_ct_DSYMUTIL
13774 fi
13775 else
13776 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13777 fi
13778
13779 if test -n "$ac_tool_prefix"; then
13780 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13781 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783 $as_echo_n "checking for $ac_word... " >&6; }
13784 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 if test -n "$NMEDIT"; then
13788 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13789 else
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13792 do
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13797 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13799 break 2
13800 fi
13801 done
13802 done
13803 IFS=$as_save_IFS
13804
13805 fi
13806 fi
13807 NMEDIT=$ac_cv_prog_NMEDIT
13808 if test -n "$NMEDIT"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13810 $as_echo "$NMEDIT" >&6; }
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13814 fi
13815
13816
13817 fi
13818 if test -z "$ac_cv_prog_NMEDIT"; then
13819 ac_ct_NMEDIT=$NMEDIT
13820 # Extract the first word of "nmedit", so it can be a program name with args.
13821 set dummy nmedit; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 if test -n "$ac_ct_NMEDIT"; then
13828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13829 else
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13837 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839 break 2
13840 fi
13841 done
13842 done
13843 IFS=$as_save_IFS
13844
13845 fi
13846 fi
13847 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13848 if test -n "$ac_ct_NMEDIT"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13850 $as_echo "$ac_ct_NMEDIT" >&6; }
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855
13856 if test "x$ac_ct_NMEDIT" = x; then
13857 NMEDIT=":"
13858 else
13859 case $cross_compiling:$ac_tool_warned in
13860 yes:)
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13863 ac_tool_warned=yes ;;
13864 esac
13865 NMEDIT=$ac_ct_NMEDIT
13866 fi
13867 else
13868 NMEDIT="$ac_cv_prog_NMEDIT"
13869 fi
13870
13871 if test -n "$ac_tool_prefix"; then
13872 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13873 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if test "${ac_cv_prog_LIPO+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 if test -n "$LIPO"; then
13880 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13881 else
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13884 do
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13892 fi
13893 done
13894 done
13895 IFS=$as_save_IFS
13896
13897 fi
13898 fi
13899 LIPO=$ac_cv_prog_LIPO
13900 if test -n "$LIPO"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13902 $as_echo "$LIPO" >&6; }
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13906 fi
13907
13908
13909 fi
13910 if test -z "$ac_cv_prog_LIPO"; then
13911 ac_ct_LIPO=$LIPO
13912 # Extract the first word of "lipo", so it can be a program name with args.
13913 set dummy lipo; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915 $as_echo_n "checking for $ac_word... " >&6; }
13916 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 if test -n "$ac_ct_LIPO"; then
13920 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13921 else
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13924 do
13925 IFS=$as_save_IFS
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13929 ac_cv_prog_ac_ct_LIPO="lipo"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13931 break 2
13932 fi
13933 done
13934 done
13935 IFS=$as_save_IFS
13936
13937 fi
13938 fi
13939 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13940 if test -n "$ac_ct_LIPO"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13942 $as_echo "$ac_ct_LIPO" >&6; }
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 fi
13947
13948 if test "x$ac_ct_LIPO" = x; then
13949 LIPO=":"
13950 else
13951 case $cross_compiling:$ac_tool_warned in
13952 yes:)
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13955 ac_tool_warned=yes ;;
13956 esac
13957 LIPO=$ac_ct_LIPO
13958 fi
13959 else
13960 LIPO="$ac_cv_prog_LIPO"
13961 fi
13962
13963 if test -n "$ac_tool_prefix"; then
13964 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13965 set dummy ${ac_tool_prefix}otool; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 if test -n "$OTOOL"; then
13972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13973 else
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13976 do
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13981 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13984 fi
13985 done
13986 done
13987 IFS=$as_save_IFS
13988
13989 fi
13990 fi
13991 OTOOL=$ac_cv_prog_OTOOL
13992 if test -n "$OTOOL"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13994 $as_echo "$OTOOL" >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997 $as_echo "no" >&6; }
13998 fi
13999
14000
14001 fi
14002 if test -z "$ac_cv_prog_OTOOL"; then
14003 ac_ct_OTOOL=$OTOOL
14004 # Extract the first word of "otool", so it can be a program name with args.
14005 set dummy otool; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14007 $as_echo_n "checking for $ac_word... " >&6; }
14008 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 if test -n "$ac_ct_OTOOL"; then
14012 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14013 else
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14016 do
14017 IFS=$as_save_IFS
14018 test -z "$as_dir" && as_dir=.
14019 for ac_exec_ext in '' $ac_executable_extensions; do
14020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14021 ac_cv_prog_ac_ct_OTOOL="otool"
14022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14023 break 2
14024 fi
14025 done
14026 done
14027 IFS=$as_save_IFS
14028
14029 fi
14030 fi
14031 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14032 if test -n "$ac_ct_OTOOL"; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14034 $as_echo "$ac_ct_OTOOL" >&6; }
14035 else
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038 fi
14039
14040 if test "x$ac_ct_OTOOL" = x; then
14041 OTOOL=":"
14042 else
14043 case $cross_compiling:$ac_tool_warned in
14044 yes:)
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14047 ac_tool_warned=yes ;;
14048 esac
14049 OTOOL=$ac_ct_OTOOL
14050 fi
14051 else
14052 OTOOL="$ac_cv_prog_OTOOL"
14053 fi
14054
14055 if test -n "$ac_tool_prefix"; then
14056 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14057 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 if test -n "$OTOOL64"; then
14064 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14065 else
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14068 do
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14073 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14075 break 2
14076 fi
14077 done
14078 done
14079 IFS=$as_save_IFS
14080
14081 fi
14082 fi
14083 OTOOL64=$ac_cv_prog_OTOOL64
14084 if test -n "$OTOOL64"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14086 $as_echo "$OTOOL64" >&6; }
14087 else
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14090 fi
14091
14092
14093 fi
14094 if test -z "$ac_cv_prog_OTOOL64"; then
14095 ac_ct_OTOOL64=$OTOOL64
14096 # Extract the first word of "otool64", so it can be a program name with args.
14097 set dummy otool64; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 if test -n "$ac_ct_OTOOL64"; then
14104 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14108 do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_ac_ct_OTOOL64="otool64"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14120
14121 fi
14122 fi
14123 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14124 if test -n "$ac_ct_OTOOL64"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14126 $as_echo "$ac_ct_OTOOL64" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132 if test "x$ac_ct_OTOOL64" = x; then
14133 OTOOL64=":"
14134 else
14135 case $cross_compiling:$ac_tool_warned in
14136 yes:)
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14139 ac_tool_warned=yes ;;
14140 esac
14141 OTOOL64=$ac_ct_OTOOL64
14142 fi
14143 else
14144 OTOOL64="$ac_cv_prog_OTOOL64"
14145 fi
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14174 $as_echo_n "checking for -single_module linker flag... " >&6; }
14175 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 lt_cv_apple_cc_single_mod=no
14179 if test -z "${LT_MULTI_MODULE}"; then
14180 # By default we will add the -single_module flag. You can override
14181 # by either setting the environment variable LT_MULTI_MODULE
14182 # non-empty at configure time, or by adding -multi_module to the
14183 # link flags.
14184 rm -rf libconftest.dylib*
14185 echo "int foo(void){return 1;}" > conftest.c
14186 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14187 -dynamiclib -Wl,-single_module conftest.c" >&5
14188 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14189 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14190 _lt_result=$?
14191 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14192 lt_cv_apple_cc_single_mod=yes
14193 else
14194 cat conftest.err >&5
14195 fi
14196 rm -rf libconftest.dylib*
14197 rm -f conftest.*
14198 fi
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14201 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14203 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14204 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 lt_cv_ld_exported_symbols_list=no
14208 save_LDFLAGS=$LDFLAGS
14209 echo "_main" > conftest.sym
14210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14213
14214 int
14215 main ()
14216 {
14217
14218 ;
14219 return 0;
14220 }
14221 _ACEOF
14222 if ac_fn_c_try_link "$LINENO"; then :
14223 lt_cv_ld_exported_symbols_list=yes
14224 else
14225 lt_cv_ld_exported_symbols_list=no
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LDFLAGS="$save_LDFLAGS"
14230
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14233 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14235 $as_echo_n "checking for -force_load linker flag... " >&6; }
14236 if test "${lt_cv_ld_force_load+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 lt_cv_ld_force_load=no
14240 cat > conftest.c << _LT_EOF
14241 int forced_loaded() { return 2;}
14242 _LT_EOF
14243 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14244 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14245 echo "$AR cru libconftest.a conftest.o" >&5
14246 $AR cru libconftest.a conftest.o 2>&5
14247 cat > conftest.c << _LT_EOF
14248 int main() { return 0;}
14249 _LT_EOF
14250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14252 _lt_result=$?
14253 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14254 lt_cv_ld_force_load=yes
14255 else
14256 cat conftest.err >&5
14257 fi
14258 rm -f conftest.err libconftest.a conftest conftest.c
14259 rm -rf conftest.dSYM
14260
14261 fi
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14263 $as_echo "$lt_cv_ld_force_load" >&6; }
14264 case $host_os in
14265 rhapsody* | darwin1.[012])
14266 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14267 darwin1.*)
14268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14269 darwin*) # darwin 5.x on
14270 # if running on 10.5 or later, the deployment target defaults
14271 # to the OS version, if on x86, and 10.4, the deployment
14272 # target defaults to 10.4. Don't you love it?
14273 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14274 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14275 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14276 10.[012]*)
14277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14278 10.*)
14279 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14280 esac
14281 ;;
14282 esac
14283 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14284 _lt_dar_single_mod='$single_module'
14285 fi
14286 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14287 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14288 else
14289 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14290 fi
14291 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14292 _lt_dsymutil='~$DSYMUTIL $lib || :'
14293 else
14294 _lt_dsymutil=
14295 fi
14296 ;;
14297 esac
14298
14299 for ac_header in dlfcn.h
14300 do :
14301 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14302 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_DLFCN_H 1
14305 _ACEOF
14306
14307 fi
14308 done
14309
14310
14311
14312
14313
14314 # Set options
14315
14316
14317
14318 enable_dlopen=no
14319
14320
14321 enable_win32_dll=no
14322
14323
14324 # Check whether --enable-shared was given.
14325 if test "${enable_shared+set}" = set; then :
14326 enableval=$enable_shared; p=${PACKAGE-default}
14327 case $enableval in
14328 yes) enable_shared=yes ;;
14329 no) enable_shared=no ;;
14330 *)
14331 enable_shared=no
14332 # Look at the argument we got. We use all the common list separators.
14333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14334 for pkg in $enableval; do
14335 IFS="$lt_save_ifs"
14336 if test "X$pkg" = "X$p"; then
14337 enable_shared=yes
14338 fi
14339 done
14340 IFS="$lt_save_ifs"
14341 ;;
14342 esac
14343 else
14344 enable_shared=yes
14345 fi
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355 # Check whether --enable-static was given.
14356 if test "${enable_static+set}" = set; then :
14357 enableval=$enable_static; p=${PACKAGE-default}
14358 case $enableval in
14359 yes) enable_static=yes ;;
14360 no) enable_static=no ;;
14361 *)
14362 enable_static=no
14363 # Look at the argument we got. We use all the common list separators.
14364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14365 for pkg in $enableval; do
14366 IFS="$lt_save_ifs"
14367 if test "X$pkg" = "X$p"; then
14368 enable_static=yes
14369 fi
14370 done
14371 IFS="$lt_save_ifs"
14372 ;;
14373 esac
14374 else
14375 enable_static=yes
14376 fi
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387 # Check whether --with-pic was given.
14388 if test "${with_pic+set}" = set; then :
14389 withval=$with_pic; pic_mode="$withval"
14390 else
14391 pic_mode=default
14392 fi
14393
14394
14395 test -z "$pic_mode" && pic_mode=default
14396
14397
14398
14399
14400
14401
14402
14403 # Check whether --enable-fast-install was given.
14404 if test "${enable_fast_install+set}" = set; then :
14405 enableval=$enable_fast_install; p=${PACKAGE-default}
14406 case $enableval in
14407 yes) enable_fast_install=yes ;;
14408 no) enable_fast_install=no ;;
14409 *)
14410 enable_fast_install=no
14411 # Look at the argument we got. We use all the common list separators.
14412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14413 for pkg in $enableval; do
14414 IFS="$lt_save_ifs"
14415 if test "X$pkg" = "X$p"; then
14416 enable_fast_install=yes
14417 fi
14418 done
14419 IFS="$lt_save_ifs"
14420 ;;
14421 esac
14422 else
14423 enable_fast_install=yes
14424 fi
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436 # This can be used to rebuild libtool when needed
14437 LIBTOOL_DEPS="$ltmain"
14438
14439 # Always use our own libtool.
14440 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467 test -z "$LN_S" && LN_S="ln -s"
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482 if test -n "${ZSH_VERSION+set}" ; then
14483 setopt NO_GLOB_SUBST
14484 fi
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14487 $as_echo_n "checking for objdir... " >&6; }
14488 if test "${lt_cv_objdir+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 rm -f .libs 2>/dev/null
14492 mkdir .libs 2>/dev/null
14493 if test -d .libs; then
14494 lt_cv_objdir=.libs
14495 else
14496 # MS-DOS does not allow filenames that begin with a dot.
14497 lt_cv_objdir=_libs
14498 fi
14499 rmdir .libs 2>/dev/null
14500 fi
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14502 $as_echo "$lt_cv_objdir" >&6; }
14503 objdir=$lt_cv_objdir
14504
14505
14506
14507
14508
14509 cat >>confdefs.h <<_ACEOF
14510 #define LT_OBJDIR "$lt_cv_objdir/"
14511 _ACEOF
14512
14513
14514
14515
14516 case $host_os in
14517 aix3*)
14518 # AIX sometimes has problems with the GCC collect2 program. For some
14519 # reason, if we set the COLLECT_NAMES environment variable, the problems
14520 # vanish in a puff of smoke.
14521 if test "X${COLLECT_NAMES+set}" != Xset; then
14522 COLLECT_NAMES=
14523 export COLLECT_NAMES
14524 fi
14525 ;;
14526 esac
14527
14528 # Global variables:
14529 ofile=libtool
14530 can_build_shared=yes
14531
14532 # All known linkers require a `.a' archive for static linking (except MSVC,
14533 # which needs '.lib').
14534 libext=a
14535
14536 with_gnu_ld="$lt_cv_prog_gnu_ld"
14537
14538 old_CC="$CC"
14539 old_CFLAGS="$CFLAGS"
14540
14541 # Set sane defaults for various variables
14542 test -z "$CC" && CC=cc
14543 test -z "$LTCC" && LTCC=$CC
14544 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14545 test -z "$LD" && LD=ld
14546 test -z "$ac_objext" && ac_objext=o
14547
14548 for cc_temp in $compiler""; do
14549 case $cc_temp in
14550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14552 \-*) ;;
14553 *) break;;
14554 esac
14555 done
14556 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14557
14558
14559 # Only perform the check for file, if the check method requires it
14560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14561 case $deplibs_check_method in
14562 file_magic*)
14563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14565 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 case $MAGIC_CMD in
14570 [\\/*] | ?:[\\/]*)
14571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14572 ;;
14573 *)
14574 lt_save_MAGIC_CMD="$MAGIC_CMD"
14575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14577 for ac_dir in $ac_dummy; do
14578 IFS="$lt_save_ifs"
14579 test -z "$ac_dir" && ac_dir=.
14580 if test -f $ac_dir/${ac_tool_prefix}file; then
14581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14582 if test -n "$file_magic_test_file"; then
14583 case $deplibs_check_method in
14584 "file_magic "*)
14585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14588 $EGREP "$file_magic_regex" > /dev/null; then
14589 :
14590 else
14591 cat <<_LT_EOF 1>&2
14592
14593 *** Warning: the command libtool uses to detect shared libraries,
14594 *** $file_magic_cmd, produces output that libtool cannot recognize.
14595 *** The result is that libtool may fail to recognize shared libraries
14596 *** as such. This will affect the creation of libtool libraries that
14597 *** depend on shared libraries, but programs linked with such libtool
14598 *** libraries will work regardless of this problem. Nevertheless, you
14599 *** may want to report the problem to your system manager and/or to
14600 *** bug-libtool@gnu.org
14601
14602 _LT_EOF
14603 fi ;;
14604 esac
14605 fi
14606 break
14607 fi
14608 done
14609 IFS="$lt_save_ifs"
14610 MAGIC_CMD="$lt_save_MAGIC_CMD"
14611 ;;
14612 esac
14613 fi
14614
14615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14616 if test -n "$MAGIC_CMD"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14618 $as_echo "$MAGIC_CMD" >&6; }
14619 else
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14622 fi
14623
14624
14625
14626
14627
14628 if test -z "$lt_cv_path_MAGIC_CMD"; then
14629 if test -n "$ac_tool_prefix"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14631 $as_echo_n "checking for file... " >&6; }
14632 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 case $MAGIC_CMD in
14636 [\\/*] | ?:[\\/]*)
14637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14638 ;;
14639 *)
14640 lt_save_MAGIC_CMD="$MAGIC_CMD"
14641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14643 for ac_dir in $ac_dummy; do
14644 IFS="$lt_save_ifs"
14645 test -z "$ac_dir" && ac_dir=.
14646 if test -f $ac_dir/file; then
14647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14648 if test -n "$file_magic_test_file"; then
14649 case $deplibs_check_method in
14650 "file_magic "*)
14651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14654 $EGREP "$file_magic_regex" > /dev/null; then
14655 :
14656 else
14657 cat <<_LT_EOF 1>&2
14658
14659 *** Warning: the command libtool uses to detect shared libraries,
14660 *** $file_magic_cmd, produces output that libtool cannot recognize.
14661 *** The result is that libtool may fail to recognize shared libraries
14662 *** as such. This will affect the creation of libtool libraries that
14663 *** depend on shared libraries, but programs linked with such libtool
14664 *** libraries will work regardless of this problem. Nevertheless, you
14665 *** may want to report the problem to your system manager and/or to
14666 *** bug-libtool@gnu.org
14667
14668 _LT_EOF
14669 fi ;;
14670 esac
14671 fi
14672 break
14673 fi
14674 done
14675 IFS="$lt_save_ifs"
14676 MAGIC_CMD="$lt_save_MAGIC_CMD"
14677 ;;
14678 esac
14679 fi
14680
14681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14682 if test -n "$MAGIC_CMD"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14684 $as_echo "$MAGIC_CMD" >&6; }
14685 else
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14688 fi
14689
14690
14691 else
14692 MAGIC_CMD=:
14693 fi
14694 fi
14695
14696 fi
14697 ;;
14698 esac
14699
14700 # Use C for the default configuration in the libtool script
14701
14702 lt_save_CC="$CC"
14703 ac_ext=c
14704 ac_cpp='$CPP $CPPFLAGS'
14705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14708
14709
14710 # Source file extension for C test sources.
14711 ac_ext=c
14712
14713 # Object file extension for compiled C test sources.
14714 objext=o
14715 objext=$objext
14716
14717 # Code to be used in simple compile tests
14718 lt_simple_compile_test_code="int some_variable = 0;"
14719
14720 # Code to be used in simple link tests
14721 lt_simple_link_test_code='int main(){return(0);}'
14722
14723
14724
14725
14726
14727
14728
14729 # If no C compiler was specified, use CC.
14730 LTCC=${LTCC-"$CC"}
14731
14732 # If no C compiler flags were specified, use CFLAGS.
14733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14734
14735 # Allow CC to be a program name with arguments.
14736 compiler=$CC
14737
14738 # Save the default compiler, since it gets overwritten when the other
14739 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14740 compiler_DEFAULT=$CC
14741
14742 # save warnings/boilerplate of simple test code
14743 ac_outfile=conftest.$ac_objext
14744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746 _lt_compiler_boilerplate=`cat conftest.err`
14747 $RM conftest*
14748
14749 ac_outfile=conftest.$ac_objext
14750 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14752 _lt_linker_boilerplate=`cat conftest.err`
14753 $RM -r conftest*
14754
14755
14756 ## CAVEAT EMPTOR:
14757 ## There is no encapsulation within the following macros, do not change
14758 ## the running order or otherwise move them around unless you know exactly
14759 ## what you are doing...
14760 if test -n "$compiler"; then
14761
14762 lt_prog_compiler_no_builtin_flag=
14763
14764 if test "$GCC" = yes; then
14765 case $cc_basename in
14766 nvcc*)
14767 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14768 *)
14769 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14770 esac
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14773 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14774 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 lt_cv_prog_compiler_rtti_exceptions=no
14778 ac_outfile=conftest.$ac_objext
14779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780 lt_compiler_flag="-fno-rtti -fno-exceptions"
14781 # Insert the option either (1) after the last *FLAGS variable, or
14782 # (2) before a word containing "conftest.", or (3) at the end.
14783 # Note that $ac_compile itself does not contain backslashes and begins
14784 # with a dollar sign (not a hyphen), so the echo should work correctly.
14785 # The option is referenced via a variable to avoid confusing sed.
14786 lt_compile=`echo "$ac_compile" | $SED \
14787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789 -e 's:$: $lt_compiler_flag:'`
14790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14791 (eval "$lt_compile" 2>conftest.err)
14792 ac_status=$?
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 if (exit $ac_status) && test -s "$ac_outfile"; then
14796 # The compiler can only warn and ignore the option if not recognized
14797 # So say no if there are warnings other than the usual output.
14798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14801 lt_cv_prog_compiler_rtti_exceptions=yes
14802 fi
14803 fi
14804 $RM conftest*
14805
14806 fi
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14808 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14809
14810 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14811 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14812 else
14813 :
14814 fi
14815
14816 fi
14817
14818
14819
14820
14821
14822
14823 lt_prog_compiler_wl=
14824 lt_prog_compiler_pic=
14825 lt_prog_compiler_static=
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14828 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14829
14830 if test "$GCC" = yes; then
14831 lt_prog_compiler_wl='-Wl,'
14832 lt_prog_compiler_static='-static'
14833
14834 case $host_os in
14835 aix*)
14836 # All AIX code is PIC.
14837 if test "$host_cpu" = ia64; then
14838 # AIX 5 now supports IA64 processor
14839 lt_prog_compiler_static='-Bstatic'
14840 fi
14841 lt_prog_compiler_pic='-fPIC'
14842 ;;
14843
14844 amigaos*)
14845 case $host_cpu in
14846 powerpc)
14847 # see comment about AmigaOS4 .so support
14848 lt_prog_compiler_pic='-fPIC'
14849 ;;
14850 m68k)
14851 # FIXME: we need at least 68020 code to build shared libraries, but
14852 # adding the `-m68020' flag to GCC prevents building anything better,
14853 # like `-m68040'.
14854 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14855 ;;
14856 esac
14857 ;;
14858
14859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14860 # PIC is the default for these OSes.
14861 ;;
14862
14863 mingw* | cygwin* | pw32* | os2* | cegcc*)
14864 # This hack is so that the source file can tell whether it is being
14865 # built for inclusion in a dll (and should export symbols for example).
14866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14867 # (--disable-auto-import) libraries
14868 lt_prog_compiler_pic='-DDLL_EXPORT'
14869 ;;
14870
14871 darwin* | rhapsody*)
14872 # PIC is the default on this platform
14873 # Common symbols not allowed in MH_DYLIB files
14874 lt_prog_compiler_pic='-fno-common'
14875 ;;
14876
14877 haiku*)
14878 # PIC is the default for Haiku.
14879 # The "-static" flag exists, but is broken.
14880 lt_prog_compiler_static=
14881 ;;
14882
14883 hpux*)
14884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14886 # sets the default TLS model and affects inlining.
14887 case $host_cpu in
14888 hppa*64*)
14889 # +Z the default
14890 ;;
14891 *)
14892 lt_prog_compiler_pic='-fPIC'
14893 ;;
14894 esac
14895 ;;
14896
14897 interix[3-9]*)
14898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14899 # Instead, we relocate shared libraries at runtime.
14900 ;;
14901
14902 msdosdjgpp*)
14903 # Just because we use GCC doesn't mean we suddenly get shared libraries
14904 # on systems that don't support them.
14905 lt_prog_compiler_can_build_shared=no
14906 enable_shared=no
14907 ;;
14908
14909 *nto* | *qnx*)
14910 # QNX uses GNU C++, but need to define -shared option too, otherwise
14911 # it will coredump.
14912 lt_prog_compiler_pic='-fPIC -shared'
14913 ;;
14914
14915 sysv4*MP*)
14916 if test -d /usr/nec; then
14917 lt_prog_compiler_pic=-Kconform_pic
14918 fi
14919 ;;
14920
14921 *)
14922 lt_prog_compiler_pic='-fPIC'
14923 ;;
14924 esac
14925
14926 case $cc_basename in
14927 nvcc*) # Cuda Compiler Driver 2.2
14928 lt_prog_compiler_wl='-Xlinker '
14929 lt_prog_compiler_pic='-Xcompiler -fPIC'
14930 ;;
14931 esac
14932 else
14933 # PORTME Check for flag to pass linker flags through the system compiler.
14934 case $host_os in
14935 aix*)
14936 lt_prog_compiler_wl='-Wl,'
14937 if test "$host_cpu" = ia64; then
14938 # AIX 5 now supports IA64 processor
14939 lt_prog_compiler_static='-Bstatic'
14940 else
14941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14942 fi
14943 ;;
14944
14945 mingw* | cygwin* | pw32* | os2* | cegcc*)
14946 # This hack is so that the source file can tell whether it is being
14947 # built for inclusion in a dll (and should export symbols for example).
14948 lt_prog_compiler_pic='-DDLL_EXPORT'
14949 ;;
14950
14951 hpux9* | hpux10* | hpux11*)
14952 lt_prog_compiler_wl='-Wl,'
14953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14954 # not for PA HP-UX.
14955 case $host_cpu in
14956 hppa*64*|ia64*)
14957 # +Z the default
14958 ;;
14959 *)
14960 lt_prog_compiler_pic='+Z'
14961 ;;
14962 esac
14963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14964 lt_prog_compiler_static='${wl}-a ${wl}archive'
14965 ;;
14966
14967 irix5* | irix6* | nonstopux*)
14968 lt_prog_compiler_wl='-Wl,'
14969 # PIC (with -KPIC) is the default.
14970 lt_prog_compiler_static='-non_shared'
14971 ;;
14972
14973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14974 case $cc_basename in
14975 # old Intel for x86_64 which still supported -KPIC.
14976 ecc*)
14977 lt_prog_compiler_wl='-Wl,'
14978 lt_prog_compiler_pic='-KPIC'
14979 lt_prog_compiler_static='-static'
14980 ;;
14981 # icc used to be incompatible with GCC.
14982 # ICC 10 doesn't accept -KPIC any more.
14983 icc* | ifort*)
14984 lt_prog_compiler_wl='-Wl,'
14985 lt_prog_compiler_pic='-fPIC'
14986 lt_prog_compiler_static='-static'
14987 ;;
14988 # Lahey Fortran 8.1.
14989 lf95*)
14990 lt_prog_compiler_wl='-Wl,'
14991 lt_prog_compiler_pic='--shared'
14992 lt_prog_compiler_static='--static'
14993 ;;
14994 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14995 # Portland Group compilers (*not* the Pentium gcc compiler,
14996 # which looks to be a dead project)
14997 lt_prog_compiler_wl='-Wl,'
14998 lt_prog_compiler_pic='-fpic'
14999 lt_prog_compiler_static='-Bstatic'
15000 ;;
15001 ccc*)
15002 lt_prog_compiler_wl='-Wl,'
15003 # All Alpha code is PIC.
15004 lt_prog_compiler_static='-non_shared'
15005 ;;
15006 xl* | bgxl* | bgf* | mpixl*)
15007 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15008 lt_prog_compiler_wl='-Wl,'
15009 lt_prog_compiler_pic='-qpic'
15010 lt_prog_compiler_static='-qstaticlink'
15011 ;;
15012 *)
15013 case `$CC -V 2>&1 | sed 5q` in
15014 *Sun\ F* | *Sun*Fortran*)
15015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15016 lt_prog_compiler_pic='-KPIC'
15017 lt_prog_compiler_static='-Bstatic'
15018 lt_prog_compiler_wl=''
15019 ;;
15020 *Sun\ C*)
15021 # Sun C 5.9
15022 lt_prog_compiler_pic='-KPIC'
15023 lt_prog_compiler_static='-Bstatic'
15024 lt_prog_compiler_wl='-Wl,'
15025 ;;
15026 esac
15027 ;;
15028 esac
15029 ;;
15030
15031 newsos6)
15032 lt_prog_compiler_pic='-KPIC'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
15035
15036 *nto* | *qnx*)
15037 # QNX uses GNU C++, but need to define -shared option too, otherwise
15038 # it will coredump.
15039 lt_prog_compiler_pic='-fPIC -shared'
15040 ;;
15041
15042 osf3* | osf4* | osf5*)
15043 lt_prog_compiler_wl='-Wl,'
15044 # All OSF/1 code is PIC.
15045 lt_prog_compiler_static='-non_shared'
15046 ;;
15047
15048 rdos*)
15049 lt_prog_compiler_static='-non_shared'
15050 ;;
15051
15052 solaris*)
15053 lt_prog_compiler_pic='-KPIC'
15054 lt_prog_compiler_static='-Bstatic'
15055 case $cc_basename in
15056 f77* | f90* | f95*)
15057 lt_prog_compiler_wl='-Qoption ld ';;
15058 *)
15059 lt_prog_compiler_wl='-Wl,';;
15060 esac
15061 ;;
15062
15063 sunos4*)
15064 lt_prog_compiler_wl='-Qoption ld '
15065 lt_prog_compiler_pic='-PIC'
15066 lt_prog_compiler_static='-Bstatic'
15067 ;;
15068
15069 sysv4 | sysv4.2uw2* | sysv4.3*)
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-KPIC'
15072 lt_prog_compiler_static='-Bstatic'
15073 ;;
15074
15075 sysv4*MP*)
15076 if test -d /usr/nec ;then
15077 lt_prog_compiler_pic='-Kconform_pic'
15078 lt_prog_compiler_static='-Bstatic'
15079 fi
15080 ;;
15081
15082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-KPIC'
15085 lt_prog_compiler_static='-Bstatic'
15086 ;;
15087
15088 unicos*)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_can_build_shared=no
15091 ;;
15092
15093 uts4*)
15094 lt_prog_compiler_pic='-pic'
15095 lt_prog_compiler_static='-Bstatic'
15096 ;;
15097
15098 *)
15099 lt_prog_compiler_can_build_shared=no
15100 ;;
15101 esac
15102 fi
15103
15104 case $host_os in
15105 # For platforms which do not support PIC, -DPIC is meaningless:
15106 *djgpp*)
15107 lt_prog_compiler_pic=
15108 ;;
15109 *)
15110 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15111 ;;
15112 esac
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15114 $as_echo "$lt_prog_compiler_pic" >&6; }
15115
15116
15117
15118
15119
15120
15121 #
15122 # Check to make sure the PIC flag actually works.
15123 #
15124 if test -n "$lt_prog_compiler_pic"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15126 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15127 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 lt_cv_prog_compiler_pic_works=no
15131 ac_outfile=conftest.$ac_objext
15132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15134 # Insert the option either (1) after the last *FLAGS variable, or
15135 # (2) before a word containing "conftest.", or (3) at the end.
15136 # Note that $ac_compile itself does not contain backslashes and begins
15137 # with a dollar sign (not a hyphen), so the echo should work correctly.
15138 # The option is referenced via a variable to avoid confusing sed.
15139 lt_compile=`echo "$ac_compile" | $SED \
15140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15142 -e 's:$: $lt_compiler_flag:'`
15143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15144 (eval "$lt_compile" 2>conftest.err)
15145 ac_status=$?
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 if (exit $ac_status) && test -s "$ac_outfile"; then
15149 # The compiler can only warn and ignore the option if not recognized
15150 # So say no if there are warnings other than the usual output.
15151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15154 lt_cv_prog_compiler_pic_works=yes
15155 fi
15156 fi
15157 $RM conftest*
15158
15159 fi
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15161 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15162
15163 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15164 case $lt_prog_compiler_pic in
15165 "" | " "*) ;;
15166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15167 esac
15168 else
15169 lt_prog_compiler_pic=
15170 lt_prog_compiler_can_build_shared=no
15171 fi
15172
15173 fi
15174
15175
15176
15177
15178
15179
15180 #
15181 # Check to make sure the static flag actually works.
15182 #
15183 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15185 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15186 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 lt_cv_prog_compiler_static_works=no
15190 save_LDFLAGS="$LDFLAGS"
15191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15194 # The linker can only warn and ignore the option if not recognized
15195 # So say no if there are warnings
15196 if test -s conftest.err; then
15197 # Append any errors to the config.log.
15198 cat conftest.err 1>&5
15199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15201 if diff conftest.exp conftest.er2 >/dev/null; then
15202 lt_cv_prog_compiler_static_works=yes
15203 fi
15204 else
15205 lt_cv_prog_compiler_static_works=yes
15206 fi
15207 fi
15208 $RM -r conftest*
15209 LDFLAGS="$save_LDFLAGS"
15210
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15213 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15214
15215 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15216 :
15217 else
15218 lt_prog_compiler_static=
15219 fi
15220
15221
15222
15223
15224
15225
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15229 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 lt_cv_prog_compiler_c_o=no
15233 $RM -r conftest 2>/dev/null
15234 mkdir conftest
15235 cd conftest
15236 mkdir out
15237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15238
15239 lt_compiler_flag="-o out/conftest2.$ac_objext"
15240 # Insert the option either (1) after the last *FLAGS variable, or
15241 # (2) before a word containing "conftest.", or (3) at the end.
15242 # Note that $ac_compile itself does not contain backslashes and begins
15243 # with a dollar sign (not a hyphen), so the echo should work correctly.
15244 lt_compile=`echo "$ac_compile" | $SED \
15245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15247 -e 's:$: $lt_compiler_flag:'`
15248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15249 (eval "$lt_compile" 2>out/conftest.err)
15250 ac_status=$?
15251 cat out/conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15254 then
15255 # The compiler can only warn and ignore the option if not recognized
15256 # So say no if there are warnings
15257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15260 lt_cv_prog_compiler_c_o=yes
15261 fi
15262 fi
15263 chmod u+w . 2>&5
15264 $RM conftest*
15265 # SGI C++ compiler will create directory out/ii_files/ for
15266 # template instantiation
15267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15268 $RM out/* && rmdir out
15269 cd ..
15270 $RM -r conftest
15271 $RM conftest*
15272
15273 fi
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15276
15277
15278
15279
15280
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15284 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 lt_cv_prog_compiler_c_o=no
15288 $RM -r conftest 2>/dev/null
15289 mkdir conftest
15290 cd conftest
15291 mkdir out
15292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15293
15294 lt_compiler_flag="-o out/conftest2.$ac_objext"
15295 # Insert the option either (1) after the last *FLAGS variable, or
15296 # (2) before a word containing "conftest.", or (3) at the end.
15297 # Note that $ac_compile itself does not contain backslashes and begins
15298 # with a dollar sign (not a hyphen), so the echo should work correctly.
15299 lt_compile=`echo "$ac_compile" | $SED \
15300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15302 -e 's:$: $lt_compiler_flag:'`
15303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15304 (eval "$lt_compile" 2>out/conftest.err)
15305 ac_status=$?
15306 cat out/conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15309 then
15310 # The compiler can only warn and ignore the option if not recognized
15311 # So say no if there are warnings
15312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15315 lt_cv_prog_compiler_c_o=yes
15316 fi
15317 fi
15318 chmod u+w . 2>&5
15319 $RM conftest*
15320 # SGI C++ compiler will create directory out/ii_files/ for
15321 # template instantiation
15322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15323 $RM out/* && rmdir out
15324 cd ..
15325 $RM -r conftest
15326 $RM conftest*
15327
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15331
15332
15333
15334
15335 hard_links="nottested"
15336 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15337 # do not overwrite the value of need_locks provided by the user
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15339 $as_echo_n "checking if we can lock with hard links... " >&6; }
15340 hard_links=yes
15341 $RM conftest*
15342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15343 touch conftest.a
15344 ln conftest.a conftest.b 2>&5 || hard_links=no
15345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15347 $as_echo "$hard_links" >&6; }
15348 if test "$hard_links" = no; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15350 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15351 need_locks=warn
15352 fi
15353 else
15354 need_locks=no
15355 fi
15356
15357
15358
15359
15360
15361
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15364
15365 runpath_var=
15366 allow_undefined_flag=
15367 always_export_symbols=no
15368 archive_cmds=
15369 archive_expsym_cmds=
15370 compiler_needs_object=no
15371 enable_shared_with_static_runtimes=no
15372 export_dynamic_flag_spec=
15373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15374 hardcode_automatic=no
15375 hardcode_direct=no
15376 hardcode_direct_absolute=no
15377 hardcode_libdir_flag_spec=
15378 hardcode_libdir_flag_spec_ld=
15379 hardcode_libdir_separator=
15380 hardcode_minus_L=no
15381 hardcode_shlibpath_var=unsupported
15382 inherit_rpath=no
15383 link_all_deplibs=unknown
15384 module_cmds=
15385 module_expsym_cmds=
15386 old_archive_from_new_cmds=
15387 old_archive_from_expsyms_cmds=
15388 thread_safe_flag_spec=
15389 whole_archive_flag_spec=
15390 # include_expsyms should be a list of space-separated symbols to be *always*
15391 # included in the symbol list
15392 include_expsyms=
15393 # exclude_expsyms can be an extended regexp of symbols to exclude
15394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15396 # as well as any symbol that contains `d'.
15397 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15399 # platforms (ab)use it in PIC code, but their linkers get confused if
15400 # the symbol is explicitly referenced. Since portable code cannot
15401 # rely on this symbol name, it's probably fine to never include it in
15402 # preloaded symbol tables.
15403 # Exclude shared library initialization/finalization symbols.
15404 extract_expsyms_cmds=
15405
15406 case $host_os in
15407 cygwin* | mingw* | pw32* | cegcc*)
15408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15409 # When not using gcc, we currently assume that we are using
15410 # Microsoft Visual C++.
15411 if test "$GCC" != yes; then
15412 with_gnu_ld=no
15413 fi
15414 ;;
15415 interix*)
15416 # we just hope/assume this is gcc and not c89 (= MSVC++)
15417 with_gnu_ld=yes
15418 ;;
15419 openbsd*)
15420 with_gnu_ld=no
15421 ;;
15422 esac
15423
15424 ld_shlibs=yes
15425
15426 # On some targets, GNU ld is compatible enough with the native linker
15427 # that we're better off using the native interface for both.
15428 lt_use_gnu_ld_interface=no
15429 if test "$with_gnu_ld" = yes; then
15430 case $host_os in
15431 aix*)
15432 # The AIX port of GNU ld has always aspired to compatibility
15433 # with the native linker. However, as the warning in the GNU ld
15434 # block says, versions before 2.19.5* couldn't really create working
15435 # shared libraries, regardless of the interface used.
15436 case `$LD -v 2>&1` in
15437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15440 *)
15441 lt_use_gnu_ld_interface=yes
15442 ;;
15443 esac
15444 ;;
15445 *)
15446 lt_use_gnu_ld_interface=yes
15447 ;;
15448 esac
15449 fi
15450
15451 if test "$lt_use_gnu_ld_interface" = yes; then
15452 # If archive_cmds runs LD, not CC, wlarc should be empty
15453 wlarc='${wl}'
15454
15455 # Set some defaults for GNU ld with shared library support. These
15456 # are reset later if shared libraries are not supported. Putting them
15457 # here allows them to be overridden if necessary.
15458 runpath_var=LD_RUN_PATH
15459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15460 export_dynamic_flag_spec='${wl}--export-dynamic'
15461 # ancient GNU ld didn't support --whole-archive et. al.
15462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15463 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15464 else
15465 whole_archive_flag_spec=
15466 fi
15467 supports_anon_versioning=no
15468 case `$LD -v 2>&1` in
15469 *GNU\ gold*) supports_anon_versioning=yes ;;
15470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15473 *\ 2.11.*) ;; # other 2.11 versions
15474 *) supports_anon_versioning=yes ;;
15475 esac
15476
15477 # See if GNU ld supports shared libraries.
15478 case $host_os in
15479 aix[3-9]*)
15480 # On AIX/PPC, the GNU linker is very broken
15481 if test "$host_cpu" != ia64; then
15482 ld_shlibs=no
15483 cat <<_LT_EOF 1>&2
15484
15485 *** Warning: the GNU linker, at least up to release 2.19, is reported
15486 *** to be unable to reliably create shared libraries on AIX.
15487 *** Therefore, libtool is disabling shared libraries support. If you
15488 *** really care for shared libraries, you may want to install binutils
15489 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15490 *** You will then need to restart the configuration process.
15491
15492 _LT_EOF
15493 fi
15494 ;;
15495
15496 amigaos*)
15497 case $host_cpu in
15498 powerpc)
15499 # see comment about AmigaOS4 .so support
15500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501 archive_expsym_cmds=''
15502 ;;
15503 m68k)
15504 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)'
15505 hardcode_libdir_flag_spec='-L$libdir'
15506 hardcode_minus_L=yes
15507 ;;
15508 esac
15509 ;;
15510
15511 beos*)
15512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15513 allow_undefined_flag=unsupported
15514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15515 # support --undefined. This deserves some investigation. FIXME
15516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 else
15518 ld_shlibs=no
15519 fi
15520 ;;
15521
15522 cygwin* | mingw* | pw32* | cegcc*)
15523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15524 # as there is no search path for DLLs.
15525 hardcode_libdir_flag_spec='-L$libdir'
15526 export_dynamic_flag_spec='${wl}--export-all-symbols'
15527 allow_undefined_flag=unsupported
15528 always_export_symbols=no
15529 enable_shared_with_static_runtimes=yes
15530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15531
15532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15534 # If the export-symbols file already is a .def file (1st line
15535 # is EXPORTS), use it as is; otherwise, prepend...
15536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15537 cp $export_symbols $output_objdir/$soname.def;
15538 else
15539 echo EXPORTS > $output_objdir/$soname.def;
15540 cat $export_symbols >> $output_objdir/$soname.def;
15541 fi~
15542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15543 else
15544 ld_shlibs=no
15545 fi
15546 ;;
15547
15548 haiku*)
15549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 link_all_deplibs=yes
15551 ;;
15552
15553 interix[3-9]*)
15554 hardcode_direct=no
15555 hardcode_shlibpath_var=no
15556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15557 export_dynamic_flag_spec='${wl}-E'
15558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15559 # Instead, shared libraries are loaded at an image base (0x10000000 by
15560 # default) and relocated if they conflict, which is a slow very memory
15561 # consuming and fragmenting process. To avoid this, we pick a random,
15562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15565 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'
15566 ;;
15567
15568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15569 tmp_diet=no
15570 if test "$host_os" = linux-dietlibc; then
15571 case $cc_basename in
15572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15573 esac
15574 fi
15575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15576 && test "$tmp_diet" = no
15577 then
15578 tmp_addflag=
15579 tmp_sharedflag='-shared'
15580 case $cc_basename,$host_cpu in
15581 pgcc*) # Portland Group C compiler
15582 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'
15583 tmp_addflag=' $pic_flag'
15584 ;;
15585 pgf77* | pgf90* | pgf95* | pgfortran*)
15586 # Portland Group f77 and f90 compilers
15587 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'
15588 tmp_addflag=' $pic_flag -Mnomain' ;;
15589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15590 tmp_addflag=' -i_dynamic' ;;
15591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15592 tmp_addflag=' -i_dynamic -nofor_main' ;;
15593 ifc* | ifort*) # Intel Fortran compiler
15594 tmp_addflag=' -nofor_main' ;;
15595 lf95*) # Lahey Fortran 8.1
15596 whole_archive_flag_spec=
15597 tmp_sharedflag='--shared' ;;
15598 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15599 tmp_sharedflag='-qmkshrobj'
15600 tmp_addflag= ;;
15601 nvcc*) # Cuda Compiler Driver 2.2
15602 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'
15603 compiler_needs_object=yes
15604 ;;
15605 esac
15606 case `$CC -V 2>&1 | sed 5q` in
15607 *Sun\ C*) # Sun C 5.9
15608 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'
15609 compiler_needs_object=yes
15610 tmp_sharedflag='-G' ;;
15611 *Sun\ F*) # Sun Fortran 8.3
15612 tmp_sharedflag='-G' ;;
15613 esac
15614 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615
15616 if test "x$supports_anon_versioning" = xyes; then
15617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15619 echo "local: *; };" >> $output_objdir/$libname.ver~
15620 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15621 fi
15622
15623 case $cc_basename in
15624 xlf* | bgf* | bgxlf* | mpixlf*)
15625 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15626 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15627 hardcode_libdir_flag_spec=
15628 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15629 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15630 if test "x$supports_anon_versioning" = xyes; then
15631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15633 echo "local: *; };" >> $output_objdir/$libname.ver~
15634 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15635 fi
15636 ;;
15637 esac
15638 else
15639 ld_shlibs=no
15640 fi
15641 ;;
15642
15643 netbsd*)
15644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15645 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15646 wlarc=
15647 else
15648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15650 fi
15651 ;;
15652
15653 solaris*)
15654 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15655 ld_shlibs=no
15656 cat <<_LT_EOF 1>&2
15657
15658 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15659 *** create shared libraries on Solaris systems. Therefore, libtool
15660 *** is disabling shared libraries support. We urge you to upgrade GNU
15661 *** binutils to release 2.9.1 or newer. Another option is to modify
15662 *** your PATH or compiler configuration so that the native linker is
15663 *** used, and then restart.
15664
15665 _LT_EOF
15666 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15669 else
15670 ld_shlibs=no
15671 fi
15672 ;;
15673
15674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15675 case `$LD -v 2>&1` in
15676 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15677 ld_shlibs=no
15678 cat <<_LT_EOF 1>&2
15679
15680 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15681 *** reliably create shared libraries on SCO systems. Therefore, libtool
15682 *** is disabling shared libraries support. We urge you to upgrade GNU
15683 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15684 *** your PATH or compiler configuration so that the native linker is
15685 *** used, and then restart.
15686
15687 _LT_EOF
15688 ;;
15689 *)
15690 # For security reasons, it is highly recommended that you always
15691 # use absolute paths for naming shared libraries, and exclude the
15692 # DT_RUNPATH tag from executables and libraries. But doing so
15693 # requires that you compile everything twice, which is a pain.
15694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15698 else
15699 ld_shlibs=no
15700 fi
15701 ;;
15702 esac
15703 ;;
15704
15705 sunos4*)
15706 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707 wlarc=
15708 hardcode_direct=yes
15709 hardcode_shlibpath_var=no
15710 ;;
15711
15712 *)
15713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716 else
15717 ld_shlibs=no
15718 fi
15719 ;;
15720 esac
15721
15722 if test "$ld_shlibs" = no; then
15723 runpath_var=
15724 hardcode_libdir_flag_spec=
15725 export_dynamic_flag_spec=
15726 whole_archive_flag_spec=
15727 fi
15728 else
15729 # PORTME fill in a description of your system's linker (not GNU ld)
15730 case $host_os in
15731 aix3*)
15732 allow_undefined_flag=unsupported
15733 always_export_symbols=yes
15734 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'
15735 # Note: this linker hardcodes the directories in LIBPATH if there
15736 # are no directories specified by -L.
15737 hardcode_minus_L=yes
15738 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15739 # Neither direct hardcoding nor static linking is supported with a
15740 # broken collect2.
15741 hardcode_direct=unsupported
15742 fi
15743 ;;
15744
15745 aix[4-9]*)
15746 if test "$host_cpu" = ia64; then
15747 # On IA64, the linker does run time linking by default, so we don't
15748 # have to do anything special.
15749 aix_use_runtimelinking=no
15750 exp_sym_flag='-Bexport'
15751 no_entry_flag=""
15752 else
15753 # If we're using GNU nm, then we don't want the "-C" option.
15754 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15755 # Also, AIX nm treats weak defined symbols like other global
15756 # defined symbols, whereas GNU nm marks them as "W".
15757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15758 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'
15759 else
15760 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'
15761 fi
15762 aix_use_runtimelinking=no
15763
15764 # Test if we are trying to use run time linking or normal
15765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15766 # need to do runtime linking.
15767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15768 for ld_flag in $LDFLAGS; do
15769 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15770 aix_use_runtimelinking=yes
15771 break
15772 fi
15773 done
15774 ;;
15775 esac
15776
15777 exp_sym_flag='-bexport'
15778 no_entry_flag='-bnoentry'
15779 fi
15780
15781 # When large executables or shared objects are built, AIX ld can
15782 # have problems creating the table of contents. If linking a library
15783 # or program results in "error TOC overflow" add -mminimal-toc to
15784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15786
15787 archive_cmds=''
15788 hardcode_direct=yes
15789 hardcode_direct_absolute=yes
15790 hardcode_libdir_separator=':'
15791 link_all_deplibs=yes
15792 file_list_spec='${wl}-f,'
15793
15794 if test "$GCC" = yes; then
15795 case $host_os in aix4.[012]|aix4.[012].*)
15796 # We only want to do this on AIX 4.2 and lower, the check
15797 # below for broken collect2 doesn't work under 4.3+
15798 collect2name=`${CC} -print-prog-name=collect2`
15799 if test -f "$collect2name" &&
15800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15801 then
15802 # We have reworked collect2
15803 :
15804 else
15805 # We have old collect2
15806 hardcode_direct=unsupported
15807 # It fails to find uninstalled libraries when the uninstalled
15808 # path is not listed in the libpath. Setting hardcode_minus_L
15809 # to unsupported forces relinking
15810 hardcode_minus_L=yes
15811 hardcode_libdir_flag_spec='-L$libdir'
15812 hardcode_libdir_separator=
15813 fi
15814 ;;
15815 esac
15816 shared_flag='-shared'
15817 if test "$aix_use_runtimelinking" = yes; then
15818 shared_flag="$shared_flag "'${wl}-G'
15819 fi
15820 else
15821 # not using gcc
15822 if test "$host_cpu" = ia64; then
15823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15824 # chokes on -Wl,-G. The following line is correct:
15825 shared_flag='-G'
15826 else
15827 if test "$aix_use_runtimelinking" = yes; then
15828 shared_flag='${wl}-G'
15829 else
15830 shared_flag='${wl}-bM:SRE'
15831 fi
15832 fi
15833 fi
15834
15835 export_dynamic_flag_spec='${wl}-bexpall'
15836 # It seems that -bexpall does not export symbols beginning with
15837 # underscore (_), so it is better to generate a list of symbols to export.
15838 always_export_symbols=yes
15839 if test "$aix_use_runtimelinking" = yes; then
15840 # Warning - without using the other runtime loading flags (-brtl),
15841 # -berok will link without error, but may produce a broken library.
15842 allow_undefined_flag='-berok'
15843 # Determine the default libpath from the value encoded in an
15844 # empty executable.
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847
15848 int
15849 main ()
15850 {
15851
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_link "$LINENO"; then :
15857
15858 lt_aix_libpath_sed='
15859 /Import File Strings/,/^$/ {
15860 /^0/ {
15861 s/^0 *\(.*\)$/\1/
15862 p
15863 }
15864 }'
15865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15866 # Check for a 64-bit object if we didn't find anything.
15867 if test -z "$aix_libpath"; then
15868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15869 fi
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15874
15875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15876 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"
15877 else
15878 if test "$host_cpu" = ia64; then
15879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15880 allow_undefined_flag="-z nodefs"
15881 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"
15882 else
15883 # Determine the default libpath from the value encoded in an
15884 # empty executable.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887
15888 int
15889 main ()
15890 {
15891
15892 ;
15893 return 0;
15894 }
15895 _ACEOF
15896 if ac_fn_c_try_link "$LINENO"; then :
15897
15898 lt_aix_libpath_sed='
15899 /Import File Strings/,/^$/ {
15900 /^0/ {
15901 s/^0 *\(.*\)$/\1/
15902 p
15903 }
15904 }'
15905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15906 # Check for a 64-bit object if we didn't find anything.
15907 if test -z "$aix_libpath"; then
15908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15909 fi
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15914
15915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15916 # Warning - without using the other run time loading flags,
15917 # -berok will link without error, but may produce a broken library.
15918 no_undefined_flag=' ${wl}-bernotok'
15919 allow_undefined_flag=' ${wl}-berok'
15920 if test "$with_gnu_ld" = yes; then
15921 # We only use this code for GNU lds that support --whole-archive.
15922 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15923 else
15924 # Exported symbols can be pulled into shared objects from archives
15925 whole_archive_flag_spec='$convenience'
15926 fi
15927 archive_cmds_need_lc=yes
15928 # This is similar to how AIX traditionally builds its shared libraries.
15929 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'
15930 fi
15931 fi
15932 ;;
15933
15934 amigaos*)
15935 case $host_cpu in
15936 powerpc)
15937 # see comment about AmigaOS4 .so support
15938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15939 archive_expsym_cmds=''
15940 ;;
15941 m68k)
15942 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)'
15943 hardcode_libdir_flag_spec='-L$libdir'
15944 hardcode_minus_L=yes
15945 ;;
15946 esac
15947 ;;
15948
15949 bsdi[45]*)
15950 export_dynamic_flag_spec=-rdynamic
15951 ;;
15952
15953 cygwin* | mingw* | pw32* | cegcc*)
15954 # When not using gcc, we currently assume that we are using
15955 # Microsoft Visual C++.
15956 # hardcode_libdir_flag_spec is actually meaningless, as there is
15957 # no search path for DLLs.
15958 hardcode_libdir_flag_spec=' '
15959 allow_undefined_flag=unsupported
15960 # Tell ltmain to make .lib files, not .a files.
15961 libext=lib
15962 # Tell ltmain to make .dll files, not .so files.
15963 shrext_cmds=".dll"
15964 # FIXME: Setting linknames here is a bad hack.
15965 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15966 # The linker will automatically build a .lib file if we build a DLL.
15967 old_archive_from_new_cmds='true'
15968 # FIXME: Should let the user specify the lib program.
15969 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15970 fix_srcfile_path='`cygpath -w "$srcfile"`'
15971 enable_shared_with_static_runtimes=yes
15972 ;;
15973
15974 darwin* | rhapsody*)
15975
15976
15977 archive_cmds_need_lc=no
15978 hardcode_direct=no
15979 hardcode_automatic=yes
15980 hardcode_shlibpath_var=unsupported
15981 if test "$lt_cv_ld_force_load" = "yes"; then
15982 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\"`'
15983 else
15984 whole_archive_flag_spec=''
15985 fi
15986 link_all_deplibs=yes
15987 allow_undefined_flag="$_lt_dar_allow_undefined"
15988 case $cc_basename in
15989 ifort*) _lt_dar_can_shared=yes ;;
15990 *) _lt_dar_can_shared=$GCC ;;
15991 esac
15992 if test "$_lt_dar_can_shared" = "yes"; then
15993 output_verbose_link_cmd=func_echo_all
15994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15996 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}"
15997 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}"
15998
15999 else
16000 ld_shlibs=no
16001 fi
16002
16003 ;;
16004
16005 dgux*)
16006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007 hardcode_libdir_flag_spec='-L$libdir'
16008 hardcode_shlibpath_var=no
16009 ;;
16010
16011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16012 # support. Future versions do this automatically, but an explicit c++rt0.o
16013 # does not break anything, and helps significantly (at the cost of a little
16014 # extra space).
16015 freebsd2.2*)
16016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16017 hardcode_libdir_flag_spec='-R$libdir'
16018 hardcode_direct=yes
16019 hardcode_shlibpath_var=no
16020 ;;
16021
16022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16023 freebsd2.*)
16024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16025 hardcode_direct=yes
16026 hardcode_minus_L=yes
16027 hardcode_shlibpath_var=no
16028 ;;
16029
16030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16031 freebsd* | dragonfly*)
16032 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16033 hardcode_libdir_flag_spec='-R$libdir'
16034 hardcode_direct=yes
16035 hardcode_shlibpath_var=no
16036 ;;
16037
16038 hpux9*)
16039 if test "$GCC" = yes; then
16040 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'
16041 else
16042 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'
16043 fi
16044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16045 hardcode_libdir_separator=:
16046 hardcode_direct=yes
16047
16048 # hardcode_minus_L: Not really in the search PATH,
16049 # but as the default location of the library.
16050 hardcode_minus_L=yes
16051 export_dynamic_flag_spec='${wl}-E'
16052 ;;
16053
16054 hpux10*)
16055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16057 else
16058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16059 fi
16060 if test "$with_gnu_ld" = no; then
16061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16062 hardcode_libdir_flag_spec_ld='+b $libdir'
16063 hardcode_libdir_separator=:
16064 hardcode_direct=yes
16065 hardcode_direct_absolute=yes
16066 export_dynamic_flag_spec='${wl}-E'
16067 # hardcode_minus_L: Not really in the search PATH,
16068 # but as the default location of the library.
16069 hardcode_minus_L=yes
16070 fi
16071 ;;
16072
16073 hpux11*)
16074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16075 case $host_cpu in
16076 hppa*64*)
16077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16078 ;;
16079 ia64*)
16080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16081 ;;
16082 *)
16083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16084 ;;
16085 esac
16086 else
16087 case $host_cpu in
16088 hppa*64*)
16089 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16090 ;;
16091 ia64*)
16092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16093 ;;
16094 *)
16095
16096 # Older versions of the 11.00 compiler do not understand -b yet
16097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16099 $as_echo_n "checking if $CC understands -b... " >&6; }
16100 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16101 $as_echo_n "(cached) " >&6
16102 else
16103 lt_cv_prog_compiler__b=no
16104 save_LDFLAGS="$LDFLAGS"
16105 LDFLAGS="$LDFLAGS -b"
16106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16108 # The linker can only warn and ignore the option if not recognized
16109 # So say no if there are warnings
16110 if test -s conftest.err; then
16111 # Append any errors to the config.log.
16112 cat conftest.err 1>&5
16113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16115 if diff conftest.exp conftest.er2 >/dev/null; then
16116 lt_cv_prog_compiler__b=yes
16117 fi
16118 else
16119 lt_cv_prog_compiler__b=yes
16120 fi
16121 fi
16122 $RM -r conftest*
16123 LDFLAGS="$save_LDFLAGS"
16124
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16128
16129 if test x"$lt_cv_prog_compiler__b" = xyes; then
16130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16131 else
16132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16133 fi
16134
16135 ;;
16136 esac
16137 fi
16138 if test "$with_gnu_ld" = no; then
16139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16140 hardcode_libdir_separator=:
16141
16142 case $host_cpu in
16143 hppa*64*|ia64*)
16144 hardcode_direct=no
16145 hardcode_shlibpath_var=no
16146 ;;
16147 *)
16148 hardcode_direct=yes
16149 hardcode_direct_absolute=yes
16150 export_dynamic_flag_spec='${wl}-E'
16151
16152 # hardcode_minus_L: Not really in the search PATH,
16153 # but as the default location of the library.
16154 hardcode_minus_L=yes
16155 ;;
16156 esac
16157 fi
16158 ;;
16159
16160 irix5* | irix6* | nonstopux*)
16161 if test "$GCC" = yes; then
16162 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'
16163 # Try to use the -exported_symbol ld option, if it does not
16164 # work, assume that -exports_file does not work either and
16165 # implicitly export all symbols.
16166 save_LDFLAGS="$LDFLAGS"
16167 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 int foo(void) {}
16171 _ACEOF
16172 if ac_fn_c_try_link "$LINENO"; then :
16173 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'
16174
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16178 LDFLAGS="$save_LDFLAGS"
16179 else
16180 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'
16181 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'
16182 fi
16183 archive_cmds_need_lc='no'
16184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16185 hardcode_libdir_separator=:
16186 inherit_rpath=yes
16187 link_all_deplibs=yes
16188 ;;
16189
16190 netbsd*)
16191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16193 else
16194 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16195 fi
16196 hardcode_libdir_flag_spec='-R$libdir'
16197 hardcode_direct=yes
16198 hardcode_shlibpath_var=no
16199 ;;
16200
16201 newsos6)
16202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_direct=yes
16204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16205 hardcode_libdir_separator=:
16206 hardcode_shlibpath_var=no
16207 ;;
16208
16209 *nto* | *qnx*)
16210 ;;
16211
16212 openbsd*)
16213 if test -f /usr/libexec/ld.so; then
16214 hardcode_direct=yes
16215 hardcode_shlibpath_var=no
16216 hardcode_direct_absolute=yes
16217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16221 export_dynamic_flag_spec='${wl}-E'
16222 else
16223 case $host_os in
16224 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16226 hardcode_libdir_flag_spec='-R$libdir'
16227 ;;
16228 *)
16229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16231 ;;
16232 esac
16233 fi
16234 else
16235 ld_shlibs=no
16236 fi
16237 ;;
16238
16239 os2*)
16240 hardcode_libdir_flag_spec='-L$libdir'
16241 hardcode_minus_L=yes
16242 allow_undefined_flag=unsupported
16243 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'
16244 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16245 ;;
16246
16247 osf3*)
16248 if test "$GCC" = yes; then
16249 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16250 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'
16251 else
16252 allow_undefined_flag=' -expect_unresolved \*'
16253 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'
16254 fi
16255 archive_cmds_need_lc='no'
16256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16257 hardcode_libdir_separator=:
16258 ;;
16259
16260 osf4* | osf5*) # as osf3* with the addition of -msym flag
16261 if test "$GCC" = yes; then
16262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16263 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'
16264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16265 else
16266 allow_undefined_flag=' -expect_unresolved \*'
16267 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'
16268 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~
16269 $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'
16270
16271 # Both c and cxx compiler support -rpath directly
16272 hardcode_libdir_flag_spec='-rpath $libdir'
16273 fi
16274 archive_cmds_need_lc='no'
16275 hardcode_libdir_separator=:
16276 ;;
16277
16278 solaris*)
16279 no_undefined_flag=' -z defs'
16280 if test "$GCC" = yes; then
16281 wlarc='${wl}'
16282 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16284 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16285 else
16286 case `$CC -V 2>&1` in
16287 *"Compilers 5.0"*)
16288 wlarc=''
16289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16292 ;;
16293 *)
16294 wlarc='${wl}'
16295 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16297 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16298 ;;
16299 esac
16300 fi
16301 hardcode_libdir_flag_spec='-R$libdir'
16302 hardcode_shlibpath_var=no
16303 case $host_os in
16304 solaris2.[0-5] | solaris2.[0-5].*) ;;
16305 *)
16306 # The compiler driver will combine and reorder linker options,
16307 # but understands `-z linker_flag'. GCC discards it without `$wl',
16308 # but is careful enough not to reorder.
16309 # Supported since Solaris 2.6 (maybe 2.5.1?)
16310 if test "$GCC" = yes; then
16311 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16312 else
16313 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16314 fi
16315 ;;
16316 esac
16317 link_all_deplibs=yes
16318 ;;
16319
16320 sunos4*)
16321 if test "x$host_vendor" = xsequent; then
16322 # Use $CC to link under sequent, because it throws in some extra .o
16323 # files that make .init and .fini sections work.
16324 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16325 else
16326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16327 fi
16328 hardcode_libdir_flag_spec='-L$libdir'
16329 hardcode_direct=yes
16330 hardcode_minus_L=yes
16331 hardcode_shlibpath_var=no
16332 ;;
16333
16334 sysv4)
16335 case $host_vendor in
16336 sni)
16337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16338 hardcode_direct=yes # is this really true???
16339 ;;
16340 siemens)
16341 ## LD is ld it makes a PLAMLIB
16342 ## CC just makes a GrossModule.
16343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16344 reload_cmds='$CC -r -o $output$reload_objs'
16345 hardcode_direct=no
16346 ;;
16347 motorola)
16348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16350 ;;
16351 esac
16352 runpath_var='LD_RUN_PATH'
16353 hardcode_shlibpath_var=no
16354 ;;
16355
16356 sysv4.3*)
16357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358 hardcode_shlibpath_var=no
16359 export_dynamic_flag_spec='-Bexport'
16360 ;;
16361
16362 sysv4*MP*)
16363 if test -d /usr/nec; then
16364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16365 hardcode_shlibpath_var=no
16366 runpath_var=LD_RUN_PATH
16367 hardcode_runpath_var=yes
16368 ld_shlibs=yes
16369 fi
16370 ;;
16371
16372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16373 no_undefined_flag='${wl}-z,text'
16374 archive_cmds_need_lc=no
16375 hardcode_shlibpath_var=no
16376 runpath_var='LD_RUN_PATH'
16377
16378 if test "$GCC" = yes; then
16379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 else
16382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 fi
16385 ;;
16386
16387 sysv5* | sco3.2v5* | sco5v6*)
16388 # Note: We can NOT use -z defs as we might desire, because we do not
16389 # link with -lc, and that would cause any symbols used from libc to
16390 # always be unresolved, which means just about no library would
16391 # ever link correctly. If we're not using GNU ld we use -z text
16392 # though, which does catch some bad symbols but isn't as heavy-handed
16393 # as -z defs.
16394 no_undefined_flag='${wl}-z,text'
16395 allow_undefined_flag='${wl}-z,nodefs'
16396 archive_cmds_need_lc=no
16397 hardcode_shlibpath_var=no
16398 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16399 hardcode_libdir_separator=':'
16400 link_all_deplibs=yes
16401 export_dynamic_flag_spec='${wl}-Bexport'
16402 runpath_var='LD_RUN_PATH'
16403
16404 if test "$GCC" = yes; then
16405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 else
16408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16410 fi
16411 ;;
16412
16413 uts4*)
16414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16415 hardcode_libdir_flag_spec='-L$libdir'
16416 hardcode_shlibpath_var=no
16417 ;;
16418
16419 *)
16420 ld_shlibs=no
16421 ;;
16422 esac
16423
16424 if test x$host_vendor = xsni; then
16425 case $host in
16426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16427 export_dynamic_flag_spec='${wl}-Blargedynsym'
16428 ;;
16429 esac
16430 fi
16431 fi
16432
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16434 $as_echo "$ld_shlibs" >&6; }
16435 test "$ld_shlibs" = no && can_build_shared=no
16436
16437 with_gnu_ld=$with_gnu_ld
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453 #
16454 # Do we need to explicitly link libc?
16455 #
16456 case "x$archive_cmds_need_lc" in
16457 x|xyes)
16458 # Assume -lc should be added
16459 archive_cmds_need_lc=yes
16460
16461 if test "$enable_shared" = yes && test "$GCC" = yes; then
16462 case $archive_cmds in
16463 *'~'*)
16464 # FIXME: we may have to deal with multi-command sequences.
16465 ;;
16466 '$CC '*)
16467 # Test whether the compiler implicitly links with -lc since on some
16468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16469 # to ld, don't add -lc before -lgcc.
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16472 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 $RM conftest*
16476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16477
16478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16479 (eval $ac_compile) 2>&5
16480 ac_status=$?
16481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16482 test $ac_status = 0; } 2>conftest.err; then
16483 soname=conftest
16484 lib=conftest
16485 libobjs=conftest.$ac_objext
16486 deplibs=
16487 wl=$lt_prog_compiler_wl
16488 pic_flag=$lt_prog_compiler_pic
16489 compiler_flags=-v
16490 linker_flags=-v
16491 verstring=
16492 output_objdir=.
16493 libname=conftest
16494 lt_save_allow_undefined_flag=$allow_undefined_flag
16495 allow_undefined_flag=
16496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16497 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16498 ac_status=$?
16499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16500 test $ac_status = 0; }
16501 then
16502 lt_cv_archive_cmds_need_lc=no
16503 else
16504 lt_cv_archive_cmds_need_lc=yes
16505 fi
16506 allow_undefined_flag=$lt_save_allow_undefined_flag
16507 else
16508 cat conftest.err 1>&5
16509 fi
16510 $RM conftest*
16511
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16514 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16515 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16516 ;;
16517 esac
16518 fi
16519 ;;
16520 esac
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16679 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16680
16681 if test "$GCC" = yes; then
16682 case $host_os in
16683 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16684 *) lt_awk_arg="/^libraries:/" ;;
16685 esac
16686 case $host_os in
16687 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16688 *) lt_sed_strip_eq="s,=/,/,g" ;;
16689 esac
16690 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16691 case $lt_search_path_spec in
16692 *\;*)
16693 # if the path contains ";" then we assume it to be the separator
16694 # otherwise default to the standard path separator (i.e. ":") - it is
16695 # assumed that no part of a normal pathname contains ";" but that should
16696 # okay in the real world where ";" in dirpaths is itself problematic.
16697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16698 ;;
16699 *)
16700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16701 ;;
16702 esac
16703 # Ok, now we have the path, separated by spaces, we can step through it
16704 # and add multilib dir if necessary.
16705 lt_tmp_lt_search_path_spec=
16706 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16707 for lt_sys_path in $lt_search_path_spec; do
16708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16710 else
16711 test -d "$lt_sys_path" && \
16712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16713 fi
16714 done
16715 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16716 BEGIN {RS=" "; FS="/|\n";} {
16717 lt_foo="";
16718 lt_count=0;
16719 for (lt_i = NF; lt_i > 0; lt_i--) {
16720 if ($lt_i != "" && $lt_i != ".") {
16721 if ($lt_i == "..") {
16722 lt_count++;
16723 } else {
16724 if (lt_count == 0) {
16725 lt_foo="/" $lt_i lt_foo;
16726 } else {
16727 lt_count--;
16728 }
16729 }
16730 }
16731 }
16732 if (lt_foo != "") { lt_freq[lt_foo]++; }
16733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16734 }'`
16735 # AWK program above erroneously prepends '/' to C:/dos/paths
16736 # for these hosts.
16737 case $host_os in
16738 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16739 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16740 esac
16741 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16742 else
16743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16744 fi
16745 library_names_spec=
16746 libname_spec='lib$name'
16747 soname_spec=
16748 shrext_cmds=".so"
16749 postinstall_cmds=
16750 postuninstall_cmds=
16751 finish_cmds=
16752 finish_eval=
16753 shlibpath_var=
16754 shlibpath_overrides_runpath=unknown
16755 version_type=none
16756 dynamic_linker="$host_os ld.so"
16757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16758 need_lib_prefix=unknown
16759 hardcode_into_libs=no
16760
16761 # when you set need_version to no, make sure it does not cause -set_version
16762 # flags to be left without arguments
16763 need_version=unknown
16764
16765 case $host_os in
16766 aix3*)
16767 version_type=linux
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16769 shlibpath_var=LIBPATH
16770
16771 # AIX 3 has no versioning support, so we append a major version to the name.
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 ;;
16774
16775 aix[4-9]*)
16776 version_type=linux
16777 need_lib_prefix=no
16778 need_version=no
16779 hardcode_into_libs=yes
16780 if test "$host_cpu" = ia64; then
16781 # AIX 5 supports IA64
16782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16783 shlibpath_var=LD_LIBRARY_PATH
16784 else
16785 # With GCC up to 2.95.x, collect2 would create an import file
16786 # for dependence libraries. The import file would start with
16787 # the line `#! .'. This would cause the generated library to
16788 # depend on `.', always an invalid library. This was fixed in
16789 # development snapshots of GCC prior to 3.0.
16790 case $host_os in
16791 aix4 | aix4.[01] | aix4.[01].*)
16792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16793 echo ' yes '
16794 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16795 :
16796 else
16797 can_build_shared=no
16798 fi
16799 ;;
16800 esac
16801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16802 # soname into executable. Probably we can add versioning support to
16803 # collect2, so additional links can be useful in future.
16804 if test "$aix_use_runtimelinking" = yes; then
16805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16806 # instead of lib<name>.a to let people know that these are not
16807 # typical AIX shared libraries.
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 else
16810 # We preserve .a as extension for shared libraries through AIX4.2
16811 # and later when we are not doing run time linking.
16812 library_names_spec='${libname}${release}.a $libname.a'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 fi
16815 shlibpath_var=LIBPATH
16816 fi
16817 ;;
16818
16819 amigaos*)
16820 case $host_cpu in
16821 powerpc)
16822 # Since July 2007 AmigaOS4 officially supports .so libraries.
16823 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825 ;;
16826 m68k)
16827 library_names_spec='$libname.ixlibrary $libname.a'
16828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16829 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'
16830 ;;
16831 esac
16832 ;;
16833
16834 beos*)
16835 library_names_spec='${libname}${shared_ext}'
16836 dynamic_linker="$host_os ld.so"
16837 shlibpath_var=LIBRARY_PATH
16838 ;;
16839
16840 bsdi[45]*)
16841 version_type=linux
16842 need_version=no
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16849 # the default ld.so.conf also contains /usr/contrib/lib and
16850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16851 # libtool to hard-code these into programs
16852 ;;
16853
16854 cygwin* | mingw* | pw32* | cegcc*)
16855 version_type=windows
16856 shrext_cmds=".dll"
16857 need_version=no
16858 need_lib_prefix=no
16859
16860 case $GCC,$host_os in
16861 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16862 library_names_spec='$libname.dll.a'
16863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16864 postinstall_cmds='base_file=`basename \${file}`~
16865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16866 dldir=$destdir/`dirname \$dlpath`~
16867 test -d \$dldir || mkdir -p \$dldir~
16868 $install_prog $dir/$dlname \$dldir/$dlname~
16869 chmod a+x \$dldir/$dlname~
16870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16872 fi'
16873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16874 dlpath=$dir/\$dldll~
16875 $RM \$dlpath'
16876 shlibpath_overrides_runpath=yes
16877
16878 case $host_os in
16879 cygwin*)
16880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16882
16883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16884 ;;
16885 mingw* | cegcc*)
16886 # MinGW DLLs use traditional 'lib' prefix
16887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16888 ;;
16889 pw32*)
16890 # pw32 DLLs use 'pw' prefix rather than 'lib'
16891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16892 ;;
16893 esac
16894 ;;
16895
16896 *)
16897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16898 ;;
16899 esac
16900 dynamic_linker='Win32 ld.exe'
16901 # FIXME: first we should search . and the directory the executable is in
16902 shlibpath_var=PATH
16903 ;;
16904
16905 darwin* | rhapsody*)
16906 dynamic_linker="$host_os dyld"
16907 version_type=darwin
16908 need_lib_prefix=no
16909 need_version=no
16910 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16911 soname_spec='${libname}${release}${major}$shared_ext'
16912 shlibpath_overrides_runpath=yes
16913 shlibpath_var=DYLD_LIBRARY_PATH
16914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16915
16916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16918 ;;
16919
16920 dgux*)
16921 version_type=linux
16922 need_lib_prefix=no
16923 need_version=no
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 ;;
16928
16929 freebsd* | dragonfly*)
16930 # DragonFly does not have aout. When/if they implement a new
16931 # versioning mechanism, adjust this.
16932 if test -x /usr/bin/objformat; then
16933 objformat=`/usr/bin/objformat`
16934 else
16935 case $host_os in
16936 freebsd[23].*) objformat=aout ;;
16937 *) objformat=elf ;;
16938 esac
16939 fi
16940 version_type=freebsd-$objformat
16941 case $version_type in
16942 freebsd-elf*)
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16944 need_version=no
16945 need_lib_prefix=no
16946 ;;
16947 freebsd-*)
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16949 need_version=yes
16950 ;;
16951 esac
16952 shlibpath_var=LD_LIBRARY_PATH
16953 case $host_os in
16954 freebsd2.*)
16955 shlibpath_overrides_runpath=yes
16956 ;;
16957 freebsd3.[01]* | freebsdelf3.[01]*)
16958 shlibpath_overrides_runpath=yes
16959 hardcode_into_libs=yes
16960 ;;
16961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16963 shlibpath_overrides_runpath=no
16964 hardcode_into_libs=yes
16965 ;;
16966 *) # from 4.6 on, and DragonFly
16967 shlibpath_overrides_runpath=yes
16968 hardcode_into_libs=yes
16969 ;;
16970 esac
16971 ;;
16972
16973 gnu*)
16974 version_type=linux
16975 need_lib_prefix=no
16976 need_version=no
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16980 hardcode_into_libs=yes
16981 ;;
16982
16983 haiku*)
16984 version_type=linux
16985 need_lib_prefix=no
16986 need_version=no
16987 dynamic_linker="$host_os runtime_loader"
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16989 soname_spec='${libname}${release}${shared_ext}$major'
16990 shlibpath_var=LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16993 hardcode_into_libs=yes
16994 ;;
16995
16996 hpux9* | hpux10* | hpux11*)
16997 # Give a soname corresponding to the major version so that dld.sl refuses to
16998 # link against other versions.
16999 version_type=sunos
17000 need_lib_prefix=no
17001 need_version=no
17002 case $host_cpu in
17003 ia64*)
17004 shrext_cmds='.so'
17005 hardcode_into_libs=yes
17006 dynamic_linker="$host_os dld.so"
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 if test "X$HPUX_IA64_MODE" = X32; then
17012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17013 else
17014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17015 fi
17016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17017 ;;
17018 hppa*64*)
17019 shrext_cmds='.sl'
17020 hardcode_into_libs=yes
17021 dynamic_linker="$host_os dld.sl"
17022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028 ;;
17029 *)
17030 shrext_cmds='.sl'
17031 dynamic_linker="$host_os dld.sl"
17032 shlibpath_var=SHLIB_PATH
17033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 ;;
17037 esac
17038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17039 postinstall_cmds='chmod 555 $lib'
17040 # or fails outright, so override atomically:
17041 install_override_mode=555
17042 ;;
17043
17044 interix[3-9]*)
17045 version_type=linux
17046 need_lib_prefix=no
17047 need_version=no
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 shlibpath_overrides_runpath=no
17053 hardcode_into_libs=yes
17054 ;;
17055
17056 irix5* | irix6* | nonstopux*)
17057 case $host_os in
17058 nonstopux*) version_type=nonstopux ;;
17059 *)
17060 if test "$lt_cv_prog_gnu_ld" = yes; then
17061 version_type=linux
17062 else
17063 version_type=irix
17064 fi ;;
17065 esac
17066 need_lib_prefix=no
17067 need_version=no
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17070 case $host_os in
17071 irix5* | nonstopux*)
17072 libsuff= shlibsuff=
17073 ;;
17074 *)
17075 case $LD in # libtool.m4 will add one of these switches to LD
17076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17077 libsuff= shlibsuff= libmagic=32-bit;;
17078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17079 libsuff=32 shlibsuff=N32 libmagic=N32;;
17080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17082 *) libsuff= shlibsuff= libmagic=never-match;;
17083 esac
17084 ;;
17085 esac
17086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17087 shlibpath_overrides_runpath=no
17088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17090 hardcode_into_libs=yes
17091 ;;
17092
17093 # No shared lib support for Linux oldld, aout, or coff.
17094 linux*oldld* | linux*aout* | linux*coff*)
17095 dynamic_linker=no
17096 ;;
17097
17098 # This must be Linux ELF.
17099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17100 version_type=linux
17101 need_lib_prefix=no
17102 need_version=no
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=no
17108
17109 # Some binutils ld are patched to set DT_RUNPATH
17110 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17111 $as_echo_n "(cached) " >&6
17112 else
17113 lt_cv_shlibpath_overrides_runpath=no
17114 save_LDFLAGS=$LDFLAGS
17115 save_libdir=$libdir
17116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120
17121 int
17122 main ()
17123 {
17124
17125 ;
17126 return 0;
17127 }
17128 _ACEOF
17129 if ac_fn_c_try_link "$LINENO"; then :
17130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17131 lt_cv_shlibpath_overrides_runpath=yes
17132 fi
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17136 LDFLAGS=$save_LDFLAGS
17137 libdir=$save_libdir
17138
17139 fi
17140
17141 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17142
17143 # This implies no fast_install, which is unacceptable.
17144 # Some rework will be needed to allow for fast_install
17145 # before this can be enabled.
17146 hardcode_into_libs=yes
17147
17148 # Append ld.so.conf contents to the search path
17149 if test -f /etc/ld.so.conf; then
17150 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' ' '`
17151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17152 fi
17153
17154 # We used to test for /lib/ld.so.1 and disable shared libraries on
17155 # powerpc, because MkLinux only supported shared libraries with the
17156 # GNU dynamic linker. Since this was broken with cross compilers,
17157 # most powerpc-linux boxes support dynamic linking these days and
17158 # people can always --disable-shared, the test was removed, and we
17159 # assume the GNU/Linux dynamic linker is in use.
17160 dynamic_linker='GNU/Linux ld.so'
17161 ;;
17162
17163 netbsd*)
17164 version_type=sunos
17165 need_lib_prefix=no
17166 need_version=no
17167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170 dynamic_linker='NetBSD (a.out) ld.so'
17171 else
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 dynamic_linker='NetBSD ld.elf_so'
17175 fi
17176 shlibpath_var=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 hardcode_into_libs=yes
17179 ;;
17180
17181 newsos6)
17182 version_type=linux
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 ;;
17187
17188 *nto* | *qnx*)
17189 version_type=qnx
17190 need_lib_prefix=no
17191 need_version=no
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=no
17196 hardcode_into_libs=yes
17197 dynamic_linker='ldqnx.so'
17198 ;;
17199
17200 openbsd*)
17201 version_type=sunos
17202 sys_lib_dlsearch_path_spec="/usr/lib"
17203 need_lib_prefix=no
17204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17205 case $host_os in
17206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17207 *) need_version=no ;;
17208 esac
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17213 case $host_os in
17214 openbsd2.[89] | openbsd2.[89].*)
17215 shlibpath_overrides_runpath=no
17216 ;;
17217 *)
17218 shlibpath_overrides_runpath=yes
17219 ;;
17220 esac
17221 else
17222 shlibpath_overrides_runpath=yes
17223 fi
17224 ;;
17225
17226 os2*)
17227 libname_spec='$name'
17228 shrext_cmds=".dll"
17229 need_lib_prefix=no
17230 library_names_spec='$libname${shared_ext} $libname.a'
17231 dynamic_linker='OS/2 ld.exe'
17232 shlibpath_var=LIBPATH
17233 ;;
17234
17235 osf3* | osf4* | osf5*)
17236 version_type=osf
17237 need_lib_prefix=no
17238 need_version=no
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17244 ;;
17245
17246 rdos*)
17247 dynamic_linker=no
17248 ;;
17249
17250 solaris*)
17251 version_type=linux
17252 need_lib_prefix=no
17253 need_version=no
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17258 hardcode_into_libs=yes
17259 # ldd complains unless libraries are executable
17260 postinstall_cmds='chmod +x $lib'
17261 ;;
17262
17263 sunos4*)
17264 version_type=sunos
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17267 shlibpath_var=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath=yes
17269 if test "$with_gnu_ld" = yes; then
17270 need_lib_prefix=no
17271 fi
17272 need_version=yes
17273 ;;
17274
17275 sysv4 | sysv4.3*)
17276 version_type=linux
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 case $host_vendor in
17281 sni)
17282 shlibpath_overrides_runpath=no
17283 need_lib_prefix=no
17284 runpath_var=LD_RUN_PATH
17285 ;;
17286 siemens)
17287 need_lib_prefix=no
17288 ;;
17289 motorola)
17290 need_lib_prefix=no
17291 need_version=no
17292 shlibpath_overrides_runpath=no
17293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17294 ;;
17295 esac
17296 ;;
17297
17298 sysv4*MP*)
17299 if test -d /usr/nec ;then
17300 version_type=linux
17301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17302 soname_spec='$libname${shared_ext}.$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 fi
17305 ;;
17306
17307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17308 version_type=freebsd-elf
17309 need_lib_prefix=no
17310 need_version=no
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=yes
17315 hardcode_into_libs=yes
17316 if test "$with_gnu_ld" = yes; then
17317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17318 else
17319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17320 case $host_os in
17321 sco3.2v5*)
17322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17323 ;;
17324 esac
17325 fi
17326 sys_lib_dlsearch_path_spec='/usr/lib'
17327 ;;
17328
17329 tpf*)
17330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17331 version_type=linux
17332 need_lib_prefix=no
17333 need_version=no
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=no
17337 hardcode_into_libs=yes
17338 ;;
17339
17340 uts4*)
17341 version_type=linux
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 shlibpath_var=LD_LIBRARY_PATH
17345 ;;
17346
17347 *)
17348 dynamic_linker=no
17349 ;;
17350 esac
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17352 $as_echo "$dynamic_linker" >&6; }
17353 test "$dynamic_linker" = no && can_build_shared=no
17354
17355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17356 if test "$GCC" = yes; then
17357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17358 fi
17359
17360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17362 fi
17363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17365 fi
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17459 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17460 hardcode_action=
17461 if test -n "$hardcode_libdir_flag_spec" ||
17462 test -n "$runpath_var" ||
17463 test "X$hardcode_automatic" = "Xyes" ; then
17464
17465 # We can hardcode non-existent directories.
17466 if test "$hardcode_direct" != no &&
17467 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17468 # have to relink, otherwise we might link with an installed library
17469 # when we should be linking with a yet-to-be-installed one
17470 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17471 test "$hardcode_minus_L" != no; then
17472 # Linking always hardcodes the temporary library directory.
17473 hardcode_action=relink
17474 else
17475 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17476 hardcode_action=immediate
17477 fi
17478 else
17479 # We cannot hardcode anything, or else we can only hardcode existing
17480 # directories.
17481 hardcode_action=unsupported
17482 fi
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17484 $as_echo "$hardcode_action" >&6; }
17485
17486 if test "$hardcode_action" = relink ||
17487 test "$inherit_rpath" = yes; then
17488 # Fast installation is not supported
17489 enable_fast_install=no
17490 elif test "$shlibpath_overrides_runpath" = yes ||
17491 test "$enable_shared" = no; then
17492 # Fast installation is not necessary
17493 enable_fast_install=needless
17494 fi
17495
17496
17497
17498
17499
17500
17501 if test "x$enable_dlopen" != xyes; then
17502 enable_dlopen=unknown
17503 enable_dlopen_self=unknown
17504 enable_dlopen_self_static=unknown
17505 else
17506 lt_cv_dlopen=no
17507 lt_cv_dlopen_libs=
17508
17509 case $host_os in
17510 beos*)
17511 lt_cv_dlopen="load_add_on"
17512 lt_cv_dlopen_libs=
17513 lt_cv_dlopen_self=yes
17514 ;;
17515
17516 mingw* | pw32* | cegcc*)
17517 lt_cv_dlopen="LoadLibrary"
17518 lt_cv_dlopen_libs=
17519 ;;
17520
17521 cygwin*)
17522 lt_cv_dlopen="dlopen"
17523 lt_cv_dlopen_libs=
17524 ;;
17525
17526 darwin*)
17527 # if libdl is installed we need to link against it
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17531 $as_echo_n "(cached) " >&6
17532 else
17533 ac_check_lib_save_LIBS=$LIBS
17534 LIBS="-ldl $LIBS"
17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536 /* end confdefs.h. */
17537
17538 /* Override any GCC internal prototype to avoid an error.
17539 Use char because int might match the return type of a GCC
17540 builtin and then its argument prototype would still apply. */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 char dlopen ();
17545 int
17546 main ()
17547 {
17548 return dlopen ();
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"; then :
17554 ac_cv_lib_dl_dlopen=yes
17555 else
17556 ac_cv_lib_dl_dlopen=no
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_check_lib_save_LIBS
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17564 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17566 else
17567
17568 lt_cv_dlopen="dyld"
17569 lt_cv_dlopen_libs=
17570 lt_cv_dlopen_self=yes
17571
17572 fi
17573
17574 ;;
17575
17576 *)
17577 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17578 if test "x$ac_cv_func_shl_load" = x""yes; then :
17579 lt_cv_dlopen="shl_load"
17580 else
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17582 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17583 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586 ac_check_lib_save_LIBS=$LIBS
17587 LIBS="-ldld $LIBS"
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17590
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char shl_load ();
17598 int
17599 main ()
17600 {
17601 return shl_load ();
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 if ac_fn_c_try_link "$LINENO"; then :
17607 ac_cv_lib_dld_shl_load=yes
17608 else
17609 ac_cv_lib_dld_shl_load=no
17610 fi
17611 rm -f core conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17614 fi
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17616 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17617 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17619 else
17620 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17621 if test "x$ac_cv_func_dlopen" = x""yes; then :
17622 lt_cv_dlopen="dlopen"
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17627 $as_echo_n "(cached) " >&6
17628 else
17629 ac_check_lib_save_LIBS=$LIBS
17630 LIBS="-ldl $LIBS"
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17637 #ifdef __cplusplus
17638 extern "C"
17639 #endif
17640 char dlopen ();
17641 int
17642 main ()
17643 {
17644 return dlopen ();
17645 ;
17646 return 0;
17647 }
17648 _ACEOF
17649 if ac_fn_c_try_link "$LINENO"; then :
17650 ac_cv_lib_dl_dlopen=yes
17651 else
17652 ac_cv_lib_dl_dlopen=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17660 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17662 else
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17664 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 ac_check_lib_save_LIBS=$LIBS
17669 LIBS="-lsvld $LIBS"
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 #endif
17679 char dlopen ();
17680 int
17681 main ()
17682 {
17683 return dlopen ();
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 ac_cv_lib_svld_dlopen=yes
17690 else
17691 ac_cv_lib_svld_dlopen=no
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 LIBS=$ac_check_lib_save_LIBS
17696 fi
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17698 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17699 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17701 else
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17703 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17705 $as_echo_n "(cached) " >&6
17706 else
17707 ac_check_lib_save_LIBS=$LIBS
17708 LIBS="-ldld $LIBS"
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 char dld_link ();
17719 int
17720 main ()
17721 {
17722 return dld_link ();
17723 ;
17724 return 0;
17725 }
17726 _ACEOF
17727 if ac_fn_c_try_link "$LINENO"; then :
17728 ac_cv_lib_dld_dld_link=yes
17729 else
17730 ac_cv_lib_dld_dld_link=no
17731 fi
17732 rm -f core conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 LIBS=$ac_check_lib_save_LIBS
17735 fi
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17737 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17738 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17739 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17740 fi
17741
17742
17743 fi
17744
17745
17746 fi
17747
17748
17749 fi
17750
17751
17752 fi
17753
17754
17755 fi
17756
17757 ;;
17758 esac
17759
17760 if test "x$lt_cv_dlopen" != xno; then
17761 enable_dlopen=yes
17762 else
17763 enable_dlopen=no
17764 fi
17765
17766 case $lt_cv_dlopen in
17767 dlopen)
17768 save_CPPFLAGS="$CPPFLAGS"
17769 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17770
17771 save_LDFLAGS="$LDFLAGS"
17772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17773
17774 save_LIBS="$LIBS"
17775 LIBS="$lt_cv_dlopen_libs $LIBS"
17776
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17778 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17779 if test "${lt_cv_dlopen_self+set}" = set; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 if test "$cross_compiling" = yes; then :
17783 lt_cv_dlopen_self=cross
17784 else
17785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17786 lt_status=$lt_dlunknown
17787 cat > conftest.$ac_ext <<_LT_EOF
17788 #line 17788 "configure"
17789 #include "confdefs.h"
17790
17791 #if HAVE_DLFCN_H
17792 #include <dlfcn.h>
17793 #endif
17794
17795 #include <stdio.h>
17796
17797 #ifdef RTLD_GLOBAL
17798 # define LT_DLGLOBAL RTLD_GLOBAL
17799 #else
17800 # ifdef DL_GLOBAL
17801 # define LT_DLGLOBAL DL_GLOBAL
17802 # else
17803 # define LT_DLGLOBAL 0
17804 # endif
17805 #endif
17806
17807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17808 find out it does not work in some platform. */
17809 #ifndef LT_DLLAZY_OR_NOW
17810 # ifdef RTLD_LAZY
17811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17812 # else
17813 # ifdef DL_LAZY
17814 # define LT_DLLAZY_OR_NOW DL_LAZY
17815 # else
17816 # ifdef RTLD_NOW
17817 # define LT_DLLAZY_OR_NOW RTLD_NOW
17818 # else
17819 # ifdef DL_NOW
17820 # define LT_DLLAZY_OR_NOW DL_NOW
17821 # else
17822 # define LT_DLLAZY_OR_NOW 0
17823 # endif
17824 # endif
17825 # endif
17826 # endif
17827 #endif
17828
17829 /* When -fvisbility=hidden is used, assume the code has been annotated
17830 correspondingly for the symbols needed. */
17831 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17832 void fnord () __attribute__((visibility("default")));
17833 #endif
17834
17835 void fnord () { int i=42; }
17836 int main ()
17837 {
17838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17839 int status = $lt_dlunknown;
17840
17841 if (self)
17842 {
17843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17844 else
17845 {
17846 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17847 else puts (dlerror ());
17848 }
17849 /* dlclose (self); */
17850 }
17851 else
17852 puts (dlerror ());
17853
17854 return status;
17855 }
17856 _LT_EOF
17857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17858 (eval $ac_link) 2>&5
17859 ac_status=$?
17860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17861 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17862 (./conftest; exit; ) >&5 2>/dev/null
17863 lt_status=$?
17864 case x$lt_status in
17865 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17866 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17867 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17868 esac
17869 else :
17870 # compilation failed
17871 lt_cv_dlopen_self=no
17872 fi
17873 fi
17874 rm -fr conftest*
17875
17876
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17879 $as_echo "$lt_cv_dlopen_self" >&6; }
17880
17881 if test "x$lt_cv_dlopen_self" = xyes; then
17882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17884 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17885 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 if test "$cross_compiling" = yes; then :
17889 lt_cv_dlopen_self_static=cross
17890 else
17891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17892 lt_status=$lt_dlunknown
17893 cat > conftest.$ac_ext <<_LT_EOF
17894 #line 17894 "configure"
17895 #include "confdefs.h"
17896
17897 #if HAVE_DLFCN_H
17898 #include <dlfcn.h>
17899 #endif
17900
17901 #include <stdio.h>
17902
17903 #ifdef RTLD_GLOBAL
17904 # define LT_DLGLOBAL RTLD_GLOBAL
17905 #else
17906 # ifdef DL_GLOBAL
17907 # define LT_DLGLOBAL DL_GLOBAL
17908 # else
17909 # define LT_DLGLOBAL 0
17910 # endif
17911 #endif
17912
17913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17914 find out it does not work in some platform. */
17915 #ifndef LT_DLLAZY_OR_NOW
17916 # ifdef RTLD_LAZY
17917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17918 # else
17919 # ifdef DL_LAZY
17920 # define LT_DLLAZY_OR_NOW DL_LAZY
17921 # else
17922 # ifdef RTLD_NOW
17923 # define LT_DLLAZY_OR_NOW RTLD_NOW
17924 # else
17925 # ifdef DL_NOW
17926 # define LT_DLLAZY_OR_NOW DL_NOW
17927 # else
17928 # define LT_DLLAZY_OR_NOW 0
17929 # endif
17930 # endif
17931 # endif
17932 # endif
17933 #endif
17934
17935 /* When -fvisbility=hidden is used, assume the code has been annotated
17936 correspondingly for the symbols needed. */
17937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17938 void fnord () __attribute__((visibility("default")));
17939 #endif
17940
17941 void fnord () { int i=42; }
17942 int main ()
17943 {
17944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17945 int status = $lt_dlunknown;
17946
17947 if (self)
17948 {
17949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17950 else
17951 {
17952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17953 else puts (dlerror ());
17954 }
17955 /* dlclose (self); */
17956 }
17957 else
17958 puts (dlerror ());
17959
17960 return status;
17961 }
17962 _LT_EOF
17963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17964 (eval $ac_link) 2>&5
17965 ac_status=$?
17966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17968 (./conftest; exit; ) >&5 2>/dev/null
17969 lt_status=$?
17970 case x$lt_status in
17971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17973 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17974 esac
17975 else :
17976 # compilation failed
17977 lt_cv_dlopen_self_static=no
17978 fi
17979 fi
17980 rm -fr conftest*
17981
17982
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17985 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17986 fi
17987
17988 CPPFLAGS="$save_CPPFLAGS"
17989 LDFLAGS="$save_LDFLAGS"
17990 LIBS="$save_LIBS"
17991 ;;
17992 esac
17993
17994 case $lt_cv_dlopen_self in
17995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17996 *) enable_dlopen_self=unknown ;;
17997 esac
17998
17999 case $lt_cv_dlopen_self_static in
18000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18001 *) enable_dlopen_self_static=unknown ;;
18002 esac
18003 fi
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021 striplib=
18022 old_striplib=
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18024 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18025 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18026 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18027 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029 $as_echo "yes" >&6; }
18030 else
18031 # FIXME - insert some real tests, host_os isn't really good enough
18032 case $host_os in
18033 darwin*)
18034 if test -n "$STRIP" ; then
18035 striplib="$STRIP -x"
18036 old_striplib="$STRIP -S"
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18038 $as_echo "yes" >&6; }
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18042 fi
18043 ;;
18044 *)
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 $as_echo "no" >&6; }
18047 ;;
18048 esac
18049 fi
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062 # Report which library types will actually be built
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18064 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18066 $as_echo "$can_build_shared" >&6; }
18067
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18069 $as_echo_n "checking whether to build shared libraries... " >&6; }
18070 test "$can_build_shared" = "no" && enable_shared=no
18071
18072 # On AIX, shared libraries and static libraries use the same namespace, and
18073 # are all built from PIC.
18074 case $host_os in
18075 aix3*)
18076 test "$enable_shared" = yes && enable_static=no
18077 if test -n "$RANLIB"; then
18078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18079 postinstall_cmds='$RANLIB $lib'
18080 fi
18081 ;;
18082
18083 aix[4-9]*)
18084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18085 test "$enable_shared" = yes && enable_static=no
18086 fi
18087 ;;
18088 esac
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18090 $as_echo "$enable_shared" >&6; }
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18093 $as_echo_n "checking whether to build static libraries... " >&6; }
18094 # Make sure either enable_shared or enable_static is yes.
18095 test "$enable_shared" = yes || enable_static=yes
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18097 $as_echo "$enable_static" >&6; }
18098
18099
18100
18101
18102 fi
18103 ac_ext=c
18104 ac_cpp='$CPP $CPPFLAGS'
18105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18108
18109 CC="$lt_save_CC"
18110
18111 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18112 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18113 (test "X$CXX" != "Xg++"))) ; then
18114 ac_ext=cpp
18115 ac_cpp='$CXXCPP $CPPFLAGS'
18116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18120 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18121 if test -z "$CXXCPP"; then
18122 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18123 $as_echo_n "(cached) " >&6
18124 else
18125 # Double quotes because CXXCPP needs to be expanded
18126 for CXXCPP in "$CXX -E" "/lib/cpp"
18127 do
18128 ac_preproc_ok=false
18129 for ac_cxx_preproc_warn_flag in '' yes
18130 do
18131 # Use a header file that comes with gcc, so configuring glibc
18132 # with a fresh cross-compiler works.
18133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18134 # <limits.h> exists even on freestanding compilers.
18135 # On the NeXT, cc -E runs the code through the compiler's parser,
18136 # not just through cpp. "Syntax error" is here to catch this case.
18137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18138 /* end confdefs.h. */
18139 #ifdef __STDC__
18140 # include <limits.h>
18141 #else
18142 # include <assert.h>
18143 #endif
18144 Syntax error
18145 _ACEOF
18146 if ac_fn_cxx_try_cpp "$LINENO"; then :
18147
18148 else
18149 # Broken: fails on valid input.
18150 continue
18151 fi
18152 rm -f conftest.err conftest.$ac_ext
18153
18154 # OK, works on sane cases. Now check whether nonexistent headers
18155 # can be detected and how.
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158 #include <ac_nonexistent.h>
18159 _ACEOF
18160 if ac_fn_cxx_try_cpp "$LINENO"; then :
18161 # Broken: success on invalid input.
18162 continue
18163 else
18164 # Passes both tests.
18165 ac_preproc_ok=:
18166 break
18167 fi
18168 rm -f conftest.err conftest.$ac_ext
18169
18170 done
18171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18172 rm -f conftest.err conftest.$ac_ext
18173 if $ac_preproc_ok; then :
18174 break
18175 fi
18176
18177 done
18178 ac_cv_prog_CXXCPP=$CXXCPP
18179
18180 fi
18181 CXXCPP=$ac_cv_prog_CXXCPP
18182 else
18183 ac_cv_prog_CXXCPP=$CXXCPP
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18186 $as_echo "$CXXCPP" >&6; }
18187 ac_preproc_ok=false
18188 for ac_cxx_preproc_warn_flag in '' yes
18189 do
18190 # Use a header file that comes with gcc, so configuring glibc
18191 # with a fresh cross-compiler works.
18192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18193 # <limits.h> exists even on freestanding compilers.
18194 # On the NeXT, cc -E runs the code through the compiler's parser,
18195 # not just through cpp. "Syntax error" is here to catch this case.
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18198 #ifdef __STDC__
18199 # include <limits.h>
18200 #else
18201 # include <assert.h>
18202 #endif
18203 Syntax error
18204 _ACEOF
18205 if ac_fn_cxx_try_cpp "$LINENO"; then :
18206
18207 else
18208 # Broken: fails on valid input.
18209 continue
18210 fi
18211 rm -f conftest.err conftest.$ac_ext
18212
18213 # OK, works on sane cases. Now check whether nonexistent headers
18214 # can be detected and how.
18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h. */
18217 #include <ac_nonexistent.h>
18218 _ACEOF
18219 if ac_fn_cxx_try_cpp "$LINENO"; then :
18220 # Broken: success on invalid input.
18221 continue
18222 else
18223 # Passes both tests.
18224 ac_preproc_ok=:
18225 break
18226 fi
18227 rm -f conftest.err conftest.$ac_ext
18228
18229 done
18230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18231 rm -f conftest.err conftest.$ac_ext
18232 if $ac_preproc_ok; then :
18233
18234 else
18235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18237 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18238 See \`config.log' for more details." "$LINENO" 5; }
18239 fi
18240
18241 ac_ext=c
18242 ac_cpp='$CPP $CPPFLAGS'
18243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18246
18247 else
18248 _lt_caught_CXX_error=yes
18249 fi
18250
18251 ac_ext=cpp
18252 ac_cpp='$CXXCPP $CPPFLAGS'
18253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18256
18257 archive_cmds_need_lc_CXX=no
18258 allow_undefined_flag_CXX=
18259 always_export_symbols_CXX=no
18260 archive_expsym_cmds_CXX=
18261 compiler_needs_object_CXX=no
18262 export_dynamic_flag_spec_CXX=
18263 hardcode_direct_CXX=no
18264 hardcode_direct_absolute_CXX=no
18265 hardcode_libdir_flag_spec_CXX=
18266 hardcode_libdir_flag_spec_ld_CXX=
18267 hardcode_libdir_separator_CXX=
18268 hardcode_minus_L_CXX=no
18269 hardcode_shlibpath_var_CXX=unsupported
18270 hardcode_automatic_CXX=no
18271 inherit_rpath_CXX=no
18272 module_cmds_CXX=
18273 module_expsym_cmds_CXX=
18274 link_all_deplibs_CXX=unknown
18275 old_archive_cmds_CXX=$old_archive_cmds
18276 reload_flag_CXX=$reload_flag
18277 reload_cmds_CXX=$reload_cmds
18278 no_undefined_flag_CXX=
18279 whole_archive_flag_spec_CXX=
18280 enable_shared_with_static_runtimes_CXX=no
18281
18282 # Source file extension for C++ test sources.
18283 ac_ext=cpp
18284
18285 # Object file extension for compiled C++ test sources.
18286 objext=o
18287 objext_CXX=$objext
18288
18289 # No sense in running all these tests if we already determined that
18290 # the CXX compiler isn't working. Some variables (like enable_shared)
18291 # are currently assumed to apply to all compilers on this platform,
18292 # and will be corrupted by setting them based on a non-working compiler.
18293 if test "$_lt_caught_CXX_error" != yes; then
18294 # Code to be used in simple compile tests
18295 lt_simple_compile_test_code="int some_variable = 0;"
18296
18297 # Code to be used in simple link tests
18298 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18299
18300 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18301
18302
18303
18304
18305
18306
18307 # If no C compiler was specified, use CC.
18308 LTCC=${LTCC-"$CC"}
18309
18310 # If no C compiler flags were specified, use CFLAGS.
18311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18312
18313 # Allow CC to be a program name with arguments.
18314 compiler=$CC
18315
18316
18317 # save warnings/boilerplate of simple test code
18318 ac_outfile=conftest.$ac_objext
18319 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18321 _lt_compiler_boilerplate=`cat conftest.err`
18322 $RM conftest*
18323
18324 ac_outfile=conftest.$ac_objext
18325 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18327 _lt_linker_boilerplate=`cat conftest.err`
18328 $RM -r conftest*
18329
18330
18331 # Allow CC to be a program name with arguments.
18332 lt_save_CC=$CC
18333 lt_save_LD=$LD
18334 lt_save_GCC=$GCC
18335 GCC=$GXX
18336 lt_save_with_gnu_ld=$with_gnu_ld
18337 lt_save_path_LD=$lt_cv_path_LD
18338 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18339 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18340 else
18341 $as_unset lt_cv_prog_gnu_ld
18342 fi
18343 if test -n "${lt_cv_path_LDCXX+set}"; then
18344 lt_cv_path_LD=$lt_cv_path_LDCXX
18345 else
18346 $as_unset lt_cv_path_LD
18347 fi
18348 test -z "${LDCXX+set}" || LD=$LDCXX
18349 CC=${CXX-"c++"}
18350 compiler=$CC
18351 compiler_CXX=$CC
18352 for cc_temp in $compiler""; do
18353 case $cc_temp in
18354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18356 \-*) ;;
18357 *) break;;
18358 esac
18359 done
18360 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18361
18362
18363 if test -n "$compiler"; then
18364 # We don't want -fno-exception when compiling C++ code, so set the
18365 # no_builtin_flag separately
18366 if test "$GXX" = yes; then
18367 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18368 else
18369 lt_prog_compiler_no_builtin_flag_CXX=
18370 fi
18371
18372 if test "$GXX" = yes; then
18373 # Set up default GNU C++ configuration
18374
18375
18376
18377 # Check whether --with-gnu-ld was given.
18378 if test "${with_gnu_ld+set}" = set; then :
18379 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18380 else
18381 with_gnu_ld=no
18382 fi
18383
18384 ac_prog=ld
18385 if test "$GCC" = yes; then
18386 # Check if gcc -print-prog-name=ld gives a path.
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18388 $as_echo_n "checking for ld used by $CC... " >&6; }
18389 case $host in
18390 *-*-mingw*)
18391 # gcc leaves a trailing carriage return which upsets mingw
18392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18393 *)
18394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18395 esac
18396 case $ac_prog in
18397 # Accept absolute paths.
18398 [\\/]* | ?:[\\/]*)
18399 re_direlt='/[^/][^/]*/\.\./'
18400 # Canonicalize the pathname of ld
18401 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18402 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18403 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18404 done
18405 test -z "$LD" && LD="$ac_prog"
18406 ;;
18407 "")
18408 # If it fails, then pretend we aren't using GCC.
18409 ac_prog=ld
18410 ;;
18411 *)
18412 # If it is relative, then search for the first ld in PATH.
18413 with_gnu_ld=unknown
18414 ;;
18415 esac
18416 elif test "$with_gnu_ld" = yes; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18418 $as_echo_n "checking for GNU ld... " >&6; }
18419 else
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18421 $as_echo_n "checking for non-GNU ld... " >&6; }
18422 fi
18423 if test "${lt_cv_path_LD+set}" = set; then :
18424 $as_echo_n "(cached) " >&6
18425 else
18426 if test -z "$LD"; then
18427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18428 for ac_dir in $PATH; do
18429 IFS="$lt_save_ifs"
18430 test -z "$ac_dir" && ac_dir=.
18431 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18432 lt_cv_path_LD="$ac_dir/$ac_prog"
18433 # Check to see if the program is GNU ld. I'd rather use --version,
18434 # but apparently some variants of GNU ld only accept -v.
18435 # Break only if it was the GNU/non-GNU ld that we prefer.
18436 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18437 *GNU* | *'with BFD'*)
18438 test "$with_gnu_ld" != no && break
18439 ;;
18440 *)
18441 test "$with_gnu_ld" != yes && break
18442 ;;
18443 esac
18444 fi
18445 done
18446 IFS="$lt_save_ifs"
18447 else
18448 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18449 fi
18450 fi
18451
18452 LD="$lt_cv_path_LD"
18453 if test -n "$LD"; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18455 $as_echo "$LD" >&6; }
18456 else
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 $as_echo "no" >&6; }
18459 fi
18460 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18462 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18463 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18464 $as_echo_n "(cached) " >&6
18465 else
18466 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18467 case `$LD -v 2>&1 </dev/null` in
18468 *GNU* | *'with BFD'*)
18469 lt_cv_prog_gnu_ld=yes
18470 ;;
18471 *)
18472 lt_cv_prog_gnu_ld=no
18473 ;;
18474 esac
18475 fi
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18477 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18478 with_gnu_ld=$lt_cv_prog_gnu_ld
18479
18480
18481
18482
18483
18484
18485
18486 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18487 # archiving commands below assume that GNU ld is being used.
18488 if test "$with_gnu_ld" = yes; then
18489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18490 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'
18491
18492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18494
18495 # If archive_cmds runs LD, not CC, wlarc should be empty
18496 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18497 # investigate it a little bit more. (MM)
18498 wlarc='${wl}'
18499
18500 # ancient GNU ld didn't support --whole-archive et. al.
18501 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18502 $GREP 'no-whole-archive' > /dev/null; then
18503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18504 else
18505 whole_archive_flag_spec_CXX=
18506 fi
18507 else
18508 with_gnu_ld=no
18509 wlarc=
18510
18511 # A generic and very simple default shared library creation
18512 # command for GNU C++ for the case where it uses the native
18513 # linker, instead of GNU ld. If possible, this setting should
18514 # overridden to take advantage of the native linker features on
18515 # the platform it is being used on.
18516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18517 fi
18518
18519 # Commands to make compiler produce verbose output that lists
18520 # what "hidden" libraries, object files and flags are used when
18521 # linking a shared library.
18522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18523
18524 else
18525 GXX=no
18526 with_gnu_ld=no
18527 wlarc=
18528 fi
18529
18530 # PORTME: fill in a description of your system's C++ link characteristics
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18533 ld_shlibs_CXX=yes
18534 case $host_os in
18535 aix3*)
18536 # FIXME: insert proper C++ library support
18537 ld_shlibs_CXX=no
18538 ;;
18539 aix[4-9]*)
18540 if test "$host_cpu" = ia64; then
18541 # On IA64, the linker does run time linking by default, so we don't
18542 # have to do anything special.
18543 aix_use_runtimelinking=no
18544 exp_sym_flag='-Bexport'
18545 no_entry_flag=""
18546 else
18547 aix_use_runtimelinking=no
18548
18549 # Test if we are trying to use run time linking or normal
18550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18551 # need to do runtime linking.
18552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18553 for ld_flag in $LDFLAGS; do
18554 case $ld_flag in
18555 *-brtl*)
18556 aix_use_runtimelinking=yes
18557 break
18558 ;;
18559 esac
18560 done
18561 ;;
18562 esac
18563
18564 exp_sym_flag='-bexport'
18565 no_entry_flag='-bnoentry'
18566 fi
18567
18568 # When large executables or shared objects are built, AIX ld can
18569 # have problems creating the table of contents. If linking a library
18570 # or program results in "error TOC overflow" add -mminimal-toc to
18571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18573
18574 archive_cmds_CXX=''
18575 hardcode_direct_CXX=yes
18576 hardcode_direct_absolute_CXX=yes
18577 hardcode_libdir_separator_CXX=':'
18578 link_all_deplibs_CXX=yes
18579 file_list_spec_CXX='${wl}-f,'
18580
18581 if test "$GXX" = yes; then
18582 case $host_os in aix4.[012]|aix4.[012].*)
18583 # We only want to do this on AIX 4.2 and lower, the check
18584 # below for broken collect2 doesn't work under 4.3+
18585 collect2name=`${CC} -print-prog-name=collect2`
18586 if test -f "$collect2name" &&
18587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18588 then
18589 # We have reworked collect2
18590 :
18591 else
18592 # We have old collect2
18593 hardcode_direct_CXX=unsupported
18594 # It fails to find uninstalled libraries when the uninstalled
18595 # path is not listed in the libpath. Setting hardcode_minus_L
18596 # to unsupported forces relinking
18597 hardcode_minus_L_CXX=yes
18598 hardcode_libdir_flag_spec_CXX='-L$libdir'
18599 hardcode_libdir_separator_CXX=
18600 fi
18601 esac
18602 shared_flag='-shared'
18603 if test "$aix_use_runtimelinking" = yes; then
18604 shared_flag="$shared_flag "'${wl}-G'
18605 fi
18606 else
18607 # not using gcc
18608 if test "$host_cpu" = ia64; then
18609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18610 # chokes on -Wl,-G. The following line is correct:
18611 shared_flag='-G'
18612 else
18613 if test "$aix_use_runtimelinking" = yes; then
18614 shared_flag='${wl}-G'
18615 else
18616 shared_flag='${wl}-bM:SRE'
18617 fi
18618 fi
18619 fi
18620
18621 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18622 # It seems that -bexpall does not export symbols beginning with
18623 # underscore (_), so it is better to generate a list of symbols to
18624 # export.
18625 always_export_symbols_CXX=yes
18626 if test "$aix_use_runtimelinking" = yes; then
18627 # Warning - without using the other runtime loading flags (-brtl),
18628 # -berok will link without error, but may produce a broken library.
18629 allow_undefined_flag_CXX='-berok'
18630 # Determine the default libpath from the value encoded in an empty
18631 # executable.
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18634
18635 int
18636 main ()
18637 {
18638
18639 ;
18640 return 0;
18641 }
18642 _ACEOF
18643 if ac_fn_cxx_try_link "$LINENO"; then :
18644
18645 lt_aix_libpath_sed='
18646 /Import File Strings/,/^$/ {
18647 /^0/ {
18648 s/^0 *\(.*\)$/\1/
18649 p
18650 }
18651 }'
18652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18653 # Check for a 64-bit object if we didn't find anything.
18654 if test -z "$aix_libpath"; then
18655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18656 fi
18657 fi
18658 rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18661
18662 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18663
18664 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"
18665 else
18666 if test "$host_cpu" = ia64; then
18667 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18668 allow_undefined_flag_CXX="-z nodefs"
18669 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"
18670 else
18671 # Determine the default libpath from the value encoded in an
18672 # empty executable.
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18675
18676 int
18677 main ()
18678 {
18679
18680 ;
18681 return 0;
18682 }
18683 _ACEOF
18684 if ac_fn_cxx_try_link "$LINENO"; then :
18685
18686 lt_aix_libpath_sed='
18687 /Import File Strings/,/^$/ {
18688 /^0/ {
18689 s/^0 *\(.*\)$/\1/
18690 p
18691 }
18692 }'
18693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18694 # Check for a 64-bit object if we didn't find anything.
18695 if test -z "$aix_libpath"; then
18696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18697 fi
18698 fi
18699 rm -f core conftest.err conftest.$ac_objext \
18700 conftest$ac_exeext conftest.$ac_ext
18701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18702
18703 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18704 # Warning - without using the other run time loading flags,
18705 # -berok will link without error, but may produce a broken library.
18706 no_undefined_flag_CXX=' ${wl}-bernotok'
18707 allow_undefined_flag_CXX=' ${wl}-berok'
18708 if test "$with_gnu_ld" = yes; then
18709 # We only use this code for GNU lds that support --whole-archive.
18710 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18711 else
18712 # Exported symbols can be pulled into shared objects from archives
18713 whole_archive_flag_spec_CXX='$convenience'
18714 fi
18715 archive_cmds_need_lc_CXX=yes
18716 # This is similar to how AIX traditionally builds its shared
18717 # libraries.
18718 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'
18719 fi
18720 fi
18721 ;;
18722
18723 beos*)
18724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18725 allow_undefined_flag_CXX=unsupported
18726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18727 # support --undefined. This deserves some investigation. FIXME
18728 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18729 else
18730 ld_shlibs_CXX=no
18731 fi
18732 ;;
18733
18734 chorus*)
18735 case $cc_basename in
18736 *)
18737 # FIXME: insert proper C++ library support
18738 ld_shlibs_CXX=no
18739 ;;
18740 esac
18741 ;;
18742
18743 cygwin* | mingw* | pw32* | cegcc*)
18744 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18745 # as there is no search path for DLLs.
18746 hardcode_libdir_flag_spec_CXX='-L$libdir'
18747 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18748 allow_undefined_flag_CXX=unsupported
18749 always_export_symbols_CXX=no
18750 enable_shared_with_static_runtimes_CXX=yes
18751
18752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18753 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'
18754 # If the export-symbols file already is a .def file (1st line
18755 # is EXPORTS), use it as is; otherwise, prepend...
18756 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18757 cp $export_symbols $output_objdir/$soname.def;
18758 else
18759 echo EXPORTS > $output_objdir/$soname.def;
18760 cat $export_symbols >> $output_objdir/$soname.def;
18761 fi~
18762 $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'
18763 else
18764 ld_shlibs_CXX=no
18765 fi
18766 ;;
18767 darwin* | rhapsody*)
18768
18769
18770 archive_cmds_need_lc_CXX=no
18771 hardcode_direct_CXX=no
18772 hardcode_automatic_CXX=yes
18773 hardcode_shlibpath_var_CXX=unsupported
18774 if test "$lt_cv_ld_force_load" = "yes"; then
18775 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\"`'
18776 else
18777 whole_archive_flag_spec_CXX=''
18778 fi
18779 link_all_deplibs_CXX=yes
18780 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18781 case $cc_basename in
18782 ifort*) _lt_dar_can_shared=yes ;;
18783 *) _lt_dar_can_shared=$GCC ;;
18784 esac
18785 if test "$_lt_dar_can_shared" = "yes"; then
18786 output_verbose_link_cmd=func_echo_all
18787 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}"
18788 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18789 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}"
18790 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}"
18791 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18792 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}"
18793 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}"
18794 fi
18795
18796 else
18797 ld_shlibs_CXX=no
18798 fi
18799
18800 ;;
18801
18802 dgux*)
18803 case $cc_basename in
18804 ec++*)
18805 # FIXME: insert proper C++ library support
18806 ld_shlibs_CXX=no
18807 ;;
18808 ghcx*)
18809 # Green Hills C++ Compiler
18810 # FIXME: insert proper C++ library support
18811 ld_shlibs_CXX=no
18812 ;;
18813 *)
18814 # FIXME: insert proper C++ library support
18815 ld_shlibs_CXX=no
18816 ;;
18817 esac
18818 ;;
18819
18820 freebsd2.*)
18821 # C++ shared libraries reported to be fairly broken before
18822 # switch to ELF
18823 ld_shlibs_CXX=no
18824 ;;
18825
18826 freebsd-elf*)
18827 archive_cmds_need_lc_CXX=no
18828 ;;
18829
18830 freebsd* | dragonfly*)
18831 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18832 # conventions
18833 ld_shlibs_CXX=yes
18834 ;;
18835
18836 gnu*)
18837 ;;
18838
18839 haiku*)
18840 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18841 link_all_deplibs_CXX=yes
18842 ;;
18843
18844 hpux9*)
18845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18846 hardcode_libdir_separator_CXX=:
18847 export_dynamic_flag_spec_CXX='${wl}-E'
18848 hardcode_direct_CXX=yes
18849 hardcode_minus_L_CXX=yes # Not in the search PATH,
18850 # but as the default
18851 # location of the library.
18852
18853 case $cc_basename in
18854 CC*)
18855 # FIXME: insert proper C++ library support
18856 ld_shlibs_CXX=no
18857 ;;
18858 aCC*)
18859 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'
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 #
18864 # There doesn't appear to be a way to prevent this compiler from
18865 # explicitly linking system object files so we need to strip them
18866 # from the output so that they don't get included in the library
18867 # dependencies.
18868 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"'
18869 ;;
18870 *)
18871 if test "$GXX" = yes; then
18872 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'
18873 else
18874 # FIXME: insert proper C++ library support
18875 ld_shlibs_CXX=no
18876 fi
18877 ;;
18878 esac
18879 ;;
18880
18881 hpux10*|hpux11*)
18882 if test $with_gnu_ld = no; then
18883 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18884 hardcode_libdir_separator_CXX=:
18885
18886 case $host_cpu in
18887 hppa*64*|ia64*)
18888 ;;
18889 *)
18890 export_dynamic_flag_spec_CXX='${wl}-E'
18891 ;;
18892 esac
18893 fi
18894 case $host_cpu in
18895 hppa*64*|ia64*)
18896 hardcode_direct_CXX=no
18897 hardcode_shlibpath_var_CXX=no
18898 ;;
18899 *)
18900 hardcode_direct_CXX=yes
18901 hardcode_direct_absolute_CXX=yes
18902 hardcode_minus_L_CXX=yes # Not in the search PATH,
18903 # but as the default
18904 # location of the library.
18905 ;;
18906 esac
18907
18908 case $cc_basename in
18909 CC*)
18910 # FIXME: insert proper C++ library support
18911 ld_shlibs_CXX=no
18912 ;;
18913 aCC*)
18914 case $host_cpu in
18915 hppa*64*)
18916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18917 ;;
18918 ia64*)
18919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18920 ;;
18921 *)
18922 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18923 ;;
18924 esac
18925 # Commands to make compiler produce verbose output that lists
18926 # what "hidden" libraries, object files and flags are used when
18927 # linking a shared library.
18928 #
18929 # There doesn't appear to be a way to prevent this compiler from
18930 # explicitly linking system object files so we need to strip them
18931 # from the output so that they don't get included in the library
18932 # dependencies.
18933 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"'
18934 ;;
18935 *)
18936 if test "$GXX" = yes; then
18937 if test $with_gnu_ld = no; then
18938 case $host_cpu in
18939 hppa*64*)
18940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18941 ;;
18942 ia64*)
18943 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18944 ;;
18945 *)
18946 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'
18947 ;;
18948 esac
18949 fi
18950 else
18951 # FIXME: insert proper C++ library support
18952 ld_shlibs_CXX=no
18953 fi
18954 ;;
18955 esac
18956 ;;
18957
18958 interix[3-9]*)
18959 hardcode_direct_CXX=no
18960 hardcode_shlibpath_var_CXX=no
18961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18962 export_dynamic_flag_spec_CXX='${wl}-E'
18963 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18964 # Instead, shared libraries are loaded at an image base (0x10000000 by
18965 # default) and relocated if they conflict, which is a slow very memory
18966 # consuming and fragmenting process. To avoid this, we pick a random,
18967 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18968 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18969 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'
18970 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'
18971 ;;
18972 irix5* | irix6*)
18973 case $cc_basename in
18974 CC*)
18975 # SGI C++
18976 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'
18977
18978 # Archives containing C++ object files must be created using
18979 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18980 # necessary to make sure instantiated templates are included
18981 # in the archive.
18982 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18983 ;;
18984 *)
18985 if test "$GXX" = yes; then
18986 if test "$with_gnu_ld" = no; then
18987 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'
18988 else
18989 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'
18990 fi
18991 fi
18992 link_all_deplibs_CXX=yes
18993 ;;
18994 esac
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18996 hardcode_libdir_separator_CXX=:
18997 inherit_rpath_CXX=yes
18998 ;;
18999
19000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19001 case $cc_basename in
19002 KCC*)
19003 # Kuck and Associates, Inc. (KAI) C++ Compiler
19004
19005 # KCC will only create a shared library if the output file
19006 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19007 # to its proper name (with version) after linking.
19008 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'
19009 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'
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
19013 #
19014 # There doesn't appear to be a way to prevent this compiler from
19015 # explicitly linking system object files so we need to strip them
19016 # from the output so that they don't get included in the library
19017 # dependencies.
19018 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"'
19019
19020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19022
19023 # Archives containing C++ object files must be created using
19024 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19025 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19026 ;;
19027 icpc* | ecpc* )
19028 # Intel C++
19029 with_gnu_ld=yes
19030 # version 8.0 and above of icpc choke on multiply defined symbols
19031 # if we add $predep_objects and $postdep_objects, however 7.1 and
19032 # earlier do not add the objects themselves.
19033 case `$CC -V 2>&1` in
19034 *"Version 7."*)
19035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19036 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'
19037 ;;
19038 *) # Version 8.0 or newer
19039 tmp_idyn=
19040 case $host_cpu in
19041 ia64*) tmp_idyn=' -i_dynamic';;
19042 esac
19043 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19044 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'
19045 ;;
19046 esac
19047 archive_cmds_need_lc_CXX=no
19048 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19050 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19051 ;;
19052 pgCC* | pgcpp*)
19053 # Portland Group C++ compiler
19054 case `$CC -V` in
19055 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19056 prelink_cmds_CXX='tpldir=Template.dir~
19057 rm -rf $tpldir~
19058 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19059 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19060 old_archive_cmds_CXX='tpldir=Template.dir~
19061 rm -rf $tpldir~
19062 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19063 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19064 $RANLIB $oldlib'
19065 archive_cmds_CXX='tpldir=Template.dir~
19066 rm -rf $tpldir~
19067 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19068 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19069 archive_expsym_cmds_CXX='tpldir=Template.dir~
19070 rm -rf $tpldir~
19071 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19072 $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'
19073 ;;
19074 *) # Version 6 and above use weak symbols
19075 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19076 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'
19077 ;;
19078 esac
19079
19080 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19082 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'
19083 ;;
19084 cxx*)
19085 # Compaq C++
19086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19087 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'
19088
19089 runpath_var=LD_RUN_PATH
19090 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19091 hardcode_libdir_separator_CXX=:
19092
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19096 #
19097 # There doesn't appear to be a way to prevent this compiler from
19098 # explicitly linking system object files so we need to strip them
19099 # from the output so that they don't get included in the library
19100 # dependencies.
19101 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'
19102 ;;
19103 xl* | mpixl* | bgxl*)
19104 # IBM XL 8.0 on PPC, with GNU ld
19105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19107 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19108 if test "x$supports_anon_versioning" = xyes; then
19109 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19111 echo "local: *; };" >> $output_objdir/$libname.ver~
19112 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19113 fi
19114 ;;
19115 *)
19116 case `$CC -V 2>&1 | sed 5q` in
19117 *Sun\ C*)
19118 # Sun C++ 5.9
19119 no_undefined_flag_CXX=' -zdefs'
19120 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121 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'
19122 hardcode_libdir_flag_spec_CXX='-R$libdir'
19123 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'
19124 compiler_needs_object_CXX=yes
19125
19126 # Not sure whether something based on
19127 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19128 # would be better.
19129 output_verbose_link_cmd='func_echo_all'
19130
19131 # Archives containing C++ object files must be created using
19132 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19133 # necessary to make sure instantiated templates are included
19134 # in the archive.
19135 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19136 ;;
19137 esac
19138 ;;
19139 esac
19140 ;;
19141
19142 lynxos*)
19143 # FIXME: insert proper C++ library support
19144 ld_shlibs_CXX=no
19145 ;;
19146
19147 m88k*)
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
19151
19152 mvs*)
19153 case $cc_basename in
19154 cxx*)
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19157 ;;
19158 *)
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19161 ;;
19162 esac
19163 ;;
19164
19165 netbsd*)
19166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19167 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19168 wlarc=
19169 hardcode_libdir_flag_spec_CXX='-R$libdir'
19170 hardcode_direct_CXX=yes
19171 hardcode_shlibpath_var_CXX=no
19172 fi
19173 # Workaround some broken pre-1.5 toolchains
19174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19175 ;;
19176
19177 *nto* | *qnx*)
19178 ld_shlibs_CXX=yes
19179 ;;
19180
19181 openbsd2*)
19182 # C++ shared libraries are fairly broken
19183 ld_shlibs_CXX=no
19184 ;;
19185
19186 openbsd*)
19187 if test -f /usr/libexec/ld.so; then
19188 hardcode_direct_CXX=yes
19189 hardcode_shlibpath_var_CXX=no
19190 hardcode_direct_absolute_CXX=yes
19191 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19194 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19195 export_dynamic_flag_spec_CXX='${wl}-E'
19196 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19197 fi
19198 output_verbose_link_cmd=func_echo_all
19199 else
19200 ld_shlibs_CXX=no
19201 fi
19202 ;;
19203
19204 osf3* | osf4* | osf5*)
19205 case $cc_basename in
19206 KCC*)
19207 # Kuck and Associates, Inc. (KAI) C++ Compiler
19208
19209 # KCC will only create a shared library if the output file
19210 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19211 # to its proper name (with version) after linking.
19212 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'
19213
19214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19215 hardcode_libdir_separator_CXX=:
19216
19217 # Archives containing C++ object files must be created using
19218 # the KAI C++ compiler.
19219 case $host in
19220 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19221 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19222 esac
19223 ;;
19224 RCC*)
19225 # Rational C++ 2.4.1
19226 # FIXME: insert proper C++ library support
19227 ld_shlibs_CXX=no
19228 ;;
19229 cxx*)
19230 case $host in
19231 osf3*)
19232 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19233 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'
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19235 ;;
19236 *)
19237 allow_undefined_flag_CXX=' -expect_unresolved \*'
19238 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'
19239 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19240 echo "-hidden">> $lib.exp~
19241 $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~
19242 $RM $lib.exp'
19243 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19244 ;;
19245 esac
19246
19247 hardcode_libdir_separator_CXX=:
19248
19249 # Commands to make compiler produce verbose output that lists
19250 # what "hidden" libraries, object files and flags are used when
19251 # linking a shared library.
19252 #
19253 # There doesn't appear to be a way to prevent this compiler from
19254 # explicitly linking system object files so we need to strip them
19255 # from the output so that they don't get included in the library
19256 # dependencies.
19257 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"'
19258 ;;
19259 *)
19260 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19261 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19262 case $host in
19263 osf3*)
19264 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'
19265 ;;
19266 *)
19267 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'
19268 ;;
19269 esac
19270
19271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19272 hardcode_libdir_separator_CXX=:
19273
19274 # Commands to make compiler produce verbose output that lists
19275 # what "hidden" libraries, object files and flags are used when
19276 # linking a shared library.
19277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19278
19279 else
19280 # FIXME: insert proper C++ library support
19281 ld_shlibs_CXX=no
19282 fi
19283 ;;
19284 esac
19285 ;;
19286
19287 psos*)
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19290 ;;
19291
19292 sunos4*)
19293 case $cc_basename in
19294 CC*)
19295 # Sun C++ 4.x
19296 # FIXME: insert proper C++ library support
19297 ld_shlibs_CXX=no
19298 ;;
19299 lcc*)
19300 # Lucid
19301 # FIXME: insert proper C++ library support
19302 ld_shlibs_CXX=no
19303 ;;
19304 *)
19305 # FIXME: insert proper C++ library support
19306 ld_shlibs_CXX=no
19307 ;;
19308 esac
19309 ;;
19310
19311 solaris*)
19312 case $cc_basename in
19313 CC*)
19314 # Sun C++ 4.2, 5.x and Centerline C++
19315 archive_cmds_need_lc_CXX=yes
19316 no_undefined_flag_CXX=' -zdefs'
19317 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19318 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19319 $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'
19320
19321 hardcode_libdir_flag_spec_CXX='-R$libdir'
19322 hardcode_shlibpath_var_CXX=no
19323 case $host_os in
19324 solaris2.[0-5] | solaris2.[0-5].*) ;;
19325 *)
19326 # The compiler driver will combine and reorder linker options,
19327 # but understands `-z linker_flag'.
19328 # Supported since Solaris 2.6 (maybe 2.5.1?)
19329 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19330 ;;
19331 esac
19332 link_all_deplibs_CXX=yes
19333
19334 output_verbose_link_cmd='func_echo_all'
19335
19336 # Archives containing C++ object files must be created using
19337 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19338 # necessary to make sure instantiated templates are included
19339 # in the archive.
19340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19341 ;;
19342 gcx*)
19343 # Green Hills C++ Compiler
19344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19345
19346 # The C++ compiler must be used to create the archive.
19347 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19348 ;;
19349 *)
19350 # GNU C++ compiler with Solaris linker
19351 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19352 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19353 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19354 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19355 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19356 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19357
19358 # Commands to make compiler produce verbose output that lists
19359 # what "hidden" libraries, object files and flags are used when
19360 # linking a shared library.
19361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19362 else
19363 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19364 # platform.
19365 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19366 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19367 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19368
19369 # Commands to make compiler produce verbose output that lists
19370 # what "hidden" libraries, object files and flags are used when
19371 # linking a shared library.
19372 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19373 fi
19374
19375 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19376 case $host_os in
19377 solaris2.[0-5] | solaris2.[0-5].*) ;;
19378 *)
19379 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19380 ;;
19381 esac
19382 fi
19383 ;;
19384 esac
19385 ;;
19386
19387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19388 no_undefined_flag_CXX='${wl}-z,text'
19389 archive_cmds_need_lc_CXX=no
19390 hardcode_shlibpath_var_CXX=no
19391 runpath_var='LD_RUN_PATH'
19392
19393 case $cc_basename in
19394 CC*)
19395 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19396 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19397 ;;
19398 *)
19399 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19400 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19401 ;;
19402 esac
19403 ;;
19404
19405 sysv5* | sco3.2v5* | sco5v6*)
19406 # Note: We can NOT use -z defs as we might desire, because we do not
19407 # link with -lc, and that would cause any symbols used from libc to
19408 # always be unresolved, which means just about no library would
19409 # ever link correctly. If we're not using GNU ld we use -z text
19410 # though, which does catch some bad symbols but isn't as heavy-handed
19411 # as -z defs.
19412 no_undefined_flag_CXX='${wl}-z,text'
19413 allow_undefined_flag_CXX='${wl}-z,nodefs'
19414 archive_cmds_need_lc_CXX=no
19415 hardcode_shlibpath_var_CXX=no
19416 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19417 hardcode_libdir_separator_CXX=':'
19418 link_all_deplibs_CXX=yes
19419 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19420 runpath_var='LD_RUN_PATH'
19421
19422 case $cc_basename in
19423 CC*)
19424 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19425 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19426 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19427 '"$old_archive_cmds_CXX"
19428 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19429 '"$reload_cmds_CXX"
19430 ;;
19431 *)
19432 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19433 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 ;;
19435 esac
19436 ;;
19437
19438 tandem*)
19439 case $cc_basename in
19440 NCC*)
19441 # NonStop-UX NCC 3.20
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19444 ;;
19445 *)
19446 # FIXME: insert proper C++ library support
19447 ld_shlibs_CXX=no
19448 ;;
19449 esac
19450 ;;
19451
19452 vxworks*)
19453 # FIXME: insert proper C++ library support
19454 ld_shlibs_CXX=no
19455 ;;
19456
19457 *)
19458 # FIXME: insert proper C++ library support
19459 ld_shlibs_CXX=no
19460 ;;
19461 esac
19462
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19464 $as_echo "$ld_shlibs_CXX" >&6; }
19465 test "$ld_shlibs_CXX" = no && can_build_shared=no
19466
19467 GCC_CXX="$GXX"
19468 LD_CXX="$LD"
19469
19470 ## CAVEAT EMPTOR:
19471 ## There is no encapsulation within the following macros, do not change
19472 ## the running order or otherwise move them around unless you know exactly
19473 ## what you are doing...
19474 # Dependencies to place before and after the object being linked:
19475 predep_objects_CXX=
19476 postdep_objects_CXX=
19477 predeps_CXX=
19478 postdeps_CXX=
19479 compiler_lib_search_path_CXX=
19480
19481 cat > conftest.$ac_ext <<_LT_EOF
19482 class Foo
19483 {
19484 public:
19485 Foo (void) { a = 0; }
19486 private:
19487 int a;
19488 };
19489 _LT_EOF
19490
19491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19492 (eval $ac_compile) 2>&5
19493 ac_status=$?
19494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19495 test $ac_status = 0; }; then
19496 # Parse the compiler output and extract the necessary
19497 # objects, libraries and library flags.
19498
19499 # Sentinel used to keep track of whether or not we are before
19500 # the conftest object file.
19501 pre_test_object_deps_done=no
19502
19503 for p in `eval "$output_verbose_link_cmd"`; do
19504 case $p in
19505
19506 -L* | -R* | -l*)
19507 # Some compilers place space between "-{L,R}" and the path.
19508 # Remove the space.
19509 if test $p = "-L" ||
19510 test $p = "-R"; then
19511 prev=$p
19512 continue
19513 else
19514 prev=
19515 fi
19516
19517 if test "$pre_test_object_deps_done" = no; then
19518 case $p in
19519 -L* | -R*)
19520 # Internal compiler library paths should come after those
19521 # provided the user. The postdeps already come after the
19522 # user supplied libs so there is no need to process them.
19523 if test -z "$compiler_lib_search_path_CXX"; then
19524 compiler_lib_search_path_CXX="${prev}${p}"
19525 else
19526 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19527 fi
19528 ;;
19529 # The "-l" case would never come before the object being
19530 # linked, so don't bother handling this case.
19531 esac
19532 else
19533 if test -z "$postdeps_CXX"; then
19534 postdeps_CXX="${prev}${p}"
19535 else
19536 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19537 fi
19538 fi
19539 ;;
19540
19541 *.$objext)
19542 # This assumes that the test object file only shows up
19543 # once in the compiler output.
19544 if test "$p" = "conftest.$objext"; then
19545 pre_test_object_deps_done=yes
19546 continue
19547 fi
19548
19549 if test "$pre_test_object_deps_done" = no; then
19550 if test -z "$predep_objects_CXX"; then
19551 predep_objects_CXX="$p"
19552 else
19553 predep_objects_CXX="$predep_objects_CXX $p"
19554 fi
19555 else
19556 if test -z "$postdep_objects_CXX"; then
19557 postdep_objects_CXX="$p"
19558 else
19559 postdep_objects_CXX="$postdep_objects_CXX $p"
19560 fi
19561 fi
19562 ;;
19563
19564 *) ;; # Ignore the rest.
19565
19566 esac
19567 done
19568
19569 # Clean up.
19570 rm -f a.out a.exe
19571 else
19572 echo "libtool.m4: error: problem compiling CXX test program"
19573 fi
19574
19575 $RM -f confest.$objext
19576
19577 # PORTME: override above test on systems where it is broken
19578 case $host_os in
19579 interix[3-9]*)
19580 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19581 # hack all around it, let's just trust "g++" to DTRT.
19582 predep_objects_CXX=
19583 postdep_objects_CXX=
19584 postdeps_CXX=
19585 ;;
19586
19587 linux*)
19588 case `$CC -V 2>&1 | sed 5q` in
19589 *Sun\ C*)
19590 # Sun C++ 5.9
19591
19592 # The more standards-conforming stlport4 library is
19593 # incompatible with the Cstd library. Avoid specifying
19594 # it if it's in CXXFLAGS. Ignore libCrun as
19595 # -library=stlport4 depends on it.
19596 case " $CXX $CXXFLAGS " in
19597 *" -library=stlport4 "*)
19598 solaris_use_stlport4=yes
19599 ;;
19600 esac
19601
19602 if test "$solaris_use_stlport4" != yes; then
19603 postdeps_CXX='-library=Cstd -library=Crun'
19604 fi
19605 ;;
19606 esac
19607 ;;
19608
19609 solaris*)
19610 case $cc_basename in
19611 CC*)
19612 # The more standards-conforming stlport4 library is
19613 # incompatible with the Cstd library. Avoid specifying
19614 # it if it's in CXXFLAGS. Ignore libCrun as
19615 # -library=stlport4 depends on it.
19616 case " $CXX $CXXFLAGS " in
19617 *" -library=stlport4 "*)
19618 solaris_use_stlport4=yes
19619 ;;
19620 esac
19621
19622 # Adding this requires a known-good setup of shared libraries for
19623 # Sun compiler versions before 5.6, else PIC objects from an old
19624 # archive will be linked into the output, leading to subtle bugs.
19625 if test "$solaris_use_stlport4" != yes; then
19626 postdeps_CXX='-library=Cstd -library=Crun'
19627 fi
19628 ;;
19629 esac
19630 ;;
19631 esac
19632
19633
19634 case " $postdeps_CXX " in
19635 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19636 esac
19637 compiler_lib_search_dirs_CXX=
19638 if test -n "${compiler_lib_search_path_CXX}"; then
19639 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19640 fi
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672 lt_prog_compiler_wl_CXX=
19673 lt_prog_compiler_pic_CXX=
19674 lt_prog_compiler_static_CXX=
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19677 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19678
19679 # C++ specific cases for pic, static, wl, etc.
19680 if test "$GXX" = yes; then
19681 lt_prog_compiler_wl_CXX='-Wl,'
19682 lt_prog_compiler_static_CXX='-static'
19683
19684 case $host_os in
19685 aix*)
19686 # All AIX code is PIC.
19687 if test "$host_cpu" = ia64; then
19688 # AIX 5 now supports IA64 processor
19689 lt_prog_compiler_static_CXX='-Bstatic'
19690 fi
19691 lt_prog_compiler_pic_CXX='-fPIC'
19692 ;;
19693
19694 amigaos*)
19695 case $host_cpu in
19696 powerpc)
19697 # see comment about AmigaOS4 .so support
19698 lt_prog_compiler_pic_CXX='-fPIC'
19699 ;;
19700 m68k)
19701 # FIXME: we need at least 68020 code to build shared libraries, but
19702 # adding the `-m68020' flag to GCC prevents building anything better,
19703 # like `-m68040'.
19704 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19705 ;;
19706 esac
19707 ;;
19708
19709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19710 # PIC is the default for these OSes.
19711 ;;
19712 mingw* | cygwin* | os2* | pw32* | cegcc*)
19713 # This hack is so that the source file can tell whether it is being
19714 # built for inclusion in a dll (and should export symbols for example).
19715 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19716 # (--disable-auto-import) libraries
19717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19718 ;;
19719 darwin* | rhapsody*)
19720 # PIC is the default on this platform
19721 # Common symbols not allowed in MH_DYLIB files
19722 lt_prog_compiler_pic_CXX='-fno-common'
19723 ;;
19724 *djgpp*)
19725 # DJGPP does not support shared libraries at all
19726 lt_prog_compiler_pic_CXX=
19727 ;;
19728 haiku*)
19729 # PIC is the default for Haiku.
19730 # The "-static" flag exists, but is broken.
19731 lt_prog_compiler_static_CXX=
19732 ;;
19733 interix[3-9]*)
19734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19735 # Instead, we relocate shared libraries at runtime.
19736 ;;
19737 sysv4*MP*)
19738 if test -d /usr/nec; then
19739 lt_prog_compiler_pic_CXX=-Kconform_pic
19740 fi
19741 ;;
19742 hpux*)
19743 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19744 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19745 # sets the default TLS model and affects inlining.
19746 case $host_cpu in
19747 hppa*64*)
19748 ;;
19749 *)
19750 lt_prog_compiler_pic_CXX='-fPIC'
19751 ;;
19752 esac
19753 ;;
19754 *qnx* | *nto*)
19755 # QNX uses GNU C++, but need to define -shared option too, otherwise
19756 # it will coredump.
19757 lt_prog_compiler_pic_CXX='-fPIC -shared'
19758 ;;
19759 *)
19760 lt_prog_compiler_pic_CXX='-fPIC'
19761 ;;
19762 esac
19763 else
19764 case $host_os in
19765 aix[4-9]*)
19766 # All AIX code is PIC.
19767 if test "$host_cpu" = ia64; then
19768 # AIX 5 now supports IA64 processor
19769 lt_prog_compiler_static_CXX='-Bstatic'
19770 else
19771 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19772 fi
19773 ;;
19774 chorus*)
19775 case $cc_basename in
19776 cxch68*)
19777 # Green Hills C++ Compiler
19778 # _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"
19779 ;;
19780 esac
19781 ;;
19782 dgux*)
19783 case $cc_basename in
19784 ec++*)
19785 lt_prog_compiler_pic_CXX='-KPIC'
19786 ;;
19787 ghcx*)
19788 # Green Hills C++ Compiler
19789 lt_prog_compiler_pic_CXX='-pic'
19790 ;;
19791 *)
19792 ;;
19793 esac
19794 ;;
19795 freebsd* | dragonfly*)
19796 # FreeBSD uses GNU C++
19797 ;;
19798 hpux9* | hpux10* | hpux11*)
19799 case $cc_basename in
19800 CC*)
19801 lt_prog_compiler_wl_CXX='-Wl,'
19802 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19803 if test "$host_cpu" != ia64; then
19804 lt_prog_compiler_pic_CXX='+Z'
19805 fi
19806 ;;
19807 aCC*)
19808 lt_prog_compiler_wl_CXX='-Wl,'
19809 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19810 case $host_cpu in
19811 hppa*64*|ia64*)
19812 # +Z the default
19813 ;;
19814 *)
19815 lt_prog_compiler_pic_CXX='+Z'
19816 ;;
19817 esac
19818 ;;
19819 *)
19820 ;;
19821 esac
19822 ;;
19823 interix*)
19824 # This is c89, which is MS Visual C++ (no shared libs)
19825 # Anyone wants to do a port?
19826 ;;
19827 irix5* | irix6* | nonstopux*)
19828 case $cc_basename in
19829 CC*)
19830 lt_prog_compiler_wl_CXX='-Wl,'
19831 lt_prog_compiler_static_CXX='-non_shared'
19832 # CC pic flag -KPIC is the default.
19833 ;;
19834 *)
19835 ;;
19836 esac
19837 ;;
19838 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19839 case $cc_basename in
19840 KCC*)
19841 # KAI C++ Compiler
19842 lt_prog_compiler_wl_CXX='--backend -Wl,'
19843 lt_prog_compiler_pic_CXX='-fPIC'
19844 ;;
19845 ecpc* )
19846 # old Intel C++ for x86_64 which still supported -KPIC.
19847 lt_prog_compiler_wl_CXX='-Wl,'
19848 lt_prog_compiler_pic_CXX='-KPIC'
19849 lt_prog_compiler_static_CXX='-static'
19850 ;;
19851 icpc* )
19852 # Intel C++, used to be incompatible with GCC.
19853 # ICC 10 doesn't accept -KPIC any more.
19854 lt_prog_compiler_wl_CXX='-Wl,'
19855 lt_prog_compiler_pic_CXX='-fPIC'
19856 lt_prog_compiler_static_CXX='-static'
19857 ;;
19858 pgCC* | pgcpp*)
19859 # Portland Group C++ compiler
19860 lt_prog_compiler_wl_CXX='-Wl,'
19861 lt_prog_compiler_pic_CXX='-fpic'
19862 lt_prog_compiler_static_CXX='-Bstatic'
19863 ;;
19864 cxx*)
19865 # Compaq C++
19866 # Make sure the PIC flag is empty. It appears that all Alpha
19867 # Linux and Compaq Tru64 Unix objects are PIC.
19868 lt_prog_compiler_pic_CXX=
19869 lt_prog_compiler_static_CXX='-non_shared'
19870 ;;
19871 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19872 # IBM XL 8.0, 9.0 on PPC and BlueGene
19873 lt_prog_compiler_wl_CXX='-Wl,'
19874 lt_prog_compiler_pic_CXX='-qpic'
19875 lt_prog_compiler_static_CXX='-qstaticlink'
19876 ;;
19877 *)
19878 case `$CC -V 2>&1 | sed 5q` in
19879 *Sun\ C*)
19880 # Sun C++ 5.9
19881 lt_prog_compiler_pic_CXX='-KPIC'
19882 lt_prog_compiler_static_CXX='-Bstatic'
19883 lt_prog_compiler_wl_CXX='-Qoption ld '
19884 ;;
19885 esac
19886 ;;
19887 esac
19888 ;;
19889 lynxos*)
19890 ;;
19891 m88k*)
19892 ;;
19893 mvs*)
19894 case $cc_basename in
19895 cxx*)
19896 lt_prog_compiler_pic_CXX='-W c,exportall'
19897 ;;
19898 *)
19899 ;;
19900 esac
19901 ;;
19902 netbsd*)
19903 ;;
19904 *qnx* | *nto*)
19905 # QNX uses GNU C++, but need to define -shared option too, otherwise
19906 # it will coredump.
19907 lt_prog_compiler_pic_CXX='-fPIC -shared'
19908 ;;
19909 osf3* | osf4* | osf5*)
19910 case $cc_basename in
19911 KCC*)
19912 lt_prog_compiler_wl_CXX='--backend -Wl,'
19913 ;;
19914 RCC*)
19915 # Rational C++ 2.4.1
19916 lt_prog_compiler_pic_CXX='-pic'
19917 ;;
19918 cxx*)
19919 # Digital/Compaq C++
19920 lt_prog_compiler_wl_CXX='-Wl,'
19921 # Make sure the PIC flag is empty. It appears that all Alpha
19922 # Linux and Compaq Tru64 Unix objects are PIC.
19923 lt_prog_compiler_pic_CXX=
19924 lt_prog_compiler_static_CXX='-non_shared'
19925 ;;
19926 *)
19927 ;;
19928 esac
19929 ;;
19930 psos*)
19931 ;;
19932 solaris*)
19933 case $cc_basename in
19934 CC*)
19935 # Sun C++ 4.2, 5.x and Centerline C++
19936 lt_prog_compiler_pic_CXX='-KPIC'
19937 lt_prog_compiler_static_CXX='-Bstatic'
19938 lt_prog_compiler_wl_CXX='-Qoption ld '
19939 ;;
19940 gcx*)
19941 # Green Hills C++ Compiler
19942 lt_prog_compiler_pic_CXX='-PIC'
19943 ;;
19944 *)
19945 ;;
19946 esac
19947 ;;
19948 sunos4*)
19949 case $cc_basename in
19950 CC*)
19951 # Sun C++ 4.x
19952 lt_prog_compiler_pic_CXX='-pic'
19953 lt_prog_compiler_static_CXX='-Bstatic'
19954 ;;
19955 lcc*)
19956 # Lucid
19957 lt_prog_compiler_pic_CXX='-pic'
19958 ;;
19959 *)
19960 ;;
19961 esac
19962 ;;
19963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19964 case $cc_basename in
19965 CC*)
19966 lt_prog_compiler_wl_CXX='-Wl,'
19967 lt_prog_compiler_pic_CXX='-KPIC'
19968 lt_prog_compiler_static_CXX='-Bstatic'
19969 ;;
19970 esac
19971 ;;
19972 tandem*)
19973 case $cc_basename in
19974 NCC*)
19975 # NonStop-UX NCC 3.20
19976 lt_prog_compiler_pic_CXX='-KPIC'
19977 ;;
19978 *)
19979 ;;
19980 esac
19981 ;;
19982 vxworks*)
19983 ;;
19984 *)
19985 lt_prog_compiler_can_build_shared_CXX=no
19986 ;;
19987 esac
19988 fi
19989
19990 case $host_os in
19991 # For platforms which do not support PIC, -DPIC is meaningless:
19992 *djgpp*)
19993 lt_prog_compiler_pic_CXX=
19994 ;;
19995 *)
19996 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19997 ;;
19998 esac
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20000 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20001
20002
20003
20004 #
20005 # Check to make sure the PIC flag actually works.
20006 #
20007 if test -n "$lt_prog_compiler_pic_CXX"; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20009 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20010 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20012 else
20013 lt_cv_prog_compiler_pic_works_CXX=no
20014 ac_outfile=conftest.$ac_objext
20015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20016 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20017 # Insert the option either (1) after the last *FLAGS variable, or
20018 # (2) before a word containing "conftest.", or (3) at the end.
20019 # Note that $ac_compile itself does not contain backslashes and begins
20020 # with a dollar sign (not a hyphen), so the echo should work correctly.
20021 # The option is referenced via a variable to avoid confusing sed.
20022 lt_compile=`echo "$ac_compile" | $SED \
20023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20025 -e 's:$: $lt_compiler_flag:'`
20026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20027 (eval "$lt_compile" 2>conftest.err)
20028 ac_status=$?
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 if (exit $ac_status) && test -s "$ac_outfile"; then
20032 # The compiler can only warn and ignore the option if not recognized
20033 # So say no if there are warnings other than the usual output.
20034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20037 lt_cv_prog_compiler_pic_works_CXX=yes
20038 fi
20039 fi
20040 $RM conftest*
20041
20042 fi
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20044 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20045
20046 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20047 case $lt_prog_compiler_pic_CXX in
20048 "" | " "*) ;;
20049 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20050 esac
20051 else
20052 lt_prog_compiler_pic_CXX=
20053 lt_prog_compiler_can_build_shared_CXX=no
20054 fi
20055
20056 fi
20057
20058
20059
20060 #
20061 # Check to make sure the static flag actually works.
20062 #
20063 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20065 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20066 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 lt_cv_prog_compiler_static_works_CXX=no
20070 save_LDFLAGS="$LDFLAGS"
20071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20074 # The linker can only warn and ignore the option if not recognized
20075 # So say no if there are warnings
20076 if test -s conftest.err; then
20077 # Append any errors to the config.log.
20078 cat conftest.err 1>&5
20079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081 if diff conftest.exp conftest.er2 >/dev/null; then
20082 lt_cv_prog_compiler_static_works_CXX=yes
20083 fi
20084 else
20085 lt_cv_prog_compiler_static_works_CXX=yes
20086 fi
20087 fi
20088 $RM -r conftest*
20089 LDFLAGS="$save_LDFLAGS"
20090
20091 fi
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20093 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20094
20095 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20096 :
20097 else
20098 lt_prog_compiler_static_CXX=
20099 fi
20100
20101
20102
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20105 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20106 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20107 $as_echo_n "(cached) " >&6
20108 else
20109 lt_cv_prog_compiler_c_o_CXX=no
20110 $RM -r conftest 2>/dev/null
20111 mkdir conftest
20112 cd conftest
20113 mkdir out
20114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20115
20116 lt_compiler_flag="-o out/conftest2.$ac_objext"
20117 # Insert the option either (1) after the last *FLAGS variable, or
20118 # (2) before a word containing "conftest.", or (3) at the end.
20119 # Note that $ac_compile itself does not contain backslashes and begins
20120 # with a dollar sign (not a hyphen), so the echo should work correctly.
20121 lt_compile=`echo "$ac_compile" | $SED \
20122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20124 -e 's:$: $lt_compiler_flag:'`
20125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20126 (eval "$lt_compile" 2>out/conftest.err)
20127 ac_status=$?
20128 cat out/conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20131 then
20132 # The compiler can only warn and ignore the option if not recognized
20133 # So say no if there are warnings
20134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20137 lt_cv_prog_compiler_c_o_CXX=yes
20138 fi
20139 fi
20140 chmod u+w . 2>&5
20141 $RM conftest*
20142 # SGI C++ compiler will create directory out/ii_files/ for
20143 # template instantiation
20144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20145 $RM out/* && rmdir out
20146 cd ..
20147 $RM -r conftest
20148 $RM conftest*
20149
20150 fi
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20152 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20153
20154
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20157 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20158 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 lt_cv_prog_compiler_c_o_CXX=no
20162 $RM -r conftest 2>/dev/null
20163 mkdir conftest
20164 cd conftest
20165 mkdir out
20166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20167
20168 lt_compiler_flag="-o out/conftest2.$ac_objext"
20169 # Insert the option either (1) after the last *FLAGS variable, or
20170 # (2) before a word containing "conftest.", or (3) at the end.
20171 # Note that $ac_compile itself does not contain backslashes and begins
20172 # with a dollar sign (not a hyphen), so the echo should work correctly.
20173 lt_compile=`echo "$ac_compile" | $SED \
20174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20176 -e 's:$: $lt_compiler_flag:'`
20177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20178 (eval "$lt_compile" 2>out/conftest.err)
20179 ac_status=$?
20180 cat out/conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20183 then
20184 # The compiler can only warn and ignore the option if not recognized
20185 # So say no if there are warnings
20186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20189 lt_cv_prog_compiler_c_o_CXX=yes
20190 fi
20191 fi
20192 chmod u+w . 2>&5
20193 $RM conftest*
20194 # SGI C++ compiler will create directory out/ii_files/ for
20195 # template instantiation
20196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20197 $RM out/* && rmdir out
20198 cd ..
20199 $RM -r conftest
20200 $RM conftest*
20201
20202 fi
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20204 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20205
20206
20207
20208
20209 hard_links="nottested"
20210 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20211 # do not overwrite the value of need_locks provided by the user
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20213 $as_echo_n "checking if we can lock with hard links... " >&6; }
20214 hard_links=yes
20215 $RM conftest*
20216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20217 touch conftest.a
20218 ln conftest.a conftest.b 2>&5 || hard_links=no
20219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20221 $as_echo "$hard_links" >&6; }
20222 if test "$hard_links" = no; then
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20224 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20225 need_locks=warn
20226 fi
20227 else
20228 need_locks=no
20229 fi
20230
20231
20232
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20234 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20235
20236 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20237 case $host_os in
20238 aix[4-9]*)
20239 # If we're using GNU nm, then we don't want the "-C" option.
20240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20241 # Also, AIX nm treats weak defined symbols like other global defined
20242 # symbols, whereas GNU nm marks them as "W".
20243 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20244 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'
20245 else
20246 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'
20247 fi
20248 ;;
20249 pw32*)
20250 export_symbols_cmds_CXX="$ltdll_cmds"
20251 ;;
20252 cygwin* | mingw* | cegcc*)
20253 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'
20254 ;;
20255 *)
20256 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20257 ;;
20258 esac
20259 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20260
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20262 $as_echo "$ld_shlibs_CXX" >&6; }
20263 test "$ld_shlibs_CXX" = no && can_build_shared=no
20264
20265 with_gnu_ld_CXX=$with_gnu_ld
20266
20267
20268
20269
20270
20271
20272 #
20273 # Do we need to explicitly link libc?
20274 #
20275 case "x$archive_cmds_need_lc_CXX" in
20276 x|xyes)
20277 # Assume -lc should be added
20278 archive_cmds_need_lc_CXX=yes
20279
20280 if test "$enable_shared" = yes && test "$GCC" = yes; then
20281 case $archive_cmds_CXX in
20282 *'~'*)
20283 # FIXME: we may have to deal with multi-command sequences.
20284 ;;
20285 '$CC '*)
20286 # Test whether the compiler implicitly links with -lc since on some
20287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20288 # to ld, don't add -lc before -lgcc.
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20290 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20291 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20292 $as_echo_n "(cached) " >&6
20293 else
20294 $RM conftest*
20295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20296
20297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20298 (eval $ac_compile) 2>&5
20299 ac_status=$?
20300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20301 test $ac_status = 0; } 2>conftest.err; then
20302 soname=conftest
20303 lib=conftest
20304 libobjs=conftest.$ac_objext
20305 deplibs=
20306 wl=$lt_prog_compiler_wl_CXX
20307 pic_flag=$lt_prog_compiler_pic_CXX
20308 compiler_flags=-v
20309 linker_flags=-v
20310 verstring=
20311 output_objdir=.
20312 libname=conftest
20313 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20314 allow_undefined_flag_CXX=
20315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20316 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20317 ac_status=$?
20318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20319 test $ac_status = 0; }
20320 then
20321 lt_cv_archive_cmds_need_lc_CXX=no
20322 else
20323 lt_cv_archive_cmds_need_lc_CXX=yes
20324 fi
20325 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20326 else
20327 cat conftest.err 1>&5
20328 fi
20329 $RM conftest*
20330
20331 fi
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20333 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20334 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20335 ;;
20336 esac
20337 fi
20338 ;;
20339 esac
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20405 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20406
20407 library_names_spec=
20408 libname_spec='lib$name'
20409 soname_spec=
20410 shrext_cmds=".so"
20411 postinstall_cmds=
20412 postuninstall_cmds=
20413 finish_cmds=
20414 finish_eval=
20415 shlibpath_var=
20416 shlibpath_overrides_runpath=unknown
20417 version_type=none
20418 dynamic_linker="$host_os ld.so"
20419 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20420 need_lib_prefix=unknown
20421 hardcode_into_libs=no
20422
20423 # when you set need_version to no, make sure it does not cause -set_version
20424 # flags to be left without arguments
20425 need_version=unknown
20426
20427 case $host_os in
20428 aix3*)
20429 version_type=linux
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20431 shlibpath_var=LIBPATH
20432
20433 # AIX 3 has no versioning support, so we append a major version to the name.
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 ;;
20436
20437 aix[4-9]*)
20438 version_type=linux
20439 need_lib_prefix=no
20440 need_version=no
20441 hardcode_into_libs=yes
20442 if test "$host_cpu" = ia64; then
20443 # AIX 5 supports IA64
20444 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 else
20447 # With GCC up to 2.95.x, collect2 would create an import file
20448 # for dependence libraries. The import file would start with
20449 # the line `#! .'. This would cause the generated library to
20450 # depend on `.', always an invalid library. This was fixed in
20451 # development snapshots of GCC prior to 3.0.
20452 case $host_os in
20453 aix4 | aix4.[01] | aix4.[01].*)
20454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20455 echo ' yes '
20456 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20457 :
20458 else
20459 can_build_shared=no
20460 fi
20461 ;;
20462 esac
20463 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20464 # soname into executable. Probably we can add versioning support to
20465 # collect2, so additional links can be useful in future.
20466 if test "$aix_use_runtimelinking" = yes; then
20467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20468 # instead of lib<name>.a to let people know that these are not
20469 # typical AIX shared libraries.
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 else
20472 # We preserve .a as extension for shared libraries through AIX4.2
20473 # and later when we are not doing run time linking.
20474 library_names_spec='${libname}${release}.a $libname.a'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 fi
20477 shlibpath_var=LIBPATH
20478 fi
20479 ;;
20480
20481 amigaos*)
20482 case $host_cpu in
20483 powerpc)
20484 # Since July 2007 AmigaOS4 officially supports .so libraries.
20485 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 ;;
20488 m68k)
20489 library_names_spec='$libname.ixlibrary $libname.a'
20490 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20491 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'
20492 ;;
20493 esac
20494 ;;
20495
20496 beos*)
20497 library_names_spec='${libname}${shared_ext}'
20498 dynamic_linker="$host_os ld.so"
20499 shlibpath_var=LIBRARY_PATH
20500 ;;
20501
20502 bsdi[45]*)
20503 version_type=linux
20504 need_version=no
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506 soname_spec='${libname}${release}${shared_ext}$major'
20507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20508 shlibpath_var=LD_LIBRARY_PATH
20509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20511 # the default ld.so.conf also contains /usr/contrib/lib and
20512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20513 # libtool to hard-code these into programs
20514 ;;
20515
20516 cygwin* | mingw* | pw32* | cegcc*)
20517 version_type=windows
20518 shrext_cmds=".dll"
20519 need_version=no
20520 need_lib_prefix=no
20521
20522 case $GCC,$host_os in
20523 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20524 library_names_spec='$libname.dll.a'
20525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20526 postinstall_cmds='base_file=`basename \${file}`~
20527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20528 dldir=$destdir/`dirname \$dlpath`~
20529 test -d \$dldir || mkdir -p \$dldir~
20530 $install_prog $dir/$dlname \$dldir/$dlname~
20531 chmod a+x \$dldir/$dlname~
20532 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20533 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20534 fi'
20535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20536 dlpath=$dir/\$dldll~
20537 $RM \$dlpath'
20538 shlibpath_overrides_runpath=yes
20539
20540 case $host_os in
20541 cygwin*)
20542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20543 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20544
20545 ;;
20546 mingw* | cegcc*)
20547 # MinGW DLLs use traditional 'lib' prefix
20548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20549 ;;
20550 pw32*)
20551 # pw32 DLLs use 'pw' prefix rather than 'lib'
20552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20553 ;;
20554 esac
20555 ;;
20556
20557 *)
20558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20559 ;;
20560 esac
20561 dynamic_linker='Win32 ld.exe'
20562 # FIXME: first we should search . and the directory the executable is in
20563 shlibpath_var=PATH
20564 ;;
20565
20566 darwin* | rhapsody*)
20567 dynamic_linker="$host_os dyld"
20568 version_type=darwin
20569 need_lib_prefix=no
20570 need_version=no
20571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20572 soname_spec='${libname}${release}${major}$shared_ext'
20573 shlibpath_overrides_runpath=yes
20574 shlibpath_var=DYLD_LIBRARY_PATH
20575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20576
20577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20578 ;;
20579
20580 dgux*)
20581 version_type=linux
20582 need_lib_prefix=no
20583 need_version=no
20584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20585 soname_spec='${libname}${release}${shared_ext}$major'
20586 shlibpath_var=LD_LIBRARY_PATH
20587 ;;
20588
20589 freebsd* | dragonfly*)
20590 # DragonFly does not have aout. When/if they implement a new
20591 # versioning mechanism, adjust this.
20592 if test -x /usr/bin/objformat; then
20593 objformat=`/usr/bin/objformat`
20594 else
20595 case $host_os in
20596 freebsd[23].*) objformat=aout ;;
20597 *) objformat=elf ;;
20598 esac
20599 fi
20600 version_type=freebsd-$objformat
20601 case $version_type in
20602 freebsd-elf*)
20603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20604 need_version=no
20605 need_lib_prefix=no
20606 ;;
20607 freebsd-*)
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20609 need_version=yes
20610 ;;
20611 esac
20612 shlibpath_var=LD_LIBRARY_PATH
20613 case $host_os in
20614 freebsd2.*)
20615 shlibpath_overrides_runpath=yes
20616 ;;
20617 freebsd3.[01]* | freebsdelf3.[01]*)
20618 shlibpath_overrides_runpath=yes
20619 hardcode_into_libs=yes
20620 ;;
20621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20623 shlibpath_overrides_runpath=no
20624 hardcode_into_libs=yes
20625 ;;
20626 *) # from 4.6 on, and DragonFly
20627 shlibpath_overrides_runpath=yes
20628 hardcode_into_libs=yes
20629 ;;
20630 esac
20631 ;;
20632
20633 gnu*)
20634 version_type=linux
20635 need_lib_prefix=no
20636 need_version=no
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20638 soname_spec='${libname}${release}${shared_ext}$major'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 hardcode_into_libs=yes
20641 ;;
20642
20643 haiku*)
20644 version_type=linux
20645 need_lib_prefix=no
20646 need_version=no
20647 dynamic_linker="$host_os runtime_loader"
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LIBRARY_PATH
20651 shlibpath_overrides_runpath=yes
20652 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20653 hardcode_into_libs=yes
20654 ;;
20655
20656 hpux9* | hpux10* | hpux11*)
20657 # Give a soname corresponding to the major version so that dld.sl refuses to
20658 # link against other versions.
20659 version_type=sunos
20660 need_lib_prefix=no
20661 need_version=no
20662 case $host_cpu in
20663 ia64*)
20664 shrext_cmds='.so'
20665 hardcode_into_libs=yes
20666 dynamic_linker="$host_os dld.so"
20667 shlibpath_var=LD_LIBRARY_PATH
20668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 if test "X$HPUX_IA64_MODE" = X32; then
20672 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20673 else
20674 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20675 fi
20676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20677 ;;
20678 hppa*64*)
20679 shrext_cmds='.sl'
20680 hardcode_into_libs=yes
20681 dynamic_linker="$host_os dld.sl"
20682 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20685 soname_spec='${libname}${release}${shared_ext}$major'
20686 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20688 ;;
20689 *)
20690 shrext_cmds='.sl'
20691 dynamic_linker="$host_os dld.sl"
20692 shlibpath_var=SHLIB_PATH
20693 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 soname_spec='${libname}${release}${shared_ext}$major'
20696 ;;
20697 esac
20698 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20699 postinstall_cmds='chmod 555 $lib'
20700 # or fails outright, so override atomically:
20701 install_override_mode=555
20702 ;;
20703
20704 interix[3-9]*)
20705 version_type=linux
20706 need_lib_prefix=no
20707 need_version=no
20708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 shlibpath_overrides_runpath=no
20713 hardcode_into_libs=yes
20714 ;;
20715
20716 irix5* | irix6* | nonstopux*)
20717 case $host_os in
20718 nonstopux*) version_type=nonstopux ;;
20719 *)
20720 if test "$lt_cv_prog_gnu_ld" = yes; then
20721 version_type=linux
20722 else
20723 version_type=irix
20724 fi ;;
20725 esac
20726 need_lib_prefix=no
20727 need_version=no
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20730 case $host_os in
20731 irix5* | nonstopux*)
20732 libsuff= shlibsuff=
20733 ;;
20734 *)
20735 case $LD in # libtool.m4 will add one of these switches to LD
20736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20737 libsuff= shlibsuff= libmagic=32-bit;;
20738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20739 libsuff=32 shlibsuff=N32 libmagic=N32;;
20740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20742 *) libsuff= shlibsuff= libmagic=never-match;;
20743 esac
20744 ;;
20745 esac
20746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20747 shlibpath_overrides_runpath=no
20748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20750 hardcode_into_libs=yes
20751 ;;
20752
20753 # No shared lib support for Linux oldld, aout, or coff.
20754 linux*oldld* | linux*aout* | linux*coff*)
20755 dynamic_linker=no
20756 ;;
20757
20758 # This must be Linux ELF.
20759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20760 version_type=linux
20761 need_lib_prefix=no
20762 need_version=no
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20764 soname_spec='${libname}${release}${shared_ext}$major'
20765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20766 shlibpath_var=LD_LIBRARY_PATH
20767 shlibpath_overrides_runpath=no
20768
20769 # Some binutils ld are patched to set DT_RUNPATH
20770 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20771 $as_echo_n "(cached) " >&6
20772 else
20773 lt_cv_shlibpath_overrides_runpath=no
20774 save_LDFLAGS=$LDFLAGS
20775 save_libdir=$libdir
20776 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20777 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20779 /* end confdefs.h. */
20780
20781 int
20782 main ()
20783 {
20784
20785 ;
20786 return 0;
20787 }
20788 _ACEOF
20789 if ac_fn_cxx_try_link "$LINENO"; then :
20790 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20791 lt_cv_shlibpath_overrides_runpath=yes
20792 fi
20793 fi
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20796 LDFLAGS=$save_LDFLAGS
20797 libdir=$save_libdir
20798
20799 fi
20800
20801 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20802
20803 # This implies no fast_install, which is unacceptable.
20804 # Some rework will be needed to allow for fast_install
20805 # before this can be enabled.
20806 hardcode_into_libs=yes
20807
20808 # Append ld.so.conf contents to the search path
20809 if test -f /etc/ld.so.conf; then
20810 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' ' '`
20811 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20812 fi
20813
20814 # We used to test for /lib/ld.so.1 and disable shared libraries on
20815 # powerpc, because MkLinux only supported shared libraries with the
20816 # GNU dynamic linker. Since this was broken with cross compilers,
20817 # most powerpc-linux boxes support dynamic linking these days and
20818 # people can always --disable-shared, the test was removed, and we
20819 # assume the GNU/Linux dynamic linker is in use.
20820 dynamic_linker='GNU/Linux ld.so'
20821 ;;
20822
20823 netbsd*)
20824 version_type=sunos
20825 need_lib_prefix=no
20826 need_version=no
20827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20830 dynamic_linker='NetBSD (a.out) ld.so'
20831 else
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20834 dynamic_linker='NetBSD ld.elf_so'
20835 fi
20836 shlibpath_var=LD_LIBRARY_PATH
20837 shlibpath_overrides_runpath=yes
20838 hardcode_into_libs=yes
20839 ;;
20840
20841 newsos6)
20842 version_type=linux
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 shlibpath_var=LD_LIBRARY_PATH
20845 shlibpath_overrides_runpath=yes
20846 ;;
20847
20848 *nto* | *qnx*)
20849 version_type=qnx
20850 need_lib_prefix=no
20851 need_version=no
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20853 soname_spec='${libname}${release}${shared_ext}$major'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 shlibpath_overrides_runpath=no
20856 hardcode_into_libs=yes
20857 dynamic_linker='ldqnx.so'
20858 ;;
20859
20860 openbsd*)
20861 version_type=sunos
20862 sys_lib_dlsearch_path_spec="/usr/lib"
20863 need_lib_prefix=no
20864 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20865 case $host_os in
20866 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20867 *) need_version=no ;;
20868 esac
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20871 shlibpath_var=LD_LIBRARY_PATH
20872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20873 case $host_os in
20874 openbsd2.[89] | openbsd2.[89].*)
20875 shlibpath_overrides_runpath=no
20876 ;;
20877 *)
20878 shlibpath_overrides_runpath=yes
20879 ;;
20880 esac
20881 else
20882 shlibpath_overrides_runpath=yes
20883 fi
20884 ;;
20885
20886 os2*)
20887 libname_spec='$name'
20888 shrext_cmds=".dll"
20889 need_lib_prefix=no
20890 library_names_spec='$libname${shared_ext} $libname.a'
20891 dynamic_linker='OS/2 ld.exe'
20892 shlibpath_var=LIBPATH
20893 ;;
20894
20895 osf3* | osf4* | osf5*)
20896 version_type=osf
20897 need_lib_prefix=no
20898 need_version=no
20899 soname_spec='${libname}${release}${shared_ext}$major'
20900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20903 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20904 ;;
20905
20906 rdos*)
20907 dynamic_linker=no
20908 ;;
20909
20910 solaris*)
20911 version_type=linux
20912 need_lib_prefix=no
20913 need_version=no
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20915 soname_spec='${libname}${release}${shared_ext}$major'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=yes
20918 hardcode_into_libs=yes
20919 # ldd complains unless libraries are executable
20920 postinstall_cmds='chmod +x $lib'
20921 ;;
20922
20923 sunos4*)
20924 version_type=sunos
20925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20927 shlibpath_var=LD_LIBRARY_PATH
20928 shlibpath_overrides_runpath=yes
20929 if test "$with_gnu_ld" = yes; then
20930 need_lib_prefix=no
20931 fi
20932 need_version=yes
20933 ;;
20934
20935 sysv4 | sysv4.3*)
20936 version_type=linux
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 shlibpath_var=LD_LIBRARY_PATH
20940 case $host_vendor in
20941 sni)
20942 shlibpath_overrides_runpath=no
20943 need_lib_prefix=no
20944 runpath_var=LD_RUN_PATH
20945 ;;
20946 siemens)
20947 need_lib_prefix=no
20948 ;;
20949 motorola)
20950 need_lib_prefix=no
20951 need_version=no
20952 shlibpath_overrides_runpath=no
20953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20954 ;;
20955 esac
20956 ;;
20957
20958 sysv4*MP*)
20959 if test -d /usr/nec ;then
20960 version_type=linux
20961 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20962 soname_spec='$libname${shared_ext}.$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20964 fi
20965 ;;
20966
20967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20968 version_type=freebsd-elf
20969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 shlibpath_overrides_runpath=yes
20975 hardcode_into_libs=yes
20976 if test "$with_gnu_ld" = yes; then
20977 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20978 else
20979 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20980 case $host_os in
20981 sco3.2v5*)
20982 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20983 ;;
20984 esac
20985 fi
20986 sys_lib_dlsearch_path_spec='/usr/lib'
20987 ;;
20988
20989 tpf*)
20990 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20991 version_type=linux
20992 need_lib_prefix=no
20993 need_version=no
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 shlibpath_var=LD_LIBRARY_PATH
20996 shlibpath_overrides_runpath=no
20997 hardcode_into_libs=yes
20998 ;;
20999
21000 uts4*)
21001 version_type=linux
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21003 soname_spec='${libname}${release}${shared_ext}$major'
21004 shlibpath_var=LD_LIBRARY_PATH
21005 ;;
21006
21007 *)
21008 dynamic_linker=no
21009 ;;
21010 esac
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21012 $as_echo "$dynamic_linker" >&6; }
21013 test "$dynamic_linker" = no && can_build_shared=no
21014
21015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21016 if test "$GCC" = yes; then
21017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21018 fi
21019
21020 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21021 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21022 fi
21023 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21024 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21025 fi
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21065 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21066 hardcode_action_CXX=
21067 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21068 test -n "$runpath_var_CXX" ||
21069 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21070
21071 # We can hardcode non-existent directories.
21072 if test "$hardcode_direct_CXX" != no &&
21073 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21074 # have to relink, otherwise we might link with an installed library
21075 # when we should be linking with a yet-to-be-installed one
21076 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21077 test "$hardcode_minus_L_CXX" != no; then
21078 # Linking always hardcodes the temporary library directory.
21079 hardcode_action_CXX=relink
21080 else
21081 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21082 hardcode_action_CXX=immediate
21083 fi
21084 else
21085 # We cannot hardcode anything, or else we can only hardcode existing
21086 # directories.
21087 hardcode_action_CXX=unsupported
21088 fi
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21090 $as_echo "$hardcode_action_CXX" >&6; }
21091
21092 if test "$hardcode_action_CXX" = relink ||
21093 test "$inherit_rpath_CXX" = yes; then
21094 # Fast installation is not supported
21095 enable_fast_install=no
21096 elif test "$shlibpath_overrides_runpath" = yes ||
21097 test "$enable_shared" = no; then
21098 # Fast installation is not necessary
21099 enable_fast_install=needless
21100 fi
21101
21102
21103
21104
21105
21106
21107
21108 fi # test -n "$compiler"
21109
21110 CC=$lt_save_CC
21111 LDCXX=$LD
21112 LD=$lt_save_LD
21113 GCC=$lt_save_GCC
21114 with_gnu_ld=$lt_save_with_gnu_ld
21115 lt_cv_path_LDCXX=$lt_cv_path_LD
21116 lt_cv_path_LD=$lt_save_path_LD
21117 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21118 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21119 fi # test "$_lt_caught_CXX_error" != yes
21120
21121 ac_ext=c
21122 ac_cpp='$CPP $CPPFLAGS'
21123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142 # Only expand once:
21143
21144
21145
21146
21147
21148 # Identify the assembler which will work hand-in-glove with the newly
21149 # built GCC, so that we can examine its features. This is the assembler
21150 # which will be driven by the driver program.
21151 #
21152 # If build != host, and we aren't building gas in-tree, we identify a
21153 # build->target assembler and hope that it will have the same features
21154 # as the host->target assembler we'll be using.
21155 gcc_cv_gas_major_version=
21156 gcc_cv_gas_minor_version=
21157 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21158
21159 if test "${gcc_cv_as+set}" = set; then :
21160
21161 else
21162
21163 if test -x "$DEFAULT_ASSEMBLER"; then
21164 gcc_cv_as="$DEFAULT_ASSEMBLER"
21165 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21166 && test -f ../gas/Makefile \
21167 && test x$build = x$host; then
21168 gcc_cv_as=../gas/as-new$build_exeext
21169 elif test -x as$build_exeext; then
21170 # Build using assembler in the current directory.
21171 gcc_cv_as=./as$build_exeext
21172 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21173 gcc_cv_as="$AS_FOR_TARGET"
21174 else
21175 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21176 set dummy $AS_FOR_TARGET; ac_word=$2
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21178 $as_echo_n "checking for $ac_word... " >&6; }
21179 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21180 $as_echo_n "(cached) " >&6
21181 else
21182 case $gcc_cv_as in
21183 [\\/]* | ?:[\\/]*)
21184 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21185 ;;
21186 *)
21187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21188 for as_dir in $PATH
21189 do
21190 IFS=$as_save_IFS
21191 test -z "$as_dir" && as_dir=.
21192 for ac_exec_ext in '' $ac_executable_extensions; do
21193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21194 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21196 break 2
21197 fi
21198 done
21199 done
21200 IFS=$as_save_IFS
21201
21202 ;;
21203 esac
21204 fi
21205 gcc_cv_as=$ac_cv_path_gcc_cv_as
21206 if test -n "$gcc_cv_as"; then
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21208 $as_echo "$gcc_cv_as" >&6; }
21209 else
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21211 $as_echo "no" >&6; }
21212 fi
21213
21214
21215 fi
21216 fi
21217
21218 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21219
21220 case "$ORIGINAL_AS_FOR_TARGET" in
21221 ./as | ./as$build_exeext) ;;
21222 *) ac_config_files="$ac_config_files as:exec-tool.in"
21223 ;;
21224 esac
21225
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21227 $as_echo_n "checking what assembler to use... " >&6; }
21228 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21229 # Single tree build which includes gas. We want to prefer it
21230 # over whatever linker top-level may have detected, since
21231 # we'll use what we're building after installation anyway.
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21233 $as_echo "newly built gas" >&6; }
21234 in_tree_gas=yes
21235 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21236 for f in $gcc_cv_as_bfd_srcdir/configure \
21237 $gcc_cv_as_gas_srcdir/configure \
21238 $gcc_cv_as_gas_srcdir/configure.in \
21239 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21240 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21241 if test x$gcc_cv_gas_version != x; then
21242 break
21243 fi
21244 done
21245 case $gcc_cv_gas_version in
21246 VERSION=[0-9]*) ;;
21247 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21248 esac
21249 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21250 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21251 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21252 case $gcc_cv_gas_patch_version in
21253 "") gcc_cv_gas_patch_version="0" ;;
21254 esac
21255 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21256 + $gcc_cv_gas_minor_version \) \* 1000 \
21257 + $gcc_cv_gas_patch_version`
21258
21259 in_tree_gas_is_elf=no
21260 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21261 || (grep 'obj_format = multi' ../gas/Makefile \
21262 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21263 then
21264 in_tree_gas_is_elf=yes
21265 fi
21266 else
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21268 $as_echo "$gcc_cv_as" >&6; }
21269 in_tree_gas=no
21270 fi
21271
21272 # Identify the linker which will work hand-in-glove with the newly
21273 # built GCC, so that we can examine its features. This is the linker
21274 # which will be driven by the driver program.
21275 #
21276 # If build != host, and we aren't building gas in-tree, we identify a
21277 # build->target linker and hope that it will have the same features
21278 # as the host->target linker we'll be using.
21279 gcc_cv_gld_major_version=
21280 gcc_cv_gld_minor_version=
21281 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21282 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21283
21284 if test "${gcc_cv_ld+set}" = set; then :
21285
21286 else
21287
21288 if test -x "$DEFAULT_LINKER"; then
21289 gcc_cv_ld="$DEFAULT_LINKER"
21290 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21291 && test -f ../ld/Makefile \
21292 && test x$build = x$host; then
21293 gcc_cv_ld=../ld/ld-new$build_exeext
21294 elif test -x collect-ld$build_exeext; then
21295 # Build using linker in the current directory.
21296 gcc_cv_ld=./collect-ld$build_exeext
21297 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21298 gcc_cv_ld="$LD_FOR_TARGET"
21299 else
21300 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21301 set dummy $LD_FOR_TARGET; ac_word=$2
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21303 $as_echo_n "checking for $ac_word... " >&6; }
21304 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21306 else
21307 case $gcc_cv_ld in
21308 [\\/]* | ?:[\\/]*)
21309 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21310 ;;
21311 *)
21312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $PATH
21314 do
21315 IFS=$as_save_IFS
21316 test -z "$as_dir" && as_dir=.
21317 for ac_exec_ext in '' $ac_executable_extensions; do
21318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21319 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21321 break 2
21322 fi
21323 done
21324 done
21325 IFS=$as_save_IFS
21326
21327 ;;
21328 esac
21329 fi
21330 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21331 if test -n "$gcc_cv_ld"; then
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21333 $as_echo "$gcc_cv_ld" >&6; }
21334 else
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21337 fi
21338
21339
21340 fi
21341 fi
21342
21343 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21344 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21345
21346 # Check whether --with-plugin-ld was given.
21347 if test "${with_plugin_ld+set}" = set; then :
21348 withval=$with_plugin_ld; if test x"$withval" != x; then
21349 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21350 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21351 fi
21352 fi
21353
21354
21355
21356 cat >>confdefs.h <<_ACEOF
21357 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21358 _ACEOF
21359
21360
21361 # Check to see if we are using gold instead of ld
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21363 $as_echo_n "checking whether we are using gold... " >&6; }
21364 ld_is_gold=no
21365 if test x$gcc_cv_ld != x; then
21366 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21367 | grep "GNU gold" > /dev/null; then
21368 ld_is_gold=yes
21369 fi
21370 fi
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21372 $as_echo "$ld_is_gold" >&6; }
21373
21374 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21375
21376 case "$ORIGINAL_LD_FOR_TARGET" in
21377 ./collect-ld | ./collect-ld$build_exeext) ;;
21378 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21379 ;;
21380 esac
21381
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21383 $as_echo_n "checking what linker to use... " >&6; }
21384 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21385 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21386 # Single tree build which includes ld. We want to prefer it
21387 # over whatever linker top-level may have detected, since
21388 # we'll use what we're building after installation anyway.
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21390 $as_echo "newly built ld" >&6; }
21391 in_tree_ld=yes
21392 in_tree_ld_is_elf=no
21393 if (grep 'EMUL = .*elf' ../ld/Makefile \
21394 || grep 'EMUL = .*linux' ../ld/Makefile \
21395 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21396 in_tree_ld_is_elf=yes
21397 elif test "$ld_is_gold" = yes; then
21398 in_tree_ld_is_elf=yes
21399 fi
21400 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
21401 do
21402 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21403 if test x$gcc_cv_gld_version != x; then
21404 break
21405 fi
21406 done
21407 case $gcc_cv_gld_version in
21408 VERSION=[0-9]*) ;;
21409 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21410 esac
21411 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21412 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21413 else
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21415 $as_echo "$gcc_cv_ld" >&6; }
21416 in_tree_ld=no
21417 fi
21418
21419 # Figure out what nm we will be using.
21420 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21421 if test "${gcc_cv_nm+set}" = set; then :
21422
21423 else
21424
21425 if test -f $gcc_cv_binutils_srcdir/configure.in \
21426 && test -f ../binutils/Makefile \
21427 && test x$build = x$host; then
21428 gcc_cv_nm=../binutils/nm-new$build_exeext
21429 elif test -x nm$build_exeext; then
21430 gcc_cv_nm=./nm$build_exeext
21431 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21432 gcc_cv_nm="$NM_FOR_TARGET"
21433 else
21434 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21435 set dummy $NM_FOR_TARGET; ac_word=$2
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21437 $as_echo_n "checking for $ac_word... " >&6; }
21438 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 case $gcc_cv_nm in
21442 [\\/]* | ?:[\\/]*)
21443 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21444 ;;
21445 *)
21446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21447 for as_dir in $PATH
21448 do
21449 IFS=$as_save_IFS
21450 test -z "$as_dir" && as_dir=.
21451 for ac_exec_ext in '' $ac_executable_extensions; do
21452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21453 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21455 break 2
21456 fi
21457 done
21458 done
21459 IFS=$as_save_IFS
21460
21461 ;;
21462 esac
21463 fi
21464 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21465 if test -n "$gcc_cv_nm"; then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21467 $as_echo "$gcc_cv_nm" >&6; }
21468 else
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21471 fi
21472
21473
21474 fi
21475 fi
21476
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21478 $as_echo_n "checking what nm to use... " >&6; }
21479 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21480 # Single tree build which includes binutils.
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21482 $as_echo "newly built nm" >&6; }
21483 in_tree_nm=yes
21484 else
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21486 $as_echo "$gcc_cv_nm" >&6; }
21487 in_tree_nm=no
21488 fi
21489
21490 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21491
21492 case "$ORIGINAL_NM_FOR_TARGET" in
21493 ./nm | ./nm$build_exeext) ;;
21494 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21495 ;;
21496 esac
21497
21498
21499 # Figure out what objdump we will be using.
21500 if test "${gcc_cv_objdump+set}" = set; then :
21501
21502 else
21503
21504 if test -f $gcc_cv_binutils_srcdir/configure.in \
21505 && test -f ../binutils/Makefile \
21506 && test x$build = x$host; then
21507 # Single tree build which includes binutils.
21508 gcc_cv_objdump=../binutils/objdump$build_exeext
21509 elif test -x objdump$build_exeext; then
21510 gcc_cv_objdump=./objdump$build_exeext
21511 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21512 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21513 else
21514 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21515 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21517 $as_echo_n "checking for $ac_word... " >&6; }
21518 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 case $gcc_cv_objdump in
21522 [\\/]* | ?:[\\/]*)
21523 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21524 ;;
21525 *)
21526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527 for as_dir in $PATH
21528 do
21529 IFS=$as_save_IFS
21530 test -z "$as_dir" && as_dir=.
21531 for ac_exec_ext in '' $ac_executable_extensions; do
21532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21533 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21535 break 2
21536 fi
21537 done
21538 done
21539 IFS=$as_save_IFS
21540
21541 ;;
21542 esac
21543 fi
21544 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21545 if test -n "$gcc_cv_objdump"; then
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21547 $as_echo "$gcc_cv_objdump" >&6; }
21548 else
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21550 $as_echo "no" >&6; }
21551 fi
21552
21553
21554 fi
21555 fi
21556
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21558 $as_echo_n "checking what objdump to use... " >&6; }
21559 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21560 # Single tree build which includes binutils.
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21562 $as_echo "newly built objdump" >&6; }
21563 elif test x$gcc_cv_objdump = x; then
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21565 $as_echo "not found" >&6; }
21566 else
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21568 $as_echo "$gcc_cv_objdump" >&6; }
21569 fi
21570
21571 # Figure out what readelf we will be using.
21572 if test "${gcc_cv_readelf+set}" = set; then :
21573
21574 else
21575
21576 if test -f $gcc_cv_binutils_srcdir/configure.in \
21577 && test -f ../binutils/Makefile \
21578 && test x$build = x$host; then
21579 # Single tree build which includes binutils.
21580 gcc_cv_readelf=../binutils/readelf$build_exeext
21581 elif test -x readelf$build_exeext; then
21582 gcc_cv_readelf=./readelf$build_exeext
21583 else
21584 # Extract the first word of "readelf", so it can be a program name with args.
21585 set dummy readelf; ac_word=$2
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21587 $as_echo_n "checking for $ac_word... " >&6; }
21588 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21589 $as_echo_n "(cached) " >&6
21590 else
21591 case $gcc_cv_readelf in
21592 [\\/]* | ?:[\\/]*)
21593 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21594 ;;
21595 *)
21596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21597 for as_dir in $PATH
21598 do
21599 IFS=$as_save_IFS
21600 test -z "$as_dir" && as_dir=.
21601 for ac_exec_ext in '' $ac_executable_extensions; do
21602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21603 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21605 break 2
21606 fi
21607 done
21608 done
21609 IFS=$as_save_IFS
21610
21611 ;;
21612 esac
21613 fi
21614 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21615 if test -n "$gcc_cv_readelf"; then
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21617 $as_echo "$gcc_cv_readelf" >&6; }
21618 else
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21620 $as_echo "no" >&6; }
21621 fi
21622
21623
21624 fi
21625 fi
21626
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21628 $as_echo_n "checking what readelf to use... " >&6; }
21629 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21630 # Single tree build which includes binutils.
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21632 $as_echo "newly built readelf" >&6; }
21633 elif test x$gcc_cv_readelf = x; then
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21635 $as_echo "not found" >&6; }
21636 else
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21638 $as_echo "$gcc_cv_readelf" >&6; }
21639 fi
21640
21641 # Figure out what assembler alignment features are present.
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21643 $as_echo_n "checking assembler flags... " >&6; }
21644 if test "${gcc_cv_as_flags+set}" = set; then :
21645 $as_echo_n "(cached) " >&6
21646 else
21647 case "$target" in
21648 i[34567]86-*-linux*)
21649 gcc_cv_as_flags="--32"
21650 ;;
21651 powerpc*-*-darwin*)
21652 gcc_cv_as_flags="-arch ppc"
21653 ;;
21654 *)
21655 gcc_cv_as_flags=" "
21656 ;;
21657 esac
21658 fi
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21660 $as_echo "$gcc_cv_as_flags" >&6; }
21661
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21663 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21664 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21665 $as_echo_n "(cached) " >&6
21666 else
21667 gcc_cv_as_balign_and_p2align=no
21668 if test $in_tree_gas = yes; then
21669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21670 then gcc_cv_as_balign_and_p2align=yes
21671 fi
21672 elif test x$gcc_cv_as != x; then
21673 $as_echo '.balign 4
21674 .p2align 2' > conftest.s
21675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21680 test $ac_status = 0; }; }
21681 then
21682 gcc_cv_as_balign_and_p2align=yes
21683 else
21684 echo "configure: failed program was" >&5
21685 cat conftest.s >&5
21686 fi
21687 rm -f conftest.o conftest.s
21688 fi
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21691 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21692 if test $gcc_cv_as_balign_and_p2align = yes; then
21693
21694 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21695
21696 fi
21697
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21699 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21700 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21702 else
21703 gcc_cv_as_max_skip_p2align=no
21704 if test $in_tree_gas = yes; then
21705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21706 then gcc_cv_as_max_skip_p2align=yes
21707 fi
21708 elif test x$gcc_cv_as != x; then
21709 $as_echo '.p2align 4,,7' > conftest.s
21710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21715 test $ac_status = 0; }; }
21716 then
21717 gcc_cv_as_max_skip_p2align=yes
21718 else
21719 echo "configure: failed program was" >&5
21720 cat conftest.s >&5
21721 fi
21722 rm -f conftest.o conftest.s
21723 fi
21724 fi
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21726 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21727 if test $gcc_cv_as_max_skip_p2align = yes; then
21728
21729 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21730
21731 fi
21732
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21734 $as_echo_n "checking assembler for .literal16... " >&6; }
21735 if test "${gcc_cv_as_literal16+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21737 else
21738 gcc_cv_as_literal16=no
21739 if test $in_tree_gas = yes; then
21740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21741 then gcc_cv_as_literal16=yes
21742 fi
21743 elif test x$gcc_cv_as != x; then
21744 $as_echo '.literal16' > conftest.s
21745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21750 test $ac_status = 0; }; }
21751 then
21752 gcc_cv_as_literal16=yes
21753 else
21754 echo "configure: failed program was" >&5
21755 cat conftest.s >&5
21756 fi
21757 rm -f conftest.o conftest.s
21758 fi
21759 fi
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21761 $as_echo "$gcc_cv_as_literal16" >&6; }
21762 if test $gcc_cv_as_literal16 = yes; then
21763
21764 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21765
21766 fi
21767
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21769 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21770 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21771 $as_echo_n "(cached) " >&6
21772 else
21773 gcc_cv_as_subsection_m1=no
21774 if test $in_tree_gas = yes; then
21775 if test $in_tree_gas_is_elf = yes \
21776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21777 then gcc_cv_as_subsection_m1=yes
21778 fi
21779 elif test x$gcc_cv_as != x; then
21780 $as_echo 'conftest_label1: .word 0
21781 .subsection -1
21782 conftest_label2: .word 0
21783 .previous' > conftest.s
21784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21789 test $ac_status = 0; }; }
21790 then
21791 if test x$gcc_cv_nm != x; then
21792 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21793 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21794 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21795 then :
21796 else gcc_cv_as_subsection_m1=yes
21797 fi
21798 rm -f conftest.nm1 conftest.nm2
21799 fi
21800 else
21801 echo "configure: failed program was" >&5
21802 cat conftest.s >&5
21803 fi
21804 rm -f conftest.o conftest.s
21805 fi
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21808 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21809 if test $gcc_cv_as_subsection_m1 = yes; then
21810
21811 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21812
21813 fi
21814
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21816 $as_echo_n "checking assembler for .weak... " >&6; }
21817 if test "${gcc_cv_as_weak+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 gcc_cv_as_weak=no
21821 if test $in_tree_gas = yes; then
21822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21823 then gcc_cv_as_weak=yes
21824 fi
21825 elif test x$gcc_cv_as != x; then
21826 $as_echo ' .weak foobar' > conftest.s
21827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; }
21833 then
21834 gcc_cv_as_weak=yes
21835 else
21836 echo "configure: failed program was" >&5
21837 cat conftest.s >&5
21838 fi
21839 rm -f conftest.o conftest.s
21840 fi
21841 fi
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21843 $as_echo "$gcc_cv_as_weak" >&6; }
21844 if test $gcc_cv_as_weak = yes; then
21845
21846 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21847
21848 fi
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21851 $as_echo_n "checking assembler for .weakref... " >&6; }
21852 if test "${gcc_cv_as_weakref+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21854 else
21855 gcc_cv_as_weakref=no
21856 if test $in_tree_gas = yes; then
21857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21858 then gcc_cv_as_weakref=yes
21859 fi
21860 elif test x$gcc_cv_as != x; then
21861 $as_echo ' .weakref foobar, barfnot' > conftest.s
21862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21864 (eval $ac_try) 2>&5
21865 ac_status=$?
21866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21867 test $ac_status = 0; }; }
21868 then
21869 gcc_cv_as_weakref=yes
21870 else
21871 echo "configure: failed program was" >&5
21872 cat conftest.s >&5
21873 fi
21874 rm -f conftest.o conftest.s
21875 fi
21876 fi
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21878 $as_echo "$gcc_cv_as_weakref" >&6; }
21879 if test $gcc_cv_as_weakref = yes; then
21880
21881 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21882
21883 fi
21884
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21886 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21887 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21889 else
21890 gcc_cv_as_nsubspa_comdat=no
21891 if test $in_tree_gas = yes; then
21892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21893 then gcc_cv_as_nsubspa_comdat=yes
21894 fi
21895 elif test x$gcc_cv_as != x; then
21896 $as_echo ' .SPACE $TEXT$
21897 .NSUBSPA $CODE$,COMDAT' > conftest.s
21898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903 test $ac_status = 0; }; }
21904 then
21905 gcc_cv_as_nsubspa_comdat=yes
21906 else
21907 echo "configure: failed program was" >&5
21908 cat conftest.s >&5
21909 fi
21910 rm -f conftest.o conftest.s
21911 fi
21912 fi
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21914 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21915 if test $gcc_cv_as_nsubspa_comdat = yes; then
21916
21917 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21918
21919 fi
21920
21921 # .hidden needs to be supported in both the assembler and the linker,
21922 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21923 # This is irritatingly difficult to feature test for; we have to check the
21924 # date string after the version number. If we've got an in-tree
21925 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21926 # to be safe.
21927 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21929 $as_echo_n "checking assembler for .hidden... " >&6; }
21930 if test "${gcc_cv_as_hidden+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 gcc_cv_as_hidden=no
21934 if test $in_tree_gas = yes; then
21935 if test $in_tree_gas_is_elf = yes \
21936 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21937 then gcc_cv_as_hidden=yes
21938 fi
21939 elif test x$gcc_cv_as != x; then
21940 $as_echo ' .hidden foobar
21941 foobar:' > conftest.s
21942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; }
21948 then
21949
21950 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21951 # STV_HIDDEN, so disable .hidden support if so.
21952 case "${target}" in
21953 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21954 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21955 cat > conftest.s <<EOF
21956 .globl hidden
21957 .hidden hidden
21958 hidden:
21959 .globl default
21960 .set default,hidden
21961 EOF
21962 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21963 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21964 grep '\.hidden default' > /dev/null; then
21965 gcc_cv_as_hidden=no
21966 else
21967 gcc_cv_as_hidden=yes
21968 fi
21969 else
21970 # Assume bug is present if objdump is missing.
21971 gcc_cv_as_hidden=no
21972 fi
21973 ;;
21974 *)
21975 gcc_cv_as_hidden=yes
21976 ;;
21977 esac
21978 else
21979 echo "configure: failed program was" >&5
21980 cat conftest.s >&5
21981 fi
21982 rm -f conftest.o conftest.s
21983 fi
21984 fi
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21986 $as_echo "$gcc_cv_as_hidden" >&6; }
21987
21988 case "${target}" in
21989 *-*-darwin*)
21990 # Darwin as has some visibility support, though with a different syntax.
21991 gcc_cv_as_hidden=yes
21992 ;;
21993 esac
21994
21995 # gnu_indirect_function type is an extension proposed at
21996 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21997 # selection of function implementation
21998 # Check whether --enable-gnu-indirect-function was given.
21999 if test "${enable_gnu_indirect_function+set}" = set; then :
22000 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22001 yes | no) ;;
22002 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22003 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22004 esac
22005 else
22006 enable_gnu_indirect_function="$default_gnu_indirect_function"
22007 fi
22008
22009 if test x$enable_gnu_indirect_function = xyes; then
22010
22011 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22012
22013 fi
22014
22015 if test $in_tree_ld != yes ; then
22016 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22017 if echo "$ld_ver" | grep GNU > /dev/null; then
22018 if test x"$ld_is_gold" = xyes; then
22019 # GNU gold --version looks like this:
22020 #
22021 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22022 #
22023 # We extract the binutils version which is more familiar and specific
22024 # than the gold version.
22025 ld_vers=`echo $ld_ver | sed -n \
22026 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22027 else
22028 # GNU ld --version looks like this:
22029 #
22030 # GNU ld (GNU Binutils) 2.21.51.20110225
22031 ld_vers=`echo $ld_ver | sed -n \
22032 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22033 fi
22034 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'`
22035 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22036 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22037 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22038 else
22039 case "${target}" in
22040 *-*-solaris2*)
22041 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22042 # format.
22043 #
22044 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22045 # /usr/ccs/bin/ld has been configured.
22046 ld_ver=`$gcc_cv_ld -V 2>&1`
22047 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22048 ld_vers=`echo $ld_ver | sed -n \
22049 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22050 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22051 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22052 fi
22053 ;;
22054 esac
22055 fi
22056 fi
22057
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22059 $as_echo_n "checking linker for .hidden support... " >&6; }
22060 if test "${gcc_cv_ld_hidden+set}" = set; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 if test $in_tree_ld = yes ; then
22064 gcc_cv_ld_hidden=no
22065 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 \
22066 && test $in_tree_ld_is_elf = yes; then
22067 gcc_cv_ld_hidden=yes
22068 fi
22069 else
22070 gcc_cv_ld_hidden=yes
22071 if test x"$ld_is_gold" = xyes; then
22072 :
22073 elif echo "$ld_ver" | grep GNU > /dev/null; then
22074 if test 0"$ld_date" -lt 20020404; then
22075 if test -n "$ld_date"; then
22076 # If there was date string, but was earlier than 2002-04-04, fail
22077 gcc_cv_ld_hidden=no
22078 elif test -z "$ld_vers"; then
22079 # If there was no date string nor ld version number, something is wrong
22080 gcc_cv_ld_hidden=no
22081 else
22082 test -z "$ld_vers_patch" && ld_vers_patch=0
22083 if test "$ld_vers_major" -lt 2; then
22084 gcc_cv_ld_hidden=no
22085 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22086 gcc_cv_ld_hidden="no"
22087 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22088 gcc_cv_ld_hidden=no
22089 fi
22090 fi
22091 fi
22092 else
22093 case "${target}" in
22094 *-*-darwin*)
22095 # Darwin ld has some visibility support.
22096 gcc_cv_ld_hidden=yes
22097 ;;
22098 hppa64*-*-hpux* | ia64*-*-hpux*)
22099 gcc_cv_ld_hidden=yes
22100 ;;
22101 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22102 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22103 # .symbolic was only added in Solaris 9 12/02.
22104 gcc_cv_ld_hidden=yes
22105 ;;
22106 *)
22107 gcc_cv_ld_hidden=no
22108 ;;
22109 esac
22110 fi
22111 fi
22112 fi
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22114 $as_echo "$gcc_cv_ld_hidden" >&6; }
22115 libgcc_visibility=no
22116
22117
22118 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22119 libgcc_visibility=yes
22120
22121 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22122
22123 fi
22124
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22126 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22127 gcc_cv_ld_ro_rw_mix=unknown
22128 if test $in_tree_ld = yes ; then
22129 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 \
22130 && test $in_tree_ld_is_elf = yes; then
22131 gcc_cv_ld_ro_rw_mix=read-write
22132 fi
22133 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22134 echo '.section myfoosect, "a"' > conftest1.s
22135 echo '.section myfoosect, "aw"' > conftest2.s
22136 echo '.byte 1' >> conftest2.s
22137 echo '.section myfoosect, "a"' > conftest3.s
22138 echo '.byte 0' >> conftest3.s
22139 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22140 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22141 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22142 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22143 conftest2.o conftest3.o > /dev/null 2>&1; then
22144 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22145 | sed -e '/myfoosect/!d' -e N`
22146 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22147 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22148 gcc_cv_ld_ro_rw_mix=read-only
22149 else
22150 gcc_cv_ld_ro_rw_mix=read-write
22151 fi
22152 fi
22153 fi
22154 rm -f conftest.* conftest[123].*
22155 fi
22156 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22157
22158 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22159
22160 fi
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22162 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22163
22164 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22165 case "${target}" in
22166 *-*-solaris2*)
22167 #
22168 # Solaris 2 ld -V output looks like this for a regular version:
22169 #
22170 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22171 #
22172 # but test versions add stuff at the end:
22173 #
22174 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22175 #
22176 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22177 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22178 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22179 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22180 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22181 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22182 fi
22183 ;;
22184 esac
22185 fi
22186
22187 # Check whether --enable-initfini-array was given.
22188 if test "${enable_initfini_array+set}" = set; then :
22189 enableval=$enable_initfini_array;
22190 else
22191
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22193 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22194 if test "${gcc_cv_initfini_array+set}" = set; then :
22195 $as_echo_n "(cached) " >&6
22196 else
22197 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22198 case "${target}" in
22199 ia64-*)
22200 if test "$cross_compiling" = yes; then :
22201 gcc_cv_initfini_array=no
22202 else
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22205
22206 #ifndef __ELF__
22207 #error Not an ELF OS
22208 #endif
22209 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22210 if it can be used. */
22211 static int x = -1;
22212 int main (void) { return x; }
22213 int foo (void) { x = 0; }
22214 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22215
22216 _ACEOF
22217 if ac_fn_c_try_run "$LINENO"; then :
22218 gcc_cv_initfini_array=yes
22219 else
22220 gcc_cv_initfini_array=no
22221 fi
22222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22223 conftest.$ac_objext conftest.beam conftest.$ac_ext
22224 fi
22225 ;;
22226 *)
22227 gcc_cv_initfini_array=no
22228 if test $in_tree_ld = yes ; then
22229 if test "$gcc_cv_gld_major_version" -eq 2 \
22230 -a "$gcc_cv_gld_minor_version" -ge 22 \
22231 -o "$gcc_cv_gld_major_version" -gt 2 \
22232 && test $in_tree_ld_is_elf = yes; then
22233 gcc_cv_initfini_array=yes
22234 fi
22235 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22236 cat > conftest.s <<\EOF
22237 .section .dtors,"a",%progbits
22238 .balign 4
22239 .byte 'A', 'A', 'A', 'A'
22240 .section .ctors,"a",%progbits
22241 .balign 4
22242 .byte 'B', 'B', 'B', 'B'
22243 .section .fini_array.65530,"a",%progbits
22244 .balign 4
22245 .byte 'C', 'C', 'C', 'C'
22246 .section .init_array.65530,"a",%progbits
22247 .balign 4
22248 .byte 'D', 'D', 'D', 'D'
22249 .section .dtors.64528,"a",%progbits
22250 .balign 4
22251 .byte 'E', 'E', 'E', 'E'
22252 .section .ctors.64528,"a",%progbits
22253 .balign 4
22254 .byte 'F', 'F', 'F', 'F'
22255 .section .fini_array.01005,"a",%progbits
22256 .balign 4
22257 .byte 'G', 'G', 'G', 'G'
22258 .section .init_array.01005,"a",%progbits
22259 .balign 4
22260 .byte 'H', 'H', 'H', 'H'
22261 .text
22262 .globl _start
22263 _start:
22264 EOF
22265 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22266 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22267 && $gcc_cv_objdump -s -j .init_array conftest \
22268 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22269 && $gcc_cv_objdump -s -j .fini_array conftest \
22270 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22271 gcc_cv_initfini_array=yes
22272 fi
22273 rm -f conftest conftest.*
22274 fi
22275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h. */
22277
22278 #ifndef __ELF__
22279 # error Not an ELF OS
22280 #endif
22281 #include <stdlib.h>
22282 #if defined __GLIBC_PREREQ
22283 # if __GLIBC_PREREQ (2, 4)
22284 # else
22285 # error GLIBC 2.4 required
22286 # endif
22287 #else
22288 # if defined __sun__ && defined __svr4__
22289 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22290 # else
22291 # error The C library not known to support .init_array/.fini_array
22292 # endif
22293 #endif
22294
22295 _ACEOF
22296 if ac_fn_c_try_cpp "$LINENO"; then :
22297
22298 else
22299 gcc_cv_initfini_array=no
22300 fi
22301 rm -f conftest.err conftest.$ac_ext;;
22302 esac
22303 else
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22305 $as_echo_n "checking cross compile... guessing... " >&6; }
22306 gcc_cv_initfini_array=no
22307 fi
22308 fi
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22310 $as_echo "$gcc_cv_initfini_array" >&6; }
22311 enable_initfini_array=$gcc_cv_initfini_array
22312
22313 fi
22314
22315 if test $enable_initfini_array = yes; then
22316
22317 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22318
22319 fi
22320
22321 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22323 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22324 if test "${gcc_cv_as_leb128+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22326 else
22327 gcc_cv_as_leb128=no
22328 if test $in_tree_gas = yes; then
22329 if test $in_tree_gas_is_elf = yes \
22330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22331 then gcc_cv_as_leb128=yes
22332 fi
22333 elif test x$gcc_cv_as != x; then
22334 $as_echo ' .data
22335 .uleb128 L2 - L1
22336 L1:
22337 .uleb128 1280
22338 .sleb128 -1010
22339 L2:' > conftest.s
22340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22345 test $ac_status = 0; }; }
22346 then
22347 # GAS versions before 2.11 do not support uleb128,
22348 # despite appearing to.
22349 # ??? There exists an elf-specific test that will crash
22350 # the assembler. Perhaps it's better to figure out whether
22351 # arbitrary sections are supported and try the test.
22352 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22353 if echo "$as_ver" | grep GNU > /dev/null; then
22354 as_vers=`echo $as_ver | sed -n \
22355 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22356 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22357 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22358 if test $as_major -eq 2 && test $as_minor -lt 11
22359 then :
22360 else gcc_cv_as_leb128=yes
22361 fi
22362 fi
22363 else
22364 echo "configure: failed program was" >&5
22365 cat conftest.s >&5
22366 fi
22367 rm -f conftest.o conftest.s
22368 fi
22369 fi
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22371 $as_echo "$gcc_cv_as_leb128" >&6; }
22372 if test $gcc_cv_as_leb128 = yes; then
22373
22374 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22375
22376 fi
22377
22378 # Check if we have assembler support for unwind directives.
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22380 $as_echo_n "checking assembler for cfi directives... " >&6; }
22381 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22382 $as_echo_n "(cached) " >&6
22383 else
22384 gcc_cv_as_cfi_directive=no
22385 if test x$gcc_cv_as != x; then
22386 $as_echo ' .text
22387 .cfi_startproc
22388 .cfi_offset 0, 0
22389 .cfi_same_value 1
22390 .cfi_def_cfa 1, 2
22391 .cfi_escape 1, 2, 3, 4, 5
22392 .cfi_endproc' > conftest.s
22393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398 test $ac_status = 0; }; }
22399 then
22400 case "$target" in
22401 *-*-solaris*)
22402 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22403 # read-only and read-write sections, we need to make sure that the
22404 # assembler used emits read-write .eh_frame sections.
22405 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22406 if test "x$gcc_cv_objdump" != x; then
22407 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22408 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22409 gcc_cv_as_cfi_directive=no
22410 else
22411 case "$target" in
22412 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22413 # On Solaris/x86, make sure that GCC and gas agree on using
22414 # read-only .eh_frame sections for 64-bit.
22415 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22416 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22417 sed -e /.eh_frame/!d -e N | \
22418 grep READONLY > /dev/null; then
22419 gcc_cv_as_cfi_directive=yes
22420 else
22421 gcc_cv_as_cfi_directive=no
22422 fi
22423 ;;
22424 *)
22425 gcc_cv_as_cfi_directive=yes
22426 ;;
22427 esac
22428 fi
22429 else
22430 # no objdump, err on the side of caution
22431 gcc_cv_as_cfi_directive=no
22432 fi
22433 else
22434 gcc_cv_as_cfi_directive=yes
22435 fi
22436 ;;
22437 *-*-*)
22438 gcc_cv_as_cfi_directive=yes
22439 ;;
22440 esac
22441 else
22442 echo "configure: failed program was" >&5
22443 cat conftest.s >&5
22444 fi
22445 rm -f conftest.o conftest.s
22446 fi
22447 fi
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22449 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22450
22451 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22453 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22454 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 gcc_cv_as_cfi_advance_working=no
22458 if test x$gcc_cv_as != x; then
22459 $as_echo ' .text
22460 .cfi_startproc
22461 .cfi_adjust_cfa_offset 64
22462 .skip 75040, 0
22463 .cfi_adjust_cfa_offset 128
22464 .cfi_endproc' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472
22473 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22474 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22475 gcc_cv_as_cfi_advance_working=yes
22476 fi
22477
22478 else
22479 echo "configure: failed program was" >&5
22480 cat conftest.s >&5
22481 fi
22482 rm -f conftest.o conftest.s
22483 fi
22484 fi
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22486 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22487
22488 else
22489 # no objdump, err on the side of caution
22490 gcc_cv_as_cfi_advance_working=no
22491 fi
22492
22493
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22496 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22497 _ACEOF
22498
22499
22500
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22502 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22503 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22504 $as_echo_n "(cached) " >&6
22505 else
22506 gcc_cv_as_cfi_personality_directive=no
22507 if test x$gcc_cv_as != x; then
22508 $as_echo ' .text
22509 .cfi_startproc
22510 .cfi_personality 0, symbol
22511 .cfi_endproc' > conftest.s
22512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22518 then
22519 gcc_cv_as_cfi_personality_directive=yes
22520 else
22521 echo "configure: failed program was" >&5
22522 cat conftest.s >&5
22523 fi
22524 rm -f conftest.o conftest.s
22525 fi
22526 fi
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22528 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22529
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22533 then echo 1; else echo 0; fi`
22534 _ACEOF
22535
22536
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22538 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22539 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22540 $as_echo_n "(cached) " >&6
22541 else
22542 gcc_cv_as_cfi_sections_directive=no
22543 if test x$gcc_cv_as != x; then
22544 $as_echo ' .text
22545 .cfi_sections .debug_frame, .eh_frame
22546 .cfi_startproc
22547 .cfi_endproc' > conftest.s
22548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22550 (eval $ac_try) 2>&5
22551 ac_status=$?
22552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22553 test $ac_status = 0; }; }
22554 then
22555 case $target_os in
22556 win32 | pe | cygwin* | mingw32* | uwin*)
22557 # Need to check that we generated the correct relocation for the
22558 # .debug_frame section. This was fixed for binutils 2.21.
22559 gcc_cv_as_cfi_sections_directive=no
22560 if test "x$gcc_cv_objdump" != x; then
22561 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22562 grep secrel > /dev/null; then
22563 gcc_cv_as_cfi_sections_directive=yes
22564 fi
22565 fi
22566 ;;
22567 *)
22568 gcc_cv_as_cfi_sections_directive=yes
22569 ;;
22570 esac
22571 else
22572 echo "configure: failed program was" >&5
22573 cat conftest.s >&5
22574 fi
22575 rm -f conftest.o conftest.s
22576 fi
22577 fi
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22579 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22580
22581
22582
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22585 then echo 1; else echo 0; fi`
22586 _ACEOF
22587
22588
22589 # GAS versions up to and including 2.11.0 may mis-optimize
22590 # .eh_frame data.
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22592 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22593 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 gcc_cv_as_eh_frame=no
22597 if test $in_tree_gas = yes; then
22598 if test $in_tree_gas_is_elf = yes \
22599 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22600 then gcc_cv_as_eh_frame=yes
22601 fi
22602 elif test x$gcc_cv_as != x; then
22603 $as_echo ' .text
22604 .LFB1:
22605 .4byte 0
22606 .L1:
22607 .4byte 0
22608 .LFE1:
22609 .section .eh_frame,"aw",@progbits
22610 __FRAME_BEGIN__:
22611 .4byte .LECIE1-.LSCIE1
22612 .LSCIE1:
22613 .4byte 0x0
22614 .byte 0x1
22615 .ascii "z\0"
22616 .byte 0x1
22617 .byte 0x78
22618 .byte 0x1a
22619 .byte 0x0
22620 .byte 0x4
22621 .4byte 1
22622 .p2align 1
22623 .LECIE1:
22624 .LSFDE1:
22625 .4byte .LEFDE1-.LASFDE1
22626 .LASFDE1:
22627 .4byte .LASFDE1-__FRAME_BEGIN__
22628 .4byte .LFB1
22629 .4byte .LFE1-.LFB1
22630 .byte 0x4
22631 .4byte .LFE1-.LFB1
22632 .byte 0x4
22633 .4byte .L1-.LFB1
22634 .LEFDE1:' > conftest.s
22635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22641 then
22642 cat > conftest.lit <<EOF
22643 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22644 0010 01000000 12000000 18000000 00000000 ................
22645 0020 08000000 04080000 0044 .........D
22646 EOF
22647 cat > conftest.big <<EOF
22648 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22649 0010 00000001 00000012 00000018 00000000 ................
22650 0020 00000008 04000000 0844 .........D
22651 EOF
22652 # If the assembler didn't choke, and we can objdump,
22653 # and we got the correct data, then succeed.
22654 # The text in the here-document typically retains its unix-style line
22655 # endings, while the output of objdump will use host line endings.
22656 # Therefore, use diff -b for the comparisons.
22657 if test x$gcc_cv_objdump != x \
22658 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22659 | tail -3 > conftest.got \
22660 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22661 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22662 then
22663 gcc_cv_as_eh_frame=yes
22664 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }; then
22670 gcc_cv_as_eh_frame=buggy
22671 else
22672 # Uh oh, what do we do now?
22673 gcc_cv_as_eh_frame=no
22674 fi
22675 else
22676 echo "configure: failed program was" >&5
22677 cat conftest.s >&5
22678 fi
22679 rm -f conftest.o conftest.s
22680 fi
22681 fi
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22683 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22684
22685
22686 if test $gcc_cv_as_eh_frame = buggy; then
22687
22688 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22689
22690 fi
22691
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22693 $as_echo_n "checking assembler for section merging support... " >&6; }
22694 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22696 else
22697 gcc_cv_as_shf_merge=no
22698 if test $in_tree_gas = yes; then
22699 if test $in_tree_gas_is_elf = yes \
22700 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22701 then gcc_cv_as_shf_merge=yes
22702 fi
22703 elif test x$gcc_cv_as != x; then
22704 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22710 test $ac_status = 0; }; }
22711 then
22712 gcc_cv_as_shf_merge=yes
22713 else
22714 echo "configure: failed program was" >&5
22715 cat conftest.s >&5
22716 fi
22717 rm -f conftest.o conftest.s
22718 fi
22719 fi
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22721 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22722
22723 if test $gcc_cv_as_shf_merge = no; then
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22725 $as_echo_n "checking assembler for section merging support... " >&6; }
22726 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728 else
22729 gcc_cv_as_shf_merge=no
22730 if test $in_tree_gas = yes; then
22731 if test $in_tree_gas_is_elf = yes \
22732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22733 then gcc_cv_as_shf_merge=yes
22734 fi
22735 elif test x$gcc_cv_as != x; then
22736 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; }; }
22743 then
22744 gcc_cv_as_shf_merge=yes
22745 else
22746 echo "configure: failed program was" >&5
22747 cat conftest.s >&5
22748 fi
22749 rm -f conftest.o conftest.s
22750 fi
22751 fi
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22753 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22754
22755 fi
22756
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22759 _ACEOF
22760
22761
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22763 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22764 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22766 else
22767 gcc_cv_as_comdat_group=no
22768 if test $in_tree_gas = yes; then
22769 if test $in_tree_gas_is_elf = yes \
22770 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22771 then gcc_cv_as_comdat_group=yes
22772 fi
22773 elif test x$gcc_cv_as != x; then
22774 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22780 test $ac_status = 0; }; }
22781 then
22782 gcc_cv_as_comdat_group=yes
22783 else
22784 echo "configure: failed program was" >&5
22785 cat conftest.s >&5
22786 fi
22787 rm -f conftest.o conftest.s
22788 fi
22789 fi
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22791 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22792
22793 if test $gcc_cv_as_comdat_group = yes; then
22794 gcc_cv_as_comdat_group_percent=no
22795 gcc_cv_as_comdat_group_group=no
22796 else
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22798 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22799 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22801 else
22802 gcc_cv_as_comdat_group_percent=no
22803 if test $in_tree_gas = yes; then
22804 if test $in_tree_gas_is_elf = yes \
22805 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22806 then gcc_cv_as_comdat_group_percent=yes
22807 fi
22808 elif test x$gcc_cv_as != x; then
22809 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815 test $ac_status = 0; }; }
22816 then
22817 gcc_cv_as_comdat_group_percent=yes
22818 else
22819 echo "configure: failed program was" >&5
22820 cat conftest.s >&5
22821 fi
22822 rm -f conftest.o conftest.s
22823 fi
22824 fi
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22826 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22827
22828 if test $gcc_cv_as_comdat_group_percent = yes; then
22829 gcc_cv_as_comdat_group_group=no
22830 else
22831 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22832 gcc_cv_as_comdat_group_group=no
22833 fi
22834 case "${target}" in
22835 # Sun as uses a completely different syntax.
22836 *-*-solaris2*)
22837 case "${target}" in
22838 sparc*-*-solaris2*)
22839 conftest_s='
22840 .group foo,".text%foo",#comdat
22841 .section ".text%foo", #alloc,#execinstr,#progbits
22842 .globl foo
22843 foo:
22844 '
22845 ;;
22846 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22847 conftest_s='
22848 .group foo,.text%foo,#comdat
22849 .section .text%foo, "ax", @progbits
22850 .globl foo
22851 foo:
22852 '
22853 ;;
22854 esac
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22856 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22857 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22858 $as_echo_n "(cached) " >&6
22859 else
22860 gcc_cv_as_comdat_group_group=no
22861 if test x$gcc_cv_as != x; then
22862 $as_echo "$conftest_s" > conftest.s
22863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; }
22869 then
22870 gcc_cv_as_comdat_group_group=yes
22871 else
22872 echo "configure: failed program was" >&5
22873 cat conftest.s >&5
22874 fi
22875 rm -f conftest.o conftest.s
22876 fi
22877 fi
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22879 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22880
22881 ;;
22882 esac
22883 fi
22884 fi
22885 if test x"$ld_is_gold" = xyes; then
22886 comdat_group=yes
22887 elif test $in_tree_ld = yes ; then
22888 comdat_group=no
22889 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 \
22890 && test $in_tree_ld_is_elf = yes; then
22891 comdat_group=yes
22892 fi
22893 elif echo "$ld_ver" | grep GNU > /dev/null; then
22894 comdat_group=yes
22895 if test 0"$ld_date" -lt 20050308; then
22896 if test -n "$ld_date"; then
22897 # If there was date string, but was earlier than 2005-03-08, fail
22898 comdat_group=no
22899 elif test "$ld_vers_major" -lt 2; then
22900 comdat_group=no
22901 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22902 comdat_group=no
22903 fi
22904 fi
22905 else
22906 case "${target}" in
22907 *-*-solaris2.1[1-9]*)
22908 comdat_group=no
22909 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22910 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22911 # version 1.688.
22912 #
22913 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22914 # least ld version 1.2267.
22915 if test "$ld_vers_major" -gt 1; then
22916 comdat_group=yes
22917 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22918 comdat_group=yes
22919 elif test "$ld_vers_minor" -ge 2267; then
22920 comdat_group=yes
22921 fi
22922 ;;
22923 *)
22924 # Assume linkers other than GNU ld don't support COMDAT group.
22925 comdat_group=no
22926 ;;
22927 esac
22928 fi
22929 # Allow overriding the automatic COMDAT group tests above.
22930 # Check whether --enable-comdat was given.
22931 if test "${enable_comdat+set}" = set; then :
22932 enableval=$enable_comdat; comdat_group="$enable_comdat"
22933 fi
22934
22935 if test $comdat_group = no; then
22936 gcc_cv_as_comdat_group=no
22937 gcc_cv_as_comdat_group_percent=no
22938 gcc_cv_as_comdat_group_group=no
22939 fi
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22943 || test $gcc_cv_as_comdat_group_percent = yes \
22944 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22945 _ACEOF
22946
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22949 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22950 if test "${gcc_cv_as_discriminator+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 gcc_cv_as_discriminator=no
22954 if test $in_tree_gas = yes; then
22955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22956 then gcc_cv_as_discriminator=yes
22957 fi
22958 elif test x$gcc_cv_as != x; then
22959 $as_echo ' .text
22960 .file 1 "conf.c"
22961 .loc 1 1 0 discriminator 1' > conftest.s
22962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22967 test $ac_status = 0; }; }
22968 then
22969 gcc_cv_as_discriminator=yes
22970 else
22971 echo "configure: failed program was" >&5
22972 cat conftest.s >&5
22973 fi
22974 rm -f conftest.o conftest.s
22975 fi
22976 fi
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22978 $as_echo "$gcc_cv_as_discriminator" >&6; }
22979 if test $gcc_cv_as_discriminator = yes; then
22980
22981 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22982
22983 fi
22984
22985 # Thread-local storage - the check is heavily parameterized.
22986 conftest_s=
22987 tls_first_major=
22988 tls_first_minor=
22989 tls_as_opt=
22990 case "$target" in
22991 alpha*-*-*)
22992 conftest_s='
22993 .section ".tdata","awT",@progbits
22994 foo: .long 25
22995 .text
22996 ldq $27,__tls_get_addr($29) !literal!1
22997 lda $16,foo($29) !tlsgd!1
22998 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22999 ldq $27,__tls_get_addr($29) !literal!2
23000 lda $16,foo($29) !tlsldm!2
23001 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23002 ldq $1,foo($29) !gotdtprel
23003 ldah $2,foo($29) !dtprelhi
23004 lda $3,foo($2) !dtprello
23005 lda $4,foo($29) !dtprel
23006 ldq $1,foo($29) !gottprel
23007 ldah $2,foo($29) !tprelhi
23008 lda $3,foo($2) !tprello
23009 lda $4,foo($29) !tprel'
23010 tls_first_major=2
23011 tls_first_minor=13
23012 tls_as_opt=--fatal-warnings
23013 ;;
23014 cris-*-*|crisv32-*-*)
23015 conftest_s='
23016 .section ".tdata","awT",@progbits
23017 x: .long 25
23018 .text
23019 move.d x:IE,$r10
23020 nop'
23021 tls_first_major=2
23022 tls_first_minor=20
23023 tls_as_opt=--fatal-warnings
23024 ;;
23025 frv*-*-*)
23026 conftest_s='
23027 .section ".tdata","awT",@progbits
23028 x: .long 25
23029 .text
23030 call #gettlsoff(x)'
23031 tls_first_major=2
23032 tls_first_minor=14
23033 ;;
23034 hppa*-*-linux*)
23035 conftest_s='
23036 t1: .reg %r20
23037 t2: .reg %r21
23038 gp: .reg %r19
23039 .section ".tdata","awT",@progbits
23040 foo: .long 25
23041 .text
23042 .align 4
23043 addil LT%foo-$tls_gdidx$,gp
23044 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23045 b __tls_get_addr
23046 nop
23047 addil LT%foo-$tls_ldidx$,gp
23048 b __tls_get_addr
23049 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23050 addil LR%foo-$tls_dtpoff$,%ret0
23051 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23052 mfctl %cr27,%t1
23053 addil LT%foo-$tls_ieoff$,gp
23054 ldw RT%foo-$tls_ieoff$(%r1),%t2
23055 add %t1,%t2,%t3
23056 mfctl %cr27,%t1
23057 addil LR%foo-$tls_leoff$,%t1
23058 ldo RR%foo-$tls_leoff$(%r1),%t2'
23059 tls_first_major=2
23060 tls_first_minor=15
23061 tls_as_opt=--fatal-warnings
23062 ;;
23063 arm*-*-*)
23064 conftest_s='
23065 .section ".tdata","awT",%progbits
23066 foo: .long 25
23067 .text
23068 .word foo(gottpoff)
23069 .word foo(tpoff)
23070 .word foo(tlsgd)
23071 .word foo(tlsldm)
23072 .word foo(tlsldo)'
23073 tls_first_major=2
23074 tls_first_minor=17
23075 ;;
23076 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23077 case "$target" in
23078 i[34567]86-*-solaris2.*)
23079 on_solaris=yes
23080 tga_func=___tls_get_addr
23081 ;;
23082 x86_64-*-solaris2.1[0-9]*)
23083 on_solaris=yes
23084 tga_func=__tls_get_addr
23085 ;;
23086 *)
23087 on_solaris=no
23088 ;;
23089 esac
23090 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23091 conftest_s='
23092 .section .tdata,"awt",@progbits'
23093 tls_first_major=0
23094 tls_first_minor=0
23095
23096 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23097
23098 else
23099 conftest_s='
23100 .section ".tdata","awT",@progbits'
23101 tls_first_major=2
23102 tls_first_minor=14
23103 tls_as_opt="--fatal-warnings"
23104 fi
23105 conftest_s="$conftest_s
23106 foo: .long 25
23107 .text
23108 movl %gs:0, %eax
23109 leal foo@tlsgd(,%ebx,1), %eax
23110 leal foo@tlsldm(%ebx), %eax
23111 leal foo@dtpoff(%eax), %edx
23112 movl foo@gottpoff(%ebx), %eax
23113 subl foo@gottpoff(%ebx), %eax
23114 addl foo@gotntpoff(%ebx), %eax
23115 movl foo@indntpoff, %eax
23116 movl \$foo@tpoff, %eax
23117 subl \$foo@tpoff, %eax
23118 leal foo@ntpoff(%ecx), %eax"
23119 ;;
23120 x86_64-*-*)
23121 conftest_s='
23122 .section ".tdata","awT",@progbits
23123 foo: .long 25
23124 .text
23125 movq %fs:0, %rax
23126 leaq foo@TLSGD(%rip), %rdi
23127 leaq foo@TLSLD(%rip), %rdi
23128 leaq foo@DTPOFF(%rax), %rdx
23129 movq foo@GOTTPOFF(%rip), %rax
23130 movq $foo@TPOFF, %rax'
23131 tls_first_major=2
23132 tls_first_minor=14
23133 tls_as_opt=--fatal-warnings
23134 ;;
23135 ia64-*-*)
23136 conftest_s='
23137 .section ".tdata","awT",@progbits
23138 foo: data8 25
23139 .text
23140 addl r16 = @ltoff(@dtpmod(foo#)), gp
23141 addl r17 = @ltoff(@dtprel(foo#)), gp
23142 addl r18 = @ltoff(@tprel(foo#)), gp
23143 addl r19 = @dtprel(foo#), gp
23144 adds r21 = @dtprel(foo#), r13
23145 movl r23 = @dtprel(foo#)
23146 addl r20 = @tprel(foo#), gp
23147 adds r22 = @tprel(foo#), r13
23148 movl r24 = @tprel(foo#)'
23149 tls_first_major=2
23150 tls_first_minor=13
23151 tls_as_opt=--fatal-warnings
23152 ;;
23153 mips*-*-*)
23154 conftest_s='
23155 .section .tdata,"awT",@progbits
23156 x:
23157 .word 2
23158 .text
23159 addiu $4, $28, %tlsgd(x)
23160 addiu $4, $28, %tlsldm(x)
23161 lui $4, %dtprel_hi(x)
23162 addiu $4, $4, %dtprel_lo(x)
23163 lw $4, %gottprel(x)($28)
23164 lui $4, %tprel_hi(x)
23165 addiu $4, $4, %tprel_lo(x)'
23166 tls_first_major=2
23167 tls_first_minor=16
23168 tls_as_opt='-32 --fatal-warnings'
23169 ;;
23170 m68k-*-*)
23171 conftest_s='
23172 .section .tdata,"awT",@progbits
23173 x:
23174 .word 2
23175 .text
23176 foo:
23177 move.l x@TLSGD(%a5),%a0
23178 move.l x@TLSLDM(%a5),%a0
23179 move.l x@TLSLDO(%a5),%a0
23180 move.l x@TLSIE(%a5),%a0
23181 move.l x@TLSLE(%a5),%a0'
23182 tls_first_major=2
23183 tls_first_minor=19
23184 tls_as_opt='--fatal-warnings'
23185 ;;
23186 powerpc-*-*)
23187 conftest_s='
23188 .section ".tdata","awT",@progbits
23189 .align 2
23190 ld0: .space 4
23191 ld1: .space 4
23192 x1: .space 4
23193 x2: .space 4
23194 x3: .space 4
23195 .text
23196 addi 3,31,ld0@got@tlsgd
23197 bl __tls_get_addr
23198 addi 3,31,x1@got@tlsld
23199 bl __tls_get_addr
23200 addi 9,3,x1@dtprel
23201 addis 9,3,x2@dtprel@ha
23202 addi 9,9,x2@dtprel@l
23203 lwz 9,x3@got@tprel(31)
23204 add 9,9,x@tls
23205 addi 9,2,x1@tprel
23206 addis 9,2,x2@tprel@ha
23207 addi 9,9,x2@tprel@l'
23208 tls_first_major=2
23209 tls_first_minor=14
23210 tls_as_opt="-a32 --fatal-warnings"
23211 ;;
23212 powerpc64-*-*)
23213 conftest_s='
23214 .section ".tdata","awT",@progbits
23215 .align 3
23216 ld0: .space 8
23217 ld1: .space 8
23218 x1: .space 8
23219 x2: .space 8
23220 x3: .space 8
23221 .text
23222 addi 3,2,ld0@got@tlsgd
23223 bl .__tls_get_addr
23224 nop
23225 addi 3,2,ld1@toc
23226 bl .__tls_get_addr
23227 nop
23228 addi 3,2,x1@got@tlsld
23229 bl .__tls_get_addr
23230 nop
23231 addi 9,3,x1@dtprel
23232 bl .__tls_get_addr
23233 nop
23234 addis 9,3,x2@dtprel@ha
23235 addi 9,9,x2@dtprel@l
23236 bl .__tls_get_addr
23237 nop
23238 ld 9,x3@got@dtprel(2)
23239 add 9,9,3
23240 bl .__tls_get_addr
23241 nop'
23242 tls_first_major=2
23243 tls_first_minor=14
23244 tls_as_opt="-a64 --fatal-warnings"
23245 ;;
23246 s390-*-*)
23247 conftest_s='
23248 .section ".tdata","awT",@progbits
23249 foo: .long 25
23250 .text
23251 .long foo@TLSGD
23252 .long foo@TLSLDM
23253 .long foo@DTPOFF
23254 .long foo@NTPOFF
23255 .long foo@GOTNTPOFF
23256 .long foo@INDNTPOFF
23257 l %r1,foo@GOTNTPOFF(%r12)
23258 l %r1,0(%r1):tls_load:foo
23259 bas %r14,0(%r1,%r13):tls_gdcall:foo
23260 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23261 tls_first_major=2
23262 tls_first_minor=14
23263 tls_as_opt="-m31 --fatal-warnings"
23264 ;;
23265 s390x-*-*)
23266 conftest_s='
23267 .section ".tdata","awT",@progbits
23268 foo: .long 25
23269 .text
23270 .quad foo@TLSGD
23271 .quad foo@TLSLDM
23272 .quad foo@DTPOFF
23273 .quad foo@NTPOFF
23274 .quad foo@GOTNTPOFF
23275 lg %r1,foo@GOTNTPOFF(%r12)
23276 larl %r1,foo@INDNTPOFF
23277 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23278 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23279 tls_first_major=2
23280 tls_first_minor=14
23281 tls_as_opt="-m64 -Aesame --fatal-warnings"
23282 ;;
23283 sh-*-* | sh[34]-*-*)
23284 conftest_s='
23285 .section ".tdata","awT",@progbits
23286 foo: .long 25
23287 .text
23288 .long foo@TLSGD
23289 .long foo@TLSLDM
23290 .long foo@DTPOFF
23291 .long foo@GOTTPOFF
23292 .long foo@TPOFF'
23293 tls_first_major=2
23294 tls_first_minor=13
23295 tls_as_opt=--fatal-warnings
23296 ;;
23297 sparc*-*-*)
23298 case "$target" in
23299 sparc*-sun-solaris2.*)
23300 on_solaris=yes
23301 tga_func=__tls_get_addr
23302 ;;
23303 *)
23304 on_solaris=no
23305 ;;
23306 esac
23307 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23308 conftest_s='
23309 .section ".tdata",#alloc,#write,#tls'
23310 tls_first_major=0
23311 tls_first_minor=0
23312 else
23313 conftest_s='
23314 .section ".tdata","awT",@progbits'
23315 tls_first_major=2
23316 tls_first_minor=14
23317 tls_as_opt="-32 --fatal-warnings"
23318 fi
23319 conftest_s="$conftest_s
23320 foo: .long 25
23321 .text
23322 sethi %tgd_hi22(foo), %o0
23323 add %o0, %tgd_lo10(foo), %o1
23324 add %l7, %o1, %o0, %tgd_add(foo)
23325 call __tls_get_addr, %tgd_call(foo)
23326 sethi %tldm_hi22(foo), %l1
23327 add %l1, %tldm_lo10(foo), %l2
23328 add %l7, %l2, %o0, %tldm_add(foo)
23329 call __tls_get_addr, %tldm_call(foo)
23330 sethi %tldo_hix22(foo), %l3
23331 xor %l3, %tldo_lox10(foo), %l4
23332 add %o0, %l4, %l5, %tldo_add(foo)
23333 sethi %tie_hi22(foo), %o3
23334 add %o3, %tie_lo10(foo), %o3
23335 ld [%l7 + %o3], %o2, %tie_ld(foo)
23336 add %g7, %o2, %o4, %tie_add(foo)
23337 sethi %tle_hix22(foo), %l1
23338 xor %l1, %tle_lox10(foo), %o5
23339 ld [%g7 + %o5], %o1"
23340 ;;
23341 tilepro*-*-*)
23342 conftest_s='
23343 .section ".tdata","awT",@progbits
23344 foo: .long 25
23345 .text
23346 addli r0, zero, tls_gd(foo)
23347 auli r0, zero, tls_gd_ha16(foo)
23348 addli r0, r0, tls_gd_lo16(foo)
23349 jal __tls_get_addr
23350 addli r0, zero, tls_ie(foo)
23351 auli r0, r0, tls_ie_ha16(foo)
23352 addli r0, r0, tls_ie_lo16(foo)'
23353 tls_first_major=2
23354 tls_first_minor=22
23355 tls_as_opt="--fatal-warnings"
23356 ;;
23357 tilegx*-*-*)
23358 conftest_s='
23359 .section ".tdata","awT",@progbits
23360 foo: .long 25
23361 .text
23362 shl16insli r0, zero, hw0_last_tls_gd(foo)
23363 shl16insli r0, zero, hw1_last_tls_gd(foo)
23364 shl16insli r0, r0, hw0_tls_gd(foo)
23365 jal __tls_get_addr
23366 shl16insli r0, zero, hw1_last_tls_ie(foo)
23367 shl16insli r0, r0, hw0_tls_ie(foo)'
23368 tls_first_major=2
23369 tls_first_minor=22
23370 tls_as_opt="--fatal-warnings"
23371 ;;
23372 xtensa*-*-*)
23373 conftest_s='
23374 .section ".tdata","awT",@progbits
23375 foo: .long 25
23376 .text
23377 movi a8, foo@TLSFUNC
23378 movi a10, foo@TLSARG
23379 callx8.tls a8, foo@TLSCALL'
23380 tls_first_major=2
23381 tls_first_minor=19
23382 ;;
23383 esac
23384 set_have_as_tls=no
23385 if test "x$enable_tls" = xno ; then
23386 : # TLS explicitly disabled.
23387 elif test "x$enable_tls" = xyes ; then
23388 set_have_as_tls=yes # TLS explicitly enabled.
23389 elif test -z "$tls_first_major"; then
23390 : # If we don't have a check, assume no support.
23391 else
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23393 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23394 if test "${gcc_cv_as_tls+set}" = set; then :
23395 $as_echo_n "(cached) " >&6
23396 else
23397 gcc_cv_as_tls=no
23398 if test $in_tree_gas = yes; then
23399 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23400 then gcc_cv_as_tls=yes
23401 fi
23402 elif test x$gcc_cv_as != x; then
23403 $as_echo "$conftest_s" > conftest.s
23404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23410 then
23411 gcc_cv_as_tls=yes
23412 else
23413 echo "configure: failed program was" >&5
23414 cat conftest.s >&5
23415 fi
23416 rm -f conftest.o conftest.s
23417 fi
23418 fi
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23420 $as_echo "$gcc_cv_as_tls" >&6; }
23421 if test $gcc_cv_as_tls = yes; then
23422 set_have_as_tls=yes
23423 fi
23424 fi
23425 case "$target" in
23426 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23427 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23428 # Sun style that Sun ld and GCC don't support any longer.
23429 *-*-solaris2.*)
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23431 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23432 ld_tls_support=no
23433 # Check ld and ld.so.1 TLS support.
23434 if echo "$ld_ver" | grep GNU > /dev/null; then
23435 # Assume all interesting versions of GNU ld have TLS support.
23436 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23437 ld_tls_support=yes
23438 else
23439 case "$target" in
23440 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23441 i?86-*-solaris2.9)
23442 min_tls_ld_vers_minor=374
23443 ;;
23444 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23445 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23446 min_tls_ld_vers_minor=343
23447 ;;
23448 esac
23449 if test "$ld_vers_major" -gt 1 || \
23450 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23451 ld_tls_support=yes
23452 else
23453 set_have_as_tls=no
23454 fi
23455 fi
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23457 $as_echo "$ld_tls_support" >&6; }
23458
23459 save_LIBS="$LIBS"
23460 save_LDFLAGS="$LDFLAGS"
23461 LIBS=
23462 LDFLAGS=
23463
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23465 $as_echo_n "checking library containing $tga_func... " >&6; }
23466 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23467 # (32-bit x86) only lived in libthread, so check for that. Keep
23468 # set_have_as_tls if found, disable if not.
23469 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23471 $as_echo_n "checking for library containing $tga_func... " >&6; }
23472 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23473 $as_echo_n "(cached) " >&6
23474 else
23475 ac_func_search_save_LIBS=$LIBS
23476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23477 /* end confdefs.h. */
23478
23479 /* Override any GCC internal prototype to avoid an error.
23480 Use char because int might match the return type of a GCC
23481 builtin and then its argument prototype would still apply. */
23482 #ifdef __cplusplus
23483 extern "C"
23484 #endif
23485 char $tga_func ();
23486 int
23487 main ()
23488 {
23489 return $tga_func ();
23490 ;
23491 return 0;
23492 }
23493 _ACEOF
23494 for ac_lib in '' thread; do
23495 if test -z "$ac_lib"; then
23496 ac_res="none required"
23497 else
23498 ac_res=-l$ac_lib
23499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23500 fi
23501 if ac_fn_c_try_link "$LINENO"; then :
23502 eval "$as_ac_Search=\$ac_res"
23503 fi
23504 rm -f core conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext
23506 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23507 break
23508 fi
23509 done
23510 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23511
23512 else
23513 eval "$as_ac_Search=no"
23514 fi
23515 rm conftest.$ac_ext
23516 LIBS=$ac_func_search_save_LIBS
23517 fi
23518 eval ac_res=\$$as_ac_Search
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23520 $as_echo "$ac_res" >&6; }
23521 eval ac_res=\$$as_ac_Search
23522 if test "$ac_res" != no; then :
23523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23524
23525 else
23526 set_have_as_tls=no
23527 fi
23528
23529 # Clear LIBS if we cannot support TLS.
23530 if test $set_have_as_tls = no; then
23531 LIBS=
23532 fi
23533 # Always define LIB_TLS_SPEC, even without TLS support.
23534
23535 cat >>confdefs.h <<_ACEOF
23536 #define LIB_TLS_SPEC "$LIBS"
23537 _ACEOF
23538
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23540 $as_echo "$LIBS" >&6; }
23541
23542 LIBS="$save_LIBS"
23543 LDFLAGS="$save_LDFLAGS"
23544 ;;
23545 esac
23546 if test $set_have_as_tls = yes ; then
23547
23548 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23549
23550 fi
23551
23552 # Target-specific assembler checks.
23553
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23555 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23556 gcc_cv_ld_static_dynamic=no
23557 gcc_cv_ld_static_option='-Bstatic'
23558 gcc_cv_ld_dynamic_option='-Bdynamic'
23559 if test $in_tree_ld = yes ; then
23560 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
23561 gcc_cv_ld_static_dynamic=yes
23562 fi
23563 elif test x$gcc_cv_ld != x; then
23564 # Check if linker supports -Bstatic/-Bdynamic option
23565 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23566 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23567 gcc_cv_ld_static_dynamic=yes
23568 else
23569 case "$target" in
23570 # HP-UX ld uses -a flags to select between shared and archive.
23571 *-*-hpux*)
23572 if test x"$gnu_ld" = xno; then
23573 gcc_cv_ld_static_dynamic=yes
23574 gcc_cv_ld_static_option="-aarchive_shared"
23575 gcc_cv_ld_dynamic_option="-adefault"
23576 fi
23577 ;;
23578 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23579 *-*-solaris2*)
23580 gcc_cv_ld_static_dynamic=yes
23581 ;;
23582 esac
23583 fi
23584 fi
23585 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23586
23587 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23588
23589
23590 cat >>confdefs.h <<_ACEOF
23591 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23592 _ACEOF
23593
23594
23595 cat >>confdefs.h <<_ACEOF
23596 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23597 _ACEOF
23598
23599 fi
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23601 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23602
23603 if test x"$demangler_in_ld" = xyes; then
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23605 $as_echo_n "checking linker --demangle support... " >&6; }
23606 gcc_cv_ld_demangle=no
23607 if test $in_tree_ld = yes; then
23608 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 \
23609 gcc_cv_ld_demangle=yes
23610 fi
23611 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23612 # Check if the GNU linker supports --demangle option
23613 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23614 gcc_cv_ld_demangle=yes
23615 fi
23616 fi
23617 if test x"$gcc_cv_ld_demangle" = xyes; then
23618
23619 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23620
23621 fi
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23623 $as_echo "$gcc_cv_ld_demangle" >&6; }
23624 fi
23625
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23627 $as_echo_n "checking linker plugin support... " >&6; }
23628 gcc_cv_lto_plugin=0
23629 if test -f liblto_plugin.la; then
23630 save_ld_ver="$ld_ver"
23631 save_ld_vers_major="$ld_vers_major"
23632 save_ld_vers_minor="$ld_vers_minor"
23633 save_ld_is_gold="$ld_is_gold"
23634
23635 ld_is_gold=no
23636
23637 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23638 ld_ver="GNU ld"
23639 # FIXME: ld_is_gold?
23640 ld_vers_major="$gcc_cv_gld_major_version"
23641 ld_vers_minor="$gcc_cv_gld_minor_version"
23642 else
23643 # Determine plugin linker version.
23644 # FIXME: Partial duplicate from above, generalize.
23645 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23646 if echo "$ld_ver" | grep GNU > /dev/null; then
23647 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23648 ld_is_gold=yes
23649 ld_vers=`echo $ld_ver | sed -n \
23650 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23651 else
23652 ld_vers=`echo $ld_ver | sed -n \
23653 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23654 fi
23655 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23656 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23657 fi
23658 fi
23659
23660 # Determine plugin support.
23661 if echo "$ld_ver" | grep GNU > /dev/null; then
23662 # Require GNU ld or gold 2.21+ for plugin support by default.
23663 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23664 gcc_cv_lto_plugin=2
23665 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23666 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23667 gcc_cv_lto_plugin=1
23668 fi
23669 fi
23670
23671 ld_ver="$save_ld_ver"
23672 ld_vers_major="$save_ld_vers_major"
23673 ld_vers_minor="$save_ld_vers_minor"
23674 ld_is_gold="$save_ld_is_gold"
23675 fi
23676
23677 cat >>confdefs.h <<_ACEOF
23678 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23679 _ACEOF
23680
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23682 $as_echo "$gcc_cv_lto_plugin" >&6; }
23683
23684 case "$target" in
23685 # All TARGET_ABI_OSF targets.
23686 alpha*-*-linux* | alpha*-*-*bsd*)
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23688 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23689 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 gcc_cv_as_alpha_explicit_relocs=no
23693 if test $in_tree_gas = yes; then
23694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23695 then gcc_cv_as_alpha_explicit_relocs=yes
23696 fi
23697 elif test x$gcc_cv_as != x; then
23698 $as_echo ' .set nomacro
23699 .text
23700 extbl $3, $2, $3 !lituse_bytoff!1
23701 ldq $2, a($29) !literal!1
23702 ldq $4, b($29) !literal!2
23703 ldq_u $3, 0($2) !lituse_base!1
23704 ldq $27, f($29) !literal!5
23705 jsr $26, ($27), f !lituse_jsr!5
23706 ldah $29, 0($26) !gpdisp!3
23707 lda $0, c($29) !gprel
23708 ldah $1, d($29) !gprelhigh
23709 lda $1, d($1) !gprellow
23710 lda $29, 0($29) !gpdisp!3' > conftest.s
23711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23717 then
23718 gcc_cv_as_alpha_explicit_relocs=yes
23719 else
23720 echo "configure: failed program was" >&5
23721 cat conftest.s >&5
23722 fi
23723 rm -f conftest.o conftest.s
23724 fi
23725 fi
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23727 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23728 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23729
23730 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23731
23732 fi
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23734 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23735 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23736 $as_echo_n "(cached) " >&6
23737 else
23738 gcc_cv_as_alpha_jsrdirect_relocs=no
23739 if test $in_tree_gas = yes; then
23740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23741 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23742 fi
23743 elif test x$gcc_cv_as != x; then
23744 $as_echo ' .set nomacro
23745 .text
23746 ldq $27, a($29) !literal!1
23747 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; }
23754 then
23755 gcc_cv_as_alpha_jsrdirect_relocs=yes
23756 else
23757 echo "configure: failed program was" >&5
23758 cat conftest.s >&5
23759 fi
23760 rm -f conftest.o conftest.s
23761 fi
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23764 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23765 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23766
23767 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23768
23769 fi
23770 ;;
23771
23772 cris-*-*)
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23774 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23775 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23776 $as_echo_n "(cached) " >&6
23777 else
23778 gcc_cv_as_cris_no_mul_bug=no
23779 if test $in_tree_gas = yes; then
23780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23781 then gcc_cv_as_cris_no_mul_bug=yes
23782 fi
23783 elif test x$gcc_cv_as != x; then
23784 $as_echo '.text' > conftest.s
23785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23790 test $ac_status = 0; }; }
23791 then
23792 gcc_cv_as_cris_no_mul_bug=yes
23793 else
23794 echo "configure: failed program was" >&5
23795 cat conftest.s >&5
23796 fi
23797 rm -f conftest.o conftest.s
23798 fi
23799 fi
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23801 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23802 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23803
23804 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23805
23806 fi
23807 ;;
23808
23809 sparc*-*-*)
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23811 $as_echo_n "checking assembler for .register... " >&6; }
23812 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814 else
23815 gcc_cv_as_sparc_register_op=no
23816 if test x$gcc_cv_as != x; then
23817 $as_echo '.register %g2, #scratch' > conftest.s
23818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23820 (eval $ac_try) 2>&5
23821 ac_status=$?
23822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23823 test $ac_status = 0; }; }
23824 then
23825 gcc_cv_as_sparc_register_op=yes
23826 else
23827 echo "configure: failed program was" >&5
23828 cat conftest.s >&5
23829 fi
23830 rm -f conftest.o conftest.s
23831 fi
23832 fi
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23834 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23835 if test $gcc_cv_as_sparc_register_op = yes; then
23836
23837 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23838
23839 fi
23840
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23842 $as_echo_n "checking assembler for -relax option... " >&6; }
23843 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23845 else
23846 gcc_cv_as_sparc_relax=no
23847 if test x$gcc_cv_as != x; then
23848 $as_echo '.text' > conftest.s
23849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23854 test $ac_status = 0; }; }
23855 then
23856 gcc_cv_as_sparc_relax=yes
23857 else
23858 echo "configure: failed program was" >&5
23859 cat conftest.s >&5
23860 fi
23861 rm -f conftest.o conftest.s
23862 fi
23863 fi
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23865 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23866 if test $gcc_cv_as_sparc_relax = yes; then
23867
23868 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23869
23870 fi
23871
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23873 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23874 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23876 else
23877 gcc_cv_as_sparc_gotdata_op=no
23878 if test x$gcc_cv_as != x; then
23879 $as_echo '.text
23880 .align 4
23881 foo:
23882 nop
23883 bar:
23884 sethi %gdop_hix22(foo), %g1
23885 xor %g1, %gdop_lox10(foo), %g1
23886 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; }
23893 then
23894 if test x$gcc_cv_ld != x \
23895 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23896 if test x$gcc_cv_objdump != x; then
23897 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23898 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23899 gcc_cv_as_sparc_gotdata_op=no
23900 else
23901 gcc_cv_as_sparc_gotdata_op=yes
23902 fi
23903 fi
23904 fi
23905 rm -f conftest
23906 else
23907 echo "configure: failed program was" >&5
23908 cat conftest.s >&5
23909 fi
23910 rm -f conftest.o conftest.s
23911 fi
23912 fi
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23914 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23915 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23916
23917 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23918
23919 fi
23920
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23922 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23923 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23924 $as_echo_n "(cached) " >&6
23925 else
23926 gcc_cv_as_sparc_ua_pcrel=no
23927 if test x$gcc_cv_as != x; then
23928 $as_echo '.text
23929 foo:
23930 nop
23931 .data
23932 .align 4
23933 .byte 0
23934 .uaword %r_disp32(foo)' > conftest.s
23935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }; }
23941 then
23942 if test x$gcc_cv_ld != x \
23943 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23944 gcc_cv_as_sparc_ua_pcrel=yes
23945 fi
23946 rm -f conftest
23947 else
23948 echo "configure: failed program was" >&5
23949 cat conftest.s >&5
23950 fi
23951 rm -f conftest.o conftest.s
23952 fi
23953 fi
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23955 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23956 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23957
23958 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23959
23960
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23962 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23963 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23964 $as_echo_n "(cached) " >&6
23965 else
23966 gcc_cv_as_sparc_ua_pcrel_hidden=no
23967 if test x$gcc_cv_as != x; then
23968 $as_echo '.data
23969 .align 4
23970 .byte 0x31
23971 .uaword %r_disp32(foo)
23972 .byte 0x32, 0x33, 0x34
23973 .global foo
23974 .hidden foo
23975 foo:
23976 .skip 4' > conftest.s
23977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23983 then
23984 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23985 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23986 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23987 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23988 if $gcc_cv_objdump -R conftest 2> /dev/null \
23989 | grep 'DISP32' > /dev/null 2>&1; then
23990 :
23991 else
23992 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23993 fi
23994 fi
23995 rm -f conftest
23996 else
23997 echo "configure: failed program was" >&5
23998 cat conftest.s >&5
23999 fi
24000 rm -f conftest.o conftest.s
24001 fi
24002 fi
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24004 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24005 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24006
24007 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24008
24009 fi
24010
24011 fi # unaligned pcrel relocs
24012
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24014 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24015 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24017 else
24018 gcc_cv_as_sparc_offsetable_lo10=no
24019 if test x$gcc_cv_as != x; then
24020 $as_echo '.text
24021 or %g1, %lo(ab) + 12, %g1
24022 or %g1, %lo(ab + 12), %g1' > conftest.s
24023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24028 test $ac_status = 0; }; }
24029 then
24030 if test x$gcc_cv_objdump != x \
24031 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24032 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24033 gcc_cv_as_sparc_offsetable_lo10=yes
24034 fi
24035 else
24036 echo "configure: failed program was" >&5
24037 cat conftest.s >&5
24038 fi
24039 rm -f conftest.o conftest.s
24040 fi
24041 fi
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24043 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24044 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24045
24046 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24047
24048 fi
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24051 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24052 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_sparc_fmaf=no
24056 if test x$gcc_cv_as != x; then
24057 $as_echo '.text
24058 .register %g2, #scratch
24059 .register %g3, #scratch
24060 .align 4
24061 fmaddd %f0, %f2, %f4, %f6
24062 addxccc %g1, %g2, %g3
24063 fsrl32 %f2, %f4, %f8
24064 fnaddd %f10, %f12, %f14' > conftest.s
24065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }; }
24071 then
24072 gcc_cv_as_sparc_fmaf=yes
24073 else
24074 echo "configure: failed program was" >&5
24075 cat conftest.s >&5
24076 fi
24077 rm -f conftest.o conftest.s
24078 fi
24079 fi
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24081 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24082 if test $gcc_cv_as_sparc_fmaf = yes; then
24083
24084 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24085
24086 fi
24087 ;;
24088
24089 i[34567]86-*-* | x86_64-*-*)
24090 case $target_os in
24091 cygwin*)
24092 # Full C++ conformance when using a shared libstdc++-v3 requires some
24093 # support from the Cygwin DLL, which in more recent versions exports
24094 # wrappers to aid in interposing and redirecting operators new, delete,
24095 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24096 # are configuring for a version of Cygwin that exports the wrappers.
24097 if test x$host = x$target; then
24098 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24099 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24100 gcc_ac_cygwin_dll_wrappers=yes
24101 else
24102 gcc_ac_cygwin_dll_wrappers=no
24103 fi
24104
24105 else
24106 # Can't check presence of libc functions during cross-compile, so
24107 # we just have to assume we're building for an up-to-date target.
24108 gcc_ac_cygwin_dll_wrappers=yes
24109 fi
24110
24111 cat >>confdefs.h <<_ACEOF
24112 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24113 _ACEOF
24114
24115 esac
24116 case $target_os in
24117 cygwin* | pe | mingw32* | interix*)
24118 # Recent binutils allows the three-operand form of ".comm" on PE. This
24119 # definition is used unconditionally to initialise the default state of
24120 # the target option variable that governs usage of the feature.
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24122 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24123 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_comm_has_align=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24129 then gcc_cv_as_comm_has_align=yes
24130 fi
24131 elif test x$gcc_cv_as != x; then
24132 $as_echo '.comm foo,1,32' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_comm_has_align=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24144 fi
24145 rm -f conftest.o conftest.s
24146 fi
24147 fi
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24149 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24150
24151
24152 cat >>confdefs.h <<_ACEOF
24153 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24154 _ACEOF
24155
24156 # Used for DWARF 2 in PE
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24158 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24159 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24161 else
24162 gcc_cv_as_ix86_pe_secrel32=no
24163 if test $in_tree_gas = yes; then
24164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24165 then gcc_cv_as_ix86_pe_secrel32=yes
24166 fi
24167 elif test x$gcc_cv_as != x; then
24168 $as_echo '.text
24169 foo: nop
24170 .data
24171 .secrel32 foo' > conftest.s
24172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24174 (eval $ac_try) 2>&5
24175 ac_status=$?
24176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24177 test $ac_status = 0; }; }
24178 then
24179 if test x$gcc_cv_ld != x \
24180 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24181 gcc_cv_as_ix86_pe_secrel32=yes
24182 fi
24183 rm -f conftest
24184 else
24185 echo "configure: failed program was" >&5
24186 cat conftest.s >&5
24187 fi
24188 rm -f conftest.o conftest.s
24189 fi
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24192 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24193 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24194
24195 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24196
24197 fi
24198 # Test if the assembler supports the extended form of the .section
24199 # directive that specifies section alignment. LTO support uses this,
24200 # but normally only after installation, so we warn but don't fail the
24201 # configure if LTO is enabled but the assembler does not support it.
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24203 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24204 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24207 gcc_cv_as_section_has_align=no
24208 if test $in_tree_gas = yes; then
24209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24210 then gcc_cv_as_section_has_align=yes
24211 fi
24212 elif test x$gcc_cv_as != x; then
24213 $as_echo '.section lto_test,"dr0"' > conftest.s
24214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24216 (eval $ac_try) 2>&5
24217 ac_status=$?
24218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24219 test $ac_status = 0; }; }
24220 then
24221 gcc_cv_as_section_has_align=yes
24222 else
24223 echo "configure: failed program was" >&5
24224 cat conftest.s >&5
24225 fi
24226 rm -f conftest.o conftest.s
24227 fi
24228 fi
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24230 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24231
24232 if test x$gcc_cv_as_section_has_align != xyes; then
24233 case ",$enable_languages," in
24234 *,lto,*)
24235 { $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
24236 $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;}
24237 ;;
24238 esac
24239 fi
24240 # Test if the assembler supports the section flag 'e' for specifying
24241 # an excluded section.
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24243 $as_echo_n "checking assembler for .section with e... " >&6; }
24244 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24246 else
24247 gcc_cv_as_section_has_e=no
24248 if test $in_tree_gas = yes; then
24249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24250 then gcc_cv_as_section_has_e=yes
24251 fi
24252 elif test x$gcc_cv_as != x; then
24253 $as_echo '.section foo1,"e"
24254 .byte 0,0,0,0' > conftest.s
24255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }
24261 then
24262 gcc_cv_as_section_has_e=yes
24263 else
24264 echo "configure: failed program was" >&5
24265 cat conftest.s >&5
24266 fi
24267 rm -f conftest.o conftest.s
24268 fi
24269 fi
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24271 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24272
24273
24274 cat >>confdefs.h <<_ACEOF
24275 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24276 _ACEOF
24277
24278 ;;
24279 esac
24280
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24282 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24283 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 gcc_cv_as_ix86_filds=no
24287 if test x$gcc_cv_as != x; then
24288 $as_echo 'filds mem; fists mem' > conftest.s
24289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24295 then
24296 gcc_cv_as_ix86_filds=yes
24297 else
24298 echo "configure: failed program was" >&5
24299 cat conftest.s >&5
24300 fi
24301 rm -f conftest.o conftest.s
24302 fi
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24305 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24306 if test $gcc_cv_as_ix86_filds = yes; then
24307
24308 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24309
24310 fi
24311
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24313 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24314 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24316 else
24317 gcc_cv_as_ix86_fildq=no
24318 if test x$gcc_cv_as != x; then
24319 $as_echo 'fildq mem; fistpq mem' > conftest.s
24320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24326 then
24327 gcc_cv_as_ix86_fildq=yes
24328 else
24329 echo "configure: failed program was" >&5
24330 cat conftest.s >&5
24331 fi
24332 rm -f conftest.o conftest.s
24333 fi
24334 fi
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24336 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24337 if test $gcc_cv_as_ix86_fildq = yes; then
24338
24339 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24340
24341 fi
24342
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24344 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24345 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 gcc_cv_as_ix86_cmov_sun_syntax=no
24349 if test x$gcc_cv_as != x; then
24350 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24356 test $ac_status = 0; }; }
24357 then
24358 gcc_cv_as_ix86_cmov_sun_syntax=yes
24359 else
24360 echo "configure: failed program was" >&5
24361 cat conftest.s >&5
24362 fi
24363 rm -f conftest.o conftest.s
24364 fi
24365 fi
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24367 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24368 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24369
24370 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24371
24372 fi
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24375 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24376 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24378 else
24379 gcc_cv_as_ix86_ffreep=no
24380 if test x$gcc_cv_as != x; then
24381 $as_echo 'ffreep %st(1)' > conftest.s
24382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24388 then
24389 gcc_cv_as_ix86_ffreep=yes
24390 else
24391 echo "configure: failed program was" >&5
24392 cat conftest.s >&5
24393 fi
24394 rm -f conftest.o conftest.s
24395 fi
24396 fi
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24398 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24399 if test $gcc_cv_as_ix86_ffreep = yes; then
24400
24401 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24402
24403 fi
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24406 $as_echo_n "checking assembler for .quad directive... " >&6; }
24407 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_ix86_quad=no
24411 if test x$gcc_cv_as != x; then
24412 $as_echo '.quad 0' > conftest.s
24413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24418 test $ac_status = 0; }; }
24419 then
24420 gcc_cv_as_ix86_quad=yes
24421 else
24422 echo "configure: failed program was" >&5
24423 cat conftest.s >&5
24424 fi
24425 rm -f conftest.o conftest.s
24426 fi
24427 fi
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24429 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24430 if test $gcc_cv_as_ix86_quad = yes; then
24431
24432 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24433
24434 fi
24435
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24437 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24438 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24440 else
24441 gcc_cv_as_ix86_sahf=no
24442 if test x$gcc_cv_as != x; then
24443 $as_echo '.code64
24444 sahf' > conftest.s
24445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24451 then
24452 gcc_cv_as_ix86_sahf=yes
24453 else
24454 echo "configure: failed program was" >&5
24455 cat conftest.s >&5
24456 fi
24457 rm -f conftest.o conftest.s
24458 fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24461 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24462 if test $gcc_cv_as_ix86_sahf = yes; then
24463
24464 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24465
24466 fi
24467
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24469 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24470 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24472 else
24473 gcc_cv_as_ix86_hle=no
24474 if test x$gcc_cv_as != x; then
24475 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24482 then
24483 gcc_cv_as_ix86_hle=yes
24484 else
24485 echo "configure: failed program was" >&5
24486 cat conftest.s >&5
24487 fi
24488 rm -f conftest.o conftest.s
24489 fi
24490 fi
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24492 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24493 if test $gcc_cv_as_ix86_hle = yes; then
24494
24495 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24496
24497 fi
24498
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24500 $as_echo_n "checking assembler for swap suffix... " >&6; }
24501 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24503 else
24504 gcc_cv_as_ix86_swap=no
24505 if test x$gcc_cv_as != x; then
24506 $as_echo 'movl.s %esp, %ebp' > conftest.s
24507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24509 (eval $ac_try) 2>&5
24510 ac_status=$?
24511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24512 test $ac_status = 0; }; }
24513 then
24514 gcc_cv_as_ix86_swap=yes
24515 else
24516 echo "configure: failed program was" >&5
24517 cat conftest.s >&5
24518 fi
24519 rm -f conftest.o conftest.s
24520 fi
24521 fi
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24523 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24524 if test $gcc_cv_as_ix86_swap = yes; then
24525
24526 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24527
24528 fi
24529
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24531 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24532 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24534 else
24535 gcc_cv_as_ix86_diff_sect_delta=no
24536 if test x$gcc_cv_as != x; then
24537 $as_echo '.section .rodata
24538 .L1:
24539 .long .L2-.L1
24540 .long .L3-.L1
24541 .text
24542 .L3: nop
24543 .L2: nop' > conftest.s
24544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
24548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549 test $ac_status = 0; }; }
24550 then
24551 gcc_cv_as_ix86_diff_sect_delta=yes
24552 else
24553 echo "configure: failed program was" >&5
24554 cat conftest.s >&5
24555 fi
24556 rm -f conftest.o conftest.s
24557 fi
24558 fi
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24560 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24561 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24562
24563 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24564
24565 fi
24566
24567 # These two are used unconditionally by i386.[ch]; it is to be defined
24568 # to 1 if the feature is present, 0 otherwise.
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24570 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24571 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_ix86_gotoff_in_data=no
24575 if test $in_tree_gas = yes; then
24576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24577 then gcc_cv_as_ix86_gotoff_in_data=yes
24578 fi
24579 elif test x$gcc_cv_as != x; then
24580 $as_echo ' .text
24581 .L0:
24582 nop
24583 .data
24584 .long .L0@GOTOFF' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 gcc_cv_as_ix86_gotoff_in_data=yes
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24596 fi
24597 rm -f conftest.o conftest.s
24598 fi
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24601 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24602
24603
24604 cat >>confdefs.h <<_ACEOF
24605 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24606 _ACEOF
24607
24608
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24610 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24611 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24612 $as_echo_n "(cached) " >&6
24613 else
24614 gcc_cv_as_ix86_rep_lock_prefix=no
24615 if test x$gcc_cv_as != x; then
24616 $as_echo 'rep movsl
24617 rep ret
24618 rep nop
24619 rep bsf %ecx, %eax
24620 rep bsr %ecx, %eax
24621 lock addl %edi, (%eax,%esi)
24622 lock orl $0, (%esp)' > conftest.s
24623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24626 ac_status=$?
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24629 then
24630 gcc_cv_as_ix86_rep_lock_prefix=yes
24631 else
24632 echo "configure: failed program was" >&5
24633 cat conftest.s >&5
24634 fi
24635 rm -f conftest.o conftest.s
24636 fi
24637 fi
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24639 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24640 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24641
24642 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24643
24644 fi
24645
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24647 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24648 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24650 else
24651 gcc_cv_as_ix86_tlsgdplt=no
24652 if test x$gcc_cv_as != x; then
24653 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24660 then
24661 if test x$gcc_cv_ld != x \
24662 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24663 gcc_cv_as_ix86_tlsgdplt=yes
24664 fi
24665 rm -f conftest
24666 else
24667 echo "configure: failed program was" >&5
24668 cat conftest.s >&5
24669 fi
24670 rm -f conftest.o conftest.s
24671 fi
24672 fi
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24674 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24675 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24676
24677 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24678
24679 fi
24680
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24682 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24683 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_ix86_tlsldmplt=no
24687 if test x$gcc_cv_as != x; then
24688 $as_echo 'tls_ld:
24689 call tls_ld@tlsldmplt' > conftest.s
24690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24695 test $ac_status = 0; }; }
24696 then
24697 if test x$gcc_cv_ld != x \
24698 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24699 gcc_cv_as_ix86_tlsldmplt=yes
24700 fi
24701 rm -f conftest
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24705 fi
24706 rm -f conftest.o conftest.s
24707 fi
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24710 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24711 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24712
24713 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24714
24715 fi
24716
24717 ;;
24718
24719 ia64*-*-*)
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24721 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24722 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24726 if test $in_tree_gas = yes; then
24727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24728 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24729 fi
24730 elif test x$gcc_cv_as != x; then
24731 $as_echo ' .text
24732 addl r15 = @ltoffx(x#), gp
24733 ;;
24734 ld8.mov r16 = [r15], x#' > conftest.s
24735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740 test $ac_status = 0; }; }
24741 then
24742 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24743 else
24744 echo "configure: failed program was" >&5
24745 cat conftest.s >&5
24746 fi
24747 rm -f conftest.o conftest.s
24748 fi
24749 fi
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24751 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24752 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24753
24754 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24755
24756 fi
24757
24758 ;;
24759
24760 powerpc*-*-*)
24761 case $target in
24762 *-*-aix*) conftest_s=' .machine "pwr5"
24763 .csect .text[PR]
24764 mfcr 3,128';;
24765 *-*-darwin*)
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24767 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24768 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 gcc_cv_as_machine_directive=no
24772 if test x$gcc_cv_as != x; then
24773 $as_echo ' .machine ppc7400' > conftest.s
24774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24780 then
24781 gcc_cv_as_machine_directive=yes
24782 else
24783 echo "configure: failed program was" >&5
24784 cat conftest.s >&5
24785 fi
24786 rm -f conftest.o conftest.s
24787 fi
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24790 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24791
24792 if test x$gcc_cv_as_machine_directive != xyes; then
24793 echo "*** This target requires an assembler supporting \".machine\"" >&2
24794 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24795 test x$build = x$target && exit 1
24796 fi
24797 conftest_s=' .text
24798 mfcr r3,128';;
24799 *) conftest_s=' .machine power4
24800 .text
24801 mfcr 3,128';;
24802 esac
24803
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24805 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24806 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_powerpc_mfcrf=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24812 then gcc_cv_as_powerpc_mfcrf=yes
24813 fi
24814 elif test x$gcc_cv_as != x; then
24815 $as_echo "$conftest_s" > conftest.s
24816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24821 test $ac_status = 0; }; }
24822 then
24823 gcc_cv_as_powerpc_mfcrf=yes
24824 else
24825 echo "configure: failed program was" >&5
24826 cat conftest.s >&5
24827 fi
24828 rm -f conftest.o conftest.s
24829 fi
24830 fi
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24832 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24833 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24834
24835 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24836
24837 fi
24838
24839 case $target in
24840 *-*-aix*) conftest_s=' .machine "pwr5"
24841 .csect .text[PR]
24842 popcntb 3,3';;
24843 *) conftest_s=' .machine power5
24844 .text
24845 popcntb 3,3';;
24846 esac
24847
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24849 $as_echo_n "checking assembler for popcntb support... " >&6; }
24850 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 gcc_cv_as_powerpc_popcntb=no
24854 if test $in_tree_gas = yes; then
24855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24856 then gcc_cv_as_powerpc_popcntb=yes
24857 fi
24858 elif test x$gcc_cv_as != x; then
24859 $as_echo "$conftest_s" > conftest.s
24860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24866 then
24867 gcc_cv_as_powerpc_popcntb=yes
24868 else
24869 echo "configure: failed program was" >&5
24870 cat conftest.s >&5
24871 fi
24872 rm -f conftest.o conftest.s
24873 fi
24874 fi
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24876 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24877 if test $gcc_cv_as_powerpc_popcntb = yes; then
24878
24879 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24880
24881 fi
24882
24883 case $target in
24884 *-*-aix*) conftest_s=' .machine "pwr5x"
24885 .csect .text[PR]
24886 frin 1,1';;
24887 *) conftest_s=' .machine power5
24888 .text
24889 frin 1,1';;
24890 esac
24891
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24893 $as_echo_n "checking assembler for fp round support... " >&6; }
24894 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 gcc_cv_as_powerpc_fprnd=no
24898 if test $in_tree_gas = yes; then
24899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24900 then gcc_cv_as_powerpc_fprnd=yes
24901 fi
24902 elif test x$gcc_cv_as != x; then
24903 $as_echo "$conftest_s" > conftest.s
24904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24910 then
24911 gcc_cv_as_powerpc_fprnd=yes
24912 else
24913 echo "configure: failed program was" >&5
24914 cat conftest.s >&5
24915 fi
24916 rm -f conftest.o conftest.s
24917 fi
24918 fi
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24920 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24921 if test $gcc_cv_as_powerpc_fprnd = yes; then
24922
24923 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24924
24925 fi
24926
24927 case $target in
24928 *-*-aix*) conftest_s=' .machine "pwr6"
24929 .csect .text[PR]
24930 mffgpr 1,3';;
24931 *) conftest_s=' .machine power6
24932 .text
24933 mffgpr 1,3';;
24934 esac
24935
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24937 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24938 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24939 $as_echo_n "(cached) " >&6
24940 else
24941 gcc_cv_as_powerpc_mfpgpr=no
24942 if test $in_tree_gas = yes; then
24943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24944 then gcc_cv_as_powerpc_mfpgpr=yes
24945 fi
24946 elif test x$gcc_cv_as != x; then
24947 $as_echo "$conftest_s" > conftest.s
24948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24954 then
24955 gcc_cv_as_powerpc_mfpgpr=yes
24956 else
24957 echo "configure: failed program was" >&5
24958 cat conftest.s >&5
24959 fi
24960 rm -f conftest.o conftest.s
24961 fi
24962 fi
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24964 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24965 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24966
24967 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24968
24969 fi
24970
24971 case $target in
24972 *-*-aix*) conftest_s=' .csect .text[PR]
24973 LCF..0:
24974 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24975 *-*-darwin*)
24976 conftest_s=' .text
24977 LCF0:
24978 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24979 *) conftest_s=' .text
24980 .LCF0:
24981 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24982 esac
24983
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24985 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24986 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24987 $as_echo_n "(cached) " >&6
24988 else
24989 gcc_cv_as_powerpc_rel16=no
24990 if test $in_tree_gas = yes; then
24991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24992 then gcc_cv_as_powerpc_rel16=yes
24993 fi
24994 elif test x$gcc_cv_as != x; then
24995 $as_echo "$conftest_s" > conftest.s
24996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25002 then
25003 gcc_cv_as_powerpc_rel16=yes
25004 else
25005 echo "configure: failed program was" >&5
25006 cat conftest.s >&5
25007 fi
25008 rm -f conftest.o conftest.s
25009 fi
25010 fi
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25012 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25013 if test $gcc_cv_as_powerpc_rel16 = yes; then
25014
25015 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25016
25017 fi
25018
25019 case $target in
25020 *-*-aix*) conftest_s=' .machine "pwr6"
25021 .csect .text[PR]
25022 cmpb 3,4,5';;
25023 *) conftest_s=' .machine power6
25024 .text
25025 cmpb 3,4,5';;
25026 esac
25027
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25029 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25030 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25032 else
25033 gcc_cv_as_powerpc_cmpb=no
25034 if test $in_tree_gas = yes; then
25035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25036 then gcc_cv_as_powerpc_cmpb=yes
25037 fi
25038 elif test x$gcc_cv_as != x; then
25039 $as_echo "$conftest_s" > conftest.s
25040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }; }
25046 then
25047 gcc_cv_as_powerpc_cmpb=yes
25048 else
25049 echo "configure: failed program was" >&5
25050 cat conftest.s >&5
25051 fi
25052 rm -f conftest.o conftest.s
25053 fi
25054 fi
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25056 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25057 if test $gcc_cv_as_powerpc_cmpb = yes; then
25058
25059 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25060
25061 fi
25062
25063 case $target in
25064 *-*-aix*) conftest_s=' .machine "pwr6"
25065 .csect .text[PR]
25066 dadd 1,2,3';;
25067 *) conftest_s=' .machine power6
25068 .text
25069 dadd 1,2,3';;
25070 esac
25071
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25073 $as_echo_n "checking assembler for decimal float support... " >&6; }
25074 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_powerpc_dfp=no
25078 if test $in_tree_gas = yes; then
25079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25080 then gcc_cv_as_powerpc_dfp=yes
25081 fi
25082 elif test x$gcc_cv_as != x; then
25083 $as_echo "$conftest_s" > conftest.s
25084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; }
25090 then
25091 gcc_cv_as_powerpc_dfp=yes
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25095 fi
25096 rm -f conftest.o conftest.s
25097 fi
25098 fi
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25100 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25101 if test $gcc_cv_as_powerpc_dfp = yes; then
25102
25103 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25104
25105 fi
25106
25107 case $target in
25108 *-*-aix*) conftest_s=' .machine "pwr7"
25109 .csect .text[PR]
25110 lxvd2x 1,2,3';;
25111 *) conftest_s=' .machine power7
25112 .text
25113 lxvd2x 1,2,3';;
25114 esac
25115
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25117 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25118 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25119 $as_echo_n "(cached) " >&6
25120 else
25121 gcc_cv_as_powerpc_vsx=no
25122 if test $in_tree_gas = yes; then
25123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25124 then gcc_cv_as_powerpc_vsx=yes
25125 fi
25126 elif test x$gcc_cv_as != x; then
25127 $as_echo "$conftest_s" > conftest.s
25128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133 test $ac_status = 0; }; }
25134 then
25135 gcc_cv_as_powerpc_vsx=yes
25136 else
25137 echo "configure: failed program was" >&5
25138 cat conftest.s >&5
25139 fi
25140 rm -f conftest.o conftest.s
25141 fi
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25144 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25145 if test $gcc_cv_as_powerpc_vsx = yes; then
25146
25147 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25148
25149 fi
25150
25151 case $target in
25152 *-*-aix*) conftest_s=' .machine "pwr7"
25153 .csect .text[PR]
25154 popcntd 3,3';;
25155 *) conftest_s=' .machine power7
25156 .text
25157 popcntd 3,3';;
25158 esac
25159
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25161 $as_echo_n "checking assembler for popcntd support... " >&6; }
25162 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25165 gcc_cv_as_powerpc_popcntd=no
25166 if test $in_tree_gas = yes; then
25167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25168 then gcc_cv_as_powerpc_popcntd=yes
25169 fi
25170 elif test x$gcc_cv_as != x; then
25171 $as_echo "$conftest_s" > conftest.s
25172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 then
25179 gcc_cv_as_powerpc_popcntd=yes
25180 else
25181 echo "configure: failed program was" >&5
25182 cat conftest.s >&5
25183 fi
25184 rm -f conftest.o conftest.s
25185 fi
25186 fi
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25188 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25189 if test $gcc_cv_as_powerpc_popcntd = yes; then
25190
25191 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25192
25193 fi
25194
25195 case $target in
25196 *-*-aix*) conftest_s=' .csect .text[PR]
25197 lwsync';;
25198 *) conftest_s=' .text
25199 lwsync';;
25200 esac
25201
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25203 $as_echo_n "checking assembler for lwsync support... " >&6; }
25204 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 gcc_cv_as_powerpc_lwsync=no
25208 if test $in_tree_gas = yes; then
25209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25210 then gcc_cv_as_powerpc_lwsync=yes
25211 fi
25212 elif test x$gcc_cv_as != x; then
25213 $as_echo "$conftest_s" > conftest.s
25214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; }; }
25220 then
25221 gcc_cv_as_powerpc_lwsync=yes
25222 else
25223 echo "configure: failed program was" >&5
25224 cat conftest.s >&5
25225 fi
25226 rm -f conftest.o conftest.s
25227 fi
25228 fi
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25230 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25231 if test $gcc_cv_as_powerpc_lwsync = yes; then
25232
25233 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25234
25235 fi
25236
25237 case $target in
25238 *-*-aix*) conftest_s=' .machine "476"
25239 .csect .text[PR]
25240 dci 0';;
25241 *) conftest_s=' .machine "476"
25242 .text
25243 dci 0';;
25244 esac
25245
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25247 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25248 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 gcc_cv_as_powerpc_dci=no
25252 if test $in_tree_gas = yes; then
25253 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25254 then gcc_cv_as_powerpc_dci=yes
25255 fi
25256 elif test x$gcc_cv_as != x; then
25257 $as_echo "$conftest_s" > conftest.s
25258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25264 then
25265 gcc_cv_as_powerpc_dci=yes
25266 else
25267 echo "configure: failed program was" >&5
25268 cat conftest.s >&5
25269 fi
25270 rm -f conftest.o conftest.s
25271 fi
25272 fi
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25274 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25275 if test $gcc_cv_as_powerpc_dci = yes; then
25276
25277 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25278
25279 fi
25280
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25282 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25283 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25286 gcc_cv_as_powerpc_gnu_attribute=no
25287 if test $in_tree_gas = yes; then
25288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25289 then gcc_cv_as_powerpc_gnu_attribute=yes
25290 fi
25291 elif test x$gcc_cv_as != x; then
25292 $as_echo '.gnu_attribute 4,1' > conftest.s
25293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25298 test $ac_status = 0; }; }
25299 then
25300 gcc_cv_as_powerpc_gnu_attribute=yes
25301 else
25302 echo "configure: failed program was" >&5
25303 cat conftest.s >&5
25304 fi
25305 rm -f conftest.o conftest.s
25306 fi
25307 fi
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25309 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25310 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25311
25312 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25313
25314 fi
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25317 $as_echo_n "checking assembler for tls marker support... " >&6; }
25318 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25321 gcc_cv_as_powerpc_tls_markers=no
25322 if test $in_tree_gas = yes; then
25323 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25324 then gcc_cv_as_powerpc_tls_markers=yes
25325 fi
25326 elif test x$gcc_cv_as != x; then
25327 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25333 test $ac_status = 0; }; }
25334 then
25335 gcc_cv_as_powerpc_tls_markers=yes
25336 else
25337 echo "configure: failed program was" >&5
25338 cat conftest.s >&5
25339 fi
25340 rm -f conftest.o conftest.s
25341 fi
25342 fi
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25344 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25345 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25346
25347 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25348
25349 fi
25350
25351 case $target in
25352 *-*-aix*)
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25354 $as_echo_n "checking assembler for .ref support... " >&6; }
25355 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 gcc_cv_as_aix_ref=no
25359 if test $in_tree_gas = yes; then
25360 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25361 then :
25362 fi
25363 elif test x$gcc_cv_as != x; then
25364 $as_echo ' .csect stuff[rw]
25365 stuff:
25366 .long 1
25367 .extern sym
25368 .ref sym
25369 ' > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 gcc_cv_as_aix_ref=yes
25378 else
25379 echo "configure: failed program was" >&5
25380 cat conftest.s >&5
25381 fi
25382 rm -f conftest.o conftest.s
25383 fi
25384 fi
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25386 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25387 if test $gcc_cv_as_aix_ref = yes; then
25388
25389 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25390
25391 fi
25392 ;;
25393 esac
25394 ;;
25395
25396 mips*-*-*)
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25398 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25399 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25400 $as_echo_n "(cached) " >&6
25401 else
25402 gcc_cv_as_mips_explicit_relocs=no
25403 if test $in_tree_gas = yes; then
25404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25405 then gcc_cv_as_mips_explicit_relocs=yes
25406 fi
25407 elif test x$gcc_cv_as != x; then
25408 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25414 test $ac_status = 0; }; }
25415 then
25416 gcc_cv_as_mips_explicit_relocs=yes
25417 else
25418 echo "configure: failed program was" >&5
25419 cat conftest.s >&5
25420 fi
25421 rm -f conftest.o conftest.s
25422 fi
25423 fi
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25425 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25426 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25427 if test x$target_cpu_default = x
25428 then target_cpu_default=MASK_EXPLICIT_RELOCS
25429 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25430 fi
25431 fi
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25433 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25434 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 gcc_cv_as_mips_no_shared=no
25438 if test $in_tree_gas = yes; then
25439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25440 then gcc_cv_as_mips_no_shared=yes
25441 fi
25442 elif test x$gcc_cv_as != x; then
25443 $as_echo 'nop' > conftest.s
25444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25446 (eval $ac_try) 2>&5
25447 ac_status=$?
25448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25449 test $ac_status = 0; }; }
25450 then
25451 gcc_cv_as_mips_no_shared=yes
25452 else
25453 echo "configure: failed program was" >&5
25454 cat conftest.s >&5
25455 fi
25456 rm -f conftest.o conftest.s
25457 fi
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25460 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25461 if test $gcc_cv_as_mips_no_shared = yes; then
25462
25463 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25464
25465 fi
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25468 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25469 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_mips_gnu_attribute=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25475 then gcc_cv_as_mips_gnu_attribute=yes
25476 fi
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo '.gnu_attribute 4,1' > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_mips_gnu_attribute=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25490 fi
25491 rm -f conftest.o conftest.s
25492 fi
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25495 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25496 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25497
25498 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25499
25500 fi
25501
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25503 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25504 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25506 else
25507 gcc_cv_as_mips_dtprelword=no
25508 if test $in_tree_gas = yes; then
25509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25510 then gcc_cv_as_mips_dtprelword=yes
25511 fi
25512 elif test x$gcc_cv_as != x; then
25513 $as_echo '.section .tdata,"awT",@progbits
25514 x:
25515 .word 2
25516 .text
25517 .dtprelword x+0x8000' > conftest.s
25518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25524 then
25525 gcc_cv_as_mips_dtprelword=yes
25526 else
25527 echo "configure: failed program was" >&5
25528 cat conftest.s >&5
25529 fi
25530 rm -f conftest.o conftest.s
25531 fi
25532 fi
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25534 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25535 if test $gcc_cv_as_mips_dtprelword = yes; then
25536
25537 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25538
25539 fi
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25542 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25543 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25544 $as_echo_n "(cached) " >&6
25545 else
25546 gcc_cv_as_mips_dspr1_mult=no
25547 if test x$gcc_cv_as != x; then
25548 $as_echo ' .set mips32r2
25549 .set nodspr2
25550 .set dsp
25551 madd $ac3,$4,$5
25552 maddu $ac3,$4,$5
25553 msub $ac3,$4,$5
25554 msubu $ac3,$4,$5
25555 mult $ac3,$4,$5
25556 multu $ac3,$4,$5' > conftest.s
25557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25559 (eval $ac_try) 2>&5
25560 ac_status=$?
25561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25562 test $ac_status = 0; }; }
25563 then
25564 gcc_cv_as_mips_dspr1_mult=yes
25565 else
25566 echo "configure: failed program was" >&5
25567 cat conftest.s >&5
25568 fi
25569 rm -f conftest.o conftest.s
25570 fi
25571 fi
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25573 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25574 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25575
25576 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25577
25578 fi
25579
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25581 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25582 gcc_cv_as_ld_jalr_reloc=no
25583 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25584 if test $in_tree_ld = yes ; then
25585 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 \
25586 && test $in_tree_ld_is_elf = yes; then
25587 gcc_cv_as_ld_jalr_reloc=yes
25588 fi
25589 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25590 echo ' .ent x' > conftest.s
25591 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25592 echo ' ld $25,%call16(y)($28)' >> conftest.s
25593 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25594 echo '1: jalr $25' >> conftest.s
25595 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25596 echo '1: jalr $25' >> conftest.s
25597 echo ' .end x' >> conftest.s
25598 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25599 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25600 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25601 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25602 gcc_cv_as_ld_jalr_reloc=yes
25603 fi
25604 fi
25605 rm -f conftest.*
25606 fi
25607 fi
25608 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25609 if test x$target_cpu_default = x; then
25610 target_cpu_default=MASK_RELAX_PIC_CALLS
25611 else
25612 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25613 fi
25614 fi
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25616 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25617
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25619 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25620 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25621 $as_echo_n "(cached) " >&6
25622 else
25623 gcc_cv_ld_mips_personality_relaxation=no
25624 if test $in_tree_ld = yes ; then
25625 if test "$gcc_cv_gld_major_version" -eq 2 \
25626 -a "$gcc_cv_gld_minor_version" -ge 21 \
25627 -o "$gcc_cv_gld_major_version" -gt 2; then
25628 gcc_cv_ld_mips_personality_relaxation=yes
25629 fi
25630 elif test x$gcc_cv_as != x \
25631 -a x$gcc_cv_ld != x \
25632 -a x$gcc_cv_readelf != x ; then
25633 cat > conftest.s <<EOF
25634 .cfi_startproc
25635 .cfi_personality 0x80,indirect_ptr
25636 .ent test
25637 test:
25638 nop
25639 .end test
25640 .cfi_endproc
25641
25642 .section .data,"aw",@progbits
25643 indirect_ptr:
25644 .dc.a personality
25645 EOF
25646 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25647 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25648 if $gcc_cv_readelf -d conftest 2>&1 \
25649 | grep TEXTREL > /dev/null 2>&1; then
25650 :
25651 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25652 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25653 :
25654 else
25655 gcc_cv_ld_mips_personality_relaxation=yes
25656 fi
25657 fi
25658 fi
25659 rm -f conftest.s conftest.o conftest
25660 fi
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25662 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25663 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25664
25665 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25666
25667 fi
25668 ;;
25669 esac
25670
25671 # Mips and HP-UX need the GNU assembler.
25672 # Linux on IA64 might be able to use the Intel assembler.
25673
25674 case "$target" in
25675 mips*-*-* | *-*-hpux* )
25676 if test x$gas_flag = xyes \
25677 || test x"$host" != x"$build" \
25678 || test ! -x "$gcc_cv_as" \
25679 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25680 :
25681 else
25682 echo "*** This configuration requires the GNU assembler" >&2
25683 exit 1
25684 fi
25685 ;;
25686 esac
25687
25688 # ??? Not all targets support dwarf2 debug_line, even within a version
25689 # of gas. Moreover, we need to emit a valid instruction to trigger any
25690 # info to the output file. So, as supported targets are added to gas 2.11,
25691 # add some instruction here to (also) show we expect this might work.
25692 # ??? Once 2.11 is released, probably need to add first known working
25693 # version to the per-target configury.
25694 case "$cpu_type" in
25695 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25696 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25697 insn="nop"
25698 ;;
25699 ia64 | s390)
25700 insn="nop 0"
25701 ;;
25702 mmix)
25703 insn="swym 0"
25704 ;;
25705 esac
25706 if test x"$insn" != x; then
25707 conftest_s="\
25708 .file 1 \"conftest.s\"
25709 .loc 1 3 0
25710 $insn"
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25712 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25713 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25715 else
25716 gcc_cv_as_dwarf2_debug_line=no
25717 if test $in_tree_gas = yes; then
25718 if test $in_tree_gas_is_elf = yes \
25719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25720 then gcc_cv_as_dwarf2_debug_line=yes
25721 fi
25722 elif test x$gcc_cv_as != x; then
25723 $as_echo "$conftest_s" > conftest.s
25724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25730 then
25731 if test x$gcc_cv_objdump != x \
25732 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25733 | grep debug_line > /dev/null 2>&1; then
25734 gcc_cv_as_dwarf2_debug_line=yes
25735 fi
25736 else
25737 echo "configure: failed program was" >&5
25738 cat conftest.s >&5
25739 fi
25740 rm -f conftest.o conftest.s
25741 fi
25742 fi
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25744 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25745
25746
25747 # The .debug_line file table must be in the exact order that
25748 # we specified the files, since these indices are also used
25749 # by DW_AT_decl_file. Approximate this test by testing if
25750 # the assembler bitches if the same index is assigned twice.
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25752 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25753 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25754 $as_echo_n "(cached) " >&6
25755 else
25756 gcc_cv_as_dwarf2_file_buggy=no
25757 if test x$gcc_cv_as != x; then
25758 $as_echo ' .file 1 "foo.s"
25759 .file 1 "bar.s"' > conftest.s
25760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25766 then
25767 gcc_cv_as_dwarf2_file_buggy=yes
25768 else
25769 echo "configure: failed program was" >&5
25770 cat conftest.s >&5
25771 fi
25772 rm -f conftest.o conftest.s
25773 fi
25774 fi
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25776 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25777
25778
25779 if test $gcc_cv_as_dwarf2_debug_line = yes \
25780 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25781
25782 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25783
25784 fi
25785
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25787 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25788 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25789 $as_echo_n "(cached) " >&6
25790 else
25791 gcc_cv_as_gdwarf2_flag=no
25792 if test $in_tree_gas = yes; then
25793 if test $in_tree_gas_is_elf = yes \
25794 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25795 then gcc_cv_as_gdwarf2_flag=yes
25796 fi
25797 elif test x$gcc_cv_as != x; then
25798 $as_echo "$insn" > conftest.s
25799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }
25805 then
25806 gcc_cv_as_gdwarf2_flag=yes
25807 else
25808 echo "configure: failed program was" >&5
25809 cat conftest.s >&5
25810 fi
25811 rm -f conftest.o conftest.s
25812 fi
25813 fi
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25815 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25816 if test $gcc_cv_as_gdwarf2_flag = yes; then
25817
25818 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25819
25820 fi
25821
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25823 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25824 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25825 $as_echo_n "(cached) " >&6
25826 else
25827 gcc_cv_as_gstabs_flag=no
25828 if test $in_tree_gas = yes; then
25829 if test $in_tree_gas_is_elf = yes \
25830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25831 then gcc_cv_as_gstabs_flag=yes
25832 fi
25833 elif test x$gcc_cv_as != x; then
25834 $as_echo "$insn" > conftest.s
25835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25841 then
25842 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25843 # and warns about it, but still exits successfully. So check for
25844 # this.
25845 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25850 test $ac_status = 0; }; }
25851 then :
25852 else gcc_cv_as_gstabs_flag=yes
25853 fi
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25857 fi
25858 rm -f conftest.o conftest.s
25859 fi
25860 fi
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25862 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25863 if test $gcc_cv_as_gstabs_flag = yes; then
25864
25865 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25866
25867 fi
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25870 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25871 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_debug_prefix_map_flag=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25877 then gcc_cv_as_debug_prefix_map_flag=yes
25878 fi
25879 elif test x$gcc_cv_as != x; then
25880 $as_echo "$insn" > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_debug_prefix_map_flag=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25892 fi
25893 rm -f conftest.o conftest.s
25894 fi
25895 fi
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25897 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25898 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25899
25900 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25901
25902 fi
25903 fi
25904
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25906 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25907 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25908 $as_echo_n "(cached) " >&6
25909 else
25910 gcc_cv_as_lcomm_with_alignment=no
25911 if test x$gcc_cv_as != x; then
25912 $as_echo '.lcomm bar,4,16' > conftest.s
25913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25918 test $ac_status = 0; }; }
25919 then
25920 gcc_cv_as_lcomm_with_alignment=yes
25921 else
25922 echo "configure: failed program was" >&5
25923 cat conftest.s >&5
25924 fi
25925 rm -f conftest.o conftest.s
25926 fi
25927 fi
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25929 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25930 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25931
25932 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25933
25934 fi
25935
25936 # Check whether --enable-gnu-unique-object was given.
25937 if test "${enable_gnu_unique_object+set}" = set; then :
25938 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25939 yes | no) ;;
25940 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25941 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25942 esac
25943 else
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25945 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25946 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25947 $as_echo_n "(cached) " >&6
25948 else
25949 gcc_cv_as_gnu_unique_object=no
25950 if test $in_tree_gas = yes; then
25951 if test $in_tree_gas_is_elf = yes \
25952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25953 then gcc_cv_as_gnu_unique_object=yes
25954 fi
25955 elif test x$gcc_cv_as != x; then
25956 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
25957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25963 then
25964 gcc_cv_as_gnu_unique_object=yes
25965 else
25966 echo "configure: failed program was" >&5
25967 cat conftest.s >&5
25968 fi
25969 rm -f conftest.o conftest.s
25970 fi
25971 fi
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25973 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25974 if test $gcc_cv_as_gnu_unique_object = yes; then
25975 # We need to unquote above to to use the definition from config.gcc.
25976 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25977 if test x$host = x$build -a x$host = x$target &&
25978 ldd --version 2>/dev/null &&
25979 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25980 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25981 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25982 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25983 if test "$glibcnum" -ge 2011 ; then
25984 enable_gnu_unique_object=yes
25985 fi
25986 fi
25987 fi
25988 fi
25989
25990 if test x$enable_gnu_unique_object = xyes; then
25991
25992 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25993
25994 fi
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25997 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25998 if test "${gcc_cv_as_line_zero+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26000 else
26001 gcc_cv_as_line_zero=no
26002 if test $in_tree_gas = yes; then
26003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26004 then gcc_cv_as_line_zero=yes
26005 fi
26006 elif test "x$gcc_cv_as" != x; then
26007 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26008 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
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 test "x`cat conftest.out`" = x
26015 then
26016 gcc_cv_as_line_zero=yes
26017 else
26018 echo "configure: failed program was" >&5
26019 cat conftest.s >&5
26020 echo "configure: error output was" >&5
26021 cat conftest.out >&5
26022 fi
26023 rm -f conftest.o conftest.s conftest.out
26024 fi
26025 fi
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26027 $as_echo "$gcc_cv_as_line_zero" >&6; }
26028 if test "x$gcc_cv_as_line_zero" = xyes; then
26029
26030 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26031
26032 fi
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26035 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26036 gcc_cv_ld_eh_frame_hdr=no
26037 if test $in_tree_ld = yes ; then
26038 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 \
26039 && test $in_tree_ld_is_elf = yes; then
26040 gcc_cv_ld_eh_frame_hdr=yes
26041 fi
26042 elif test x$gcc_cv_ld != x; then
26043 if echo "$ld_ver" | grep GNU > /dev/null; then
26044 # Check if linker supports --eh-frame-hdr option
26045 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26046 gcc_cv_ld_eh_frame_hdr=yes
26047 fi
26048 else
26049 case "$target" in
26050 *-*-solaris2*)
26051 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26052 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26053 gcc_cv_ld_eh_frame_hdr=yes
26054 fi
26055 ;;
26056 esac
26057 fi
26058 fi
26059
26060 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26061
26062 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26063
26064 fi
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26066 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26067
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26069 $as_echo_n "checking linker position independent executable support... " >&6; }
26070 gcc_cv_ld_pie=no
26071 if test $in_tree_ld = yes ; then
26072 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 \
26073 && test $in_tree_ld_is_elf = yes; then
26074 gcc_cv_ld_pie=yes
26075 fi
26076 elif test x$gcc_cv_ld != x; then
26077 # Check if linker supports -pie option
26078 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26079 gcc_cv_ld_pie=yes
26080 fi
26081 fi
26082 if test x"$gcc_cv_ld_pie" = xyes; then
26083
26084 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26085
26086 fi
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26088 $as_echo "$gcc_cv_ld_pie" >&6; }
26089
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26091 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26092 gcc_cv_ld_eh_gc_sections=no
26093 if test $in_tree_ld = yes ; then
26094 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 \
26095 && test $in_tree_ld_is_elf = yes; then
26096 gcc_cv_ld_eh_gc_sections=yes
26097 fi
26098 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26099 cat > conftest.s <<EOF
26100 .section .text
26101 .globl _start
26102 .type _start, @function
26103 _start:
26104 .long foo
26105 .size _start, .-_start
26106 .section .text.foo,"ax",@progbits
26107 .type foo, @function
26108 foo:
26109 .long 0
26110 .size foo, .-foo
26111 .section .gcc_except_table.foo,"a",@progbits
26112 .L0:
26113 .long 0
26114 .section .eh_frame,"a",@progbits
26115 .long .L0
26116 EOF
26117 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26118 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26119 | grep "gc-sections option ignored" > /dev/null; then
26120 gcc_cv_ld_eh_gc_sections=no
26121 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26122 | grep gcc_except_table > /dev/null; then
26123 gcc_cv_ld_eh_gc_sections=yes
26124 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26125 if test x$gcc_cv_as_comdat_group != xyes; then
26126 gcc_cv_ld_eh_gc_sections=no
26127 cat > conftest.s <<EOF
26128 .section .text
26129 .globl _start
26130 .type _start, @function
26131 _start:
26132 .long foo
26133 .size _start, .-_start
26134 .section .gnu.linkonce.t.foo,"ax",@progbits
26135 .type foo, @function
26136 foo:
26137 .long 0
26138 .size foo, .-foo
26139 .section .gcc_except_table.foo,"a",@progbits
26140 .L0:
26141 .long 0
26142 .section .eh_frame,"a",@progbits
26143 .long .L0
26144 EOF
26145 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26146 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26147 | grep "gc-sections option ignored" > /dev/null; then
26148 gcc_cv_ld_eh_gc_sections=no
26149 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26150 | grep gcc_except_table > /dev/null; then
26151 gcc_cv_ld_eh_gc_sections=yes
26152 fi
26153 fi
26154 fi
26155 fi
26156 fi
26157 rm -f conftest.s conftest.o conftest
26158 fi
26159 case "$target" in
26160 hppa*-*-linux*)
26161 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26162 gcc_cv_ld_eh_gc_sections=no
26163 ;;
26164 esac
26165 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26166
26167 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26168
26169 fi
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26171 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26174 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26175 gcc_cv_ld_eh_gc_sections_bug=no
26176 if test $in_tree_ld = yes ; then
26177 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 \
26178 && test $in_tree_ld_is_elf = yes; then
26179 gcc_cv_ld_eh_gc_sections_bug=yes
26180 fi
26181 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
26182 gcc_cv_ld_eh_gc_sections_bug=yes
26183 cat > conftest.s <<EOF
26184 .section .text
26185 .globl _start
26186 .type _start, @function
26187 _start:
26188 .long foo
26189 .size _start, .-_start
26190 .section .text.startup.foo,"ax",@progbits
26191 .type foo, @function
26192 foo:
26193 .long 0
26194 .size foo, .-foo
26195 .section .gcc_except_table.foo,"a",@progbits
26196 .L0:
26197 .long 0
26198 .section .eh_frame,"a",@progbits
26199 .long .L0
26200 EOF
26201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26202 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26203 | grep "gc-sections option ignored" > /dev/null; then
26204 :
26205 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26206 | grep gcc_except_table > /dev/null; then
26207 gcc_cv_ld_eh_gc_sections_bug=no
26208 fi
26209 fi
26210 rm -f conftest.s conftest.o conftest
26211 fi
26212 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26213
26214 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26215
26216 fi
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26218 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26219
26220 # --------
26221 # UNSORTED
26222 # --------
26223
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26225 $as_echo_n "checking linker --as-needed support... " >&6; }
26226 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26227 $as_echo_n "(cached) " >&6
26228 else
26229 gcc_cv_ld_as_needed=no
26230 if test $in_tree_ld = yes ; then
26231 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 \
26232 && test $in_tree_ld_is_elf = yes; then
26233 gcc_cv_ld_as_needed=yes
26234 fi
26235 elif test x$gcc_cv_ld != x; then
26236 # Check if linker supports --as-needed and --no-as-needed options
26237 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26238 gcc_cv_ld_as_needed=yes
26239 fi
26240 fi
26241
26242 fi
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26244 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26245 if test x"$gcc_cv_ld_as_needed" = xyes; then
26246
26247 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26248
26249 fi
26250
26251 case "$target:$tm_file" in
26252 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26253 case "$target" in
26254 *-*-linux*)
26255 emul_name="-melf64ppc"
26256 ;;
26257 *-*-freebsd*)
26258 emul_name="-melf64ppc_fbsd"
26259 ;;
26260 esac
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26262 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26263 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26264 $as_echo_n "(cached) " >&6
26265 else
26266 gcc_cv_ld_no_dot_syms=no
26267 if test $in_tree_ld = yes ; then
26268 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
26269 gcc_cv_ld_no_dot_syms=yes
26270 fi
26271 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26272 cat > conftest1.s <<EOF
26273 .text
26274 bl .foo
26275 EOF
26276 cat > conftest2.s <<EOF
26277 .section ".opd","aw"
26278 .align 3
26279 .globl foo
26280 .type foo,@function
26281 foo:
26282 .quad .LEfoo,.TOC.@tocbase,0
26283 .text
26284 .LEfoo:
26285 blr
26286 .size foo,.-.LEfoo
26287 EOF
26288 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26289 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26290 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26291 gcc_cv_ld_no_dot_syms=yes
26292 fi
26293 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26294 fi
26295
26296 fi
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26298 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26299 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26300
26301 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26302
26303 fi
26304
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26306 $as_echo_n "checking linker large toc support... " >&6; }
26307 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26308 $as_echo_n "(cached) " >&6
26309 else
26310 gcc_cv_ld_large_toc=no
26311 if test $in_tree_ld = yes ; then
26312 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
26313 gcc_cv_ld_large_toc=yes
26314 fi
26315 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26316 cat > conftest.s <<EOF
26317 .section ".tbss","awT",@nobits
26318 .align 3
26319 ie0: .space 8
26320 .global _start
26321 .text
26322 _start:
26323 addis 9,13,ie0@got@tprel@ha
26324 ld 9,ie0@got@tprel@l(9)
26325 EOF
26326 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26327 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26328 gcc_cv_ld_large_toc=yes
26329 fi
26330 rm -f conftest conftest.o conftest.s
26331 fi
26332
26333 fi
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26335 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26336 if test x"$gcc_cv_ld_large_toc" = xyes; then
26337
26338 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26339
26340 fi
26341 ;;
26342 esac
26343
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26345 $as_echo_n "checking linker --build-id support... " >&6; }
26346 if test "${gcc_cv_ld_buildid+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_ld_buildid=no
26350 if test $in_tree_ld = yes ; then
26351 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26352 "$gcc_cv_gld_minor_version" -ge 18 -o \
26353 "$gcc_cv_gld_major_version" -gt 2 \
26354 && test $in_tree_ld_is_elf = yes; then
26355 gcc_cv_ld_buildid=yes
26356 fi
26357 elif test x$gcc_cv_ld != x; then
26358 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26359 gcc_cv_ld_buildid=yes
26360 fi
26361 fi
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26364 $as_echo "$gcc_cv_ld_buildid" >&6; }
26365 if test x"$gcc_cv_ld_buildid" = xyes; then
26366
26367 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26368
26369 fi
26370
26371 # Check whether --enable-linker-build-id was given.
26372 if test "${enable_linker_build_id+set}" = set; then :
26373 enableval=$enable_linker_build_id;
26374 else
26375 enable_linker_build_id=no
26376 fi
26377
26378
26379 if test x"$enable_linker_build_id" = xyes; then
26380 if test x"$gcc_cv_ld_buildid" = xyes; then
26381
26382 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26383
26384 else
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26386 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26387 fi
26388 fi
26389
26390 # In binutils 2.21, GNU ld gained support for new emulations fully
26391 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26393 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26394 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 gcc_cv_ld_sol2_emulation=no
26398 if test $in_tree_ld = yes ; then
26399 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26400 "$gcc_cv_gld_minor_version" -ge 21 -o \
26401 "$gcc_cv_gld_major_version" -gt 2 \
26402 && test $in_tree_ld_is_elf = yes; then
26403 gcc_cv_ld_sol2_emulation=yes
26404 fi
26405 elif test x$gcc_cv_ld != x; then
26406 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26407 grep _sol2 > /dev/null; then
26408 gcc_cv_ld_sol2_emulation=yes
26409 fi
26410 fi
26411 fi
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26413 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26414 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26415
26416 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26417
26418 fi
26419
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26421 $as_echo_n "checking linker --sysroot support... " >&6; }
26422 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26423 $as_echo_n "(cached) " >&6
26424 else
26425 gcc_cv_ld_sysroot=no
26426 if test $in_tree_ld = yes ; then
26427 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
26428 gcc_cv_ld_sysroot=yes
26429 fi
26430 elif test x$gcc_cv_ld != x; then
26431 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26432 gcc_cv_ld_sysroot=yes
26433 fi
26434 fi
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26437 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26438 if test x"$gcc_cv_ld_sysroot" = xyes; then
26439
26440 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26441
26442 fi
26443
26444 if test x$with_sysroot = x && test x$host = x$target \
26445 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26446 && test "$prefix" != "NONE"; then
26447
26448 cat >>confdefs.h <<_ACEOF
26449 #define PREFIX_INCLUDE_DIR "$prefix/include"
26450 _ACEOF
26451
26452 fi
26453
26454 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26455 if test "x$with_headers" != x; then
26456 target_header_dir=$with_headers
26457 elif test "x$with_sysroot" = x; then
26458 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26459 elif test "x$with_build_sysroot" != "x"; then
26460 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26461 elif test "x$with_sysroot" = xyes; then
26462 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26463 else
26464 target_header_dir="${with_sysroot}${native_system_header_dir}"
26465 fi
26466 else
26467 target_header_dir=${native_system_header_dir}
26468 fi
26469
26470 # Test for stack protector support in target C library.
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26472 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26473 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_libc_provides_ssp=no
26477 case "$target" in
26478 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26479 # glibc 2.4 and later provides __stack_chk_fail and
26480 # either __stack_chk_guard, or TLS access to stack guard canary.
26481 if test -f $target_header_dir/features.h \
26482 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26483 $target_header_dir/features.h > /dev/null; then
26484 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26485 $target_header_dir/features.h > /dev/null; then
26486 gcc_cv_libc_provides_ssp=yes
26487 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26488 $target_header_dir/features.h > /dev/null \
26489 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26490 $target_header_dir/features.h > /dev/null; then
26491 gcc_cv_libc_provides_ssp=yes
26492 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26493 $target_header_dir/features.h > /dev/null && \
26494 test -f $target_header_dir/bits/uClibc_config.h && \
26495 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26496 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26497 gcc_cv_libc_provides_ssp=yes
26498 fi
26499 # all versions of Bionic support stack protector
26500 elif test -f $target_header_dir/sys/cdefs.h \
26501 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26502 $target_header_dir/sys/cdefs.h > /dev/null; then
26503 gcc_cv_libc_provides_ssp=yes
26504 fi
26505 ;;
26506 *-*-gnu*)
26507 # Avoid complicated tests (see
26508 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26509 # simply assert that glibc does provide this, which is true for all
26510 # realistically usable GNU/Hurd configurations.
26511 gcc_cv_libc_provides_ssp=yes;;
26512 *-*-darwin* | *-*-freebsd*)
26513 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26514 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26515 gcc_cv_libc_provides_ssp=yes
26516 else
26517 echo "no __stack_chk_fail on this target"
26518 fi
26519
26520 ;;
26521 *) gcc_cv_libc_provides_ssp=no ;;
26522 esac
26523 fi
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26525 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26526
26527 if test x$gcc_cv_libc_provides_ssp = xyes; then
26528
26529 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26530
26531 fi
26532
26533 # Test for <sys/sdt.h> on the target.
26534
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26536 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26537 have_sys_sdt_h=no
26538 if test -f $target_header_dir/sys/sdt.h; then
26539 have_sys_sdt_h=yes
26540
26541 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26542
26543 fi
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26545 $as_echo "$have_sys_sdt_h" >&6; }
26546
26547 # Check if TFmode long double should be used by default or not.
26548 # Some glibc targets used DFmode long double, but with glibc 2.4
26549 # and later they can use TFmode.
26550 case "$target" in
26551 powerpc*-*-linux* | \
26552 sparc*-*-linux* | \
26553 s390*-*-linux* | \
26554 alpha*-*-linux*)
26555
26556 # Check whether --with-long-double-128 was given.
26557 if test "${with_long_double_128+set}" = set; then :
26558 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26559 else
26560 gcc_cv_target_ldbl128=no
26561 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26562 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26563 && gcc_cv_target_ldbl128=yes
26564
26565 fi
26566
26567 ;;
26568 esac
26569 if test x$gcc_cv_target_ldbl128 = xyes; then
26570
26571 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26572
26573 fi
26574
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26576 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26577 gcc_cv_target_dl_iterate_phdr=unknown
26578 case "$target" in
26579 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26580 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26581 # libdl there, both complicating its use and breaking compatibility
26582 # between Solaris 10 updates.
26583 *-*-solaris2.1[1-9]*)
26584 # <link.h> needs both a dl_iterate_phdr declaration and support for
26585 # compilation with largefile support.
26586 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26587 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26588 gcc_cv_target_dl_iterate_phdr=yes
26589 else
26590 gcc_cv_target_dl_iterate_phdr=no
26591 fi
26592 ;;
26593 esac
26594
26595 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26596
26597 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26598
26599 fi
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26601 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26602
26603 # Find out what GC implementation we want, or may, use.
26604
26605 # Check whether --with-gc was given.
26606 if test "${with_gc+set}" = set; then :
26607 withval=$with_gc; case "$withval" in
26608 page)
26609 GGC=ggc-$withval
26610 ;;
26611 zone)
26612 GGC=ggc-$withval
26613
26614 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26615
26616 ;;
26617 *)
26618 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26619 ;;
26620 esac
26621 else
26622 GGC=ggc-page
26623 fi
26624
26625
26626 echo "Using $GGC for garbage collection."
26627
26628 # Libraries to use on the host. This will normally be set by the top
26629 # level Makefile. Here we simply capture the value for our Makefile.
26630 if test -z "${HOST_LIBS+set}"; then
26631 HOST_LIBS=
26632 fi
26633
26634
26635 # Use the system's zlib library.
26636 zlibdir=-L../zlib
26637 zlibinc="-I\$(srcdir)/../zlib"
26638
26639 # Check whether --with-system-zlib was given.
26640 if test "${with_system_zlib+set}" = set; then :
26641 withval=$with_system_zlib; zlibdir=
26642 zlibinc=
26643
26644 fi
26645
26646
26647
26648
26649
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26651 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26652 # Check whether --enable-maintainer-mode was given.
26653 if test "${enable_maintainer_mode+set}" = set; then :
26654 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26655 else
26656 maintainer_mode=no
26657 fi
26658
26659
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26661 $as_echo "$maintainer_mode" >&6; }
26662
26663 if test "$maintainer_mode" = "yes"; then
26664 MAINT=''
26665 else
26666 MAINT='#'
26667 fi
26668
26669 # --------------
26670 # Language hooks
26671 # --------------
26672
26673 # Make empty files to contain the specs and options for each language.
26674 # Then add #include lines to for a compiler that has specs and/or options.
26675
26676 subdirs=
26677 lang_opt_files=
26678 lang_specs_files=
26679 lang_tree_files=
26680 # These (without "all_") are set in each config-lang.in.
26681 # `language' must be a single word so is spelled singularly.
26682 all_languages=
26683 all_compilers=
26684 all_outputs='Makefile'
26685 # List of language makefile fragments.
26686 all_lang_makefrags=
26687 # Additional files for gengtype
26688 all_gtfiles="$target_gtfiles"
26689
26690 # These are the languages that are set in --enable-languages,
26691 # and are available in the GCC tree.
26692 all_selected_languages=
26693
26694 # Add the language fragments.
26695 # Languages are added via two mechanisms. Some information must be
26696 # recorded in makefile variables, these are defined in config-lang.in.
26697 # We accumulate them and plug them into the main Makefile.
26698 # The other mechanism is a set of hooks for each of the main targets
26699 # like `clean', `install', etc.
26700
26701 language_hooks="Make-hooks"
26702
26703 for lang in ${srcdir}/*/config-lang.in
26704 do
26705 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26706
26707 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26708 if test "x$lang_alias" = x
26709 then
26710 echo "$lang doesn't set \$language." 1>&2
26711 exit 1
26712 fi
26713 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26714 subdirs="$subdirs $subdir"
26715
26716 # $gcc_subdir is where the gcc integration files are to be found
26717 # for a language, both for internal compiler purposes (compiler
26718 # sources implementing front-end to GCC tree converters), and for
26719 # build infrastructure purposes (Make-lang.in, etc.)
26720 #
26721 # This will be <subdir> (relative to $srcdir) if a line like
26722 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26723 # is found in <langdir>/config-lang.in, and will remain <langdir>
26724 # otherwise.
26725 #
26726 # Except for the language alias (fetched above), the regular
26727 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26728 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26729 # only this and the language alias.
26730
26731 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26732 if [ "$gcc_subdir" = "" ]; then
26733 gcc_subdir="$subdir"
26734 fi
26735
26736 case ",$enable_languages," in
26737 *,$lang_alias,*)
26738 all_selected_languages="$all_selected_languages $lang_alias"
26739 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26740 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26741 fi
26742 ;;
26743 esac
26744
26745 language=
26746 boot_language=
26747 compilers=
26748 outputs=
26749 gtfiles=
26750 subdir_requires=
26751 . ${srcdir}/$gcc_subdir/config-lang.in
26752 if test "x$language" = x
26753 then
26754 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26755 exit 1
26756 fi
26757
26758 ok=:
26759 case ",$enable_languages," in
26760 *,$lang_alias,*) ;;
26761 *)
26762 for i in $subdir_requires; do
26763 test -f "${srcdir}/$i/config-lang.in" && continue
26764 ok=false
26765 break
26766 done
26767 ;;
26768 esac
26769 $ok || continue
26770
26771 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26772 if test -f $srcdir/$gcc_subdir/lang.opt; then
26773 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26774 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26775 fi
26776 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26777 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26778 fi
26779 all_languages="$all_languages $language"
26780 all_compilers="$all_compilers $compilers"
26781 all_outputs="$all_outputs $outputs"
26782 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26783 case ",$enable_languages," in
26784 *,lto,*)
26785
26786 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26787
26788 enable_lto=yes
26789
26790 ;;
26791 *) ;;
26792 esac
26793 done
26794
26795 check_languages=
26796 for language in $all_selected_languages
26797 do
26798 check_languages="$check_languages check-$language"
26799 done
26800
26801 # We link each language in with a set of hooks, reached indirectly via
26802 # lang.${target}. Only do so for selected languages.
26803
26804 rm -f Make-hooks
26805 touch Make-hooks
26806 target_list="all.cross start.encap rest.encap tags \
26807 install-common install-man install-info install-pdf install-html dvi \
26808 pdf html uninstall info man srcextra srcman srcinfo \
26809 mostlyclean clean distclean maintainer-clean install-plugin"
26810
26811 for t in $target_list
26812 do
26813 x=
26814 for lang in $all_selected_languages
26815 do
26816 x="$x $lang.$t"
26817 done
26818 echo "lang.$t: $x" >> Make-hooks
26819 done
26820
26821 # --------
26822 # Option include files
26823 # --------
26824
26825 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26826 option_includes="option-includes.mk"
26827
26828
26829 # --------
26830 # UNSORTED
26831 # --------
26832
26833 # Create .gdbinit.
26834
26835 echo "dir ." > .gdbinit
26836 echo "dir ${srcdir}" >> .gdbinit
26837 if test x$gdb_needs_out_file_path = xyes
26838 then
26839 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26840 fi
26841 if test "x$subdirs" != x; then
26842 for s in $subdirs
26843 do
26844 echo "dir ${srcdir}/$s" >> .gdbinit
26845 done
26846 fi
26847 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26848
26849 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26850
26851
26852
26853 # Find a directory in which to install a shared libgcc.
26854
26855 # Check whether --enable-version-specific-runtime-libs was given.
26856 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26857 enableval=$enable_version_specific_runtime_libs;
26858 fi
26859
26860
26861 # Substitute configuration variables
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924 # Echo link setup.
26925 if test x${build} = x${host} ; then
26926 if test x${host} = x${target} ; then
26927 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26928 else
26929 echo "Links are now set up to build a cross-compiler" 1>&2
26930 echo " from ${host} to ${target}." 1>&2
26931 fi
26932 else
26933 if test x${host} = x${target} ; then
26934 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26935 echo " for ${target}." 1>&2
26936 else
26937 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26938 echo " from ${host} to ${target}." 1>&2
26939 fi
26940 fi
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950 if test "x${CLOOGLIBS}" != "x" ; then
26951
26952 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26953
26954 fi
26955
26956 # Check for plugin support
26957 # Check whether --enable-plugin was given.
26958 if test "${enable_plugin+set}" = set; then :
26959 enableval=$enable_plugin; enable_plugin=$enableval
26960 else
26961 enable_plugin=yes; default_plugin=yes
26962 fi
26963
26964
26965 pluginlibs=
26966
26967 case "${host}" in
26968 *-*-darwin*)
26969 if test x$build = x$host; then
26970 export_sym_check="nm${exeext} -g"
26971 elif test x$host = x$target; then
26972 export_sym_check="$gcc_cv_nm -g"
26973 else
26974 export_sym_check=
26975 fi
26976 ;;
26977 *)
26978 if test x$build = x$host; then
26979 export_sym_check="objdump${exeext} -T"
26980 elif test x$host = x$target; then
26981 export_sym_check="$gcc_cv_objdump -T"
26982 else
26983 export_sym_check=
26984 fi
26985 ;;
26986 esac
26987
26988 if test x"$enable_plugin" = x"yes"; then
26989
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26991 $as_echo_n "checking for exported symbols... " >&6; }
26992 if test "x$export_sym_check" != x; then
26993 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26994 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26995 if $export_sym_check conftest | grep foobar > /dev/null; then
26996 : # No need to use a flag
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26998 $as_echo "yes" >&6; }
26999 else
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27001 $as_echo "yes" >&6; }
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27003 $as_echo_n "checking for -rdynamic... " >&6; }
27004 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27005 if $export_sym_check conftest | grep foobar > /dev/null; then
27006 plugin_rdynamic=yes
27007 pluginlibs="-rdynamic"
27008 else
27009 plugin_rdynamic=no
27010 enable_plugin=no
27011 fi
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27013 $as_echo "$plugin_rdynamic" >&6; }
27014 fi
27015 else
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27017 $as_echo "unable to check" >&6; }
27018 fi
27019
27020 # Check -ldl
27021 saved_LIBS="$LIBS"
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27023 $as_echo_n "checking for library containing dlopen... " >&6; }
27024 if test "${ac_cv_search_dlopen+set}" = set; then :
27025 $as_echo_n "(cached) " >&6
27026 else
27027 ac_func_search_save_LIBS=$LIBS
27028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27029 /* end confdefs.h. */
27030
27031 /* Override any GCC internal prototype to avoid an error.
27032 Use char because int might match the return type of a GCC
27033 builtin and then its argument prototype would still apply. */
27034 #ifdef __cplusplus
27035 extern "C"
27036 #endif
27037 char dlopen ();
27038 int
27039 main ()
27040 {
27041 return dlopen ();
27042 ;
27043 return 0;
27044 }
27045 _ACEOF
27046 for ac_lib in '' dl; do
27047 if test -z "$ac_lib"; then
27048 ac_res="none required"
27049 else
27050 ac_res=-l$ac_lib
27051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27052 fi
27053 if ac_fn_c_try_link "$LINENO"; then :
27054 ac_cv_search_dlopen=$ac_res
27055 fi
27056 rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext
27058 if test "${ac_cv_search_dlopen+set}" = set; then :
27059 break
27060 fi
27061 done
27062 if test "${ac_cv_search_dlopen+set}" = set; then :
27063
27064 else
27065 ac_cv_search_dlopen=no
27066 fi
27067 rm conftest.$ac_ext
27068 LIBS=$ac_func_search_save_LIBS
27069 fi
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27071 $as_echo "$ac_cv_search_dlopen" >&6; }
27072 ac_res=$ac_cv_search_dlopen
27073 if test "$ac_res" != no; then :
27074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27075
27076 fi
27077
27078 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27079 pluginlibs="$pluginlibs -ldl"
27080 fi
27081 LIBS="$saved_LIBS"
27082
27083 # Check that we can build shared objects with -fPIC -shared
27084 saved_LDFLAGS="$LDFLAGS"
27085 saved_CFLAGS="$CFLAGS"
27086 case "${host}" in
27087 *-*-darwin*)
27088 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27089 CFLAGS="$CFLAGS -fPIC"
27090 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27091 ;;
27092 *)
27093 CFLAGS="$CFLAGS -fPIC"
27094 LDFLAGS="$LDFLAGS -fPIC -shared"
27095 ;;
27096 esac
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27098 $as_echo_n "checking for -fPIC -shared... " >&6; }
27099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27100 /* end confdefs.h. */
27101 extern int X;
27102 int
27103 main ()
27104 {
27105 return X == 0;
27106 ;
27107 return 0;
27108 }
27109 _ACEOF
27110 if ac_fn_c_try_link "$LINENO"; then :
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27112 $as_echo "yes" >&6; }; have_pic_shared=yes
27113 else
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115 $as_echo "no" >&6; }; have_pic_shared=no
27116 fi
27117 rm -f core conftest.err conftest.$ac_objext \
27118 conftest$ac_exeext conftest.$ac_ext
27119 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27120 pluginlibs=
27121 enable_plugin=no
27122 fi
27123 LDFLAGS="$saved_LDFLAGS"
27124 CFLAGS="$saved_CFLAGS"
27125
27126 # If plugin support had been requested but not available, fail.
27127 if test x"$enable_plugin" = x"no" ; then
27128 if test x"$default_plugin" != x"yes"; then
27129 as_fn_error "
27130 Building GCC with plugin support requires a host that supports
27131 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27132 fi
27133 fi
27134 fi
27135
27136
27137
27138 if test x"$enable_plugin" = x"yes"; then
27139
27140 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27141
27142 fi
27143
27144
27145 # Check whether --enable-libquadmath-support was given.
27146 if test "${enable_libquadmath_support+set}" = set; then :
27147 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27148 else
27149 ENABLE_LIBQUADMATH_SUPPORT=yes
27150 fi
27151
27152 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27153
27154 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27155
27156 fi
27157
27158
27159 # Specify what hash style to use by default.
27160
27161 # Check whether --with-linker-hash-style was given.
27162 if test "${with_linker_hash_style+set}" = set; then :
27163 withval=$with_linker_hash_style; case x"$withval" in
27164 xsysv)
27165 LINKER_HASH_STYLE=sysv
27166 ;;
27167 xgnu)
27168 LINKER_HASH_STYLE=gnu
27169 ;;
27170 xboth)
27171 LINKER_HASH_STYLE=both
27172 ;;
27173 *)
27174 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27175 ;;
27176 esac
27177 else
27178 LINKER_HASH_STYLE=''
27179 fi
27180
27181 if test x"${LINKER_HASH_STYLE}" != x; then
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27185 _ACEOF
27186
27187 fi
27188
27189 # Configure the subdirectories
27190 # AC_CONFIG_SUBDIRS($subdirs)
27191
27192 # Create the Makefile
27193 # and configure language subdirectories
27194 ac_config_files="$ac_config_files $all_outputs"
27195
27196
27197 ac_config_commands="$ac_config_commands default"
27198
27199 cat >confcache <<\_ACEOF
27200 # This file is a shell script that caches the results of configure
27201 # tests run on this system so they can be shared between configure
27202 # scripts and configure runs, see configure's option --config-cache.
27203 # It is not useful on other systems. If it contains results you don't
27204 # want to keep, you may remove or edit it.
27205 #
27206 # config.status only pays attention to the cache file if you give it
27207 # the --recheck option to rerun configure.
27208 #
27209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27211 # following values.
27212
27213 _ACEOF
27214
27215 # The following way of writing the cache mishandles newlines in values,
27216 # but we know of no workaround that is simple, portable, and efficient.
27217 # So, we kill variables containing newlines.
27218 # Ultrix sh set writes to stderr and can't be redirected directly,
27219 # and sets the high bit in the cache file unless we assign to the vars.
27220 (
27221 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27222 eval ac_val=\$$ac_var
27223 case $ac_val in #(
27224 *${as_nl}*)
27225 case $ac_var in #(
27226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27228 esac
27229 case $ac_var in #(
27230 _ | IFS | as_nl) ;; #(
27231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27232 *) { eval $ac_var=; unset $ac_var;} ;;
27233 esac ;;
27234 esac
27235 done
27236
27237 (set) 2>&1 |
27238 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27239 *${as_nl}ac_space=\ *)
27240 # `set' does not quote correctly, so add quotes: double-quote
27241 # substitution turns \\\\ into \\, and sed turns \\ into \.
27242 sed -n \
27243 "s/'/'\\\\''/g;
27244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27245 ;; #(
27246 *)
27247 # `set' quotes correctly as required by POSIX, so do not add quotes.
27248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27249 ;;
27250 esac |
27251 sort
27252 ) |
27253 sed '
27254 /^ac_cv_env_/b end
27255 t clear
27256 :clear
27257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27258 t end
27259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27260 :end' >>confcache
27261 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27262 if test -w "$cache_file"; then
27263 test "x$cache_file" != "x/dev/null" &&
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27265 $as_echo "$as_me: updating cache $cache_file" >&6;}
27266 cat confcache >$cache_file
27267 else
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27270 fi
27271 fi
27272 rm -f confcache
27273
27274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27275 # Let make expand exec_prefix.
27276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27277
27278 DEFS=-DHAVE_CONFIG_H
27279
27280 ac_libobjs=
27281 ac_ltlibobjs=
27282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27283 # 1. Remove the extension, and $U if already installed.
27284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27287 # will be set to the directory where LIBOBJS objects are built.
27288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27290 done
27291 LIBOBJS=$ac_libobjs
27292
27293 LTLIBOBJS=$ac_ltlibobjs
27294
27295
27296
27297
27298 : ${CONFIG_STATUS=./config.status}
27299 ac_write_fail=0
27300 ac_clean_files_save=$ac_clean_files
27301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27304 as_write_fail=0
27305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27306 #! $SHELL
27307 # Generated by $as_me.
27308 # Run this file to recreate the current configuration.
27309 # Compiler output produced by configure, useful for debugging
27310 # configure, is in config.log if it exists.
27311
27312 debug=false
27313 ac_cs_recheck=false
27314 ac_cs_silent=false
27315
27316 SHELL=\${CONFIG_SHELL-$SHELL}
27317 export SHELL
27318 _ASEOF
27319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27320 ## -------------------- ##
27321 ## M4sh Initialization. ##
27322 ## -------------------- ##
27323
27324 # Be more Bourne compatible
27325 DUALCASE=1; export DUALCASE # for MKS sh
27326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27327 emulate sh
27328 NULLCMD=:
27329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27330 # is contrary to our usage. Disable this feature.
27331 alias -g '${1+"$@"}'='"$@"'
27332 setopt NO_GLOB_SUBST
27333 else
27334 case `(set -o) 2>/dev/null` in #(
27335 *posix*) :
27336 set -o posix ;; #(
27337 *) :
27338 ;;
27339 esac
27340 fi
27341
27342
27343 as_nl='
27344 '
27345 export as_nl
27346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27347 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27350 # Prefer a ksh shell builtin over an external printf program on Solaris,
27351 # but without wasting forks for bash or zsh.
27352 if test -z "$BASH_VERSION$ZSH_VERSION" \
27353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27354 as_echo='print -r --'
27355 as_echo_n='print -rn --'
27356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27357 as_echo='printf %s\n'
27358 as_echo_n='printf %s'
27359 else
27360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27362 as_echo_n='/usr/ucb/echo -n'
27363 else
27364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27365 as_echo_n_body='eval
27366 arg=$1;
27367 case $arg in #(
27368 *"$as_nl"*)
27369 expr "X$arg" : "X\\(.*\\)$as_nl";
27370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27371 esac;
27372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27373 '
27374 export as_echo_n_body
27375 as_echo_n='sh -c $as_echo_n_body as_echo'
27376 fi
27377 export as_echo_body
27378 as_echo='sh -c $as_echo_body as_echo'
27379 fi
27380
27381 # The user is always right.
27382 if test "${PATH_SEPARATOR+set}" != set; then
27383 PATH_SEPARATOR=:
27384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27386 PATH_SEPARATOR=';'
27387 }
27388 fi
27389
27390
27391 # IFS
27392 # We need space, tab and new line, in precisely that order. Quoting is
27393 # there to prevent editors from complaining about space-tab.
27394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27395 # splitting by setting IFS to empty value.)
27396 IFS=" "" $as_nl"
27397
27398 # Find who we are. Look in the path if we contain no directory separator.
27399 case $0 in #((
27400 *[\\/]* ) as_myself=$0 ;;
27401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27402 for as_dir in $PATH
27403 do
27404 IFS=$as_save_IFS
27405 test -z "$as_dir" && as_dir=.
27406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27407 done
27408 IFS=$as_save_IFS
27409
27410 ;;
27411 esac
27412 # We did not find ourselves, most probably we were run as `sh COMMAND'
27413 # in which case we are not to be found in the path.
27414 if test "x$as_myself" = x; then
27415 as_myself=$0
27416 fi
27417 if test ! -f "$as_myself"; then
27418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27419 exit 1
27420 fi
27421
27422 # Unset variables that we do not need and which cause bugs (e.g. in
27423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27424 # suppresses any "Segmentation fault" message there. '((' could
27425 # trigger a bug in pdksh 5.2.14.
27426 for as_var in BASH_ENV ENV MAIL MAILPATH
27427 do eval test x\${$as_var+set} = xset \
27428 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27429 done
27430 PS1='$ '
27431 PS2='> '
27432 PS4='+ '
27433
27434 # NLS nuisances.
27435 LC_ALL=C
27436 export LC_ALL
27437 LANGUAGE=C
27438 export LANGUAGE
27439
27440 # CDPATH.
27441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27442
27443
27444 # as_fn_error ERROR [LINENO LOG_FD]
27445 # ---------------------------------
27446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27448 # script with status $?, using 1 if that was 0.
27449 as_fn_error ()
27450 {
27451 as_status=$?; test $as_status -eq 0 && as_status=1
27452 if test "$3"; then
27453 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27455 fi
27456 $as_echo "$as_me: error: $1" >&2
27457 as_fn_exit $as_status
27458 } # as_fn_error
27459
27460
27461 # as_fn_set_status STATUS
27462 # -----------------------
27463 # Set $? to STATUS, without forking.
27464 as_fn_set_status ()
27465 {
27466 return $1
27467 } # as_fn_set_status
27468
27469 # as_fn_exit STATUS
27470 # -----------------
27471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27472 as_fn_exit ()
27473 {
27474 set +e
27475 as_fn_set_status $1
27476 exit $1
27477 } # as_fn_exit
27478
27479 # as_fn_unset VAR
27480 # ---------------
27481 # Portably unset VAR.
27482 as_fn_unset ()
27483 {
27484 { eval $1=; unset $1;}
27485 }
27486 as_unset=as_fn_unset
27487 # as_fn_append VAR VALUE
27488 # ----------------------
27489 # Append the text in VALUE to the end of the definition contained in VAR. Take
27490 # advantage of any shell optimizations that allow amortized linear growth over
27491 # repeated appends, instead of the typical quadratic growth present in naive
27492 # implementations.
27493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27494 eval 'as_fn_append ()
27495 {
27496 eval $1+=\$2
27497 }'
27498 else
27499 as_fn_append ()
27500 {
27501 eval $1=\$$1\$2
27502 }
27503 fi # as_fn_append
27504
27505 # as_fn_arith ARG...
27506 # ------------------
27507 # Perform arithmetic evaluation on the ARGs, and store the result in the
27508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27509 # must be portable across $(()) and expr.
27510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27511 eval 'as_fn_arith ()
27512 {
27513 as_val=$(( $* ))
27514 }'
27515 else
27516 as_fn_arith ()
27517 {
27518 as_val=`expr "$@" || test $? -eq 1`
27519 }
27520 fi # as_fn_arith
27521
27522
27523 if expr a : '\(a\)' >/dev/null 2>&1 &&
27524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27525 as_expr=expr
27526 else
27527 as_expr=false
27528 fi
27529
27530 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27531 as_basename=basename
27532 else
27533 as_basename=false
27534 fi
27535
27536 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27537 as_dirname=dirname
27538 else
27539 as_dirname=false
27540 fi
27541
27542 as_me=`$as_basename -- "$0" ||
27543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27544 X"$0" : 'X\(//\)$' \| \
27545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27546 $as_echo X/"$0" |
27547 sed '/^.*\/\([^/][^/]*\)\/*$/{
27548 s//\1/
27549 q
27550 }
27551 /^X\/\(\/\/\)$/{
27552 s//\1/
27553 q
27554 }
27555 /^X\/\(\/\).*/{
27556 s//\1/
27557 q
27558 }
27559 s/.*/./; q'`
27560
27561 # Avoid depending upon Character Ranges.
27562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27565 as_cr_digits='0123456789'
27566 as_cr_alnum=$as_cr_Letters$as_cr_digits
27567
27568 ECHO_C= ECHO_N= ECHO_T=
27569 case `echo -n x` in #(((((
27570 -n*)
27571 case `echo 'xy\c'` in
27572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27573 xy) ECHO_C='\c';;
27574 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27575 ECHO_T=' ';;
27576 esac;;
27577 *)
27578 ECHO_N='-n';;
27579 esac
27580
27581 rm -f conf$$ conf$$.exe conf$$.file
27582 if test -d conf$$.dir; then
27583 rm -f conf$$.dir/conf$$.file
27584 else
27585 rm -f conf$$.dir
27586 mkdir conf$$.dir 2>/dev/null
27587 fi
27588 if (echo >conf$$.file) 2>/dev/null; then
27589 if ln -s conf$$.file conf$$ 2>/dev/null; then
27590 as_ln_s='ln -s'
27591 # ... but there are two gotchas:
27592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27594 # In both cases, we have to default to `cp -p'.
27595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27596 as_ln_s='cp -p'
27597 elif ln conf$$.file conf$$ 2>/dev/null; then
27598 as_ln_s=ln
27599 else
27600 as_ln_s='cp -p'
27601 fi
27602 else
27603 as_ln_s='cp -p'
27604 fi
27605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27606 rmdir conf$$.dir 2>/dev/null
27607
27608
27609 # as_fn_mkdir_p
27610 # -------------
27611 # Create "$as_dir" as a directory, including parents if necessary.
27612 as_fn_mkdir_p ()
27613 {
27614
27615 case $as_dir in #(
27616 -*) as_dir=./$as_dir;;
27617 esac
27618 test -d "$as_dir" || eval $as_mkdir_p || {
27619 as_dirs=
27620 while :; do
27621 case $as_dir in #(
27622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27623 *) as_qdir=$as_dir;;
27624 esac
27625 as_dirs="'$as_qdir' $as_dirs"
27626 as_dir=`$as_dirname -- "$as_dir" ||
27627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27628 X"$as_dir" : 'X\(//\)[^/]' \| \
27629 X"$as_dir" : 'X\(//\)$' \| \
27630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27631 $as_echo X"$as_dir" |
27632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27633 s//\1/
27634 q
27635 }
27636 /^X\(\/\/\)[^/].*/{
27637 s//\1/
27638 q
27639 }
27640 /^X\(\/\/\)$/{
27641 s//\1/
27642 q
27643 }
27644 /^X\(\/\).*/{
27645 s//\1/
27646 q
27647 }
27648 s/.*/./; q'`
27649 test -d "$as_dir" && break
27650 done
27651 test -z "$as_dirs" || eval "mkdir $as_dirs"
27652 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27653
27654
27655 } # as_fn_mkdir_p
27656 if mkdir -p . 2>/dev/null; then
27657 as_mkdir_p='mkdir -p "$as_dir"'
27658 else
27659 test -d ./-p && rmdir ./-p
27660 as_mkdir_p=false
27661 fi
27662
27663 if test -x / >/dev/null 2>&1; then
27664 as_test_x='test -x'
27665 else
27666 if ls -dL / >/dev/null 2>&1; then
27667 as_ls_L_option=L
27668 else
27669 as_ls_L_option=
27670 fi
27671 as_test_x='
27672 eval sh -c '\''
27673 if test -d "$1"; then
27674 test -d "$1/.";
27675 else
27676 case $1 in #(
27677 -*)set "./$1";;
27678 esac;
27679 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27680 ???[sx]*):;;*)false;;esac;fi
27681 '\'' sh
27682 '
27683 fi
27684 as_executable_p=$as_test_x
27685
27686 # Sed expression to map a string onto a valid CPP name.
27687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27688
27689 # Sed expression to map a string onto a valid variable name.
27690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27691
27692
27693 exec 6>&1
27694 ## ----------------------------------- ##
27695 ## Main body of $CONFIG_STATUS script. ##
27696 ## ----------------------------------- ##
27697 _ASEOF
27698 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27699
27700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27701 # Save the log message, to keep $0 and so on meaningful, and to
27702 # report actual input values of CONFIG_FILES etc. instead of their
27703 # values after options handling.
27704 ac_log="
27705 This file was extended by $as_me, which was
27706 generated by GNU Autoconf 2.64. Invocation command line was
27707
27708 CONFIG_FILES = $CONFIG_FILES
27709 CONFIG_HEADERS = $CONFIG_HEADERS
27710 CONFIG_LINKS = $CONFIG_LINKS
27711 CONFIG_COMMANDS = $CONFIG_COMMANDS
27712 $ $0 $@
27713
27714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27715 "
27716
27717 _ACEOF
27718
27719 case $ac_config_files in *"
27720 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27721 esac
27722
27723 case $ac_config_headers in *"
27724 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27725 esac
27726
27727
27728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27729 # Files that config.status was made for.
27730 config_files="$ac_config_files"
27731 config_headers="$ac_config_headers"
27732 config_commands="$ac_config_commands"
27733
27734 _ACEOF
27735
27736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27737 ac_cs_usage="\
27738 \`$as_me' instantiates files and other configuration actions
27739 from templates according to the current configuration. Unless the files
27740 and actions are specified as TAGs, all are instantiated by default.
27741
27742 Usage: $0 [OPTION]... [TAG]...
27743
27744 -h, --help print this help, then exit
27745 -V, --version print version number and configuration settings, then exit
27746 -q, --quiet, --silent
27747 do not print progress messages
27748 -d, --debug don't remove temporary files
27749 --recheck update $as_me by reconfiguring in the same conditions
27750 --file=FILE[:TEMPLATE]
27751 instantiate the configuration file FILE
27752 --header=FILE[:TEMPLATE]
27753 instantiate the configuration header FILE
27754
27755 Configuration files:
27756 $config_files
27757
27758 Configuration headers:
27759 $config_headers
27760
27761 Configuration commands:
27762 $config_commands
27763
27764 Report bugs to the package provider."
27765
27766 _ACEOF
27767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27768 ac_cs_version="\\
27769 config.status
27770 configured by $0, generated by GNU Autoconf 2.64,
27771 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27772
27773 Copyright (C) 2009 Free Software Foundation, Inc.
27774 This config.status script is free software; the Free Software Foundation
27775 gives unlimited permission to copy, distribute and modify it."
27776
27777 ac_pwd='$ac_pwd'
27778 srcdir='$srcdir'
27779 AWK='$AWK'
27780 test -n "\$AWK" || AWK=awk
27781 _ACEOF
27782
27783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27784 # The default lists apply if the user does not specify any file.
27785 ac_need_defaults=:
27786 while test $# != 0
27787 do
27788 case $1 in
27789 --*=*)
27790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27791 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27792 ac_shift=:
27793 ;;
27794 *)
27795 ac_option=$1
27796 ac_optarg=$2
27797 ac_shift=shift
27798 ;;
27799 esac
27800
27801 case $ac_option in
27802 # Handling of the options.
27803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27804 ac_cs_recheck=: ;;
27805 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27806 $as_echo "$ac_cs_version"; exit ;;
27807 --debug | --debu | --deb | --de | --d | -d )
27808 debug=: ;;
27809 --file | --fil | --fi | --f )
27810 $ac_shift
27811 case $ac_optarg in
27812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27813 esac
27814 as_fn_append CONFIG_FILES " '$ac_optarg'"
27815 ac_need_defaults=false;;
27816 --header | --heade | --head | --hea )
27817 $ac_shift
27818 case $ac_optarg in
27819 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27820 esac
27821 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27822 ac_need_defaults=false;;
27823 --he | --h)
27824 # Conflict between --help and --header
27825 as_fn_error "ambiguous option: \`$1'
27826 Try \`$0 --help' for more information.";;
27827 --help | --hel | -h )
27828 $as_echo "$ac_cs_usage"; exit ;;
27829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27831 ac_cs_silent=: ;;
27832
27833 # This is an error.
27834 -*) as_fn_error "unrecognized option: \`$1'
27835 Try \`$0 --help' for more information." ;;
27836
27837 *) as_fn_append ac_config_targets " $1"
27838 ac_need_defaults=false ;;
27839
27840 esac
27841 shift
27842 done
27843
27844 ac_configure_extra_args=
27845
27846 if $ac_cs_silent; then
27847 exec 6>/dev/null
27848 ac_configure_extra_args="$ac_configure_extra_args --silent"
27849 fi
27850
27851 _ACEOF
27852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27853 if \$ac_cs_recheck; then
27854 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27855 shift
27856 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27857 CONFIG_SHELL='$SHELL'
27858 export CONFIG_SHELL
27859 exec "\$@"
27860 fi
27861
27862 _ACEOF
27863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27864 exec 5>>config.log
27865 {
27866 echo
27867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27868 ## Running $as_me. ##
27869 _ASBOX
27870 $as_echo "$ac_log"
27871 } >&5
27872
27873 _ACEOF
27874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27875 #
27876 # INIT-COMMANDS
27877 #
27878 subdirs='$subdirs'
27879
27880 _ACEOF
27881
27882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27883
27884 # Handling of arguments.
27885 for ac_config_target in $ac_config_targets
27886 do
27887 case $ac_config_target in
27888 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27889 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27890 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27891 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27892 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27893 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27894
27895 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27896 esac
27897 done
27898
27899
27900 # If the user did not use the arguments to specify the items to instantiate,
27901 # then the envvar interface is used. Set only those that are not.
27902 # We use the long form for the default assignment because of an extremely
27903 # bizarre bug on SunOS 4.1.3.
27904 if $ac_need_defaults; then
27905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27908 fi
27909
27910 # Have a temporary directory for convenience. Make it in the build tree
27911 # simply because there is no reason against having it here, and in addition,
27912 # creating and moving files from /tmp can sometimes cause problems.
27913 # Hook for its removal unless debugging.
27914 # Note that there is a small window in which the directory will not be cleaned:
27915 # after its creation but before its name has been assigned to `$tmp'.
27916 $debug ||
27917 {
27918 tmp=
27919 trap 'exit_status=$?
27920 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27921 ' 0
27922 trap 'as_fn_exit 1' 1 2 13 15
27923 }
27924 # Create a (secure) tmp directory for tmp files.
27925
27926 {
27927 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27928 test -n "$tmp" && test -d "$tmp"
27929 } ||
27930 {
27931 tmp=./conf$$-$RANDOM
27932 (umask 077 && mkdir "$tmp")
27933 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27934
27935 # Set up the scripts for CONFIG_FILES section.
27936 # No need to generate them if there are no CONFIG_FILES.
27937 # This happens for instance with `./config.status config.h'.
27938 if test -n "$CONFIG_FILES"; then
27939
27940 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27941 ac_cs_awk_getline=:
27942 ac_cs_awk_pipe_init=
27943 ac_cs_awk_read_file='
27944 while ((getline aline < (F[key])) > 0)
27945 print(aline)
27946 close(F[key])'
27947 ac_cs_awk_pipe_fini=
27948 else
27949 ac_cs_awk_getline=false
27950 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27951 ac_cs_awk_read_file='
27952 print "|#_!!_#|"
27953 print "cat " F[key] " &&"
27954 '$ac_cs_awk_pipe_init
27955 # The final `:' finishes the AND list.
27956 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27957 fi
27958 ac_cr=`echo X | tr X '\015'`
27959 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27960 # But we know of no other shell where ac_cr would be empty at this
27961 # point, so we can use a bashism as a fallback.
27962 if test "x$ac_cr" = x; then
27963 eval ac_cr=\$\'\\r\'
27964 fi
27965 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27966 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27967 ac_cs_awk_cr='\r'
27968 else
27969 ac_cs_awk_cr=$ac_cr
27970 fi
27971
27972 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27973 _ACEOF
27974
27975 # Create commands to substitute file output variables.
27976 {
27977 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27978 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27979 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27980 echo "_ACAWK" &&
27981 echo "_ACEOF"
27982 } >conf$$files.sh &&
27983 . ./conf$$files.sh ||
27984 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27985 rm -f conf$$files.sh
27986
27987 {
27988 echo "cat >conf$$subs.awk <<_ACEOF" &&
27989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27990 echo "_ACEOF"
27991 } >conf$$subs.sh ||
27992 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27994 ac_delim='%!_!# '
27995 for ac_last_try in false false false false false :; do
27996 . ./conf$$subs.sh ||
27997 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27998
27999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28000 if test $ac_delim_n = $ac_delim_num; then
28001 break
28002 elif $ac_last_try; then
28003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28004 else
28005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28006 fi
28007 done
28008 rm -f conf$$subs.sh
28009
28010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28011 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28012 _ACEOF
28013 sed -n '
28014 h
28015 s/^/S["/; s/!.*/"]=/
28016 p
28017 g
28018 s/^[^!]*!//
28019 :repl
28020 t repl
28021 s/'"$ac_delim"'$//
28022 t delim
28023 :nl
28024 h
28025 s/\(.\{148\}\).*/\1/
28026 t more1
28027 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28028 p
28029 n
28030 b repl
28031 :more1
28032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28033 p
28034 g
28035 s/.\{148\}//
28036 t nl
28037 :delim
28038 h
28039 s/\(.\{148\}\).*/\1/
28040 t more2
28041 s/["\\]/\\&/g; s/^/"/; s/$/"/
28042 p
28043 b
28044 :more2
28045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28046 p
28047 g
28048 s/.\{148\}//
28049 t delim
28050 ' <conf$$subs.awk | sed '
28051 /^[^""]/{
28052 N
28053 s/\n//
28054 }
28055 ' >>$CONFIG_STATUS || ac_write_fail=1
28056 rm -f conf$$subs.awk
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28058 _ACAWK
28059 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28060 for (key in S) S_is_set[key] = 1
28061 FS = "\a"
28062 \$ac_cs_awk_pipe_init
28063 }
28064 {
28065 line = $ 0
28066 nfields = split(line, field, "@")
28067 substed = 0
28068 len = length(field[1])
28069 for (i = 2; i < nfields; i++) {
28070 key = field[i]
28071 keylen = length(key)
28072 if (S_is_set[key]) {
28073 value = S[key]
28074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28075 len += length(value) + length(field[++i])
28076 substed = 1
28077 } else
28078 len += 1 + keylen
28079 }
28080 if (nfields == 3 && !substed) {
28081 key = field[2]
28082 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28083 \$ac_cs_awk_read_file
28084 next
28085 }
28086 }
28087 print line
28088 }
28089 \$ac_cs_awk_pipe_fini
28090 _ACAWK
28091 _ACEOF
28092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28095 else
28096 cat
28097 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28098 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28099 _ACEOF
28100
28101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28103 # trailing colons and then remove the whole line if VPATH becomes empty
28104 # (actually we leave an empty line to preserve line numbers).
28105 if test "x$srcdir" = x.; then
28106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28107 s/:*\$(srcdir):*/:/
28108 s/:*\${srcdir}:*/:/
28109 s/:*@srcdir@:*/:/
28110 s/^\([^=]*=[ ]*\):*/\1/
28111 s/:*$//
28112 s/^[^=]*=[ ]*$//
28113 }'
28114 fi
28115
28116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28117 fi # test -n "$CONFIG_FILES"
28118
28119 # Set up the scripts for CONFIG_HEADERS section.
28120 # No need to generate them if there are no CONFIG_HEADERS.
28121 # This happens for instance with `./config.status Makefile'.
28122 if test -n "$CONFIG_HEADERS"; then
28123 cat >"$tmp/defines.awk" <<\_ACAWK ||
28124 BEGIN {
28125 _ACEOF
28126
28127 # Transform confdefs.h into an awk script `defines.awk', embedded as
28128 # here-document in config.status, that substitutes the proper values into
28129 # config.h.in to produce config.h.
28130
28131 # Create a delimiter string that does not exist in confdefs.h, to ease
28132 # handling of long lines.
28133 ac_delim='%!_!# '
28134 for ac_last_try in false false :; do
28135 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28136 if test -z "$ac_t"; then
28137 break
28138 elif $ac_last_try; then
28139 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28140 else
28141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28142 fi
28143 done
28144
28145 # For the awk script, D is an array of macro values keyed by name,
28146 # likewise P contains macro parameters if any. Preserve backslash
28147 # newline sequences.
28148
28149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28150 sed -n '
28151 s/.\{148\}/&'"$ac_delim"'/g
28152 t rset
28153 :rset
28154 s/^[ ]*#[ ]*define[ ][ ]*/ /
28155 t def
28156 d
28157 :def
28158 s/\\$//
28159 t bsnl
28160 s/["\\]/\\&/g
28161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28162 D["\1"]=" \3"/p
28163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28164 d
28165 :bsnl
28166 s/["\\]/\\&/g
28167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28168 D["\1"]=" \3\\\\\\n"\\/p
28169 t cont
28170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28171 t cont
28172 d
28173 :cont
28174 n
28175 s/.\{148\}/&'"$ac_delim"'/g
28176 t clear
28177 :clear
28178 s/\\$//
28179 t bsnlc
28180 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28181 d
28182 :bsnlc
28183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28184 b cont
28185 ' <confdefs.h | sed '
28186 s/'"$ac_delim"'/"\\\
28187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28188
28189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28190 for (key in D) D_is_set[key] = 1
28191 FS = "\a"
28192 }
28193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28194 line = \$ 0
28195 split(line, arg, " ")
28196 if (arg[1] == "#") {
28197 defundef = arg[2]
28198 mac1 = arg[3]
28199 } else {
28200 defundef = substr(arg[1], 2)
28201 mac1 = arg[2]
28202 }
28203 split(mac1, mac2, "(") #)
28204 macro = mac2[1]
28205 prefix = substr(line, 1, index(line, defundef) - 1)
28206 if (D_is_set[macro]) {
28207 # Preserve the white space surrounding the "#".
28208 print prefix "define", macro P[macro] D[macro]
28209 next
28210 } else {
28211 # Replace #undef with comments. This is necessary, for example,
28212 # in the case of _POSIX_SOURCE, which is predefined and required
28213 # on some systems where configure will not decide to define it.
28214 if (defundef == "undef") {
28215 print "/*", prefix defundef, macro, "*/"
28216 next
28217 }
28218 }
28219 }
28220 { print }
28221 _ACAWK
28222 _ACEOF
28223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28224 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28225 fi # test -n "$CONFIG_HEADERS"
28226
28227
28228 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28229 shift
28230 for ac_tag
28231 do
28232 case $ac_tag in
28233 :[FHLC]) ac_mode=$ac_tag; continue;;
28234 esac
28235 case $ac_mode$ac_tag in
28236 :[FHL]*:*);;
28237 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28238 :[FH]-) ac_tag=-:-;;
28239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28240 esac
28241 ac_save_IFS=$IFS
28242 IFS=:
28243 set x $ac_tag
28244 IFS=$ac_save_IFS
28245 shift
28246 ac_file=$1
28247 shift
28248
28249 case $ac_mode in
28250 :L) ac_source=$1;;
28251 :[FH])
28252 ac_file_inputs=
28253 for ac_f
28254 do
28255 case $ac_f in
28256 -) ac_f="$tmp/stdin";;
28257 *) # Look for the file first in the build tree, then in the source tree
28258 # (if the path is not absolute). The absolute path cannot be DOS-style,
28259 # because $ac_f cannot contain `:'.
28260 test -f "$ac_f" ||
28261 case $ac_f in
28262 [\\/$]*) false;;
28263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28264 esac ||
28265 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28266 esac
28267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28268 as_fn_append ac_file_inputs " '$ac_f'"
28269 done
28270
28271 # Let's still pretend it is `configure' which instantiates (i.e., don't
28272 # use $as_me), people would be surprised to read:
28273 # /* config.h. Generated by config.status. */
28274 configure_input='Generated from '`
28275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28276 `' by configure.'
28277 if test x"$ac_file" != x-; then
28278 configure_input="$ac_file. $configure_input"
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28280 $as_echo "$as_me: creating $ac_file" >&6;}
28281 fi
28282 # Neutralize special characters interpreted by sed in replacement strings.
28283 case $configure_input in #(
28284 *\&* | *\|* | *\\* )
28285 ac_sed_conf_input=`$as_echo "$configure_input" |
28286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28287 *) ac_sed_conf_input=$configure_input;;
28288 esac
28289
28290 case $ac_tag in
28291 *:-:* | *:-) cat >"$tmp/stdin" \
28292 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28293 esac
28294 ;;
28295 esac
28296
28297 ac_dir=`$as_dirname -- "$ac_file" ||
28298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28299 X"$ac_file" : 'X\(//\)[^/]' \| \
28300 X"$ac_file" : 'X\(//\)$' \| \
28301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28302 $as_echo X"$ac_file" |
28303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28304 s//\1/
28305 q
28306 }
28307 /^X\(\/\/\)[^/].*/{
28308 s//\1/
28309 q
28310 }
28311 /^X\(\/\/\)$/{
28312 s//\1/
28313 q
28314 }
28315 /^X\(\/\).*/{
28316 s//\1/
28317 q
28318 }
28319 s/.*/./; q'`
28320 as_dir="$ac_dir"; as_fn_mkdir_p
28321 ac_builddir=.
28322
28323 case "$ac_dir" in
28324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28325 *)
28326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28327 # A ".." for each directory in $ac_dir_suffix.
28328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28329 case $ac_top_builddir_sub in
28330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28332 esac ;;
28333 esac
28334 ac_abs_top_builddir=$ac_pwd
28335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28336 # for backward compatibility:
28337 ac_top_builddir=$ac_top_build_prefix
28338
28339 case $srcdir in
28340 .) # We are building in place.
28341 ac_srcdir=.
28342 ac_top_srcdir=$ac_top_builddir_sub
28343 ac_abs_top_srcdir=$ac_pwd ;;
28344 [\\/]* | ?:[\\/]* ) # Absolute name.
28345 ac_srcdir=$srcdir$ac_dir_suffix;
28346 ac_top_srcdir=$srcdir
28347 ac_abs_top_srcdir=$srcdir ;;
28348 *) # Relative name.
28349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28350 ac_top_srcdir=$ac_top_build_prefix$srcdir
28351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28352 esac
28353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28354
28355
28356 case $ac_mode in
28357 :F)
28358 #
28359 # CONFIG_FILE
28360 #
28361
28362 _ACEOF
28363
28364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28365 # If the template does not know about datarootdir, expand it.
28366 # FIXME: This hack should be removed a few years after 2.60.
28367 ac_datarootdir_hack=; ac_datarootdir_seen=
28368 ac_sed_dataroot='
28369 /datarootdir/ {
28370 p
28371 q
28372 }
28373 /@datadir@/p
28374 /@docdir@/p
28375 /@infodir@/p
28376 /@localedir@/p
28377 /@mandir@/p'
28378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28379 *datarootdir*) ac_datarootdir_seen=yes;;
28380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28383 _ACEOF
28384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28385 ac_datarootdir_hack='
28386 s&@datadir@&$datadir&g
28387 s&@docdir@&$docdir&g
28388 s&@infodir@&$infodir&g
28389 s&@localedir@&$localedir&g
28390 s&@mandir@&$mandir&g
28391 s&\\\${datarootdir}&$datarootdir&g' ;;
28392 esac
28393 _ACEOF
28394
28395 # Neutralize VPATH when `$srcdir' = `.'.
28396 # Shell code in configure.ac might set extrasub.
28397 # FIXME: do we really want to maintain this feature?
28398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28399 ac_sed_extra="$ac_vpsub
28400 $extrasub
28401 _ACEOF
28402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28403 :t
28404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28405 s|@configure_input@|$ac_sed_conf_input|;t t
28406 s&@top_builddir@&$ac_top_builddir_sub&;t t
28407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28408 s&@srcdir@&$ac_srcdir&;t t
28409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28410 s&@top_srcdir@&$ac_top_srcdir&;t t
28411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28412 s&@builddir@&$ac_builddir&;t t
28413 s&@abs_builddir@&$ac_abs_builddir&;t t
28414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28415 $ac_datarootdir_hack
28416 "
28417 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28418 if $ac_cs_awk_getline; then
28419 $AWK -f "$tmp/subs.awk"
28420 else
28421 $AWK -f "$tmp/subs.awk" | $SHELL
28422 fi >$tmp/out \
28423 || as_fn_error "could not create $ac_file" "$LINENO" 5
28424
28425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28426 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28429 which seems to be undefined. Please make sure it is defined." >&5
28430 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28431 which seems to be undefined. Please make sure it is defined." >&2;}
28432
28433 rm -f "$tmp/stdin"
28434 case $ac_file in
28435 -) cat "$tmp/out" && rm -f "$tmp/out";;
28436 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28437 esac \
28438 || as_fn_error "could not create $ac_file" "$LINENO" 5
28439 ;;
28440 :H)
28441 #
28442 # CONFIG_HEADER
28443 #
28444 if test x"$ac_file" != x-; then
28445 {
28446 $as_echo "/* $configure_input */" \
28447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28448 } >"$tmp/config.h" \
28449 || as_fn_error "could not create $ac_file" "$LINENO" 5
28450 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28452 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28453 else
28454 rm -f "$ac_file"
28455 mv "$tmp/config.h" "$ac_file" \
28456 || as_fn_error "could not create $ac_file" "$LINENO" 5
28457 fi
28458 else
28459 $as_echo "/* $configure_input */" \
28460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28461 || as_fn_error "could not create -" "$LINENO" 5
28462 fi
28463 ;;
28464
28465 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28466 $as_echo "$as_me: executing $ac_file commands" >&6;}
28467 ;;
28468 esac
28469
28470
28471 case $ac_file$ac_mode in
28472 "as":F) chmod +x as ;;
28473 "collect-ld":F) chmod +x collect-ld ;;
28474 "nm":F) chmod +x nm ;;
28475 "default":C)
28476 case ${CONFIG_HEADERS} in
28477 *auto-host.h:config.in*)
28478 echo > cstamp-h ;;
28479 esac
28480 # Make sure all the subdirs exist.
28481 for d in $subdirs doc build common c-family
28482 do
28483 test -d $d || mkdir $d
28484 done
28485 ;;
28486
28487 esac
28488 done # for ac_tag
28489
28490
28491 as_fn_exit 0
28492 _ACEOF
28493 ac_clean_files=$ac_clean_files_save
28494
28495 test $ac_write_fail = 0 ||
28496 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28497
28498
28499 # configure is writing to config.log, and then calls config.status.
28500 # config.status does its own redirection, appending to config.log.
28501 # Unfortunately, on DOS this fails, as config.log is still kept open
28502 # by configure, so config.status won't be able to write to it; its
28503 # output is simply discarded. So we exec the FD to /dev/null,
28504 # effectively closing config.log, so it can be properly (re)opened and
28505 # appended to by config.status. When coming back to configure, we
28506 # need to make the FD available again.
28507 if test "$no_create" != yes; then
28508 ac_cs_success=:
28509 ac_config_status_args=
28510 test "$silent" = yes &&
28511 ac_config_status_args="$ac_config_status_args --quiet"
28512 exec 5>/dev/null
28513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28514 exec 5>>config.log
28515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28516 # would make configure fail if this is the last instruction.
28517 $ac_cs_success || as_fn_exit $?
28518 fi
28519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28522 fi
28523
28524