configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
[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*-*-gnu* | \
7042 i?86*-*-mingw* | x86_64*-*-mingw* | \
7043 i?86*-*-cygwin*)
7044 enable_decimal_float=yes
7045 ;;
7046 *)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7048 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7049 enable_decimal_float=no
7050 ;;
7051 esac
7052
7053 fi
7054
7055
7056 # x86's use BID format instead of DPD
7057 case x$enable_decimal_float in
7058 xyes)
7059 case $target in
7060 i?86*-*-* | x86_64*-*-*)
7061 enable_decimal_float=bid
7062 ;;
7063 *)
7064 enable_decimal_float=dpd
7065 ;;
7066 esac
7067 default_decimal_float=$enable_decimal_float
7068 ;;
7069 xno)
7070 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7071 # dependency on libdecnumber.
7072 default_decimal_float=dpd
7073 ;;
7074 esac
7075
7076
7077
7078
7079 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7080
7081 cat >>confdefs.h <<_ACEOF
7082 #define ENABLE_DECIMAL_FLOAT $dfp
7083 _ACEOF
7084
7085
7086 # Use default_decimal_float for dependency.
7087 enable_decimal_float=$default_decimal_float
7088
7089 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7090
7091 cat >>confdefs.h <<_ACEOF
7092 #define ENABLE_DECIMAL_BID_FORMAT $bid
7093 _ACEOF
7094
7095
7096 # Enable C extension for fixed-point arithmetic.
7097 # Check whether --enable-fixed-point was given.
7098 if test "${enable_fixed_point+set}" = set; then :
7099 enableval=$enable_fixed_point;
7100 else
7101
7102 case $target in
7103 arm*)
7104 enable_fixed_point=yes
7105 ;;
7106
7107 mips*-*-*)
7108 enable_fixed_point=yes
7109 ;;
7110 *)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7112 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7113 enable_fixed_point=no
7114 ;;
7115 esac
7116
7117 fi
7118
7119
7120
7121 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define ENABLE_FIXED_POINT $fixedpoint
7125 _ACEOF
7126
7127
7128 # Enable threads
7129 # Pass with no value to take the default
7130 # Pass with a value to specify a thread package
7131 # Check whether --enable-threads was given.
7132 if test "${enable_threads+set}" = set; then :
7133 enableval=$enable_threads;
7134 else
7135 enable_threads=''
7136 fi
7137
7138
7139 # Check whether --enable-tls was given.
7140 if test "${enable_tls+set}" = set; then :
7141 enableval=$enable_tls;
7142 case $enable_tls in
7143 yes | no) ;;
7144 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7145 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7146 esac
7147
7148 else
7149 enable_tls=''
7150 fi
7151
7152
7153 # Check whether --enable-objc-gc was given.
7154 if test "${enable_objc_gc+set}" = set; then :
7155 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7156 objc_boehm_gc=''
7157 else
7158 objc_boehm_gc=1
7159 fi
7160 else
7161 objc_boehm_gc=''
7162 fi
7163
7164
7165
7166 # Check whether --with-dwarf2 was given.
7167 if test "${with_dwarf2+set}" = set; then :
7168 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7169 else
7170 dwarf2=no
7171 fi
7172
7173
7174 # Check whether --enable-shared was given.
7175 if test "${enable_shared+set}" = set; then :
7176 enableval=$enable_shared;
7177 case $enable_shared in
7178 yes | no) ;;
7179 *)
7180 enable_shared=no
7181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7182 for pkg in $enableval; do
7183 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7184 enable_shared=yes
7185 fi
7186 done
7187 IFS="$ac_save_ifs"
7188 ;;
7189 esac
7190
7191 else
7192 enable_shared=yes
7193 fi
7194
7195
7196
7197
7198 # Check whether --with-native-system-header-dir was given.
7199 if test "${with_native_system_header_dir+set}" = set; then :
7200 withval=$with_native_system_header_dir;
7201 case ${with_native_system_header_dir} in
7202 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7203 /* | [A-Za-z]:[\\/]*) ;;
7204 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7205 esac
7206 configured_native_system_header_dir="${withval}"
7207
7208 else
7209 configured_native_system_header_dir=
7210 fi
7211
7212
7213
7214 # Check whether --with-build-sysroot was given.
7215 if test "${with_build_sysroot+set}" = set; then :
7216 withval=$with_build_sysroot; if test x"$withval" != x ; then
7217 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7218 fi
7219 else
7220 SYSROOT_CFLAGS_FOR_TARGET=
7221 fi
7222
7223
7224
7225 if test "x$prefix" = xNONE; then
7226 test_prefix=/usr/local
7227 else
7228 test_prefix=$prefix
7229 fi
7230 if test "x$exec_prefix" = xNONE; then
7231 test_exec_prefix=$test_prefix
7232 else
7233 test_exec_prefix=$exec_prefix
7234 fi
7235
7236
7237 # Check whether --with-sysroot was given.
7238 if test "${with_sysroot+set}" = set; then :
7239 withval=$with_sysroot;
7240 case ${with_sysroot} in
7241 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7242 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7243 esac
7244
7245 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7246 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7247
7248 case ${TARGET_SYSTEM_ROOT} in
7249 "${test_prefix}"|"${test_prefix}/"*|\
7250 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7251 '${prefix}'|'${prefix}/'*|\
7252 '${exec_prefix}'|'${exec_prefix}/'*)
7253 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7254 TARGET_SYSTEM_ROOT_DEFINE="$t"
7255 ;;
7256 esac
7257
7258 else
7259
7260 TARGET_SYSTEM_ROOT=
7261 TARGET_SYSTEM_ROOT_DEFINE=
7262 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7263
7264 fi
7265
7266
7267
7268
7269
7270
7271 # Check whether --with-specs was given.
7272 if test "${with_specs+set}" = set; then :
7273 withval=$with_specs; CONFIGURE_SPECS=$withval
7274 else
7275 CONFIGURE_SPECS=
7276
7277 fi
7278
7279
7280
7281
7282
7283 # Check whether --with-pkgversion was given.
7284 if test "${with_pkgversion+set}" = set; then :
7285 withval=$with_pkgversion; case "$withval" in
7286 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7287 no) PKGVERSION= ;;
7288 *) PKGVERSION="($withval) " ;;
7289 esac
7290 else
7291 PKGVERSION="(GCC) "
7292
7293 fi
7294
7295
7296
7297
7298
7299 # Check whether --with-bugurl was given.
7300 if test "${with_bugurl+set}" = set; then :
7301 withval=$with_bugurl; case "$withval" in
7302 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7303 no) BUGURL=
7304 ;;
7305 *) BUGURL="$withval"
7306 ;;
7307 esac
7308 else
7309 BUGURL="http://gcc.gnu.org/bugs.html"
7310
7311 fi
7312
7313 case ${BUGURL} in
7314 "")
7315 REPORT_BUGS_TO=
7316 REPORT_BUGS_TEXI=
7317 ;;
7318 *)
7319 REPORT_BUGS_TO="<$BUGURL>"
7320 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7321 ;;
7322 esac;
7323
7324
7325
7326
7327 # Sanity check enable_languages in case someone does not run the toplevel
7328 # configure # script.
7329 # Check whether --enable-languages was given.
7330 if test "${enable_languages+set}" = set; then :
7331 enableval=$enable_languages; case ,${enable_languages}, in
7332 ,,|,yes,)
7333 # go safe -- we cannot be much sure without the toplevel
7334 # configure's
7335 # analysis of which target libs are present and usable
7336 enable_languages=c
7337 ;;
7338 *,all,*)
7339 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7340 ;;
7341 *,c,*)
7342 ;;
7343 *)
7344 enable_languages=c,${enable_languages}
7345 ;;
7346 esac
7347 else
7348 enable_languages=c
7349 fi
7350
7351
7352
7353 # Check whether --with-multilib-list was given.
7354 if test "${with_multilib_list+set}" = set; then :
7355 withval=$with_multilib_list; :
7356 else
7357 with_multilib_list=default
7358 fi
7359
7360
7361 # -------------------------
7362 # Checks for other programs
7363 # -------------------------
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7366 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7367 set x ${MAKE-make}
7368 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7369 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 cat >conftest.make <<\_ACEOF
7373 SHELL = /bin/sh
7374 all:
7375 @echo '@@@%%%=$(MAKE)=@@@%%%'
7376 _ACEOF
7377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7379 *@@@%%%=?*=@@@%%%*)
7380 eval ac_cv_prog_make_${ac_make}_set=yes;;
7381 *)
7382 eval ac_cv_prog_make_${ac_make}_set=no;;
7383 esac
7384 rm -f conftest.make
7385 fi
7386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7389 SET_MAKE=
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 SET_MAKE="MAKE=${MAKE-make}"
7394 fi
7395
7396
7397 # Find some useful tools
7398 for ac_prog in gawk mawk nawk awk
7399 do
7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_AWK+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$AWK"; then
7408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_AWK="$ac_prog"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 AWK=$ac_cv_prog_AWK
7428 if test -n "$AWK"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7430 $as_echo "$AWK" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437 test -n "$AWK" && break
7438 done
7439
7440 # We need awk to create options.c and options.h.
7441 # Bail out if it's missing.
7442 case ${AWK} in
7443 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7444 esac
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7447 $as_echo_n "checking whether ln -s works... " >&6; }
7448 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 rm -f conftestdata_t
7452 echo >conftestdata_f
7453 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7454 then
7455 gcc_cv_prog_LN_S="ln -s"
7456 else
7457 if ln conftestdata_f conftestdata_t 2>/dev/null
7458 then
7459 gcc_cv_prog_LN_S=ln
7460 else
7461 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7462 then
7463 gcc_cv_prog_LN_S="cp -p"
7464 else
7465 gcc_cv_prog_LN_S=cp
7466 fi
7467 fi
7468 fi
7469 rm -f conftestdata_f conftestdata_t
7470
7471 fi
7472 LN_S="$gcc_cv_prog_LN_S"
7473 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475 $as_echo "yes" >&6; }
7476 else
7477 if test "$gcc_cv_prog_LN_S" = "ln"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7479 $as_echo "no, using ln" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7482 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7483 fi
7484 fi
7485
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7487 $as_echo_n "checking whether ln works... " >&6; }
7488 if test "${acx_cv_prog_LN+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 rm -f conftestdata_t
7492 echo >conftestdata_f
7493 if ln conftestdata_f conftestdata_t 2>/dev/null
7494 then
7495 acx_cv_prog_LN=ln
7496 else
7497 acx_cv_prog_LN=no
7498 fi
7499 rm -f conftestdata_f conftestdata_t
7500
7501 fi
7502 if test $acx_cv_prog_LN = no; then
7503 LN="$LN_S"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7505 $as_echo "no, using $LN" >&6; }
7506 else
7507 LN="$acx_cv_prog_LN"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7509 $as_echo "yes" >&6; }
7510 fi
7511
7512 if test -n "$ac_tool_prefix"; then
7513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$RANLIB"; then
7521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 RANLIB=$ac_cv_prog_RANLIB
7541 if test -n "$RANLIB"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7543 $as_echo "$RANLIB" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549
7550 fi
7551 if test -z "$ac_cv_prog_RANLIB"; then
7552 ac_ct_RANLIB=$RANLIB
7553 # Extract the first word of "ranlib", so it can be a program name with args.
7554 set dummy ranlib; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$ac_ct_RANLIB"; then
7561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_ac_ct_RANLIB="ranlib"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7581 if test -n "$ac_ct_RANLIB"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7583 $as_echo "$ac_ct_RANLIB" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589 if test "x$ac_ct_RANLIB" = x; then
7590 RANLIB=":"
7591 else
7592 case $cross_compiling:$ac_tool_warned in
7593 yes:)
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7596 ac_tool_warned=yes ;;
7597 esac
7598 RANLIB=$ac_ct_RANLIB
7599 fi
7600 else
7601 RANLIB="$ac_cv_prog_RANLIB"
7602 fi
7603
7604 ranlib_flags=""
7605
7606
7607 # Find a good install program. We prefer a C program (faster),
7608 # so one script is as good as another. But avoid the broken or
7609 # incompatible versions:
7610 # SysV /etc/install, /usr/sbin/install
7611 # SunOS /usr/etc/install
7612 # IRIX /sbin/install
7613 # AIX /bin/install
7614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7616 # ./install, which can be erroneously created by make from ./install.sh.
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7618 $as_echo_n "checking for a BSD compatible install... " >&6; }
7619 if test -z "$INSTALL"; then
7620 if test "${ac_cv_path_install+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7624 for ac_dir in $PATH; do
7625 # Account for people who put trailing slashes in PATH elements.
7626 case "$ac_dir/" in
7627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7628 *)
7629 # OSF1 and SCO ODT 3.0 have their own names for install.
7630 for ac_prog in ginstall scoinst install; do
7631 if test -f $ac_dir/$ac_prog; then
7632 if test $ac_prog = install &&
7633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7634 # AIX install. It has an incompatible calling convention.
7635 # OSF/1 installbsd also uses dspmsg, but is usable.
7636 :
7637 else
7638 ac_cv_path_install="$ac_dir/$ac_prog -c"
7639 break 2
7640 fi
7641 fi
7642 done
7643 ;;
7644 esac
7645 done
7646 IFS="$ac_save_IFS"
7647
7648 fi
7649 if test "${ac_cv_path_install+set}" = set; then
7650 INSTALL="$ac_cv_path_install"
7651 else
7652 # As a last resort, use the slow shell script. We don't cache a
7653 # path for INSTALL within a source directory, because that will
7654 # break other packages using the cache if that directory is
7655 # removed, or if the path is relative.
7656 INSTALL="$ac_install_sh"
7657 fi
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7660 $as_echo "$INSTALL" >&6; }
7661
7662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7663 # It thinks the first close brace ends the variable substitution.
7664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7665
7666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7667
7668
7669 # See if cmp has --ignore-initial.
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7671 $as_echo_n "checking for cmp's capabilities... " >&6; }
7672 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 echo abfoo >t1
7676 echo cdfoo >t2
7677 gcc_cv_prog_cmp_skip=slowcompare
7678 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7679 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7680 :
7681 else
7682 gcc_cv_prog_cmp_skip=gnucompare
7683 fi
7684 fi
7685 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7686 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7687 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7688 :
7689 else
7690 gcc_cv_prog_cmp_skip=fastcompare
7691 fi
7692 fi
7693 fi
7694 rm t1 t2
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7698 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7699 make_compare_target=$gcc_cv_prog_cmp_skip
7700
7701
7702
7703 # See if we have the mktemp command.
7704 # Extract the first word of "mktemp", so it can be a program name with args.
7705 set dummy mktemp; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$have_mktemp_command"; then
7712 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_have_mktemp_command="yes"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7730 fi
7731 fi
7732 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7733 if test -n "$have_mktemp_command"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7735 $as_echo "$have_mktemp_command" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742
7743 # See if makeinfo has been installed and is modern enough
7744 # that we can use it.
7745
7746 # Extract the first word of "makeinfo", so it can be a program name with args.
7747 set dummy makeinfo; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$MAKEINFO"; then
7754 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_MAKEINFO="makeinfo"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 MAKEINFO=$ac_cv_prog_MAKEINFO
7774 if test -n "$MAKEINFO"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7776 $as_echo "$MAKEINFO" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782
7783 if test -n "$MAKEINFO"; then
7784 # Found it, now check the version.
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7786 $as_echo_n "checking for modern makeinfo... " >&6; }
7787 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7791 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7792
7793 case $ac_prog_version in
7794 '') gcc_cv_prog_makeinfo_modern=no;;
7795 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7796 *) gcc_cv_prog_makeinfo_modern=no;;
7797 esac
7798
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7801 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7802 else
7803 gcc_cv_prog_makeinfo_modern=no
7804 fi
7805 if test $gcc_cv_prog_makeinfo_modern = no; then
7806 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7807 fi
7808
7809 if test $gcc_cv_prog_makeinfo_modern = no; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7811 *** Makeinfo is missing or too old.
7812 *** Info documentation will not be built." >&5
7813 $as_echo "$as_me: WARNING:
7814 *** Makeinfo is missing or too old.
7815 *** Info documentation will not be built." >&2;}
7816 BUILD_INFO=
7817 else
7818 BUILD_INFO=info
7819 fi
7820
7821
7822 # Is pod2man recent enough to regenerate manpages?
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7824 $as_echo_n "checking for recent Pod::Man... " >&6; }
7825 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827 $as_echo "yes" >&6; }
7828 GENERATED_MANPAGES=generated-manpages
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 GENERATED_MANPAGES=
7833 fi
7834
7835
7836 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7837
7838 # How about lex?
7839 for ac_prog in flex
7840 do
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_FLEX+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$FLEX"; then
7849 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_FLEX="$ac_prog"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 FLEX=$ac_cv_prog_FLEX
7869 if test -n "$FLEX"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7871 $as_echo "$FLEX" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 test -n "$FLEX" && break
7879 done
7880 test -n "$FLEX" || FLEX="$MISSING flex"
7881
7882
7883 # Bison?
7884 for ac_prog in bison
7885 do
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_BISON+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$BISON"; then
7894 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_BISON="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907 done
7908 done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 BISON=$ac_cv_prog_BISON
7914 if test -n "$BISON"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7916 $as_echo "$BISON" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922
7923 test -n "$BISON" && break
7924 done
7925 test -n "$BISON" || BISON="$MISSING bison"
7926
7927
7928 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7929 # check for build == host before using them.
7930
7931 # NM
7932 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7933 && test -d ../binutils ; then
7934 NM='${objdir}/../binutils/nm-new'
7935 else
7936 # Extract the first word of "nm", so it can be a program name with args.
7937 set dummy nm; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_NM+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$NM"; then
7944 ac_cv_prog_NM="$NM" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_NM="nm"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959 IFS=$as_save_IFS
7960
7961 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7962 fi
7963 fi
7964 NM=$ac_cv_prog_NM
7965 if test -n "$NM"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7967 $as_echo "$NM" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 fi
7975
7976 # AR
7977 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7978 && test -d ../binutils ; then
7979 AR='${objdir}/../binutils/ar'
7980 else
7981 # Extract the first word of "ar", so it can be a program name with args.
7982 set dummy ar; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_AR+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$AR"; then
7989 ac_cv_prog_AR="$AR" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_AR="ar"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8007 fi
8008 fi
8009 AR=$ac_cv_prog_AR
8010 if test -n "$AR"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8012 $as_echo "$AR" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019 fi
8020
8021
8022 # --------------------
8023 # Checks for C headers
8024 # --------------------
8025
8026 # Need to reject headers which give warnings, so that the -Werror bootstrap
8027 # works later. *sigh* This needs to come before all header checks.
8028
8029 ac_c_preproc_warn_flag=yes
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8032 $as_echo_n "checking for ANSI C header files... " >&6; }
8033 if test "${ac_cv_header_stdc+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <stdlib.h>
8039 #include <stdarg.h>
8040 #include <string.h>
8041 #include <float.h>
8042
8043 int
8044 main ()
8045 {
8046
8047 ;
8048 return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 ac_cv_header_stdc=yes
8053 else
8054 ac_cv_header_stdc=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057
8058 if test $ac_cv_header_stdc = yes; then
8059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <string.h>
8063
8064 _ACEOF
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066 $EGREP "memchr" >/dev/null 2>&1; then :
8067
8068 else
8069 ac_cv_header_stdc=no
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074
8075 if test $ac_cv_header_stdc = yes; then
8076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <stdlib.h>
8080
8081 _ACEOF
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "free" >/dev/null 2>&1; then :
8084
8085 else
8086 ac_cv_header_stdc=no
8087 fi
8088 rm -f conftest*
8089
8090 fi
8091
8092 if test $ac_cv_header_stdc = yes; then
8093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8094 if test "$cross_compiling" = yes; then :
8095 :
8096 else
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #include <ctype.h>
8100 #include <stdlib.h>
8101 #if ((' ' & 0x0FF) == 0x020)
8102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8104 #else
8105 # define ISLOWER(c) \
8106 (('a' <= (c) && (c) <= 'i') \
8107 || ('j' <= (c) && (c) <= 'r') \
8108 || ('s' <= (c) && (c) <= 'z'))
8109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8110 #endif
8111
8112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8113 int
8114 main ()
8115 {
8116 int i;
8117 for (i = 0; i < 256; i++)
8118 if (XOR (islower (i), ISLOWER (i))
8119 || toupper (i) != TOUPPER (i))
8120 return 2;
8121 return 0;
8122 }
8123 _ACEOF
8124 if ac_fn_c_try_run "$LINENO"; then :
8125
8126 else
8127 ac_cv_header_stdc=no
8128 fi
8129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8130 conftest.$ac_objext conftest.beam conftest.$ac_ext
8131 fi
8132
8133 fi
8134 fi
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8136 $as_echo "$ac_cv_header_stdc" >&6; }
8137 if test $ac_cv_header_stdc = yes; then
8138
8139 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8140
8141 fi
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8144 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8145 if test "${ac_cv_header_time+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <sys/types.h>
8151 #include <sys/time.h>
8152 #include <time.h>
8153
8154 int
8155 main ()
8156 {
8157 if ((struct tm *) 0)
8158 return 0;
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 ac_cv_header_time=yes
8165 else
8166 ac_cv_header_time=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8171 $as_echo "$ac_cv_header_time" >&6; }
8172 if test $ac_cv_header_time = yes; then
8173
8174 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8175
8176 fi
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8179 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8180 if test "${gcc_cv_header_string+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <string.h>
8186 #include <strings.h>
8187 int
8188 main ()
8189 {
8190
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_compile "$LINENO"; then :
8196 gcc_cv_header_string=yes
8197 else
8198 gcc_cv_header_string=no
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8203 $as_echo "$gcc_cv_header_string" >&6; }
8204 if test $gcc_cv_header_string = yes; then
8205
8206 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8207
8208 fi
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8211 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8212 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <sys/types.h>
8218 #include <sys/wait.h>
8219 #ifndef WEXITSTATUS
8220 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8221 #endif
8222 #ifndef WIFEXITED
8223 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8224 #endif
8225
8226 int
8227 main ()
8228 {
8229 int s;
8230 wait (&s);
8231 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 ac_cv_header_sys_wait_h=yes
8238 else
8239 ac_cv_header_sys_wait_h=no
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8244 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8245 if test $ac_cv_header_sys_wait_h = yes; then
8246
8247 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8248
8249 fi
8250
8251 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8252 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8253 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8254 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8255 do :
8256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8258 eval as_val=\$$as_ac_Header
8259 if test "x$as_val" = x""yes; then :
8260 cat >>confdefs.h <<_ACEOF
8261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 _ACEOF
8263
8264 fi
8265 done
8266
8267
8268 # Check for thread headers.
8269 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8270 if test "x$ac_cv_header_thread_h" = x""yes; then :
8271 have_thread_h=yes
8272 else
8273 have_thread_h=
8274 fi
8275
8276 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8277 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8278 have_pthread_h=yes
8279 else
8280 have_pthread_h=
8281 fi
8282
8283
8284 # These tests can't be done till we know if we have limits.h.
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8286 $as_echo_n "checking for CHAR_BIT... " >&6; }
8287 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 #ifdef HAVE_LIMITS_H
8293 #include <limits.h>
8294 #endif
8295 #ifdef CHAR_BIT
8296 found
8297 #endif
8298 _ACEOF
8299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8300 $EGREP "found" >/dev/null 2>&1; then :
8301 gcc_cv_decl_char_bit=yes
8302 else
8303 gcc_cv_decl_char_bit=no
8304 fi
8305 rm -f conftest*
8306
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8310 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8311 if test $gcc_cv_decl_char_bit = no; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8313 $as_echo_n "checking number of bits in a byte... " >&6; }
8314 if test "${gcc_cv_c_nbby+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 i=8
8318 gcc_cv_c_nbby=
8319 while test $i -lt 65; do
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322
8323 int
8324 main ()
8325 {
8326 switch(0) {
8327 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8328 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8329 ; }
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 gcc_cv_c_nbby=$i; break
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 i=`expr $i + 1`
8339 done
8340 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8341
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8344 $as_echo "$gcc_cv_c_nbby" >&6; }
8345 if test $gcc_cv_c_nbby = failed; then
8346 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8347 else
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define CHAR_BIT $gcc_cv_c_nbby
8351 _ACEOF
8352
8353 fi
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8356 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8357 if test "${ac_cv_c_bigendian+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 ac_cv_c_bigendian=unknown
8361 # See if we're dealing with a universal compiler.
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 #ifndef __APPLE_CC__
8365 not a universal capable compiler
8366 #endif
8367 typedef int dummy;
8368
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"; then :
8371
8372 # Check for potential -arch flags. It is not universal unless
8373 # there are at least two -arch flags with different values.
8374 ac_arch=
8375 ac_prev=
8376 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8377 if test -n "$ac_prev"; then
8378 case $ac_word in
8379 i?86 | x86_64 | ppc | ppc64)
8380 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8381 ac_arch=$ac_word
8382 else
8383 ac_cv_c_bigendian=universal
8384 break
8385 fi
8386 ;;
8387 esac
8388 ac_prev=
8389 elif test "x$ac_word" = "x-arch"; then
8390 ac_prev=arch
8391 fi
8392 done
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 if test $ac_cv_c_bigendian = unknown; then
8396 # See if sys/param.h defines the BYTE_ORDER macro.
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <sys/types.h>
8400 #include <sys/param.h>
8401
8402 int
8403 main ()
8404 {
8405 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8406 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8407 && LITTLE_ENDIAN)
8408 bogus endian macros
8409 #endif
8410
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_compile "$LINENO"; then :
8416 # It does; now see whether it defined to BIG_ENDIAN or not.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <sys/types.h>
8420 #include <sys/param.h>
8421
8422 int
8423 main ()
8424 {
8425 #if BYTE_ORDER != BIG_ENDIAN
8426 not big endian
8427 #endif
8428
8429 ;
8430 return 0;
8431 }
8432 _ACEOF
8433 if ac_fn_c_try_compile "$LINENO"; then :
8434 ac_cv_c_bigendian=yes
8435 else
8436 ac_cv_c_bigendian=no
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 fi
8442 if test $ac_cv_c_bigendian = unknown; then
8443 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 #include <limits.h>
8447
8448 int
8449 main ()
8450 {
8451 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8452 bogus endian macros
8453 #endif
8454
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 # It does; now see whether it defined to _BIG_ENDIAN or not.
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 #include <limits.h>
8464
8465 int
8466 main ()
8467 {
8468 #ifndef _BIG_ENDIAN
8469 not big endian
8470 #endif
8471
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 ac_cv_c_bigendian=yes
8478 else
8479 ac_cv_c_bigendian=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 if test $ac_cv_c_bigendian = unknown; then
8486 # Compile a test program.
8487 if test "$cross_compiling" = yes; then :
8488 # Try to guess by grepping values from an object file.
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 short int ascii_mm[] =
8492 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8493 short int ascii_ii[] =
8494 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8495 int use_ascii (int i) {
8496 return ascii_mm[i] + ascii_ii[i];
8497 }
8498 short int ebcdic_ii[] =
8499 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8500 short int ebcdic_mm[] =
8501 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8502 int use_ebcdic (int i) {
8503 return ebcdic_mm[i] + ebcdic_ii[i];
8504 }
8505 extern int foo;
8506
8507 int
8508 main ()
8509 {
8510 return use_ascii (foo) == use_ebcdic (foo);
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8517 ac_cv_c_bigendian=yes
8518 fi
8519 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8520 if test "$ac_cv_c_bigendian" = unknown; then
8521 ac_cv_c_bigendian=no
8522 else
8523 # finding both strings is unlikely to happen, but who knows?
8524 ac_cv_c_bigendian=unknown
8525 fi
8526 fi
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 else
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 int
8534 main ()
8535 {
8536
8537 /* Are we little or big endian? From Harbison&Steele. */
8538 union
8539 {
8540 long int l;
8541 char c[sizeof (long int)];
8542 } u;
8543 u.l = 1;
8544 return u.c[sizeof (long int) - 1] == 1;
8545
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_c_try_run "$LINENO"; then :
8551 ac_cv_c_bigendian=no
8552 else
8553 ac_cv_c_bigendian=yes
8554 fi
8555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8556 conftest.$ac_objext conftest.beam conftest.$ac_ext
8557 fi
8558
8559 fi
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8562 $as_echo "$ac_cv_c_bigendian" >&6; }
8563 case $ac_cv_c_bigendian in #(
8564 yes)
8565 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8566 ;; #(
8567 no)
8568 ;; #(
8569 universal)
8570
8571 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8572
8573 ;; #(
8574 *)
8575 as_fn_error "unknown endianness
8576 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8577 esac
8578
8579
8580 # ----------------------
8581 # Checks for C++ headers
8582 # ----------------------
8583
8584 ac_ext=cpp
8585 ac_cpp='$CXXCPP $CPPFLAGS'
8586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8590 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8591 if test -z "$CXXCPP"; then
8592 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 # Double quotes because CXXCPP needs to be expanded
8596 for CXXCPP in "$CXX -E" "/lib/cpp"
8597 do
8598 ac_preproc_ok=false
8599 for ac_cxx_preproc_warn_flag in '' yes
8600 do
8601 # Use a header file that comes with gcc, so configuring glibc
8602 # with a fresh cross-compiler works.
8603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8604 # <limits.h> exists even on freestanding compilers.
8605 # On the NeXT, cc -E runs the code through the compiler's parser,
8606 # not just through cpp. "Syntax error" is here to catch this case.
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 #ifdef __STDC__
8610 # include <limits.h>
8611 #else
8612 # include <assert.h>
8613 #endif
8614 Syntax error
8615 _ACEOF
8616 if ac_fn_cxx_try_cpp "$LINENO"; then :
8617
8618 else
8619 # Broken: fails on valid input.
8620 continue
8621 fi
8622 rm -f conftest.err conftest.$ac_ext
8623
8624 # OK, works on sane cases. Now check whether nonexistent headers
8625 # can be detected and how.
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 #include <ac_nonexistent.h>
8629 _ACEOF
8630 if ac_fn_cxx_try_cpp "$LINENO"; then :
8631 # Broken: success on invalid input.
8632 continue
8633 else
8634 # Passes both tests.
8635 ac_preproc_ok=:
8636 break
8637 fi
8638 rm -f conftest.err conftest.$ac_ext
8639
8640 done
8641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8642 rm -f conftest.err conftest.$ac_ext
8643 if $ac_preproc_ok; then :
8644 break
8645 fi
8646
8647 done
8648 ac_cv_prog_CXXCPP=$CXXCPP
8649
8650 fi
8651 CXXCPP=$ac_cv_prog_CXXCPP
8652 else
8653 ac_cv_prog_CXXCPP=$CXXCPP
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8656 $as_echo "$CXXCPP" >&6; }
8657 ac_preproc_ok=false
8658 for ac_cxx_preproc_warn_flag in '' yes
8659 do
8660 # Use a header file that comes with gcc, so configuring glibc
8661 # with a fresh cross-compiler works.
8662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663 # <limits.h> exists even on freestanding compilers.
8664 # On the NeXT, cc -E runs the code through the compiler's parser,
8665 # not just through cpp. "Syntax error" is here to catch this case.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673 Syntax error
8674 _ACEOF
8675 if ac_fn_cxx_try_cpp "$LINENO"; then :
8676
8677 else
8678 # Broken: fails on valid input.
8679 continue
8680 fi
8681 rm -f conftest.err conftest.$ac_ext
8682
8683 # OK, works on sane cases. Now check whether nonexistent headers
8684 # can be detected and how.
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <ac_nonexistent.h>
8688 _ACEOF
8689 if ac_fn_cxx_try_cpp "$LINENO"; then :
8690 # Broken: success on invalid input.
8691 continue
8692 else
8693 # Passes both tests.
8694 ac_preproc_ok=:
8695 break
8696 fi
8697 rm -f conftest.err conftest.$ac_ext
8698
8699 done
8700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8701 rm -f conftest.err conftest.$ac_ext
8702 if $ac_preproc_ok; then :
8703
8704 else
8705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8708 See \`config.log' for more details." >&5
8709 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8710 See \`config.log' for more details." >&2;}; }
8711 fi
8712
8713 ac_ext=c
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 ac_ext=cpp
8721 ac_cpp='$CXXCPP $CPPFLAGS'
8722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8725
8726
8727
8728
8729 for ac_header in unordered_map
8730 do :
8731 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8732 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_UNORDERED_MAP 1
8735 _ACEOF
8736
8737 fi
8738 done
8739
8740 for ac_header in tr1/unordered_map
8741 do :
8742 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8743 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8744 cat >>confdefs.h <<_ACEOF
8745 #define HAVE_TR1_UNORDERED_MAP 1
8746 _ACEOF
8747
8748 fi
8749 done
8750
8751 for ac_header in ext/hash_map
8752 do :
8753 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8754 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_EXT_HASH_MAP 1
8757 _ACEOF
8758
8759 fi
8760 done
8761
8762
8763 ac_ext=c
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8768
8769
8770 # --------
8771 # UNSORTED
8772 # --------
8773
8774
8775 # These libraries may be used by collect2.
8776 # We may need a special search path to get them linked.
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8778 $as_echo_n "checking for collect2 libraries... " >&6; }
8779 if test "${gcc_cv_collect2_libs+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 save_LIBS="$LIBS"
8783 for libs in '' -lld -lmld \
8784 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8785 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8786 do
8787 LIBS="$libs"
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790
8791 /* Override any GCC internal prototype to avoid an error.
8792 Use char because int might match the return type of a GCC
8793 builtin and then its argument prototype would still apply. */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 char ldopen ();
8798 int
8799 main ()
8800 {
8801 return ldopen ();
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 if ac_fn_c_try_link "$LINENO"; then :
8807 gcc_cv_collect2_libs="$libs"; break
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 done
8812 LIBS="$save_LIBS"
8813 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8814 fi
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8816 $as_echo "$gcc_cv_collect2_libs" >&6; }
8817 case $gcc_cv_collect2_libs in
8818 "none required") ;;
8819 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8820 esac
8821
8822
8823 # When building Ada code on Alpha, we need exc_resume which is usually in
8824 # -lexc. So test for it.
8825 save_LIBS="$LIBS"
8826 LIBS=
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8828 $as_echo_n "checking for library containing exc_resume... " >&6; }
8829 if test "${ac_cv_search_exc_resume+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 ac_func_search_save_LIBS=$LIBS
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835
8836 /* Override any GCC internal prototype to avoid an error.
8837 Use char because int might match the return type of a GCC
8838 builtin and then its argument prototype would still apply. */
8839 #ifdef __cplusplus
8840 extern "C"
8841 #endif
8842 char exc_resume ();
8843 int
8844 main ()
8845 {
8846 return exc_resume ();
8847 ;
8848 return 0;
8849 }
8850 _ACEOF
8851 for ac_lib in '' exc; do
8852 if test -z "$ac_lib"; then
8853 ac_res="none required"
8854 else
8855 ac_res=-l$ac_lib
8856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8857 fi
8858 if ac_fn_c_try_link "$LINENO"; then :
8859 ac_cv_search_exc_resume=$ac_res
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext
8863 if test "${ac_cv_search_exc_resume+set}" = set; then :
8864 break
8865 fi
8866 done
8867 if test "${ac_cv_search_exc_resume+set}" = set; then :
8868
8869 else
8870 ac_cv_search_exc_resume=no
8871 fi
8872 rm conftest.$ac_ext
8873 LIBS=$ac_func_search_save_LIBS
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8876 $as_echo "$ac_cv_search_exc_resume" >&6; }
8877 ac_res=$ac_cv_search_exc_resume
8878 if test "$ac_res" != no; then :
8879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8880
8881 fi
8882
8883 GNAT_LIBEXC="$LIBS"
8884 LIBS="$save_LIBS"
8885
8886
8887 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8888 save_LIBS="$LIBS"
8889 LIBS=
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8891 $as_echo_n "checking for library containing kstat_open... " >&6; }
8892 if test "${ac_cv_search_kstat_open+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 ac_func_search_save_LIBS=$LIBS
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8898
8899 /* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 char kstat_open ();
8906 int
8907 main ()
8908 {
8909 return kstat_open ();
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 for ac_lib in '' kstat; do
8915 if test -z "$ac_lib"; then
8916 ac_res="none required"
8917 else
8918 ac_res=-l$ac_lib
8919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8920 fi
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 ac_cv_search_kstat_open=$ac_res
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext
8926 if test "${ac_cv_search_kstat_open+set}" = set; then :
8927 break
8928 fi
8929 done
8930 if test "${ac_cv_search_kstat_open+set}" = set; then :
8931
8932 else
8933 ac_cv_search_kstat_open=no
8934 fi
8935 rm conftest.$ac_ext
8936 LIBS=$ac_func_search_save_LIBS
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8939 $as_echo "$ac_cv_search_kstat_open" >&6; }
8940 ac_res=$ac_cv_search_kstat_open
8941 if test "$ac_res" != no; then :
8942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943
8944 fi
8945
8946 EXTRA_GCC_LIBS="$LIBS"
8947 LIBS="$save_LIBS"
8948
8949
8950 # Some systems put ldexp and frexp in libm instead of libc; assume
8951 # they're both in the same place. jcf-dump needs them.
8952 save_LIBS="$LIBS"
8953 LIBS=
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8955 $as_echo_n "checking for library containing ldexp... " >&6; }
8956 if test "${ac_cv_search_ldexp+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 ac_func_search_save_LIBS=$LIBS
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char ldexp ();
8970 int
8971 main ()
8972 {
8973 return ldexp ();
8974 ;
8975 return 0;
8976 }
8977 _ACEOF
8978 for ac_lib in '' m; do
8979 if test -z "$ac_lib"; then
8980 ac_res="none required"
8981 else
8982 ac_res=-l$ac_lib
8983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8984 fi
8985 if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_search_ldexp=$ac_res
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext
8990 if test "${ac_cv_search_ldexp+set}" = set; then :
8991 break
8992 fi
8993 done
8994 if test "${ac_cv_search_ldexp+set}" = set; then :
8995
8996 else
8997 ac_cv_search_ldexp=no
8998 fi
8999 rm conftest.$ac_ext
9000 LIBS=$ac_func_search_save_LIBS
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9003 $as_echo "$ac_cv_search_ldexp" >&6; }
9004 ac_res=$ac_cv_search_ldexp
9005 if test "$ac_res" != no; then :
9006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9007
9008 fi
9009
9010 LDEXP_LIB="$LIBS"
9011 LIBS="$save_LIBS"
9012
9013
9014 # Use <inttypes.h> only if it exists,
9015 # doesn't clash with <sys/types.h>, and declares intmax_t.
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9017 $as_echo_n "checking for inttypes.h... " >&6; }
9018 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <sys/types.h>
9024 #include <inttypes.h>
9025 int
9026 main ()
9027 {
9028 intmax_t i = -1;
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 if ac_fn_c_try_compile "$LINENO"; then :
9034 gcc_cv_header_inttypes_h=yes
9035 else
9036 gcc_cv_header_inttypes_h=no
9037 fi
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 fi
9040
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9042 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9043 if test $gcc_cv_header_inttypes_h = yes; then
9044
9045 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9046
9047 fi
9048
9049
9050
9051 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9052 sysconf strsignal getrusage nl_langinfo \
9053 gettimeofday mbstowcs wcswidth mmap setlocale \
9054 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
9055 do :
9056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9058 eval as_val=\$$as_ac_var
9059 if test "x$as_val" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9062 _ACEOF
9063
9064 fi
9065 done
9066
9067
9068 if test x$ac_cv_func_mbstowcs = xyes; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9070 $as_echo_n "checking whether mbstowcs works... " >&6; }
9071 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test "$cross_compiling" = yes; then :
9075 gcc_cv_func_mbstowcs_works=yes
9076 else
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <stdlib.h>
9080 int main()
9081 {
9082 mbstowcs(0, "", 0);
9083 return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_run "$LINENO"; then :
9087 gcc_cv_func_mbstowcs_works=yes
9088 else
9089 gcc_cv_func_mbstowcs_works=no
9090 fi
9091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9092 conftest.$ac_objext conftest.beam conftest.$ac_ext
9093 fi
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9097 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9098 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9099
9100 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9101
9102 fi
9103 fi
9104
9105 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9106 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9107
9108 else
9109
9110 cat >>confdefs.h <<_ACEOF
9111 #define ssize_t int
9112 _ACEOF
9113
9114 fi
9115
9116 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9117 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9118
9119 else
9120
9121 cat >>confdefs.h <<_ACEOF
9122 #define caddr_t char *
9123 _ACEOF
9124
9125 fi
9126
9127
9128
9129 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9130 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9131 gcc_header_sys_mman_h=yes
9132 else
9133 gcc_header_sys_mman_h=no
9134 fi
9135
9136 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9137 if test "x$ac_cv_func_mmap" = x""yes; then :
9138 gcc_func_mmap=yes
9139 else
9140 gcc_func_mmap=no
9141 fi
9142
9143 if test "$gcc_header_sys_mman_h" != yes \
9144 || test "$gcc_func_mmap" != yes; then
9145 gcc_cv_func_mmap_file=no
9146 gcc_cv_func_mmap_dev_zero=no
9147 gcc_cv_func_mmap_anon=no
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9150 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9151 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 # Add a system to this blacklist if
9155 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9156 # memory area containing the same data that you'd get if you applied
9157 # read() to the same fd. The only system known to have a problem here
9158 # is VMS, where text files have record structure.
9159 case "$host_os" in
9160 *vms* | ultrix*)
9161 gcc_cv_func_mmap_file=no ;;
9162 *)
9163 gcc_cv_func_mmap_file=yes;;
9164 esac
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9167 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9169 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9170 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 # Add a system to this blacklist if it has mmap() but /dev/zero
9174 # does not exist, or if mmapping /dev/zero does not give anonymous
9175 # zeroed pages with both the following properties:
9176 # 1. If you map N consecutive pages in with one call, and then
9177 # unmap any subset of those pages, the pages that were not
9178 # explicitly unmapped remain accessible.
9179 # 2. If you map two adjacent blocks of memory and then unmap them
9180 # both at once, they must both go away.
9181 # Systems known to be in this category are Windows (all variants),
9182 # VMS, and Darwin.
9183 case "$host_os" in
9184 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9185 gcc_cv_func_mmap_dev_zero=no ;;
9186 *)
9187 gcc_cv_func_mmap_dev_zero=yes;;
9188 esac
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9191 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9192
9193 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9195 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9196 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 #include <sys/types.h>
9202 #include <sys/mman.h>
9203 #include <unistd.h>
9204
9205 #ifndef MAP_ANONYMOUS
9206 #define MAP_ANONYMOUS MAP_ANON
9207 #endif
9208
9209 int
9210 main ()
9211 {
9212 int n = MAP_ANONYMOUS;
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_compile "$LINENO"; then :
9218 gcc_cv_decl_map_anon=yes
9219 else
9220 gcc_cv_decl_map_anon=no
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223 fi
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9225 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9226
9227 if test $gcc_cv_decl_map_anon = no; then
9228 gcc_cv_func_mmap_anon=no
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9231 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9232 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9236 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9237 # doesn't give anonymous zeroed pages with the same properties listed
9238 # above for use of /dev/zero.
9239 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9240 case "$host_os" in
9241 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9242 gcc_cv_func_mmap_anon=no ;;
9243 *)
9244 gcc_cv_func_mmap_anon=yes;;
9245 esac
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9248 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9249 fi
9250 fi
9251
9252 if test $gcc_cv_func_mmap_file = yes; then
9253
9254 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9255
9256 fi
9257 if test $gcc_cv_func_mmap_dev_zero = yes; then
9258
9259 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9260
9261 fi
9262 if test $gcc_cv_func_mmap_anon = yes; then
9263
9264 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9265
9266 fi
9267
9268
9269 case "${host}" in
9270 *-*-*vms*)
9271 # Under VMS, vfork works very differently than on Unix. The standard test
9272 # won't work, and it isn't easily adaptable. It makes more sense to
9273 # just force it.
9274 ac_cv_func_vfork_works=yes
9275 ;;
9276 esac
9277 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9278 if test "x$ac_cv_type_pid_t" = x""yes; then :
9279
9280 else
9281
9282 cat >>confdefs.h <<_ACEOF
9283 #define pid_t int
9284 _ACEOF
9285
9286 fi
9287
9288 for ac_header in vfork.h
9289 do :
9290 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9291 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_VFORK_H 1
9294 _ACEOF
9295
9296 fi
9297 done
9298
9299 for ac_func in fork vfork
9300 do :
9301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9303 eval as_val=\$$as_ac_var
9304 if test "x$as_val" = x""yes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9307 _ACEOF
9308
9309 fi
9310 done
9311
9312 if test "x$ac_cv_func_fork" = xyes; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9314 $as_echo_n "checking for working fork... " >&6; }
9315 if test "${ac_cv_func_fork_works+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 if test "$cross_compiling" = yes; then :
9319 ac_cv_func_fork_works=cross
9320 else
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 $ac_includes_default
9324 int
9325 main ()
9326 {
9327
9328 /* By Ruediger Kuhlmann. */
9329 return fork () < 0;
9330
9331 ;
9332 return 0;
9333 }
9334 _ACEOF
9335 if ac_fn_c_try_run "$LINENO"; then :
9336 ac_cv_func_fork_works=yes
9337 else
9338 ac_cv_func_fork_works=no
9339 fi
9340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9341 conftest.$ac_objext conftest.beam conftest.$ac_ext
9342 fi
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9346 $as_echo "$ac_cv_func_fork_works" >&6; }
9347
9348 else
9349 ac_cv_func_fork_works=$ac_cv_func_fork
9350 fi
9351 if test "x$ac_cv_func_fork_works" = xcross; then
9352 case $host in
9353 *-*-amigaos* | *-*-msdosdjgpp*)
9354 # Override, as these systems have only a dummy fork() stub
9355 ac_cv_func_fork_works=no
9356 ;;
9357 *)
9358 ac_cv_func_fork_works=yes
9359 ;;
9360 esac
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9362 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9363 fi
9364 ac_cv_func_vfork_works=$ac_cv_func_vfork
9365 if test "x$ac_cv_func_vfork" = xyes; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9367 $as_echo_n "checking for working vfork... " >&6; }
9368 if test "${ac_cv_func_vfork_works+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 if test "$cross_compiling" = yes; then :
9372 ac_cv_func_vfork_works=cross
9373 else
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 /* Thanks to Paul Eggert for this test. */
9377 $ac_includes_default
9378 #include <sys/wait.h>
9379 #ifdef HAVE_VFORK_H
9380 # include <vfork.h>
9381 #endif
9382 /* On some sparc systems, changes by the child to local and incoming
9383 argument registers are propagated back to the parent. The compiler
9384 is told about this with #include <vfork.h>, but some compilers
9385 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9386 static variable whose address is put into a register that is
9387 clobbered by the vfork. */
9388 static void
9389 #ifdef __cplusplus
9390 sparc_address_test (int arg)
9391 # else
9392 sparc_address_test (arg) int arg;
9393 #endif
9394 {
9395 static pid_t child;
9396 if (!child) {
9397 child = vfork ();
9398 if (child < 0) {
9399 perror ("vfork");
9400 _exit(2);
9401 }
9402 if (!child) {
9403 arg = getpid();
9404 write(-1, "", 0);
9405 _exit (arg);
9406 }
9407 }
9408 }
9409
9410 int
9411 main ()
9412 {
9413 pid_t parent = getpid ();
9414 pid_t child;
9415
9416 sparc_address_test (0);
9417
9418 child = vfork ();
9419
9420 if (child == 0) {
9421 /* Here is another test for sparc vfork register problems. This
9422 test uses lots of local variables, at least as many local
9423 variables as main has allocated so far including compiler
9424 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9425 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9426 reuse the register of parent for one of the local variables,
9427 since it will think that parent can't possibly be used any more
9428 in this routine. Assigning to the local variable will thus
9429 munge parent in the parent process. */
9430 pid_t
9431 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9432 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9433 /* Convince the compiler that p..p7 are live; otherwise, it might
9434 use the same hardware register for all 8 local variables. */
9435 if (p != p1 || p != p2 || p != p3 || p != p4
9436 || p != p5 || p != p6 || p != p7)
9437 _exit(1);
9438
9439 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9440 from child file descriptors. If the child closes a descriptor
9441 before it execs or exits, this munges the parent's descriptor
9442 as well. Test for this by closing stdout in the child. */
9443 _exit(close(fileno(stdout)) != 0);
9444 } else {
9445 int status;
9446 struct stat st;
9447
9448 while (wait(&status) != child)
9449 ;
9450 return (
9451 /* Was there some problem with vforking? */
9452 child < 0
9453
9454 /* Did the child fail? (This shouldn't happen.) */
9455 || status
9456
9457 /* Did the vfork/compiler bug occur? */
9458 || parent != getpid()
9459
9460 /* Did the file descriptor bug occur? */
9461 || fstat(fileno(stdout), &st) != 0
9462 );
9463 }
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_run "$LINENO"; then :
9467 ac_cv_func_vfork_works=yes
9468 else
9469 ac_cv_func_vfork_works=no
9470 fi
9471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9472 conftest.$ac_objext conftest.beam conftest.$ac_ext
9473 fi
9474
9475 fi
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9477 $as_echo "$ac_cv_func_vfork_works" >&6; }
9478
9479 fi;
9480 if test "x$ac_cv_func_fork_works" = xcross; then
9481 ac_cv_func_vfork_works=$ac_cv_func_vfork
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9483 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9484 fi
9485
9486 if test "x$ac_cv_func_vfork_works" = xyes; then
9487
9488 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9489
9490 else
9491
9492 $as_echo "#define vfork fork" >>confdefs.h
9493
9494 fi
9495 if test "x$ac_cv_func_fork_works" = xyes; then
9496
9497 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9498
9499 fi
9500
9501
9502 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9503 # iconv() prototype.
9504 ac_ext=cpp
9505 ac_cpp='$CXXCPP $CPPFLAGS'
9506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9509
9510
9511 if test "X$prefix" = "XNONE"; then
9512 acl_final_prefix="$ac_default_prefix"
9513 else
9514 acl_final_prefix="$prefix"
9515 fi
9516 if test "X$exec_prefix" = "XNONE"; then
9517 acl_final_exec_prefix='${prefix}'
9518 else
9519 acl_final_exec_prefix="$exec_prefix"
9520 fi
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9524 prefix="$acl_save_prefix"
9525
9526
9527 # Check whether --with-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then :
9529 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9530 else
9531 with_gnu_ld=no
9532 fi
9533
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9539 chmod +x conf$$.sh
9540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9541 PATH_SEPARATOR=';'
9542 else
9543 PATH_SEPARATOR=:
9544 fi
9545 rm -f conf$$.sh
9546 fi
9547 ac_prog=ld
9548 if test "$GCC" = yes; then
9549 # Check if gcc -print-prog-name=ld gives a path.
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9551 $as_echo_n "checking for ld used by GCC... " >&6; }
9552 case $host in
9553 *-*-mingw*)
9554 # gcc leaves a trailing carriage return which upsets mingw
9555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9556 *)
9557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9558 esac
9559 case $ac_prog in
9560 # Accept absolute paths.
9561 [\\/]* | [A-Za-z]:[\\/]*)
9562 re_direlt='/[^/][^/]*/\.\./'
9563 # Canonicalize the path of ld
9564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9567 done
9568 test -z "$LD" && LD="$ac_prog"
9569 ;;
9570 "")
9571 # If it fails, then pretend we aren't using GCC.
9572 ac_prog=ld
9573 ;;
9574 *)
9575 # If it is relative, then search for the first ld in PATH.
9576 with_gnu_ld=unknown
9577 ;;
9578 esac
9579 elif test "$with_gnu_ld" = yes; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9581 $as_echo_n "checking for GNU ld... " >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9584 $as_echo_n "checking for non-GNU ld... " >&6; }
9585 fi
9586 if test "${acl_cv_path_LD+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 if test -z "$LD"; then
9590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591 for ac_dir in $PATH; do
9592 test -z "$ac_dir" && ac_dir=.
9593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594 acl_cv_path_LD="$ac_dir/$ac_prog"
9595 # Check to see if the program is GNU ld. I'd rather use --version,
9596 # but apparently some GNU ld's only accept -v.
9597 # Break only if it was the GNU/non-GNU ld that we prefer.
9598 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9599 test "$with_gnu_ld" != no && break
9600 else
9601 test "$with_gnu_ld" != yes && break
9602 fi
9603 fi
9604 done
9605 IFS="$ac_save_ifs"
9606 else
9607 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9608 fi
9609 fi
9610
9611 LD="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9614 $as_echo "$LD" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9622 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9626 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9627 acl_cv_prog_gnu_ld=yes
9628 else
9629 acl_cv_prog_gnu_ld=no
9630 fi
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9634 with_gnu_ld=$acl_cv_prog_gnu_ld
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9639 $as_echo_n "checking for shared library run path origin... " >&6; }
9640 if test "${acl_cv_rpath+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643
9644 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9646 . ./conftest.sh
9647 rm -f ./conftest.sh
9648 acl_cv_rpath=done
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9652 $as_echo "$acl_cv_rpath" >&6; }
9653 wl="$acl_cv_wl"
9654 libext="$acl_cv_libext"
9655 shlibext="$acl_cv_shlibext"
9656 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9657 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9658 hardcode_direct="$acl_cv_hardcode_direct"
9659 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9660 # Check whether --enable-rpath was given.
9661 if test "${enable_rpath+set}" = set; then :
9662 enableval=$enable_rpath; :
9663 else
9664 enable_rpath=yes
9665 fi
9666
9667
9668
9669
9670
9671
9672
9673
9674 use_additional=yes
9675
9676 acl_save_prefix="$prefix"
9677 prefix="$acl_final_prefix"
9678 acl_save_exec_prefix="$exec_prefix"
9679 exec_prefix="$acl_final_exec_prefix"
9680
9681 eval additional_includedir=\"$includedir\"
9682 eval additional_libdir=\"$libdir\"
9683
9684 exec_prefix="$acl_save_exec_prefix"
9685 prefix="$acl_save_prefix"
9686
9687
9688 # Check whether --with-libiconv-prefix was given.
9689 if test "${with_libiconv_prefix+set}" = set; then :
9690 withval=$with_libiconv_prefix;
9691 if test "X$withval" = "Xno"; then
9692 use_additional=no
9693 else
9694 if test "X$withval" = "X"; then
9695
9696 acl_save_prefix="$prefix"
9697 prefix="$acl_final_prefix"
9698 acl_save_exec_prefix="$exec_prefix"
9699 exec_prefix="$acl_final_exec_prefix"
9700
9701 eval additional_includedir=\"$includedir\"
9702 eval additional_libdir=\"$libdir\"
9703
9704 exec_prefix="$acl_save_exec_prefix"
9705 prefix="$acl_save_prefix"
9706
9707 else
9708 additional_includedir="$withval/include"
9709 additional_libdir="$withval/lib"
9710 fi
9711 fi
9712
9713 fi
9714
9715 LIBICONV=
9716 LTLIBICONV=
9717 INCICONV=
9718 rpathdirs=
9719 ltrpathdirs=
9720 names_already_handled=
9721 names_next_round='iconv '
9722 while test -n "$names_next_round"; do
9723 names_this_round="$names_next_round"
9724 names_next_round=
9725 for name in $names_this_round; do
9726 already_handled=
9727 for n in $names_already_handled; do
9728 if test "$n" = "$name"; then
9729 already_handled=yes
9730 break
9731 fi
9732 done
9733 if test -z "$already_handled"; then
9734 names_already_handled="$names_already_handled $name"
9735 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9736 eval value=\"\$HAVE_LIB$uppername\"
9737 if test -n "$value"; then
9738 if test "$value" = yes; then
9739 eval value=\"\$LIB$uppername\"
9740 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9741 eval value=\"\$LTLIB$uppername\"
9742 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9743 else
9744 :
9745 fi
9746 else
9747 found_dir=
9748 found_la=
9749 found_so=
9750 found_a=
9751 if test $use_additional = yes; then
9752 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9753 found_dir="$additional_libdir"
9754 found_so="$additional_libdir/lib$name.$shlibext"
9755 if test -f "$additional_libdir/lib$name.la"; then
9756 found_la="$additional_libdir/lib$name.la"
9757 fi
9758 else
9759 if test -f "$additional_libdir/lib$name.$libext"; then
9760 found_dir="$additional_libdir"
9761 found_a="$additional_libdir/lib$name.$libext"
9762 if test -f "$additional_libdir/lib$name.la"; then
9763 found_la="$additional_libdir/lib$name.la"
9764 fi
9765 fi
9766 fi
9767 fi
9768 if test "X$found_dir" = "X"; then
9769 for x in $LDFLAGS $LTLIBICONV; do
9770
9771 acl_save_prefix="$prefix"
9772 prefix="$acl_final_prefix"
9773 acl_save_exec_prefix="$exec_prefix"
9774 exec_prefix="$acl_final_exec_prefix"
9775 eval x=\"$x\"
9776 exec_prefix="$acl_save_exec_prefix"
9777 prefix="$acl_save_prefix"
9778
9779 case "$x" in
9780 -L*)
9781 dir=`echo "X$x" | sed -e 's/^X-L//'`
9782 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9783 found_dir="$dir"
9784 found_so="$dir/lib$name.$shlibext"
9785 if test -f "$dir/lib$name.la"; then
9786 found_la="$dir/lib$name.la"
9787 fi
9788 else
9789 if test -f "$dir/lib$name.$libext"; then
9790 found_dir="$dir"
9791 found_a="$dir/lib$name.$libext"
9792 if test -f "$dir/lib$name.la"; then
9793 found_la="$dir/lib$name.la"
9794 fi
9795 fi
9796 fi
9797 ;;
9798 esac
9799 if test "X$found_dir" != "X"; then
9800 break
9801 fi
9802 done
9803 fi
9804 if test "X$found_dir" != "X"; then
9805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9806 if test "X$found_so" != "X"; then
9807 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9809 else
9810 haveit=
9811 for x in $ltrpathdirs; do
9812 if test "X$x" = "X$found_dir"; then
9813 haveit=yes
9814 break
9815 fi
9816 done
9817 if test -z "$haveit"; then
9818 ltrpathdirs="$ltrpathdirs $found_dir"
9819 fi
9820 if test "$hardcode_direct" = yes; then
9821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822 else
9823 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825 haveit=
9826 for x in $rpathdirs; do
9827 if test "X$x" = "X$found_dir"; then
9828 haveit=yes
9829 break
9830 fi
9831 done
9832 if test -z "$haveit"; then
9833 rpathdirs="$rpathdirs $found_dir"
9834 fi
9835 else
9836 haveit=
9837 for x in $LDFLAGS $LIBICONV; do
9838
9839 acl_save_prefix="$prefix"
9840 prefix="$acl_final_prefix"
9841 acl_save_exec_prefix="$exec_prefix"
9842 exec_prefix="$acl_final_exec_prefix"
9843 eval x=\"$x\"
9844 exec_prefix="$acl_save_exec_prefix"
9845 prefix="$acl_save_prefix"
9846
9847 if test "X$x" = "X-L$found_dir"; then
9848 haveit=yes
9849 break
9850 fi
9851 done
9852 if test -z "$haveit"; then
9853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9854 fi
9855 if test "$hardcode_minus_L" != no; then
9856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9857 else
9858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9859 fi
9860 fi
9861 fi
9862 fi
9863 else
9864 if test "X$found_a" != "X"; then
9865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9866 else
9867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9868 fi
9869 fi
9870 additional_includedir=
9871 case "$found_dir" in
9872 */lib | */lib/)
9873 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9874 additional_includedir="$basedir/include"
9875 ;;
9876 esac
9877 if test "X$additional_includedir" != "X"; then
9878 if test "X$additional_includedir" != "X/usr/include"; then
9879 haveit=
9880 if test "X$additional_includedir" = "X/usr/local/include"; then
9881 if test -n "$GCC"; then
9882 case $host_os in
9883 linux*) haveit=yes;;
9884 esac
9885 fi
9886 fi
9887 if test -z "$haveit"; then
9888 for x in $CPPFLAGS $INCICONV; do
9889
9890 acl_save_prefix="$prefix"
9891 prefix="$acl_final_prefix"
9892 acl_save_exec_prefix="$exec_prefix"
9893 exec_prefix="$acl_final_exec_prefix"
9894 eval x=\"$x\"
9895 exec_prefix="$acl_save_exec_prefix"
9896 prefix="$acl_save_prefix"
9897
9898 if test "X$x" = "X-I$additional_includedir"; then
9899 haveit=yes
9900 break
9901 fi
9902 done
9903 if test -z "$haveit"; then
9904 if test -d "$additional_includedir"; then
9905 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9906 fi
9907 fi
9908 fi
9909 fi
9910 fi
9911 if test -n "$found_la"; then
9912 save_libdir="$libdir"
9913 case "$found_la" in
9914 */* | *\\*) . "$found_la" ;;
9915 *) . "./$found_la" ;;
9916 esac
9917 libdir="$save_libdir"
9918 for dep in $dependency_libs; do
9919 case "$dep" in
9920 -L*)
9921 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9922 if test "X$additional_libdir" != "X/usr/lib"; then
9923 haveit=
9924 if test "X$additional_libdir" = "X/usr/local/lib"; then
9925 if test -n "$GCC"; then
9926 case $host_os in
9927 linux*) haveit=yes;;
9928 esac
9929 fi
9930 fi
9931 if test -z "$haveit"; then
9932 haveit=
9933 for x in $LDFLAGS $LIBICONV; do
9934
9935 acl_save_prefix="$prefix"
9936 prefix="$acl_final_prefix"
9937 acl_save_exec_prefix="$exec_prefix"
9938 exec_prefix="$acl_final_exec_prefix"
9939 eval x=\"$x\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9942
9943 if test "X$x" = "X-L$additional_libdir"; then
9944 haveit=yes
9945 break
9946 fi
9947 done
9948 if test -z "$haveit"; then
9949 if test -d "$additional_libdir"; then
9950 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9951 fi
9952 fi
9953 haveit=
9954 for x in $LDFLAGS $LTLIBICONV; do
9955
9956 acl_save_prefix="$prefix"
9957 prefix="$acl_final_prefix"
9958 acl_save_exec_prefix="$exec_prefix"
9959 exec_prefix="$acl_final_exec_prefix"
9960 eval x=\"$x\"
9961 exec_prefix="$acl_save_exec_prefix"
9962 prefix="$acl_save_prefix"
9963
9964 if test "X$x" = "X-L$additional_libdir"; then
9965 haveit=yes
9966 break
9967 fi
9968 done
9969 if test -z "$haveit"; then
9970 if test -d "$additional_libdir"; then
9971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9972 fi
9973 fi
9974 fi
9975 fi
9976 ;;
9977 -R*)
9978 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9979 if test "$enable_rpath" != no; then
9980 haveit=
9981 for x in $rpathdirs; do
9982 if test "X$x" = "X$dir"; then
9983 haveit=yes
9984 break
9985 fi
9986 done
9987 if test -z "$haveit"; then
9988 rpathdirs="$rpathdirs $dir"
9989 fi
9990 haveit=
9991 for x in $ltrpathdirs; do
9992 if test "X$x" = "X$dir"; then
9993 haveit=yes
9994 break
9995 fi
9996 done
9997 if test -z "$haveit"; then
9998 ltrpathdirs="$ltrpathdirs $dir"
9999 fi
10000 fi
10001 ;;
10002 -l*)
10003 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10004 ;;
10005 *.la)
10006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10007 ;;
10008 *)
10009 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10011 ;;
10012 esac
10013 done
10014 fi
10015 else
10016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10018 fi
10019 fi
10020 fi
10021 done
10022 done
10023 if test "X$rpathdirs" != "X"; then
10024 if test -n "$hardcode_libdir_separator"; then
10025 alldirs=
10026 for found_dir in $rpathdirs; do
10027 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10028 done
10029 acl_save_libdir="$libdir"
10030 libdir="$alldirs"
10031 eval flag=\"$hardcode_libdir_flag_spec\"
10032 libdir="$acl_save_libdir"
10033 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10034 else
10035 for found_dir in $rpathdirs; do
10036 acl_save_libdir="$libdir"
10037 libdir="$found_dir"
10038 eval flag=\"$hardcode_libdir_flag_spec\"
10039 libdir="$acl_save_libdir"
10040 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10041 done
10042 fi
10043 fi
10044 if test "X$ltrpathdirs" != "X"; then
10045 for found_dir in $ltrpathdirs; do
10046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10047 done
10048 fi
10049
10050
10051
10052
10053
10054
10055
10056 am_save_CPPFLAGS="$CPPFLAGS"
10057
10058 for element in $INCICONV; do
10059 haveit=
10060 for x in $CPPFLAGS; do
10061
10062 acl_save_prefix="$prefix"
10063 prefix="$acl_final_prefix"
10064 acl_save_exec_prefix="$exec_prefix"
10065 exec_prefix="$acl_final_exec_prefix"
10066 eval x=\"$x\"
10067 exec_prefix="$acl_save_exec_prefix"
10068 prefix="$acl_save_prefix"
10069
10070 if test "X$x" = "X$element"; then
10071 haveit=yes
10072 break
10073 fi
10074 done
10075 if test -z "$haveit"; then
10076 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10077 fi
10078 done
10079
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10082 $as_echo_n "checking for iconv... " >&6; }
10083 if test "${am_cv_func_iconv+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086
10087 am_cv_func_iconv="no, consider installing GNU libiconv"
10088 am_cv_lib_iconv=no
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 #include <stdlib.h>
10092 #include <iconv.h>
10093 int
10094 main ()
10095 {
10096 iconv_t cd = iconv_open("","");
10097 iconv(cd,NULL,NULL,NULL,NULL);
10098 iconv_close(cd);
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_cxx_try_link "$LINENO"; then :
10104 am_cv_func_iconv=yes
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test "$am_cv_func_iconv" != yes; then
10109 am_save_LIBS="$LIBS"
10110 LIBS="$LIBS $LIBICONV"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 #include <stdlib.h>
10114 #include <iconv.h>
10115 int
10116 main ()
10117 {
10118 iconv_t cd = iconv_open("","");
10119 iconv(cd,NULL,NULL,NULL,NULL);
10120 iconv_close(cd);
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_cxx_try_link "$LINENO"; then :
10126 am_cv_lib_iconv=yes
10127 am_cv_func_iconv=yes
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS="$am_save_LIBS"
10132 fi
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10136 $as_echo "$am_cv_func_iconv" >&6; }
10137 if test "$am_cv_func_iconv" = yes; then
10138
10139 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10140
10141 fi
10142 if test "$am_cv_lib_iconv" = yes; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10144 $as_echo_n "checking how to link with libiconv... " >&6; }
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10146 $as_echo "$LIBICONV" >&6; }
10147 else
10148 CPPFLAGS="$am_save_CPPFLAGS"
10149 LIBICONV=
10150 LTLIBICONV=
10151 fi
10152
10153
10154
10155 if test "$am_cv_func_iconv" = yes; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10157 $as_echo_n "checking for iconv declaration... " >&6; }
10158 if test "${am_cv_proto_iconv+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164
10165 #include <stdlib.h>
10166 #include <iconv.h>
10167 extern
10168 #ifdef __cplusplus
10169 "C"
10170 #endif
10171 #if defined(__STDC__) || defined(__cplusplus)
10172 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10173 #else
10174 size_t iconv();
10175 #endif
10176
10177 int
10178 main ()
10179 {
10180
10181 ;
10182 return 0;
10183 }
10184 _ACEOF
10185 if ac_fn_cxx_try_compile "$LINENO"; then :
10186 am_cv_proto_iconv_arg1=""
10187 else
10188 am_cv_proto_iconv_arg1="const"
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 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);"
10192 fi
10193
10194 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10196 }$am_cv_proto_iconv" >&5
10197 $as_echo "${ac_t:-
10198 }$am_cv_proto_iconv" >&6; }
10199
10200 cat >>confdefs.h <<_ACEOF
10201 #define ICONV_CONST $am_cv_proto_iconv_arg1
10202 _ACEOF
10203
10204 fi
10205
10206 ac_ext=c
10207 ac_cpp='$CPP $CPPFLAGS'
10208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10211
10212
10213 # Until we have in-tree GNU iconv:
10214 LIBICONV_DEP=
10215
10216
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10219 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10220 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 #include <locale.h>
10226 int
10227 main ()
10228 {
10229 return LC_MESSAGES
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235 am_cv_val_LC_MESSAGES=yes
10236 else
10237 am_cv_val_LC_MESSAGES=no
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10243 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10244 if test $am_cv_val_LC_MESSAGES = yes; then
10245
10246 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10247
10248 fi
10249
10250
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10253 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10254 if test "${am_cv_langinfo_codeset+set}" = set; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 #include <langinfo.h>
10260 int
10261 main ()
10262 {
10263 char* cs = nl_langinfo(CODESET);
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 am_cv_langinfo_codeset=yes
10270 else
10271 am_cv_langinfo_codeset=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10278 $as_echo "$am_cv_langinfo_codeset" >&6; }
10279 if test $am_cv_langinfo_codeset = yes; then
10280
10281 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10282
10283 fi
10284
10285
10286 # We will need to find libiberty.h and ansidecl.h
10287 saved_CFLAGS="$CFLAGS"
10288 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10289 saved_CXXFLAGS="$CXXFLAGS"
10290 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10291 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10292 strsignal strstr stpcpy strverscmp \
10293 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10294 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
10295 do
10296 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10298 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10299 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #undef $ac_tr_decl
10305 #define $ac_tr_decl 1
10306
10307 #include "ansidecl.h"
10308 #include "system.h"
10309
10310 int
10311 main ()
10312 {
10313 #ifndef $ac_func
10314 char *(*pfn) = (char *(*)) $ac_func ;
10315 #endif
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_compile "$LINENO"; then :
10321 eval "gcc_cv_have_decl_$ac_func=yes"
10322 else
10323 eval "gcc_cv_have_decl_$ac_func=no"
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 fi
10327
10328 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10330 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10331 #define $ac_tr_decl 1
10332 _ACEOF
10333
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10337 #define $ac_tr_decl 0
10338 _ACEOF
10339
10340 fi
10341
10342 done
10343
10344
10345 for ac_func in getrlimit setrlimit getrusage
10346 do
10347 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10349 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10350 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 #undef $ac_tr_decl
10356 #define $ac_tr_decl 1
10357
10358 #include "ansidecl.h"
10359 #include "system.h"
10360 #ifdef HAVE_SYS_RESOURCE_H
10361 #include <sys/resource.h>
10362 #endif
10363
10364
10365 int
10366 main ()
10367 {
10368 #ifndef $ac_func
10369 char *(*pfn) = (char *(*)) $ac_func ;
10370 #endif
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_compile "$LINENO"; then :
10376 eval "gcc_cv_have_decl_$ac_func=yes"
10377 else
10378 eval "gcc_cv_have_decl_$ac_func=no"
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381 fi
10382
10383 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10385 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10386 #define $ac_tr_decl 1
10387 _ACEOF
10388
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10392 #define $ac_tr_decl 0
10393 _ACEOF
10394
10395 fi
10396
10397 done
10398
10399
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402
10403 #include "ansidecl.h"
10404 #include "system.h"
10405 #ifdef HAVE_SYS_RESOURCE_H
10406 #include <sys/resource.h>
10407 #endif
10408
10409 int
10410 main ()
10411 {
10412 rlim_t l = 0;
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_compile "$LINENO"; then :
10418
10419 else
10420
10421 $as_echo "#define rlim_t long" >>confdefs.h
10422
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425
10426 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10427 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10428 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10429 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10430 for ac_func in ldgetname
10431 do
10432 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10434 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10435 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 #undef $ac_tr_decl
10441 #define $ac_tr_decl 1
10442
10443 #include "ansidecl.h"
10444 #include "system.h"
10445 #ifdef HAVE_LDFCN_H
10446 #undef FREAD
10447 #undef FWRITE
10448 #include <ldfcn.h>
10449 #endif
10450
10451
10452 int
10453 main ()
10454 {
10455 #ifndef $ac_func
10456 char *(*pfn) = (char *(*)) $ac_func ;
10457 #endif
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_compile "$LINENO"; then :
10463 eval "gcc_cv_have_decl_$ac_func=yes"
10464 else
10465 eval "gcc_cv_have_decl_$ac_func=no"
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 fi
10469
10470 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10472 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10473 #define $ac_tr_decl 1
10474 _ACEOF
10475
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10479 #define $ac_tr_decl 0
10480 _ACEOF
10481
10482 fi
10483
10484 done
10485
10486
10487 for ac_func in times
10488 do
10489 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10491 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10492 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 #undef $ac_tr_decl
10498 #define $ac_tr_decl 1
10499
10500 #include "ansidecl.h"
10501 #include "system.h"
10502 #ifdef HAVE_SYS_TIMES_H
10503 #include <sys/times.h>
10504 #endif
10505
10506
10507 int
10508 main ()
10509 {
10510 #ifndef $ac_func
10511 char *(*pfn) = (char *(*)) $ac_func ;
10512 #endif
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518 eval "gcc_cv_have_decl_$ac_func=yes"
10519 else
10520 eval "gcc_cv_have_decl_$ac_func=no"
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524
10525 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10527 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10528 #define $ac_tr_decl 1
10529 _ACEOF
10530
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10534 #define $ac_tr_decl 0
10535 _ACEOF
10536
10537 fi
10538
10539 done
10540
10541
10542 for ac_func in sigaltstack
10543 do
10544 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10546 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10547 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 #undef $ac_tr_decl
10553 #define $ac_tr_decl 1
10554
10555 #include "ansidecl.h"
10556 #include "system.h"
10557 #include <signal.h>
10558
10559
10560 int
10561 main ()
10562 {
10563 #ifndef $ac_func
10564 char *(*pfn) = (char *(*)) $ac_func ;
10565 #endif
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"; then :
10571 eval "gcc_cv_have_decl_$ac_func=yes"
10572 else
10573 eval "gcc_cv_have_decl_$ac_func=no"
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 fi
10577
10578 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10581 #define $ac_tr_decl 1
10582 _ACEOF
10583
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10587 #define $ac_tr_decl 0
10588 _ACEOF
10589
10590 fi
10591
10592 done
10593
10594
10595 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10596 # prototype.
10597 ac_ext=cpp
10598 ac_cpp='$CXXCPP $CPPFLAGS'
10599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10602
10603 for ac_func in madvise
10604 do
10605 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10607 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10608 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #undef $ac_tr_decl
10614 #define $ac_tr_decl 1
10615
10616 #include "ansidecl.h"
10617 #include "system.h"
10618
10619
10620 int
10621 main ()
10622 {
10623 #ifndef $ac_func
10624 char *(*pfn) = (char *(*)) $ac_func ;
10625 #endif
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 if ac_fn_cxx_try_compile "$LINENO"; then :
10631 eval "gcc_cv_have_decl_$ac_func=yes"
10632 else
10633 eval "gcc_cv_have_decl_$ac_func=no"
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 fi
10637
10638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10640 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10641 #define $ac_tr_decl 1
10642 _ACEOF
10643
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10647 #define $ac_tr_decl 0
10648 _ACEOF
10649
10650 fi
10651
10652 done
10653
10654 ac_ext=c
10655 ac_cpp='$CPP $CPPFLAGS'
10656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10659
10660
10661 # More time-related stuff.
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10663 $as_echo_n "checking for struct tms... " >&6; }
10664 if test "${ac_cv_struct_tms+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 #include "ansidecl.h"
10672 #include "system.h"
10673 #ifdef HAVE_SYS_TIMES_H
10674 #include <sys/times.h>
10675 #endif
10676
10677 int
10678 main ()
10679 {
10680 struct tms tms;
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686 ac_cv_struct_tms=yes
10687 else
10688 ac_cv_struct_tms=no
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10693 $as_echo "$ac_cv_struct_tms" >&6; }
10694 if test $ac_cv_struct_tms = yes; then
10695
10696 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10697
10698 fi
10699
10700 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10701 # revisit after autoconf 2.50.
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10703 $as_echo_n "checking for clock_t... " >&6; }
10704 if test "${gcc_cv_type_clock_t+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710
10711 #include "ansidecl.h"
10712 #include "system.h"
10713
10714 int
10715 main ()
10716 {
10717 clock_t x;
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_compile "$LINENO"; then :
10723 gcc_cv_type_clock_t=yes
10724 else
10725 gcc_cv_type_clock_t=no
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10730 $as_echo "$gcc_cv_type_clock_t" >&6; }
10731 if test $gcc_cv_type_clock_t = yes; then
10732
10733 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10734
10735 fi
10736
10737 # Check if F_SETLKW is supported by fcntl.
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10739 $as_echo_n "checking for F_SETLKW... " >&6; }
10740 if test "${ac_cv_f_setlkw+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747 #include <fcntl.h>
10748 int
10749 main ()
10750 {
10751
10752 struct flock fl;
10753 fl.l_whence = 0;
10754 fl.l_start = 0;
10755 fl.l_len = 0;
10756 fl.l_pid = 0;
10757 return fcntl (1, F_SETLKW, &fl);
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 ac_cv_f_setlkw=yes
10764 else
10765 ac_cv_f_setlkw=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10770 $as_echo "$ac_cv_f_setlkw" >&6; }
10771 if test $ac_cv_f_setlkw = yes; then
10772
10773 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10774
10775 fi
10776
10777 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10778 CFLAGS="$saved_CFLAGS"
10779 CXXFLAGS="$saved_CXXFLAGS"
10780
10781 # mkdir takes a single argument on some systems.
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10783 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10784 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789
10790 #include <sys/types.h>
10791 #ifdef HAVE_SYS_STAT_H
10792 # include <sys/stat.h>
10793 #endif
10794 #ifdef HAVE_UNISTD_H
10795 # include <unistd.h>
10796 #endif
10797 #ifdef HAVE_DIRECT_H
10798 # include <direct.h>
10799 #endif
10800 int
10801 main ()
10802 {
10803 mkdir ("foo", 0);
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809 gcc_cv_mkdir_takes_one_arg=no
10810 else
10811 gcc_cv_mkdir_takes_one_arg=yes
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10816 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10817 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10818
10819 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10820
10821 fi
10822
10823
10824 # File extensions
10825 manext='.1'
10826 objext='.o'
10827
10828
10829
10830 # With Setjmp/Longjmp based exception handling.
10831 # Check whether --enable-sjlj-exceptions was given.
10832 if test "${enable_sjlj_exceptions+set}" = set; then :
10833 enableval=$enable_sjlj_exceptions; case $target in
10834 *-*-hpux10*)
10835 if test $enableval != yes; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10837 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10838 enableval=yes
10839 fi
10840 ;;
10841 esac
10842 force_sjlj_exceptions=yes
10843 else
10844 case $target in
10845 *-*-hpux10*)
10846 force_sjlj_exceptions=yes
10847 enableval=yes
10848 ;;
10849 *)
10850 force_sjlj_exceptions=no
10851 ;;
10852 esac
10853 fi
10854
10855 if test $force_sjlj_exceptions = yes; then
10856 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10860 _ACEOF
10861
10862 fi
10863
10864 # --------------------------------------------------------
10865 # Build, host, and target specific configuration fragments
10866 # --------------------------------------------------------
10867
10868 # Collect build-machine-specific information.
10869 . ${srcdir}/config.build
10870
10871 # Collect host-machine-specific information.
10872 . ${srcdir}/config.host
10873
10874 target_gtfiles=
10875
10876 # Collect target-machine-specific information.
10877 . ${srcdir}/config.gcc
10878
10879 extra_objs="${host_extra_objs} ${extra_objs}"
10880 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10881
10882 # Default the target-machine variables that were not explicitly set.
10883 if test x"$tm_file" = x
10884 then tm_file=$cpu_type/$cpu_type.h; fi
10885
10886 if test x"$extra_headers" = x
10887 then extra_headers=; fi
10888
10889 if test x$md_file = x
10890 then md_file=$cpu_type/$cpu_type.md; fi
10891
10892 if test x$out_file = x
10893 then out_file=$cpu_type/$cpu_type.c; fi
10894
10895 if test x"$tmake_file" = x
10896 then tmake_file=$cpu_type/t-$cpu_type
10897 fi
10898
10899 # Support --enable-initfini-array.
10900 if test x$enable_initfini_array != xno; then
10901 tm_file="${tm_file} initfini-array.h"
10902 fi
10903
10904 if test x"$dwarf2" = xyes
10905 then tm_file="$tm_file tm-dwarf2.h"
10906 fi
10907
10908 # Say what files are being used for the output code and MD file.
10909 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10910 echo "Using \`$srcdir/config/$md_file' as machine description file."
10911
10912 # If any of the xm_file variables contain nonexistent files, warn
10913 # about them and drop them.
10914
10915 bx=
10916 for x in $build_xm_file; do
10917 if test -f $srcdir/config/$x
10918 then bx="$bx $x"
10919 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10920 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10921 fi
10922 done
10923 build_xm_file="$bx"
10924
10925 hx=
10926 for x in $host_xm_file; do
10927 if test -f $srcdir/config/$x
10928 then hx="$hx $x"
10929 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10930 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10931 fi
10932 done
10933 host_xm_file="$hx"
10934
10935 tx=
10936 for x in $xm_file; do
10937 if test -f $srcdir/config/$x
10938 then tx="$tx $x"
10939 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10940 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10941 fi
10942 done
10943 xm_file="$tx"
10944
10945 count=a
10946 for f in $tm_file; do
10947 count=${count}x
10948 done
10949 if test $count = ax; then
10950 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10951 else
10952 echo "Using the following target machine macro files:"
10953 for f in $tm_file; do
10954 echo " $srcdir/config/$f"
10955 done
10956 fi
10957
10958 if test x$need_64bit_hwint = xyes; then
10959
10960 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10961
10962 fi
10963
10964 if test x$use_long_long_for_widest_fast_int = xyes; then
10965
10966 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10967
10968 fi
10969
10970 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
10971
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_GNU_LD $gnu_ld_bool
10974 _ACEOF
10975
10976
10977 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
10978
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_GNU_AS $gnu_as_bool
10981 _ACEOF
10982
10983
10984 count=a
10985 for f in $host_xm_file; do
10986 count=${count}x
10987 done
10988 if test $count = a; then
10989 :
10990 elif test $count = ax; then
10991 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10992 else
10993 echo "Using the following host machine macro files:"
10994 for f in $host_xm_file; do
10995 echo " $srcdir/config/$f"
10996 done
10997 fi
10998 echo "Using ${out_host_hook_obj} for host machine hooks."
10999
11000 if test "$host_xm_file" != "$build_xm_file"; then
11001 count=a
11002 for f in $build_xm_file; do
11003 count=${count}x
11004 done
11005 if test $count = a; then
11006 :
11007 elif test $count = ax; then
11008 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11009 else
11010 echo "Using the following build machine macro files:"
11011 for f in $build_xm_file; do
11012 echo " $srcdir/config/$f"
11013 done
11014 fi
11015 fi
11016
11017 if test -n "$configured_native_system_header_dir"; then
11018 native_system_header_dir=$configured_native_system_header_dir
11019 fi
11020 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11021
11022
11023 case ${host} in
11024 powerpc*-*-darwin*)
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11026 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11027 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 #include <sys/cdefs.h>
11034 #include <sys/signal.h>
11035 #include <ucontext.h>
11036 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11037
11038 _ACEOF
11039 if ac_fn_c_try_compile "$LINENO"; then :
11040 gcc_cv_mcontext_underscores=no
11041 else
11042 gcc_cv_mcontext_underscores=yes
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11047 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11048 if test $gcc_cv_mcontext_underscores = yes; then
11049
11050 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11051
11052 fi
11053 ;;
11054 esac
11055
11056 # ---------
11057 # Threading
11058 # ---------
11059
11060 # Check if a valid thread package
11061 case ${enable_threads} in
11062 "" | no)
11063 # No threads
11064 target_thread_file='single'
11065 ;;
11066 yes)
11067 # default
11068 target_thread_file='single'
11069 ;;
11070 aix | dce | lynx | mipssde | posix | rtems | \
11071 single | tpf | vxworks | win32)
11072 target_thread_file=${enable_threads}
11073 ;;
11074 *)
11075 echo "${enable_threads} is an unknown thread package" 1>&2
11076 exit 1
11077 ;;
11078 esac
11079
11080 if test x${thread_file} = x; then
11081 # No thread file set by target-specific clauses in config.gcc,
11082 # so use file chosen by default logic above
11083 thread_file=${target_thread_file}
11084 fi
11085
11086 # --------
11087 # UNSORTED
11088 # --------
11089
11090 use_cxa_atexit=no
11091 if test x$enable___cxa_atexit = xyes || \
11092 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11093 if test x$host = x$target; then
11094 case $host in
11095 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11096 # keyed to flag_use_cxa_atexit
11097 *-*-mingw32*)
11098 use_cxa_atexit=yes
11099 ;;
11100 *)
11101 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11102 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11103 use_cxa_atexit=yes
11104 else
11105 echo "__cxa_atexit can't be enabled on this target"
11106 fi
11107
11108 ;;
11109 esac
11110 else
11111 # We can't check for __cxa_atexit when building a cross, so assume
11112 # it is available
11113 use_cxa_atexit=yes
11114 fi
11115 if test x$use_cxa_atexit = xyes; then
11116
11117 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11118
11119 fi
11120 fi
11121
11122 # Look for a file containing extra machine modes.
11123 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11124 extra_modes_file='$(srcdir)'/config/${extra_modes}
11125
11126
11127 cat >>confdefs.h <<_ACEOF
11128 #define EXTRA_MODES_FILE "config/$extra_modes"
11129 _ACEOF
11130
11131 fi
11132
11133 # Convert extra_options into a form suitable for Makefile use.
11134 extra_opt_files=
11135 all_opt_files=
11136 for f in $extra_options; do
11137 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11138 all_opt_files="$all_opt_files $srcdir/config/$f"
11139 done
11140
11141
11142 # auto-host.h is the file containing items generated by autoconf and is
11143 # the first file included by config.h.
11144 # If host=build, it is correct to have bconfig include auto-host.h
11145 # as well. If host!=build, we are in error and need to do more
11146 # work to find out the build config parameters.
11147 if test x$host = x$build
11148 then
11149 build_auto=auto-host.h
11150 else
11151 # We create a subdir, then run autoconf in the subdir.
11152 # To prevent recursion we set host and build for the new
11153 # invocation of configure to the build for this invocation
11154 # of configure.
11155 tempdir=build.$$
11156 rm -rf $tempdir
11157 mkdir $tempdir
11158 cd $tempdir
11159 case ${srcdir} in
11160 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11161 *) realsrcdir=../${srcdir};;
11162 esac
11163 saved_CFLAGS="${CFLAGS}"
11164 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11165 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11166 ${realsrcdir}/configure \
11167 --enable-languages=${enable_languages-all} \
11168 --target=$target_alias --host=$build_alias --build=$build_alias
11169 CFLAGS="${saved_CFLAGS}"
11170
11171 # We just finished tests for the build machine, so rename
11172 # the file auto-build.h in the gcc directory.
11173 mv auto-host.h ../auto-build.h
11174 cd ..
11175 rm -rf $tempdir
11176 build_auto=auto-build.h
11177 fi
11178
11179
11180 tm_file="${tm_file} defaults.h"
11181 tm_p_file="${tm_p_file} tm-preds.h"
11182 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11183 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11184 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11185 # put this back in temporarily.
11186 xm_file="auto-host.h ansidecl.h ${xm_file}"
11187
11188 # --------
11189 # UNSORTED
11190 # --------
11191
11192 # Compile in configure arguments.
11193 if test -f configargs.h ; then
11194 # Being re-configured.
11195 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11196 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11197 else
11198 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11199 fi
11200
11201 # Double all backslashes and backslash all quotes to turn
11202 # gcc_config_arguments into a C string.
11203 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11204 $gcc_config_arguments
11205 EOF
11206 gcc_config_arguments_str=`cat conftest.out`
11207 rm -f conftest.out
11208
11209 cat > configargs.h <<EOF
11210 /* Generated automatically. */
11211 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11212 static const char thread_model[] = "$thread_file";
11213
11214 static const struct {
11215 const char *name, *value;
11216 } configure_default_options[] = $configure_default_options;
11217 EOF
11218
11219 gcc_BASEVER=`cat $srcdir/BASE-VER`
11220 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11221 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11222 if test -f $srcdir/REVISION ; then
11223 gcc_REVISION=`cat $srcdir/REVISION`
11224 else
11225 gcc_REVISION=""
11226 fi
11227 cat > plugin-version.h <<EOF
11228 #include "configargs.h"
11229
11230 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11231 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11232 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11233 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11234
11235 static char basever[] = "$gcc_BASEVER";
11236 static char datestamp[] = "$gcc_DATESTAMP";
11237 static char devphase[] = "$gcc_DEVPHASE";
11238 static char revision[] = "$gcc_REVISION";
11239
11240 /* FIXME plugins: We should make the version information more precise.
11241 One way to do is to add a checksum. */
11242
11243 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11244 devphase, revision,
11245 configuration_arguments};
11246 EOF
11247
11248 # Internationalization
11249 # If we haven't got the data from the intl directory,
11250 # assume NLS is disabled.
11251 USE_NLS=no
11252 LIBINTL=
11253 LIBINTL_DEP=
11254 INCINTL=
11255 XGETTEXT=
11256 GMSGFMT=
11257 POSUB=
11258
11259 if test -f ../intl/config.intl; then
11260 . ../intl/config.intl
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11263 $as_echo_n "checking whether NLS is requested... " >&6; }
11264 if test x"$USE_NLS" != xyes; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270
11271 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11272
11273
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11275 $as_echo_n "checking for catalogs to be installed... " >&6; }
11276 # Look for .po and .gmo files in the source directory.
11277 CATALOGS=
11278 XLINGUAS=
11279 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11280 # If there aren't any .gmo files the shell will give us the
11281 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11282 # weeded out.
11283 case "$cat" in *\**)
11284 continue;;
11285 esac
11286 # The quadruple backslash is collapsed to a double backslash
11287 # by the backticks, then collapsed again by the double quotes,
11288 # leaving us with one backslash in the sed expression (right
11289 # before the dot that mustn't act as a wildcard).
11290 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11291 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11292 # The user is allowed to set LINGUAS to a list of languages to
11293 # install catalogs for. If it's empty that means "all of them."
11294 if test "x$LINGUAS" = x; then
11295 CATALOGS="$CATALOGS $cat"
11296 XLINGUAS="$XLINGUAS $lang"
11297 else
11298 case "$LINGUAS" in *$lang*)
11299 CATALOGS="$CATALOGS $cat"
11300 XLINGUAS="$XLINGUAS $lang"
11301 ;;
11302 esac
11303 fi
11304 done
11305 LINGUAS="$XLINGUAS"
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11307 $as_echo "$LINGUAS" >&6; }
11308
11309
11310 DATADIRNAME=share
11311
11312 INSTOBJEXT=.mo
11313
11314 GENCAT=gencat
11315
11316 CATOBJEXT=.gmo
11317
11318 fi
11319
11320 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11321 # -liconv on the link line twice.
11322 case "$LIBINTL" in *$LIBICONV*)
11323 LIBICONV= ;;
11324 esac
11325
11326 # Check whether --enable-secureplt was given.
11327 if test "${enable_secureplt+set}" = set; then :
11328 enableval=$enable_secureplt;
11329 fi
11330
11331
11332 # Check whether --enable-leading-mingw64-underscores was given.
11333 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11334 enableval=$enable_leading_mingw64_underscores;
11335 fi
11336
11337 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11338
11339 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11340
11341 fi
11342
11343 # Check whether --enable-cld was given.
11344 if test "${enable_cld+set}" = set; then :
11345 enableval=$enable_cld;
11346 else
11347 enable_cld=no
11348 fi
11349
11350
11351 # Check whether --enable-frame-pointer was given.
11352 if test "${enable_frame_pointer+set}" = set; then :
11353 enableval=$enable_frame_pointer;
11354 else
11355
11356 case $target_os in
11357 linux* | darwin[8912]*)
11358 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11359 # DWARF2.
11360 enable_frame_pointer=no
11361 ;;
11362 *)
11363 enable_frame_pointer=yes
11364 ;;
11365 esac
11366
11367 fi
11368
11369
11370 # Windows32 Registry support for specifying GCC installation paths.
11371 # Check whether --enable-win32-registry was given.
11372 if test "${enable_win32_registry+set}" = set; then :
11373 enableval=$enable_win32_registry;
11374 fi
11375
11376
11377 case $host_os in
11378 win32 | pe | cygwin* | mingw32* | uwin*)
11379 if test "x$enable_win32_registry" != xno; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11381 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11382 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ac_func_search_save_LIBS=$LIBS
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char RegOpenKeyExA ();
11396 int
11397 main ()
11398 {
11399 return RegOpenKeyExA ();
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 for ac_lib in '' advapi32; do
11405 if test -z "$ac_lib"; then
11406 ac_res="none required"
11407 else
11408 ac_res=-l$ac_lib
11409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11410 fi
11411 if ac_fn_c_try_link "$LINENO"; then :
11412 ac_cv_search_RegOpenKeyExA=$ac_res
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext
11416 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11417 break
11418 fi
11419 done
11420 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11421
11422 else
11423 ac_cv_search_RegOpenKeyExA=no
11424 fi
11425 rm conftest.$ac_ext
11426 LIBS=$ac_func_search_save_LIBS
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11429 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11430 ac_res=$ac_cv_search_RegOpenKeyExA
11431 if test "$ac_res" != no; then :
11432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11433
11434 else
11435 enable_win32_registry=no
11436 fi
11437
11438 fi
11439
11440 if test "x$enable_win32_registry" != xno; then
11441
11442 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11443
11444
11445 if test "x$enable_win32_registry" != xyes \
11446 && test "x$enable_win32_registry" != x; then
11447
11448 cat >>confdefs.h <<_ACEOF
11449 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11450 _ACEOF
11451
11452 fi
11453 fi
11454 ;;
11455 esac
11456
11457 # Get an absolute path to the GCC top-level source directory
11458 holddir=`${PWDCMD-pwd}`
11459 cd $srcdir
11460 topdir=`${PWDCMD-pwd}`
11461 cd $holddir
11462
11463 # Conditionalize the makefile for this host machine.
11464 xmake_file=
11465 for f in ${host_xmake_file}
11466 do
11467 if test -f ${srcdir}/config/$f
11468 then
11469 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11470 fi
11471 done
11472
11473 # Conditionalize the makefile for this target machine.
11474 tmake_file_=
11475 for f in ${tmake_file}
11476 do
11477 if test -f ${srcdir}/config/$f
11478 then
11479 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11480 fi
11481 done
11482 tmake_file="${tmake_file_}"
11483
11484 out_object_file=`basename $out_file .c`.o
11485 common_out_object_file=`basename $common_out_file .c`.o
11486
11487 tm_file_list="options.h"
11488 tm_include_list="options.h insn-constants.h"
11489 for f in $tm_file; do
11490 case $f in
11491 ./* )
11492 f=`echo $f | sed 's/^..//'`
11493 tm_file_list="${tm_file_list} $f"
11494 tm_include_list="${tm_include_list} $f"
11495 ;;
11496 defaults.h )
11497 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11498 tm_include_list="${tm_include_list} $f"
11499 ;;
11500 * )
11501 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11502 tm_include_list="${tm_include_list} config/$f"
11503 ;;
11504 esac
11505 done
11506
11507 tm_p_file_list=
11508 tm_p_include_list=
11509 for f in $tm_p_file; do
11510 case $f in
11511 tm-preds.h )
11512 tm_p_file_list="${tm_p_file_list} $f"
11513 tm_p_include_list="${tm_p_include_list} $f"
11514 ;;
11515 * )
11516 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11517 tm_p_include_list="${tm_p_include_list} config/$f"
11518 esac
11519 done
11520
11521 xm_file_list=
11522 xm_include_list=
11523 for f in $xm_file; do
11524 case $f in
11525 ansidecl.h )
11526 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11527 xm_include_list="${xm_include_list} $f"
11528 ;;
11529 auto-host.h )
11530 xm_file_list="${xm_file_list} $f"
11531 xm_include_list="${xm_include_list} $f"
11532 ;;
11533 * )
11534 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11535 xm_include_list="${xm_include_list} config/$f"
11536 ;;
11537 esac
11538 done
11539
11540 host_xm_file_list=
11541 host_xm_include_list=
11542 for f in $host_xm_file; do
11543 case $f in
11544 ansidecl.h )
11545 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11546 host_xm_include_list="${host_xm_include_list} $f"
11547 ;;
11548 auto-host.h )
11549 host_xm_file_list="${host_xm_file_list} $f"
11550 host_xm_include_list="${host_xm_include_list} $f"
11551 ;;
11552 * )
11553 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11554 host_xm_include_list="${host_xm_include_list} config/$f"
11555 ;;
11556 esac
11557 done
11558
11559 build_xm_file_list=
11560 for f in $build_xm_file; do
11561 case $f in
11562 ansidecl.h )
11563 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11564 build_xm_include_list="${build_xm_include_list} $f"
11565 ;;
11566 auto-build.h | auto-host.h )
11567 build_xm_file_list="${build_xm_file_list} $f"
11568 build_xm_include_list="${build_xm_include_list} $f"
11569 ;;
11570 * )
11571 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11572 build_xm_include_list="${build_xm_include_list} config/$f"
11573 ;;
11574 esac
11575 done
11576
11577 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11578 # cross-compiler which does not use the native headers and libraries.
11579 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11580 CROSS=
11581 ALL=all.internal
11582 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11583
11584 if test "x$with_build_sysroot" != x; then
11585 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11586 else
11587 # This value is used, even on a native system, because
11588 # CROSS_SYSTEM_HEADER_DIR is just
11589 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11590 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11591 fi
11592
11593 if test x$host != x$target
11594 then
11595 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11596 ALL=all.cross
11597 SYSTEM_HEADER_DIR=$build_system_header_dir
11598 case "$host","$target" in
11599 # Darwin crosses can use the host system's libraries and headers,
11600 # because of the fat library support. Of course, it must be the
11601 # same version of Darwin on both sides. Allow the user to
11602 # just say --target=foo-darwin without a version number to mean
11603 # "the version on this system".
11604 *-*-darwin*,*-*-darwin*)
11605 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11606 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11607 if test $hostos = $targetos -o $targetos = darwin ; then
11608 CROSS=
11609 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11610 with_headers=yes
11611 fi
11612 ;;
11613
11614 i?86-*-*,x86_64-*-* \
11615 | powerpc*-*-*,powerpc64*-*-*)
11616 CROSS="$CROSS -DNATIVE_CROSS" ;;
11617 esac
11618
11619 case $target in
11620 *-*-mingw*)
11621 if test "x$with_headers" = x; then
11622 with_headers=yes
11623 fi
11624 ;;
11625 *)
11626 ;;
11627 esac
11628 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11629 SYSTEM_HEADER_DIR=$build_system_header_dir
11630 fi
11631
11632 # If this is a cross-compiler that does not
11633 # have its own set of headers then define
11634 # inhibit_libc
11635
11636 # If this is using newlib, without having the headers available now,
11637 # then define inhibit_libc in LIBGCC2_CFLAGS.
11638 # This prevents libgcc2 from containing any code which requires libc
11639 # support.
11640 : ${inhibit_libc=false}
11641 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11642 test x$with_newlib = xyes ; } &&
11643 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11644 inhibit_libc=true
11645 fi
11646
11647
11648 # When building gcc with a cross-compiler, we need to adjust things so
11649 # that the generator programs are still built with the native compiler.
11650 # Also, we cannot run fixincludes.
11651
11652 # These are the normal (build=host) settings:
11653 CC_FOR_BUILD='$(CC)'
11654 CXX_FOR_BUILD='$(CXX)'
11655 BUILD_CFLAGS='$(ALL_CFLAGS)'
11656 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11657 BUILD_LDFLAGS='$(LDFLAGS)'
11658 STMP_FIXINC=stmp-fixinc
11659
11660 # And these apply if build != host, or we are generating coverage data
11661 if test x$build != x$host || test "x$coverage_flags" != x
11662 then
11663 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11664 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11665 fi
11666
11667 # Expand extra_headers to include complete path.
11668 # This substitutes for lots of t-* files.
11669 extra_headers_list=
11670 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11671 for file in ${extra_headers} ; do
11672 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11673 done
11674
11675 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11676 if test x"$use_gcc_tgmath" = xyes
11677 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11678 fi
11679
11680 # Define collect2 in Makefile.
11681 case $host_can_use_collect2 in
11682 no) collect2= ;;
11683 *) collect2='collect2$(exeext)' ;;
11684 esac
11685
11686
11687 # Add a definition of USE_COLLECT2 if system wants one.
11688 case $use_collect2 in
11689 no) use_collect2= ;;
11690 "") ;;
11691 *)
11692 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11693 xm_defines="${xm_defines} USE_COLLECT2"
11694 case $host_can_use_collect2 in
11695 no)
11696 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11697 ;;
11698 esac
11699 ;;
11700 esac
11701
11702
11703 cat >>confdefs.h <<_ACEOF
11704 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11705 _ACEOF
11706
11707
11708 # ---------------------------
11709 # Assembler & linker features
11710 # ---------------------------
11711
11712 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11713 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11714 # However when ld-new is first executed from the build tree, libtool will
11715 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11716 # to the build tree. While doing this we need to use the previous-stage
11717 # linker, or we have an infinite loop. The presence of a shell script as
11718 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11719 # the gcc/collect-ld script. So we need to know how libtool works, or
11720 # exec-tool will fail.
11721
11722
11723 case `pwd` in
11724 *\ * | *\ *)
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11726 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11727 esac
11728
11729
11730
11731 macro_version='2.2.7a'
11732 macro_revision='1.3134'
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746 ltmain="$ac_aux_dir/ltmain.sh"
11747
11748 # Backslashify metacharacters that are still active within
11749 # double-quoted strings.
11750 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11751
11752 # Same as above, but do not quote variable references.
11753 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11754
11755 # Sed substitution to delay expansion of an escaped shell variable in a
11756 # double_quote_subst'ed string.
11757 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11758
11759 # Sed substitution to delay expansion of an escaped single quote.
11760 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11761
11762 # Sed substitution to avoid accidental globbing in evaled expressions
11763 no_glob_subst='s/\*/\\\*/g'
11764
11765 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11766 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11767 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11770 $as_echo_n "checking how to print strings... " >&6; }
11771 # Test print first, because it will be a builtin if present.
11772 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11773 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11774 ECHO='print -r --'
11775 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11776 ECHO='printf %s\n'
11777 else
11778 # Use this function as a fallback that always works.
11779 func_fallback_echo ()
11780 {
11781 eval 'cat <<_LTECHO_EOF
11782 $1
11783 _LTECHO_EOF'
11784 }
11785 ECHO='func_fallback_echo'
11786 fi
11787
11788 # func_echo_all arg...
11789 # Invoke $ECHO with all args, space-separated.
11790 func_echo_all ()
11791 {
11792 $ECHO ""
11793 }
11794
11795 case "$ECHO" in
11796 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11797 $as_echo "printf" >&6; } ;;
11798 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11799 $as_echo "print -r" >&6; } ;;
11800 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11801 $as_echo "cat" >&6; } ;;
11802 esac
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11818 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11819 if test "${ac_cv_path_SED+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11823 for ac_i in 1 2 3 4 5 6 7; do
11824 ac_script="$ac_script$as_nl$ac_script"
11825 done
11826 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11827 { ac_script=; unset ac_script;}
11828 if test -z "$SED"; then
11829 ac_path_SED_found=false
11830 # Loop through the user's path and test for each of PROGNAME-LIST
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 for ac_prog in sed gsed; do
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11839 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11840 # Check for GNU ac_path_SED and select it if it is found.
11841 # Check for GNU $ac_path_SED
11842 case `"$ac_path_SED" --version 2>&1` in
11843 *GNU*)
11844 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11845 *)
11846 ac_count=0
11847 $as_echo_n 0123456789 >"conftest.in"
11848 while :
11849 do
11850 cat "conftest.in" "conftest.in" >"conftest.tmp"
11851 mv "conftest.tmp" "conftest.in"
11852 cp "conftest.in" "conftest.nl"
11853 $as_echo '' >> "conftest.nl"
11854 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11856 as_fn_arith $ac_count + 1 && ac_count=$as_val
11857 if test $ac_count -gt ${ac_path_SED_max-0}; then
11858 # Best one so far, save it but keep looking for a better one
11859 ac_cv_path_SED="$ac_path_SED"
11860 ac_path_SED_max=$ac_count
11861 fi
11862 # 10*(2^10) chars as input seems more than enough
11863 test $ac_count -gt 10 && break
11864 done
11865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11866 esac
11867
11868 $ac_path_SED_found && break 3
11869 done
11870 done
11871 done
11872 IFS=$as_save_IFS
11873 if test -z "$ac_cv_path_SED"; then
11874 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11875 fi
11876 else
11877 ac_cv_path_SED=$SED
11878 fi
11879
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11882 $as_echo "$ac_cv_path_SED" >&6; }
11883 SED="$ac_cv_path_SED"
11884 rm -f conftest.sed
11885
11886 test -z "$SED" && SED=sed
11887 Xsed="$SED -e 1s/^X//"
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11900 $as_echo_n "checking for fgrep... " >&6; }
11901 if test "${ac_cv_path_FGREP+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11905 then ac_cv_path_FGREP="$GREP -F"
11906 else
11907 if test -z "$FGREP"; then
11908 ac_path_FGREP_found=false
11909 # Loop through the user's path and test for each of PROGNAME-LIST
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11912 do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
11915 for ac_prog in fgrep; do
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11918 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11919 # Check for GNU ac_path_FGREP and select it if it is found.
11920 # Check for GNU $ac_path_FGREP
11921 case `"$ac_path_FGREP" --version 2>&1` in
11922 *GNU*)
11923 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11924 *)
11925 ac_count=0
11926 $as_echo_n 0123456789 >"conftest.in"
11927 while :
11928 do
11929 cat "conftest.in" "conftest.in" >"conftest.tmp"
11930 mv "conftest.tmp" "conftest.in"
11931 cp "conftest.in" "conftest.nl"
11932 $as_echo 'FGREP' >> "conftest.nl"
11933 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11935 as_fn_arith $ac_count + 1 && ac_count=$as_val
11936 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11937 # Best one so far, save it but keep looking for a better one
11938 ac_cv_path_FGREP="$ac_path_FGREP"
11939 ac_path_FGREP_max=$ac_count
11940 fi
11941 # 10*(2^10) chars as input seems more than enough
11942 test $ac_count -gt 10 && break
11943 done
11944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11945 esac
11946
11947 $ac_path_FGREP_found && break 3
11948 done
11949 done
11950 done
11951 IFS=$as_save_IFS
11952 if test -z "$ac_cv_path_FGREP"; then
11953 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11954 fi
11955 else
11956 ac_cv_path_FGREP=$FGREP
11957 fi
11958
11959 fi
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11962 $as_echo "$ac_cv_path_FGREP" >&6; }
11963 FGREP="$ac_cv_path_FGREP"
11964
11965
11966 test -z "$GREP" && GREP=grep
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986 # Check whether --with-gnu-ld was given.
11987 if test "${with_gnu_ld+set}" = set; then :
11988 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11989 else
11990 with_gnu_ld=no
11991 fi
11992
11993 ac_prog=ld
11994 if test "$GCC" = yes; then
11995 # Check if gcc -print-prog-name=ld gives a path.
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11997 $as_echo_n "checking for ld used by $CC... " >&6; }
11998 case $host in
11999 *-*-mingw*)
12000 # gcc leaves a trailing carriage return which upsets mingw
12001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12002 *)
12003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12004 esac
12005 case $ac_prog in
12006 # Accept absolute paths.
12007 [\\/]* | ?:[\\/]*)
12008 re_direlt='/[^/][^/]*/\.\./'
12009 # Canonicalize the pathname of ld
12010 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12011 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12012 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12013 done
12014 test -z "$LD" && LD="$ac_prog"
12015 ;;
12016 "")
12017 # If it fails, then pretend we aren't using GCC.
12018 ac_prog=ld
12019 ;;
12020 *)
12021 # If it is relative, then search for the first ld in PATH.
12022 with_gnu_ld=unknown
12023 ;;
12024 esac
12025 elif test "$with_gnu_ld" = yes; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12027 $as_echo_n "checking for GNU ld... " >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12030 $as_echo_n "checking for non-GNU ld... " >&6; }
12031 fi
12032 if test "${lt_cv_path_LD+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 if test -z "$LD"; then
12036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12037 for ac_dir in $PATH; do
12038 IFS="$lt_save_ifs"
12039 test -z "$ac_dir" && ac_dir=.
12040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12041 lt_cv_path_LD="$ac_dir/$ac_prog"
12042 # Check to see if the program is GNU ld. I'd rather use --version,
12043 # but apparently some variants of GNU ld only accept -v.
12044 # Break only if it was the GNU/non-GNU ld that we prefer.
12045 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12046 *GNU* | *'with BFD'*)
12047 test "$with_gnu_ld" != no && break
12048 ;;
12049 *)
12050 test "$with_gnu_ld" != yes && break
12051 ;;
12052 esac
12053 fi
12054 done
12055 IFS="$lt_save_ifs"
12056 else
12057 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12058 fi
12059 fi
12060
12061 LD="$lt_cv_path_LD"
12062 if test -n "$LD"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12064 $as_echo "$LD" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12071 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12072 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12076 case `$LD -v 2>&1 </dev/null` in
12077 *GNU* | *'with BFD'*)
12078 lt_cv_prog_gnu_ld=yes
12079 ;;
12080 *)
12081 lt_cv_prog_gnu_ld=no
12082 ;;
12083 esac
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12086 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12087 with_gnu_ld=$lt_cv_prog_gnu_ld
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12098 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12099 if test "${lt_cv_path_NM+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$NM"; then
12103 # Let the user override the test.
12104 lt_cv_path_NM="$NM"
12105 else
12106 lt_nm_to_check="${ac_tool_prefix}nm"
12107 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12108 lt_nm_to_check="$lt_nm_to_check nm"
12109 fi
12110 for lt_tmp_nm in $lt_nm_to_check; do
12111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12112 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12113 IFS="$lt_save_ifs"
12114 test -z "$ac_dir" && ac_dir=.
12115 tmp_nm="$ac_dir/$lt_tmp_nm"
12116 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12117 # Check to see if the nm accepts a BSD-compat flag.
12118 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12119 # nm: unknown option "B" ignored
12120 # Tru64's nm complains that /dev/null is an invalid object file
12121 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12122 */dev/null* | *'Invalid file or object type'*)
12123 lt_cv_path_NM="$tmp_nm -B"
12124 break
12125 ;;
12126 *)
12127 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12128 */dev/null*)
12129 lt_cv_path_NM="$tmp_nm -p"
12130 break
12131 ;;
12132 *)
12133 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12134 continue # so that we can try to find one that supports BSD flags
12135 ;;
12136 esac
12137 ;;
12138 esac
12139 fi
12140 done
12141 IFS="$lt_save_ifs"
12142 done
12143 : ${lt_cv_path_NM=no}
12144 fi
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12147 $as_echo "$lt_cv_path_NM" >&6; }
12148 if test "$lt_cv_path_NM" != "no"; then
12149 NM="$lt_cv_path_NM"
12150 else
12151 # Didn't find any BSD compatible name lister, look for dumpbin.
12152 if test -n "$DUMPBIN"; then :
12153 # Let the user override the test.
12154 else
12155 if test -n "$ac_tool_prefix"; then
12156 for ac_prog in dumpbin "link -dump"
12157 do
12158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test -n "$DUMPBIN"; then
12166 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12175 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12178 fi
12179 done
12180 done
12181 IFS=$as_save_IFS
12182
12183 fi
12184 fi
12185 DUMPBIN=$ac_cv_prog_DUMPBIN
12186 if test -n "$DUMPBIN"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12188 $as_echo "$DUMPBIN" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192 fi
12193
12194
12195 test -n "$DUMPBIN" && break
12196 done
12197 fi
12198 if test -z "$DUMPBIN"; then
12199 ac_ct_DUMPBIN=$DUMPBIN
12200 for ac_prog in dumpbin "link -dump"
12201 do
12202 # Extract the first word of "$ac_prog", so it can be a program name with args.
12203 set dummy $ac_prog; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 if test -n "$ac_ct_DUMPBIN"; then
12210 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223 done
12224 done
12225 IFS=$as_save_IFS
12226
12227 fi
12228 fi
12229 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12230 if test -n "$ac_ct_DUMPBIN"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12232 $as_echo "$ac_ct_DUMPBIN" >&6; }
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236 fi
12237
12238
12239 test -n "$ac_ct_DUMPBIN" && break
12240 done
12241
12242 if test "x$ac_ct_DUMPBIN" = x; then
12243 DUMPBIN=":"
12244 else
12245 case $cross_compiling:$ac_tool_warned in
12246 yes:)
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12249 ac_tool_warned=yes ;;
12250 esac
12251 DUMPBIN=$ac_ct_DUMPBIN
12252 fi
12253 fi
12254
12255 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12256 *COFF*)
12257 DUMPBIN="$DUMPBIN -symbols"
12258 ;;
12259 *)
12260 DUMPBIN=:
12261 ;;
12262 esac
12263 fi
12264
12265 if test "$DUMPBIN" != ":"; then
12266 NM="$DUMPBIN"
12267 fi
12268 fi
12269 test -z "$NM" && NM=nm
12270
12271
12272
12273
12274
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12277 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12278 if test "${lt_cv_nm_interface+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 lt_cv_nm_interface="BSD nm"
12282 echo "int some_variable = 0;" > conftest.$ac_ext
12283 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12284 (eval "$ac_compile" 2>conftest.err)
12285 cat conftest.err >&5
12286 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12287 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12288 cat conftest.err >&5
12289 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12290 cat conftest.out >&5
12291 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12292 lt_cv_nm_interface="MS dumpbin"
12293 fi
12294 rm -f conftest*
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12297 $as_echo "$lt_cv_nm_interface" >&6; }
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12300 $as_echo_n "checking whether ln -s works... " >&6; }
12301 LN_S=$as_ln_s
12302 if test "$LN_S" = "ln -s"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12304 $as_echo "yes" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12307 $as_echo "no, using $LN_S" >&6; }
12308 fi
12309
12310 # find the maximum length of command line arguments
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12312 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12313 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 i=0
12317 teststring="ABCD"
12318
12319 case $build_os in
12320 msdosdjgpp*)
12321 # On DJGPP, this test can blow up pretty badly due to problems in libc
12322 # (any single argument exceeding 2000 bytes causes a buffer overrun
12323 # during glob expansion). Even if it were fixed, the result of this
12324 # check would be larger than it should be.
12325 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12326 ;;
12327
12328 gnu*)
12329 # Under GNU Hurd, this test is not required because there is
12330 # no limit to the length of command line arguments.
12331 # Libtool will interpret -1 as no limit whatsoever
12332 lt_cv_sys_max_cmd_len=-1;
12333 ;;
12334
12335 cygwin* | mingw* | cegcc*)
12336 # On Win9x/ME, this test blows up -- it succeeds, but takes
12337 # about 5 minutes as the teststring grows exponentially.
12338 # Worse, since 9x/ME are not pre-emptively multitasking,
12339 # you end up with a "frozen" computer, even though with patience
12340 # the test eventually succeeds (with a max line length of 256k).
12341 # Instead, let's just punt: use the minimum linelength reported by
12342 # all of the supported platforms: 8192 (on NT/2K/XP).
12343 lt_cv_sys_max_cmd_len=8192;
12344 ;;
12345
12346 mint*)
12347 # On MiNT this can take a long time and run out of memory.
12348 lt_cv_sys_max_cmd_len=8192;
12349 ;;
12350
12351 amigaos*)
12352 # On AmigaOS with pdksh, this test takes hours, literally.
12353 # So we just punt and use a minimum line length of 8192.
12354 lt_cv_sys_max_cmd_len=8192;
12355 ;;
12356
12357 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12358 # This has been around since 386BSD, at least. Likely further.
12359 if test -x /sbin/sysctl; then
12360 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12361 elif test -x /usr/sbin/sysctl; then
12362 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12363 else
12364 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12365 fi
12366 # And add a safety zone
12367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12369 ;;
12370
12371 interix*)
12372 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12373 lt_cv_sys_max_cmd_len=196608
12374 ;;
12375
12376 osf*)
12377 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12378 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12379 # nice to cause kernel panics so lets avoid the loop below.
12380 # First set a reasonable default.
12381 lt_cv_sys_max_cmd_len=16384
12382 #
12383 if test -x /sbin/sysconfig; then
12384 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12385 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12386 esac
12387 fi
12388 ;;
12389 sco3.2v5*)
12390 lt_cv_sys_max_cmd_len=102400
12391 ;;
12392 sysv5* | sco5v6* | sysv4.2uw2*)
12393 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12394 if test -n "$kargmax"; then
12395 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12396 else
12397 lt_cv_sys_max_cmd_len=32768
12398 fi
12399 ;;
12400 *)
12401 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12402 if test -n "$lt_cv_sys_max_cmd_len"; then
12403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12405 else
12406 # Make teststring a little bigger before we do anything with it.
12407 # a 1K string should be a reasonable start.
12408 for i in 1 2 3 4 5 6 7 8 ; do
12409 teststring=$teststring$teststring
12410 done
12411 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12412 # If test is not a shell built-in, we'll probably end up computing a
12413 # maximum length that is only half of the actual maximum length, but
12414 # we can't tell.
12415 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12416 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12417 test $i != 17 # 1/2 MB should be enough
12418 do
12419 i=`expr $i + 1`
12420 teststring=$teststring$teststring
12421 done
12422 # Only check the string length outside the loop.
12423 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12424 teststring=
12425 # Add a significant safety factor because C++ compilers can tack on
12426 # massive amounts of additional arguments before passing them to the
12427 # linker. It appears as though 1/2 is a usable value.
12428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12429 fi
12430 ;;
12431 esac
12432
12433 fi
12434
12435 if test -n $lt_cv_sys_max_cmd_len ; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12437 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12440 $as_echo "none" >&6; }
12441 fi
12442 max_cmd_len=$lt_cv_sys_max_cmd_len
12443
12444
12445
12446
12447
12448
12449 : ${CP="cp -f"}
12450 : ${MV="mv -f"}
12451 : ${RM="rm -f"}
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12454 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12455 # Try some XSI features
12456 xsi_shell=no
12457 ( _lt_dummy="a/b/c"
12458 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12459 = c,a/b,, \
12460 && eval 'test $(( 1 + 1 )) -eq 2 \
12461 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12462 && xsi_shell=yes
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12464 $as_echo "$xsi_shell" >&6; }
12465
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12468 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12469 lt_shell_append=no
12470 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12471 >/dev/null 2>&1 \
12472 && lt_shell_append=yes
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12474 $as_echo "$lt_shell_append" >&6; }
12475
12476
12477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12478 lt_unset=unset
12479 else
12480 lt_unset=false
12481 fi
12482
12483
12484
12485
12486
12487 # test EBCDIC or ASCII
12488 case `echo X|tr X '\101'` in
12489 A) # ASCII based system
12490 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12491 lt_SP2NL='tr \040 \012'
12492 lt_NL2SP='tr \015\012 \040\040'
12493 ;;
12494 *) # EBCDIC based system
12495 lt_SP2NL='tr \100 \n'
12496 lt_NL2SP='tr \r\n \100\100'
12497 ;;
12498 esac
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12509 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12510 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 lt_cv_ld_reload_flag='-r'
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12516 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12517 reload_flag=$lt_cv_ld_reload_flag
12518 case $reload_flag in
12519 "" | " "*) ;;
12520 *) reload_flag=" $reload_flag" ;;
12521 esac
12522 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12523 case $host_os in
12524 darwin*)
12525 if test "$GCC" = yes; then
12526 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12527 else
12528 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12529 fi
12530 ;;
12531 esac
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541 if test -n "$ac_tool_prefix"; then
12542 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12543 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$OBJDUMP"; then
12550 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12554 do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12559 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12562 fi
12563 done
12564 done
12565 IFS=$as_save_IFS
12566
12567 fi
12568 fi
12569 OBJDUMP=$ac_cv_prog_OBJDUMP
12570 if test -n "$OBJDUMP"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12572 $as_echo "$OBJDUMP" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577
12578
12579 fi
12580 if test -z "$ac_cv_prog_OBJDUMP"; then
12581 ac_ct_OBJDUMP=$OBJDUMP
12582 # Extract the first word of "objdump", so it can be a program name with args.
12583 set dummy objdump; ac_word=$2
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 $as_echo_n "checking for $ac_word... " >&6; }
12586 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 if test -n "$ac_ct_OBJDUMP"; then
12590 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12591 else
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH
12594 do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12599 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12601 break 2
12602 fi
12603 done
12604 done
12605 IFS=$as_save_IFS
12606
12607 fi
12608 fi
12609 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12610 if test -n "$ac_ct_OBJDUMP"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12612 $as_echo "$ac_ct_OBJDUMP" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12616 fi
12617
12618 if test "x$ac_ct_OBJDUMP" = x; then
12619 OBJDUMP="false"
12620 else
12621 case $cross_compiling:$ac_tool_warned in
12622 yes:)
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12625 ac_tool_warned=yes ;;
12626 esac
12627 OBJDUMP=$ac_ct_OBJDUMP
12628 fi
12629 else
12630 OBJDUMP="$ac_cv_prog_OBJDUMP"
12631 fi
12632
12633 test -z "$OBJDUMP" && OBJDUMP=objdump
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12644 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12645 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 lt_cv_file_magic_cmd='$MAGIC_CMD'
12649 lt_cv_file_magic_test_file=
12650 lt_cv_deplibs_check_method='unknown'
12651 # Need to set the preceding variable on all platforms that support
12652 # interlibrary dependencies.
12653 # 'none' -- dependencies not supported.
12654 # `unknown' -- same as none, but documents that we really don't know.
12655 # 'pass_all' -- all dependencies passed with no checks.
12656 # 'test_compile' -- check by making test program.
12657 # 'file_magic [[regex]]' -- check by looking for files in library path
12658 # which responds to the $file_magic_cmd with a given extended regex.
12659 # If you have `file' or equivalent on your system and you're not sure
12660 # whether `pass_all' will *always* work, you probably want this one.
12661
12662 case $host_os in
12663 aix[4-9]*)
12664 lt_cv_deplibs_check_method=pass_all
12665 ;;
12666
12667 beos*)
12668 lt_cv_deplibs_check_method=pass_all
12669 ;;
12670
12671 bsdi[45]*)
12672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12673 lt_cv_file_magic_cmd='/usr/bin/file -L'
12674 lt_cv_file_magic_test_file=/shlib/libc.so
12675 ;;
12676
12677 cygwin*)
12678 # func_win32_libid is a shell function defined in ltmain.sh
12679 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12680 lt_cv_file_magic_cmd='func_win32_libid'
12681 ;;
12682
12683 mingw* | pw32*)
12684 # Base MSYS/MinGW do not provide the 'file' command needed by
12685 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12686 # unless we find 'file', for example because we are cross-compiling.
12687 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12688 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12689 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12690 lt_cv_file_magic_cmd='func_win32_libid'
12691 else
12692 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12693 lt_cv_file_magic_cmd='$OBJDUMP -f'
12694 fi
12695 ;;
12696
12697 cegcc*)
12698 # use the weaker test based on 'objdump'. See mingw*.
12699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12700 lt_cv_file_magic_cmd='$OBJDUMP -f'
12701 ;;
12702
12703 darwin* | rhapsody*)
12704 lt_cv_deplibs_check_method=pass_all
12705 ;;
12706
12707 freebsd* | dragonfly*)
12708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12709 case $host_cpu in
12710 i*86 )
12711 # Not sure whether the presence of OpenBSD here was a mistake.
12712 # Let's accept both of them until this is cleared up.
12713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12714 lt_cv_file_magic_cmd=/usr/bin/file
12715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12716 ;;
12717 esac
12718 else
12719 lt_cv_deplibs_check_method=pass_all
12720 fi
12721 ;;
12722
12723 gnu*)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
12726
12727 haiku*)
12728 lt_cv_deplibs_check_method=pass_all
12729 ;;
12730
12731 hpux10.20* | hpux11*)
12732 lt_cv_file_magic_cmd=/usr/bin/file
12733 case $host_cpu in
12734 ia64*)
12735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12737 ;;
12738 hppa*64*)
12739 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]'
12740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12741 ;;
12742 *)
12743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12744 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12745 ;;
12746 esac
12747 ;;
12748
12749 interix[3-9]*)
12750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12752 ;;
12753
12754 irix5* | irix6* | nonstopux*)
12755 case $LD in
12756 *-32|*"-32 ") libmagic=32-bit;;
12757 *-n32|*"-n32 ") libmagic=N32;;
12758 *-64|*"-64 ") libmagic=64-bit;;
12759 *) libmagic=never-match;;
12760 esac
12761 lt_cv_deplibs_check_method=pass_all
12762 ;;
12763
12764 # This must be Linux ELF.
12765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12766 lt_cv_deplibs_check_method=pass_all
12767 ;;
12768
12769 netbsd*)
12770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12772 else
12773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12774 fi
12775 ;;
12776
12777 newos6*)
12778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12779 lt_cv_file_magic_cmd=/usr/bin/file
12780 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12781 ;;
12782
12783 *nto* | *qnx*)
12784 lt_cv_deplibs_check_method=pass_all
12785 ;;
12786
12787 openbsd*)
12788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12790 else
12791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12792 fi
12793 ;;
12794
12795 osf3* | osf4* | osf5*)
12796 lt_cv_deplibs_check_method=pass_all
12797 ;;
12798
12799 rdos*)
12800 lt_cv_deplibs_check_method=pass_all
12801 ;;
12802
12803 solaris*)
12804 lt_cv_deplibs_check_method=pass_all
12805 ;;
12806
12807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12808 lt_cv_deplibs_check_method=pass_all
12809 ;;
12810
12811 sysv4 | sysv4.3*)
12812 case $host_vendor in
12813 motorola)
12814 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]'
12815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12816 ;;
12817 ncr)
12818 lt_cv_deplibs_check_method=pass_all
12819 ;;
12820 sequent)
12821 lt_cv_file_magic_cmd='/bin/file'
12822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12823 ;;
12824 sni)
12825 lt_cv_file_magic_cmd='/bin/file'
12826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12827 lt_cv_file_magic_test_file=/lib/libc.so
12828 ;;
12829 siemens)
12830 lt_cv_deplibs_check_method=pass_all
12831 ;;
12832 pc)
12833 lt_cv_deplibs_check_method=pass_all
12834 ;;
12835 esac
12836 ;;
12837
12838 tpf*)
12839 lt_cv_deplibs_check_method=pass_all
12840 ;;
12841 esac
12842
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12845 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12846 file_magic_cmd=$lt_cv_file_magic_cmd
12847 deplibs_check_method=$lt_cv_deplibs_check_method
12848 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12863 set dummy ${ac_tool_prefix}ar; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_prog_AR+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 if test -n "$AR"; then
12870 ac_cv_prog_AR="$AR" # Let the user override the test.
12871 else
12872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12874 do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879 ac_cv_prog_AR="${ac_tool_prefix}ar"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12882 fi
12883 done
12884 done
12885 IFS=$as_save_IFS
12886
12887 fi
12888 fi
12889 AR=$ac_cv_prog_AR
12890 if test -n "$AR"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12892 $as_echo "$AR" >&6; }
12893 else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 fi
12897
12898
12899 fi
12900 if test -z "$ac_cv_prog_AR"; then
12901 ac_ct_AR=$AR
12902 # Extract the first word of "ar", so it can be a program name with args.
12903 set dummy ar; ac_word=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 if test -n "$ac_ct_AR"; then
12910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12911 else
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12914 do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12919 ac_cv_prog_ac_ct_AR="ar"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925 IFS=$as_save_IFS
12926
12927 fi
12928 fi
12929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12930 if test -n "$ac_ct_AR"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12932 $as_echo "$ac_ct_AR" >&6; }
12933 else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12936 fi
12937
12938 if test "x$ac_ct_AR" = x; then
12939 AR="false"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942 yes:)
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945 ac_tool_warned=yes ;;
12946 esac
12947 AR=$ac_ct_AR
12948 fi
12949 else
12950 AR="$ac_cv_prog_AR"
12951 fi
12952
12953 test -z "$AR" && AR=ar
12954 test -z "$AR_FLAGS" && AR_FLAGS=cru
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966 if test -n "$ac_tool_prefix"; then
12967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12968 set dummy ${ac_tool_prefix}strip; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if test "${ac_cv_prog_STRIP+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test -n "$STRIP"; then
12975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12976 else
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12979 do
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12987 fi
12988 done
12989 done
12990 IFS=$as_save_IFS
12991
12992 fi
12993 fi
12994 STRIP=$ac_cv_prog_STRIP
12995 if test -n "$STRIP"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12997 $as_echo "$STRIP" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 fi
13002
13003
13004 fi
13005 if test -z "$ac_cv_prog_STRIP"; then
13006 ac_ct_STRIP=$STRIP
13007 # Extract the first word of "strip", so it can be a program name with args.
13008 set dummy strip; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 if test -n "$ac_ct_STRIP"; then
13015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13016 else
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_prog_ac_ct_STRIP="strip"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13027 fi
13028 done
13029 done
13030 IFS=$as_save_IFS
13031
13032 fi
13033 fi
13034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13035 if test -n "$ac_ct_STRIP"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13037 $as_echo "$ac_ct_STRIP" >&6; }
13038 else
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041 fi
13042
13043 if test "x$ac_ct_STRIP" = x; then
13044 STRIP=":"
13045 else
13046 case $cross_compiling:$ac_tool_warned in
13047 yes:)
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13050 ac_tool_warned=yes ;;
13051 esac
13052 STRIP=$ac_ct_STRIP
13053 fi
13054 else
13055 STRIP="$ac_cv_prog_STRIP"
13056 fi
13057
13058 test -z "$STRIP" && STRIP=:
13059
13060
13061
13062
13063
13064
13065 if test -n "$ac_tool_prefix"; then
13066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test -n "$RANLIB"; then
13074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13075 else
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13078 do
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13086 fi
13087 done
13088 done
13089 IFS=$as_save_IFS
13090
13091 fi
13092 fi
13093 RANLIB=$ac_cv_prog_RANLIB
13094 if test -n "$RANLIB"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13096 $as_echo "$RANLIB" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 fi
13101
13102
13103 fi
13104 if test -z "$ac_cv_prog_RANLIB"; then
13105 ac_ct_RANLIB=$RANLIB
13106 # Extract the first word of "ranlib", so it can be a program name with args.
13107 set dummy ranlib; ac_word=$2
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109 $as_echo_n "checking for $ac_word... " >&6; }
13110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 if test -n "$ac_ct_RANLIB"; then
13114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13115 else
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13118 do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123 ac_cv_prog_ac_ct_RANLIB="ranlib"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127 done
13128 done
13129 IFS=$as_save_IFS
13130
13131 fi
13132 fi
13133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13134 if test -n "$ac_ct_RANLIB"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13136 $as_echo "$ac_ct_RANLIB" >&6; }
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13140 fi
13141
13142 if test "x$ac_ct_RANLIB" = x; then
13143 RANLIB=":"
13144 else
13145 case $cross_compiling:$ac_tool_warned in
13146 yes:)
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13149 ac_tool_warned=yes ;;
13150 esac
13151 RANLIB=$ac_ct_RANLIB
13152 fi
13153 else
13154 RANLIB="$ac_cv_prog_RANLIB"
13155 fi
13156
13157 test -z "$RANLIB" && RANLIB=:
13158
13159
13160
13161
13162
13163
13164 # Determine commands to create old-style static archives.
13165 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13166 old_postinstall_cmds='chmod 644 $oldlib'
13167 old_postuninstall_cmds=
13168
13169 if test -n "$RANLIB"; then
13170 case $host_os in
13171 openbsd*)
13172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13173 ;;
13174 *)
13175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13176 ;;
13177 esac
13178 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13179 fi
13180
13181 case $host_os in
13182 darwin*)
13183 lock_old_archive_extraction=yes ;;
13184 *)
13185 lock_old_archive_extraction=no ;;
13186 esac
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
13226 # If no C compiler was specified, use CC.
13227 LTCC=${LTCC-"$CC"}
13228
13229 # If no C compiler flags were specified, use CFLAGS.
13230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13231
13232 # Allow CC to be a program name with arguments.
13233 compiler=$CC
13234
13235
13236 # Check for command to grab the raw symbol name followed by C symbol from nm.
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13238 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13239 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242
13243 # These are sane defaults that work on at least a few old systems.
13244 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13245
13246 # Character class describing NM global symbol codes.
13247 symcode='[BCDEGRST]'
13248
13249 # Regexp to match symbols that can be accessed directly from C.
13250 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13251
13252 # Define system-specific variables.
13253 case $host_os in
13254 aix*)
13255 symcode='[BCDT]'
13256 ;;
13257 cygwin* | mingw* | pw32* | cegcc*)
13258 symcode='[ABCDGISTW]'
13259 ;;
13260 hpux*)
13261 if test "$host_cpu" = ia64; then
13262 symcode='[ABCDEGRST]'
13263 fi
13264 ;;
13265 irix* | nonstopux*)
13266 symcode='[BCDEGRST]'
13267 ;;
13268 osf*)
13269 symcode='[BCDEGQRST]'
13270 ;;
13271 solaris*)
13272 symcode='[BDRT]'
13273 ;;
13274 sco3.2v5*)
13275 symcode='[DT]'
13276 ;;
13277 sysv4.2uw2*)
13278 symcode='[DT]'
13279 ;;
13280 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13281 symcode='[ABDT]'
13282 ;;
13283 sysv4)
13284 symcode='[DFNSTU]'
13285 ;;
13286 esac
13287
13288 # If we're using GNU nm, then use its standard symbol codes.
13289 case `$NM -V 2>&1` in
13290 *GNU* | *'with BFD'*)
13291 symcode='[ABCDGIRSTW]' ;;
13292 esac
13293
13294 # Transform an extracted symbol line into a proper C declaration.
13295 # Some systems (esp. on ia64) link data and code symbols differently,
13296 # so use this general approach.
13297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13298
13299 # Transform an extracted symbol line into symbol name and symbol address
13300 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13301 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'"
13302
13303 # Handle CRLF in mingw tool chain
13304 opt_cr=
13305 case $build_os in
13306 mingw*)
13307 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13308 ;;
13309 esac
13310
13311 # Try without a prefix underscore, then with it.
13312 for ac_symprfx in "" "_"; do
13313
13314 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13315 symxfrm="\\1 $ac_symprfx\\2 \\2"
13316
13317 # Write the raw and C identifiers.
13318 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13319 # Fake it for dumpbin and say T for any non-static function
13320 # and D for any global variable.
13321 # Also find C++ and __fastcall symbols from MSVC++,
13322 # which start with @ or ?.
13323 lt_cv_sys_global_symbol_pipe="$AWK '"\
13324 " {last_section=section; section=\$ 3};"\
13325 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13326 " \$ 0!~/External *\|/{next};"\
13327 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13328 " {if(hide[section]) next};"\
13329 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13330 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13331 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13332 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13333 " ' prfx=^$ac_symprfx"
13334 else
13335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13336 fi
13337
13338 # Check to see that the pipe works correctly.
13339 pipe_works=no
13340
13341 rm -f conftest*
13342 cat > conftest.$ac_ext <<_LT_EOF
13343 #ifdef __cplusplus
13344 extern "C" {
13345 #endif
13346 char nm_test_var;
13347 void nm_test_func(void);
13348 void nm_test_func(void){}
13349 #ifdef __cplusplus
13350 }
13351 #endif
13352 int main(){nm_test_var='a';nm_test_func();return(0);}
13353 _LT_EOF
13354
13355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13356 (eval $ac_compile) 2>&5
13357 ac_status=$?
13358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359 test $ac_status = 0; }; then
13360 # Now try to grab the symbols.
13361 nlist=conftest.nm
13362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13363 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; } && test -s "$nlist"; then
13367 # Try sorting and uniquifying the output.
13368 if sort "$nlist" | uniq > "$nlist"T; then
13369 mv -f "$nlist"T "$nlist"
13370 else
13371 rm -f "$nlist"T
13372 fi
13373
13374 # Make sure that we snagged all the symbols we need.
13375 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13376 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13377 cat <<_LT_EOF > conftest.$ac_ext
13378 #ifdef __cplusplus
13379 extern "C" {
13380 #endif
13381
13382 _LT_EOF
13383 # Now generate the symbol file.
13384 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13385
13386 cat <<_LT_EOF >> conftest.$ac_ext
13387
13388 /* The mapping between symbol names and symbols. */
13389 const struct {
13390 const char *name;
13391 void *address;
13392 }
13393 lt__PROGRAM__LTX_preloaded_symbols[] =
13394 {
13395 { "@PROGRAM@", (void *) 0 },
13396 _LT_EOF
13397 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13398 cat <<\_LT_EOF >> conftest.$ac_ext
13399 {0, (void *) 0}
13400 };
13401
13402 /* This works around a problem in FreeBSD linker */
13403 #ifdef FREEBSD_WORKAROUND
13404 static const void *lt_preloaded_setup() {
13405 return lt__PROGRAM__LTX_preloaded_symbols;
13406 }
13407 #endif
13408
13409 #ifdef __cplusplus
13410 }
13411 #endif
13412 _LT_EOF
13413 # Now try linking the two files.
13414 mv conftest.$ac_objext conftstm.$ac_objext
13415 lt_save_LIBS="$LIBS"
13416 lt_save_CFLAGS="$CFLAGS"
13417 LIBS="conftstm.$ac_objext"
13418 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13420 (eval $ac_link) 2>&5
13421 ac_status=$?
13422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13423 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13424 pipe_works=yes
13425 fi
13426 LIBS="$lt_save_LIBS"
13427 CFLAGS="$lt_save_CFLAGS"
13428 else
13429 echo "cannot find nm_test_func in $nlist" >&5
13430 fi
13431 else
13432 echo "cannot find nm_test_var in $nlist" >&5
13433 fi
13434 else
13435 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13436 fi
13437 else
13438 echo "$progname: failed program was:" >&5
13439 cat conftest.$ac_ext >&5
13440 fi
13441 rm -rf conftest* conftst*
13442
13443 # Do not use the global_symbol_pipe unless it works.
13444 if test "$pipe_works" = yes; then
13445 break
13446 else
13447 lt_cv_sys_global_symbol_pipe=
13448 fi
13449 done
13450
13451 fi
13452
13453 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13454 lt_cv_sys_global_symbol_to_cdecl=
13455 fi
13456 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13458 $as_echo "failed" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13461 $as_echo "ok" >&6; }
13462 fi
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485 # Check whether --enable-libtool-lock was given.
13486 if test "${enable_libtool_lock+set}" = set; then :
13487 enableval=$enable_libtool_lock;
13488 fi
13489
13490 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13491
13492 # Some flags need to be propagated to the compiler or linker for good
13493 # libtool support.
13494 case $host in
13495 ia64-*-hpux*)
13496 # Find out which ABI we are using.
13497 echo 'int i;' > conftest.$ac_ext
13498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13499 (eval $ac_compile) 2>&5
13500 ac_status=$?
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 case `/usr/bin/file conftest.$ac_objext` in
13504 *ELF-32*)
13505 HPUX_IA64_MODE="32"
13506 ;;
13507 *ELF-64*)
13508 HPUX_IA64_MODE="64"
13509 ;;
13510 esac
13511 fi
13512 rm -rf conftest*
13513 ;;
13514 *-*-irix6*)
13515 # Find out which ABI we are using.
13516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13518 (eval $ac_compile) 2>&5
13519 ac_status=$?
13520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13521 test $ac_status = 0; }; then
13522 if test "$lt_cv_prog_gnu_ld" = yes; then
13523 case `/usr/bin/file conftest.$ac_objext` in
13524 *32-bit*)
13525 LD="${LD-ld} -melf32bsmip"
13526 ;;
13527 *N32*)
13528 LD="${LD-ld} -melf32bmipn32"
13529 ;;
13530 *64-bit*)
13531 LD="${LD-ld} -melf64bmip"
13532 ;;
13533 esac
13534 else
13535 case `/usr/bin/file conftest.$ac_objext` in
13536 *32-bit*)
13537 LD="${LD-ld} -32"
13538 ;;
13539 *N32*)
13540 LD="${LD-ld} -n32"
13541 ;;
13542 *64-bit*)
13543 LD="${LD-ld} -64"
13544 ;;
13545 esac
13546 fi
13547 fi
13548 rm -rf conftest*
13549 ;;
13550
13551 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13552 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13553 # Find out which ABI we are using.
13554 echo 'int i;' > conftest.$ac_ext
13555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13556 (eval $ac_compile) 2>&5
13557 ac_status=$?
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }; then
13560 case `/usr/bin/file conftest.o` in
13561 *32-bit*)
13562 case $host in
13563 x86_64-*kfreebsd*-gnu)
13564 LD="${LD-ld} -m elf_i386_fbsd"
13565 ;;
13566 x86_64-*linux*)
13567 case `/usr/bin/file conftest.o` in
13568 *x86-64*)
13569 LD="${LD-ld} -m elf32_x86_64"
13570 ;;
13571 *)
13572 LD="${LD-ld} -m elf_i386"
13573 ;;
13574 esac
13575 ;;
13576 ppc64-*linux*|powerpc64-*linux*)
13577 LD="${LD-ld} -m elf32ppclinux"
13578 ;;
13579 s390x-*linux*)
13580 LD="${LD-ld} -m elf_s390"
13581 ;;
13582 sparc64-*linux*)
13583 LD="${LD-ld} -m elf32_sparc"
13584 ;;
13585 esac
13586 ;;
13587 *64-bit*)
13588 case $host in
13589 x86_64-*kfreebsd*-gnu)
13590 LD="${LD-ld} -m elf_x86_64_fbsd"
13591 ;;
13592 x86_64-*linux*)
13593 LD="${LD-ld} -m elf_x86_64"
13594 ;;
13595 ppc*-*linux*|powerpc*-*linux*)
13596 LD="${LD-ld} -m elf64ppc"
13597 ;;
13598 s390*-*linux*|s390*-*tpf*)
13599 LD="${LD-ld} -m elf64_s390"
13600 ;;
13601 sparc*-*linux*)
13602 LD="${LD-ld} -m elf64_sparc"
13603 ;;
13604 esac
13605 ;;
13606 esac
13607 fi
13608 rm -rf conftest*
13609 ;;
13610
13611 *-*-sco3.2v5*)
13612 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13613 SAVE_CFLAGS="$CFLAGS"
13614 CFLAGS="$CFLAGS -belf"
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13616 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13617 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 ac_ext=c
13621 ac_cpp='$CPP $CPPFLAGS'
13622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13625
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628
13629 int
13630 main ()
13631 {
13632
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 lt_cv_cc_needs_belf=yes
13639 else
13640 lt_cv_cc_needs_belf=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 ac_ext=c
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13652 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13653 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13654 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13655 CFLAGS="$SAVE_CFLAGS"
13656 fi
13657 ;;
13658 sparc*-*solaris*)
13659 # Find out which ABI we are using.
13660 echo 'int i;' > conftest.$ac_ext
13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13662 (eval $ac_compile) 2>&5
13663 ac_status=$?
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; }; then
13666 case `/usr/bin/file conftest.o` in
13667 *64-bit*)
13668 case $lt_cv_prog_gnu_ld in
13669 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13670 *)
13671 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13672 LD="${LD-ld} -64"
13673 fi
13674 ;;
13675 esac
13676 ;;
13677 esac
13678 fi
13679 rm -rf conftest*
13680 ;;
13681 esac
13682
13683 need_locks="$enable_libtool_lock"
13684
13685
13686 case $host_os in
13687 rhapsody* | darwin*)
13688 if test -n "$ac_tool_prefix"; then
13689 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13690 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692 $as_echo_n "checking for $ac_word... " >&6; }
13693 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 if test -n "$DSYMUTIL"; then
13697 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13698 else
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13701 do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13706 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710 done
13711 done
13712 IFS=$as_save_IFS
13713
13714 fi
13715 fi
13716 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13717 if test -n "$DSYMUTIL"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13719 $as_echo "$DSYMUTIL" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13723 fi
13724
13725
13726 fi
13727 if test -z "$ac_cv_prog_DSYMUTIL"; then
13728 ac_ct_DSYMUTIL=$DSYMUTIL
13729 # Extract the first word of "dsymutil", so it can be a program name with args.
13730 set dummy dsymutil; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 if test -n "$ac_ct_DSYMUTIL"; then
13737 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13738 else
13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740 for as_dir in $PATH
13741 do
13742 IFS=$as_save_IFS
13743 test -z "$as_dir" && as_dir=.
13744 for ac_exec_ext in '' $ac_executable_extensions; do
13745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13746 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748 break 2
13749 fi
13750 done
13751 done
13752 IFS=$as_save_IFS
13753
13754 fi
13755 fi
13756 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13757 if test -n "$ac_ct_DSYMUTIL"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13759 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13760 else
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13763 fi
13764
13765 if test "x$ac_ct_DSYMUTIL" = x; then
13766 DSYMUTIL=":"
13767 else
13768 case $cross_compiling:$ac_tool_warned in
13769 yes:)
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13772 ac_tool_warned=yes ;;
13773 esac
13774 DSYMUTIL=$ac_ct_DSYMUTIL
13775 fi
13776 else
13777 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13778 fi
13779
13780 if test -n "$ac_tool_prefix"; then
13781 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13782 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 if test -n "$NMEDIT"; then
13789 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13790 else
13791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13793 do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13798 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802 done
13803 done
13804 IFS=$as_save_IFS
13805
13806 fi
13807 fi
13808 NMEDIT=$ac_cv_prog_NMEDIT
13809 if test -n "$NMEDIT"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13811 $as_echo "$NMEDIT" >&6; }
13812 else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13815 fi
13816
13817
13818 fi
13819 if test -z "$ac_cv_prog_NMEDIT"; then
13820 ac_ct_NMEDIT=$NMEDIT
13821 # Extract the first word of "nmedit", so it can be a program name with args.
13822 set dummy nmedit; ac_word=$2
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824 $as_echo_n "checking for $ac_word... " >&6; }
13825 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 if test -n "$ac_ct_NMEDIT"; then
13829 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13830 else
13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13833 do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
13837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13838 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 break 2
13841 fi
13842 done
13843 done
13844 IFS=$as_save_IFS
13845
13846 fi
13847 fi
13848 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13849 if test -n "$ac_ct_NMEDIT"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13851 $as_echo "$ac_ct_NMEDIT" >&6; }
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856
13857 if test "x$ac_ct_NMEDIT" = x; then
13858 NMEDIT=":"
13859 else
13860 case $cross_compiling:$ac_tool_warned in
13861 yes:)
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13864 ac_tool_warned=yes ;;
13865 esac
13866 NMEDIT=$ac_ct_NMEDIT
13867 fi
13868 else
13869 NMEDIT="$ac_cv_prog_NMEDIT"
13870 fi
13871
13872 if test -n "$ac_tool_prefix"; then
13873 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13874 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if test "${ac_cv_prog_LIPO+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$LIPO"; then
13881 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13885 do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13890 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894 done
13895 done
13896 IFS=$as_save_IFS
13897
13898 fi
13899 fi
13900 LIPO=$ac_cv_prog_LIPO
13901 if test -n "$LIPO"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13903 $as_echo "$LIPO" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 fi
13908
13909
13910 fi
13911 if test -z "$ac_cv_prog_LIPO"; then
13912 ac_ct_LIPO=$LIPO
13913 # Extract the first word of "lipo", so it can be a program name with args.
13914 set dummy lipo; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 if test -n "$ac_ct_LIPO"; then
13921 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13922 else
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13925 do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13930 ac_cv_prog_ac_ct_LIPO="lipo"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934 done
13935 done
13936 IFS=$as_save_IFS
13937
13938 fi
13939 fi
13940 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13941 if test -n "$ac_ct_LIPO"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13943 $as_echo "$ac_ct_LIPO" >&6; }
13944 else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 $as_echo "no" >&6; }
13947 fi
13948
13949 if test "x$ac_ct_LIPO" = x; then
13950 LIPO=":"
13951 else
13952 case $cross_compiling:$ac_tool_warned in
13953 yes:)
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13956 ac_tool_warned=yes ;;
13957 esac
13958 LIPO=$ac_ct_LIPO
13959 fi
13960 else
13961 LIPO="$ac_cv_prog_LIPO"
13962 fi
13963
13964 if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13966 set dummy ${ac_tool_prefix}otool; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 if test -n "$OTOOL"; then
13973 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986 done
13987 done
13988 IFS=$as_save_IFS
13989
13990 fi
13991 fi
13992 OTOOL=$ac_cv_prog_OTOOL
13993 if test -n "$OTOOL"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13995 $as_echo "$OTOOL" >&6; }
13996 else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
13999 fi
14000
14001
14002 fi
14003 if test -z "$ac_cv_prog_OTOOL"; then
14004 ac_ct_OTOOL=$OTOOL
14005 # Extract the first word of "otool", so it can be a program name with args.
14006 set dummy otool; ac_word=$2
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 $as_echo_n "checking for $ac_word... " >&6; }
14009 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 if test -n "$ac_ct_OTOOL"; then
14013 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_ac_ct_OTOOL="otool"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 fi
14031 fi
14032 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14033 if test -n "$ac_ct_OTOOL"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14035 $as_echo "$ac_ct_OTOOL" >&6; }
14036 else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 $as_echo "no" >&6; }
14039 fi
14040
14041 if test "x$ac_ct_OTOOL" = x; then
14042 OTOOL=":"
14043 else
14044 case $cross_compiling:$ac_tool_warned in
14045 yes:)
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14048 ac_tool_warned=yes ;;
14049 esac
14050 OTOOL=$ac_ct_OTOOL
14051 fi
14052 else
14053 OTOOL="$ac_cv_prog_OTOOL"
14054 fi
14055
14056 if test -n "$ac_tool_prefix"; then
14057 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14058 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 if test -n "$OTOOL64"; then
14065 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14069 do
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14074 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14077 fi
14078 done
14079 done
14080 IFS=$as_save_IFS
14081
14082 fi
14083 fi
14084 OTOOL64=$ac_cv_prog_OTOOL64
14085 if test -n "$OTOOL64"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14087 $as_echo "$OTOOL64" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14091 fi
14092
14093
14094 fi
14095 if test -z "$ac_cv_prog_OTOOL64"; then
14096 ac_ct_OTOOL64=$OTOOL64
14097 # Extract the first word of "otool64", so it can be a program name with args.
14098 set dummy otool64; ac_word=$2
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14100 $as_echo_n "checking for $ac_word... " >&6; }
14101 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 if test -n "$ac_ct_OTOOL64"; then
14105 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14106 else
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14109 do
14110 IFS=$as_save_IFS
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14114 ac_cv_prog_ac_ct_OTOOL64="otool64"
14115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14116 break 2
14117 fi
14118 done
14119 done
14120 IFS=$as_save_IFS
14121
14122 fi
14123 fi
14124 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14125 if test -n "$ac_ct_OTOOL64"; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14127 $as_echo "$ac_ct_OTOOL64" >&6; }
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131 fi
14132
14133 if test "x$ac_ct_OTOOL64" = x; then
14134 OTOOL64=":"
14135 else
14136 case $cross_compiling:$ac_tool_warned in
14137 yes:)
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14140 ac_tool_warned=yes ;;
14141 esac
14142 OTOOL64=$ac_ct_OTOOL64
14143 fi
14144 else
14145 OTOOL64="$ac_cv_prog_OTOOL64"
14146 fi
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
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14175 $as_echo_n "checking for -single_module linker flag... " >&6; }
14176 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 lt_cv_apple_cc_single_mod=no
14180 if test -z "${LT_MULTI_MODULE}"; then
14181 # By default we will add the -single_module flag. You can override
14182 # by either setting the environment variable LT_MULTI_MODULE
14183 # non-empty at configure time, or by adding -multi_module to the
14184 # link flags.
14185 rm -rf libconftest.dylib*
14186 echo "int foo(void){return 1;}" > conftest.c
14187 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14188 -dynamiclib -Wl,-single_module conftest.c" >&5
14189 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14190 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14191 _lt_result=$?
14192 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14193 lt_cv_apple_cc_single_mod=yes
14194 else
14195 cat conftest.err >&5
14196 fi
14197 rm -rf libconftest.dylib*
14198 rm -f conftest.*
14199 fi
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14202 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14204 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14205 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 lt_cv_ld_exported_symbols_list=no
14209 save_LDFLAGS=$LDFLAGS
14210 echo "_main" > conftest.sym
14211 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214
14215 int
14216 main ()
14217 {
14218
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_link "$LINENO"; then :
14224 lt_cv_ld_exported_symbols_list=yes
14225 else
14226 lt_cv_ld_exported_symbols_list=no
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 LDFLAGS="$save_LDFLAGS"
14231
14232 fi
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14234 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14236 $as_echo_n "checking for -force_load linker flag... " >&6; }
14237 if test "${lt_cv_ld_force_load+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 lt_cv_ld_force_load=no
14241 cat > conftest.c << _LT_EOF
14242 int forced_loaded() { return 2;}
14243 _LT_EOF
14244 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14245 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14246 echo "$AR cru libconftest.a conftest.o" >&5
14247 $AR cru libconftest.a conftest.o 2>&5
14248 cat > conftest.c << _LT_EOF
14249 int main() { return 0;}
14250 _LT_EOF
14251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14253 _lt_result=$?
14254 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14255 lt_cv_ld_force_load=yes
14256 else
14257 cat conftest.err >&5
14258 fi
14259 rm -f conftest.err libconftest.a conftest conftest.c
14260 rm -rf conftest.dSYM
14261
14262 fi
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14264 $as_echo "$lt_cv_ld_force_load" >&6; }
14265 case $host_os in
14266 rhapsody* | darwin1.[012])
14267 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14268 darwin1.*)
14269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14270 darwin*) # darwin 5.x on
14271 # if running on 10.5 or later, the deployment target defaults
14272 # to the OS version, if on x86, and 10.4, the deployment
14273 # target defaults to 10.4. Don't you love it?
14274 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14275 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14276 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14277 10.[012]*)
14278 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14279 10.*)
14280 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14281 esac
14282 ;;
14283 esac
14284 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14285 _lt_dar_single_mod='$single_module'
14286 fi
14287 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14288 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14289 else
14290 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14291 fi
14292 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14293 _lt_dsymutil='~$DSYMUTIL $lib || :'
14294 else
14295 _lt_dsymutil=
14296 fi
14297 ;;
14298 esac
14299
14300 for ac_header in dlfcn.h
14301 do :
14302 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14303 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_DLFCN_H 1
14306 _ACEOF
14307
14308 fi
14309 done
14310
14311
14312
14313
14314
14315 # Set options
14316
14317
14318
14319 enable_dlopen=no
14320
14321
14322 enable_win32_dll=no
14323
14324
14325 # Check whether --enable-shared was given.
14326 if test "${enable_shared+set}" = set; then :
14327 enableval=$enable_shared; p=${PACKAGE-default}
14328 case $enableval in
14329 yes) enable_shared=yes ;;
14330 no) enable_shared=no ;;
14331 *)
14332 enable_shared=no
14333 # Look at the argument we got. We use all the common list separators.
14334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14335 for pkg in $enableval; do
14336 IFS="$lt_save_ifs"
14337 if test "X$pkg" = "X$p"; then
14338 enable_shared=yes
14339 fi
14340 done
14341 IFS="$lt_save_ifs"
14342 ;;
14343 esac
14344 else
14345 enable_shared=yes
14346 fi
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356 # Check whether --enable-static was given.
14357 if test "${enable_static+set}" = set; then :
14358 enableval=$enable_static; p=${PACKAGE-default}
14359 case $enableval in
14360 yes) enable_static=yes ;;
14361 no) enable_static=no ;;
14362 *)
14363 enable_static=no
14364 # Look at the argument we got. We use all the common list separators.
14365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14366 for pkg in $enableval; do
14367 IFS="$lt_save_ifs"
14368 if test "X$pkg" = "X$p"; then
14369 enable_static=yes
14370 fi
14371 done
14372 IFS="$lt_save_ifs"
14373 ;;
14374 esac
14375 else
14376 enable_static=yes
14377 fi
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 # Check whether --with-pic was given.
14389 if test "${with_pic+set}" = set; then :
14390 withval=$with_pic; pic_mode="$withval"
14391 else
14392 pic_mode=default
14393 fi
14394
14395
14396 test -z "$pic_mode" && pic_mode=default
14397
14398
14399
14400
14401
14402
14403
14404 # Check whether --enable-fast-install was given.
14405 if test "${enable_fast_install+set}" = set; then :
14406 enableval=$enable_fast_install; p=${PACKAGE-default}
14407 case $enableval in
14408 yes) enable_fast_install=yes ;;
14409 no) enable_fast_install=no ;;
14410 *)
14411 enable_fast_install=no
14412 # Look at the argument we got. We use all the common list separators.
14413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14414 for pkg in $enableval; do
14415 IFS="$lt_save_ifs"
14416 if test "X$pkg" = "X$p"; then
14417 enable_fast_install=yes
14418 fi
14419 done
14420 IFS="$lt_save_ifs"
14421 ;;
14422 esac
14423 else
14424 enable_fast_install=yes
14425 fi
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437 # This can be used to rebuild libtool when needed
14438 LIBTOOL_DEPS="$ltmain"
14439
14440 # Always use our own libtool.
14441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
14468 test -z "$LN_S" && LN_S="ln -s"
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483 if test -n "${ZSH_VERSION+set}" ; then
14484 setopt NO_GLOB_SUBST
14485 fi
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14488 $as_echo_n "checking for objdir... " >&6; }
14489 if test "${lt_cv_objdir+set}" = set; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 rm -f .libs 2>/dev/null
14493 mkdir .libs 2>/dev/null
14494 if test -d .libs; then
14495 lt_cv_objdir=.libs
14496 else
14497 # MS-DOS does not allow filenames that begin with a dot.
14498 lt_cv_objdir=_libs
14499 fi
14500 rmdir .libs 2>/dev/null
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14503 $as_echo "$lt_cv_objdir" >&6; }
14504 objdir=$lt_cv_objdir
14505
14506
14507
14508
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define LT_OBJDIR "$lt_cv_objdir/"
14512 _ACEOF
14513
14514
14515
14516
14517 case $host_os in
14518 aix3*)
14519 # AIX sometimes has problems with the GCC collect2 program. For some
14520 # reason, if we set the COLLECT_NAMES environment variable, the problems
14521 # vanish in a puff of smoke.
14522 if test "X${COLLECT_NAMES+set}" != Xset; then
14523 COLLECT_NAMES=
14524 export COLLECT_NAMES
14525 fi
14526 ;;
14527 esac
14528
14529 # Global variables:
14530 ofile=libtool
14531 can_build_shared=yes
14532
14533 # All known linkers require a `.a' archive for static linking (except MSVC,
14534 # which needs '.lib').
14535 libext=a
14536
14537 with_gnu_ld="$lt_cv_prog_gnu_ld"
14538
14539 old_CC="$CC"
14540 old_CFLAGS="$CFLAGS"
14541
14542 # Set sane defaults for various variables
14543 test -z "$CC" && CC=cc
14544 test -z "$LTCC" && LTCC=$CC
14545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14546 test -z "$LD" && LD=ld
14547 test -z "$ac_objext" && ac_objext=o
14548
14549 for cc_temp in $compiler""; do
14550 case $cc_temp in
14551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14553 \-*) ;;
14554 *) break;;
14555 esac
14556 done
14557 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14558
14559
14560 # Only perform the check for file, if the check method requires it
14561 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14562 case $deplibs_check_method in
14563 file_magic*)
14564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14566 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 case $MAGIC_CMD in
14571 [\\/*] | ?:[\\/]*)
14572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14573 ;;
14574 *)
14575 lt_save_MAGIC_CMD="$MAGIC_CMD"
14576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14578 for ac_dir in $ac_dummy; do
14579 IFS="$lt_save_ifs"
14580 test -z "$ac_dir" && ac_dir=.
14581 if test -f $ac_dir/${ac_tool_prefix}file; then
14582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14583 if test -n "$file_magic_test_file"; then
14584 case $deplibs_check_method in
14585 "file_magic "*)
14586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14589 $EGREP "$file_magic_regex" > /dev/null; then
14590 :
14591 else
14592 cat <<_LT_EOF 1>&2
14593
14594 *** Warning: the command libtool uses to detect shared libraries,
14595 *** $file_magic_cmd, produces output that libtool cannot recognize.
14596 *** The result is that libtool may fail to recognize shared libraries
14597 *** as such. This will affect the creation of libtool libraries that
14598 *** depend on shared libraries, but programs linked with such libtool
14599 *** libraries will work regardless of this problem. Nevertheless, you
14600 *** may want to report the problem to your system manager and/or to
14601 *** bug-libtool@gnu.org
14602
14603 _LT_EOF
14604 fi ;;
14605 esac
14606 fi
14607 break
14608 fi
14609 done
14610 IFS="$lt_save_ifs"
14611 MAGIC_CMD="$lt_save_MAGIC_CMD"
14612 ;;
14613 esac
14614 fi
14615
14616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14617 if test -n "$MAGIC_CMD"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14619 $as_echo "$MAGIC_CMD" >&6; }
14620 else
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14623 fi
14624
14625
14626
14627
14628
14629 if test -z "$lt_cv_path_MAGIC_CMD"; then
14630 if test -n "$ac_tool_prefix"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14632 $as_echo_n "checking for file... " >&6; }
14633 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 case $MAGIC_CMD in
14637 [\\/*] | ?:[\\/]*)
14638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14639 ;;
14640 *)
14641 lt_save_MAGIC_CMD="$MAGIC_CMD"
14642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14644 for ac_dir in $ac_dummy; do
14645 IFS="$lt_save_ifs"
14646 test -z "$ac_dir" && ac_dir=.
14647 if test -f $ac_dir/file; then
14648 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14649 if test -n "$file_magic_test_file"; then
14650 case $deplibs_check_method in
14651 "file_magic "*)
14652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14655 $EGREP "$file_magic_regex" > /dev/null; then
14656 :
14657 else
14658 cat <<_LT_EOF 1>&2
14659
14660 *** Warning: the command libtool uses to detect shared libraries,
14661 *** $file_magic_cmd, produces output that libtool cannot recognize.
14662 *** The result is that libtool may fail to recognize shared libraries
14663 *** as such. This will affect the creation of libtool libraries that
14664 *** depend on shared libraries, but programs linked with such libtool
14665 *** libraries will work regardless of this problem. Nevertheless, you
14666 *** may want to report the problem to your system manager and/or to
14667 *** bug-libtool@gnu.org
14668
14669 _LT_EOF
14670 fi ;;
14671 esac
14672 fi
14673 break
14674 fi
14675 done
14676 IFS="$lt_save_ifs"
14677 MAGIC_CMD="$lt_save_MAGIC_CMD"
14678 ;;
14679 esac
14680 fi
14681
14682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14683 if test -n "$MAGIC_CMD"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14685 $as_echo "$MAGIC_CMD" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14689 fi
14690
14691
14692 else
14693 MAGIC_CMD=:
14694 fi
14695 fi
14696
14697 fi
14698 ;;
14699 esac
14700
14701 # Use C for the default configuration in the libtool script
14702
14703 lt_save_CC="$CC"
14704 ac_ext=c
14705 ac_cpp='$CPP $CPPFLAGS'
14706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14709
14710
14711 # Source file extension for C test sources.
14712 ac_ext=c
14713
14714 # Object file extension for compiled C test sources.
14715 objext=o
14716 objext=$objext
14717
14718 # Code to be used in simple compile tests
14719 lt_simple_compile_test_code="int some_variable = 0;"
14720
14721 # Code to be used in simple link tests
14722 lt_simple_link_test_code='int main(){return(0);}'
14723
14724
14725
14726
14727
14728
14729
14730 # If no C compiler was specified, use CC.
14731 LTCC=${LTCC-"$CC"}
14732
14733 # If no C compiler flags were specified, use CFLAGS.
14734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14735
14736 # Allow CC to be a program name with arguments.
14737 compiler=$CC
14738
14739 # Save the default compiler, since it gets overwritten when the other
14740 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14741 compiler_DEFAULT=$CC
14742
14743 # save warnings/boilerplate of simple test code
14744 ac_outfile=conftest.$ac_objext
14745 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14747 _lt_compiler_boilerplate=`cat conftest.err`
14748 $RM conftest*
14749
14750 ac_outfile=conftest.$ac_objext
14751 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14753 _lt_linker_boilerplate=`cat conftest.err`
14754 $RM -r conftest*
14755
14756
14757 ## CAVEAT EMPTOR:
14758 ## There is no encapsulation within the following macros, do not change
14759 ## the running order or otherwise move them around unless you know exactly
14760 ## what you are doing...
14761 if test -n "$compiler"; then
14762
14763 lt_prog_compiler_no_builtin_flag=
14764
14765 if test "$GCC" = yes; then
14766 case $cc_basename in
14767 nvcc*)
14768 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14769 *)
14770 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14771 esac
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14774 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14775 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 lt_cv_prog_compiler_rtti_exceptions=no
14779 ac_outfile=conftest.$ac_objext
14780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781 lt_compiler_flag="-fno-rtti -fno-exceptions"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 # The option is referenced via a variable to avoid confusing sed.
14787 lt_compile=`echo "$ac_compile" | $SED \
14788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14790 -e 's:$: $lt_compiler_flag:'`
14791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14792 (eval "$lt_compile" 2>conftest.err)
14793 ac_status=$?
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 if (exit $ac_status) && test -s "$ac_outfile"; then
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings other than the usual output.
14799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14802 lt_cv_prog_compiler_rtti_exceptions=yes
14803 fi
14804 fi
14805 $RM conftest*
14806
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14809 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14810
14811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14813 else
14814 :
14815 fi
14816
14817 fi
14818
14819
14820
14821
14822
14823
14824 lt_prog_compiler_wl=
14825 lt_prog_compiler_pic=
14826 lt_prog_compiler_static=
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14830
14831 if test "$GCC" = yes; then
14832 lt_prog_compiler_wl='-Wl,'
14833 lt_prog_compiler_static='-static'
14834
14835 case $host_os in
14836 aix*)
14837 # All AIX code is PIC.
14838 if test "$host_cpu" = ia64; then
14839 # AIX 5 now supports IA64 processor
14840 lt_prog_compiler_static='-Bstatic'
14841 fi
14842 lt_prog_compiler_pic='-fPIC'
14843 ;;
14844
14845 amigaos*)
14846 case $host_cpu in
14847 powerpc)
14848 # see comment about AmigaOS4 .so support
14849 lt_prog_compiler_pic='-fPIC'
14850 ;;
14851 m68k)
14852 # FIXME: we need at least 68020 code to build shared libraries, but
14853 # adding the `-m68020' flag to GCC prevents building anything better,
14854 # like `-m68040'.
14855 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14856 ;;
14857 esac
14858 ;;
14859
14860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14861 # PIC is the default for these OSes.
14862 ;;
14863
14864 mingw* | cygwin* | pw32* | os2* | cegcc*)
14865 # This hack is so that the source file can tell whether it is being
14866 # built for inclusion in a dll (and should export symbols for example).
14867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14868 # (--disable-auto-import) libraries
14869 lt_prog_compiler_pic='-DDLL_EXPORT'
14870 ;;
14871
14872 darwin* | rhapsody*)
14873 # PIC is the default on this platform
14874 # Common symbols not allowed in MH_DYLIB files
14875 lt_prog_compiler_pic='-fno-common'
14876 ;;
14877
14878 haiku*)
14879 # PIC is the default for Haiku.
14880 # The "-static" flag exists, but is broken.
14881 lt_prog_compiler_static=
14882 ;;
14883
14884 hpux*)
14885 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14886 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14887 # sets the default TLS model and affects inlining.
14888 case $host_cpu in
14889 hppa*64*)
14890 # +Z the default
14891 ;;
14892 *)
14893 lt_prog_compiler_pic='-fPIC'
14894 ;;
14895 esac
14896 ;;
14897
14898 interix[3-9]*)
14899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14900 # Instead, we relocate shared libraries at runtime.
14901 ;;
14902
14903 msdosdjgpp*)
14904 # Just because we use GCC doesn't mean we suddenly get shared libraries
14905 # on systems that don't support them.
14906 lt_prog_compiler_can_build_shared=no
14907 enable_shared=no
14908 ;;
14909
14910 *nto* | *qnx*)
14911 # QNX uses GNU C++, but need to define -shared option too, otherwise
14912 # it will coredump.
14913 lt_prog_compiler_pic='-fPIC -shared'
14914 ;;
14915
14916 sysv4*MP*)
14917 if test -d /usr/nec; then
14918 lt_prog_compiler_pic=-Kconform_pic
14919 fi
14920 ;;
14921
14922 *)
14923 lt_prog_compiler_pic='-fPIC'
14924 ;;
14925 esac
14926
14927 case $cc_basename in
14928 nvcc*) # Cuda Compiler Driver 2.2
14929 lt_prog_compiler_wl='-Xlinker '
14930 lt_prog_compiler_pic='-Xcompiler -fPIC'
14931 ;;
14932 esac
14933 else
14934 # PORTME Check for flag to pass linker flags through the system compiler.
14935 case $host_os in
14936 aix*)
14937 lt_prog_compiler_wl='-Wl,'
14938 if test "$host_cpu" = ia64; then
14939 # AIX 5 now supports IA64 processor
14940 lt_prog_compiler_static='-Bstatic'
14941 else
14942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14943 fi
14944 ;;
14945
14946 mingw* | cygwin* | pw32* | os2* | cegcc*)
14947 # This hack is so that the source file can tell whether it is being
14948 # built for inclusion in a dll (and should export symbols for example).
14949 lt_prog_compiler_pic='-DDLL_EXPORT'
14950 ;;
14951
14952 hpux9* | hpux10* | hpux11*)
14953 lt_prog_compiler_wl='-Wl,'
14954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14955 # not for PA HP-UX.
14956 case $host_cpu in
14957 hppa*64*|ia64*)
14958 # +Z the default
14959 ;;
14960 *)
14961 lt_prog_compiler_pic='+Z'
14962 ;;
14963 esac
14964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14965 lt_prog_compiler_static='${wl}-a ${wl}archive'
14966 ;;
14967
14968 irix5* | irix6* | nonstopux*)
14969 lt_prog_compiler_wl='-Wl,'
14970 # PIC (with -KPIC) is the default.
14971 lt_prog_compiler_static='-non_shared'
14972 ;;
14973
14974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14975 case $cc_basename in
14976 # old Intel for x86_64 which still supported -KPIC.
14977 ecc*)
14978 lt_prog_compiler_wl='-Wl,'
14979 lt_prog_compiler_pic='-KPIC'
14980 lt_prog_compiler_static='-static'
14981 ;;
14982 # icc used to be incompatible with GCC.
14983 # ICC 10 doesn't accept -KPIC any more.
14984 icc* | ifort*)
14985 lt_prog_compiler_wl='-Wl,'
14986 lt_prog_compiler_pic='-fPIC'
14987 lt_prog_compiler_static='-static'
14988 ;;
14989 # Lahey Fortran 8.1.
14990 lf95*)
14991 lt_prog_compiler_wl='-Wl,'
14992 lt_prog_compiler_pic='--shared'
14993 lt_prog_compiler_static='--static'
14994 ;;
14995 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14996 # Portland Group compilers (*not* the Pentium gcc compiler,
14997 # which looks to be a dead project)
14998 lt_prog_compiler_wl='-Wl,'
14999 lt_prog_compiler_pic='-fpic'
15000 lt_prog_compiler_static='-Bstatic'
15001 ;;
15002 ccc*)
15003 lt_prog_compiler_wl='-Wl,'
15004 # All Alpha code is PIC.
15005 lt_prog_compiler_static='-non_shared'
15006 ;;
15007 xl* | bgxl* | bgf* | mpixl*)
15008 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15009 lt_prog_compiler_wl='-Wl,'
15010 lt_prog_compiler_pic='-qpic'
15011 lt_prog_compiler_static='-qstaticlink'
15012 ;;
15013 *)
15014 case `$CC -V 2>&1 | sed 5q` in
15015 *Sun\ F* | *Sun*Fortran*)
15016 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15017 lt_prog_compiler_pic='-KPIC'
15018 lt_prog_compiler_static='-Bstatic'
15019 lt_prog_compiler_wl=''
15020 ;;
15021 *Sun\ C*)
15022 # Sun C 5.9
15023 lt_prog_compiler_pic='-KPIC'
15024 lt_prog_compiler_static='-Bstatic'
15025 lt_prog_compiler_wl='-Wl,'
15026 ;;
15027 esac
15028 ;;
15029 esac
15030 ;;
15031
15032 newsos6)
15033 lt_prog_compiler_pic='-KPIC'
15034 lt_prog_compiler_static='-Bstatic'
15035 ;;
15036
15037 *nto* | *qnx*)
15038 # QNX uses GNU C++, but need to define -shared option too, otherwise
15039 # it will coredump.
15040 lt_prog_compiler_pic='-fPIC -shared'
15041 ;;
15042
15043 osf3* | osf4* | osf5*)
15044 lt_prog_compiler_wl='-Wl,'
15045 # All OSF/1 code is PIC.
15046 lt_prog_compiler_static='-non_shared'
15047 ;;
15048
15049 rdos*)
15050 lt_prog_compiler_static='-non_shared'
15051 ;;
15052
15053 solaris*)
15054 lt_prog_compiler_pic='-KPIC'
15055 lt_prog_compiler_static='-Bstatic'
15056 case $cc_basename in
15057 f77* | f90* | f95*)
15058 lt_prog_compiler_wl='-Qoption ld ';;
15059 *)
15060 lt_prog_compiler_wl='-Wl,';;
15061 esac
15062 ;;
15063
15064 sunos4*)
15065 lt_prog_compiler_wl='-Qoption ld '
15066 lt_prog_compiler_pic='-PIC'
15067 lt_prog_compiler_static='-Bstatic'
15068 ;;
15069
15070 sysv4 | sysv4.2uw2* | sysv4.3*)
15071 lt_prog_compiler_wl='-Wl,'
15072 lt_prog_compiler_pic='-KPIC'
15073 lt_prog_compiler_static='-Bstatic'
15074 ;;
15075
15076 sysv4*MP*)
15077 if test -d /usr/nec ;then
15078 lt_prog_compiler_pic='-Kconform_pic'
15079 lt_prog_compiler_static='-Bstatic'
15080 fi
15081 ;;
15082
15083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15084 lt_prog_compiler_wl='-Wl,'
15085 lt_prog_compiler_pic='-KPIC'
15086 lt_prog_compiler_static='-Bstatic'
15087 ;;
15088
15089 unicos*)
15090 lt_prog_compiler_wl='-Wl,'
15091 lt_prog_compiler_can_build_shared=no
15092 ;;
15093
15094 uts4*)
15095 lt_prog_compiler_pic='-pic'
15096 lt_prog_compiler_static='-Bstatic'
15097 ;;
15098
15099 *)
15100 lt_prog_compiler_can_build_shared=no
15101 ;;
15102 esac
15103 fi
15104
15105 case $host_os in
15106 # For platforms which do not support PIC, -DPIC is meaningless:
15107 *djgpp*)
15108 lt_prog_compiler_pic=
15109 ;;
15110 *)
15111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15112 ;;
15113 esac
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15115 $as_echo "$lt_prog_compiler_pic" >&6; }
15116
15117
15118
15119
15120
15121
15122 #
15123 # Check to make sure the PIC flag actually works.
15124 #
15125 if test -n "$lt_prog_compiler_pic"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15127 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15128 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 lt_cv_prog_compiler_pic_works=no
15132 ac_outfile=conftest.$ac_objext
15133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15135 # Insert the option either (1) after the last *FLAGS variable, or
15136 # (2) before a word containing "conftest.", or (3) at the end.
15137 # Note that $ac_compile itself does not contain backslashes and begins
15138 # with a dollar sign (not a hyphen), so the echo should work correctly.
15139 # The option is referenced via a variable to avoid confusing sed.
15140 lt_compile=`echo "$ac_compile" | $SED \
15141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143 -e 's:$: $lt_compiler_flag:'`
15144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15145 (eval "$lt_compile" 2>conftest.err)
15146 ac_status=$?
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 if (exit $ac_status) && test -s "$ac_outfile"; then
15150 # The compiler can only warn and ignore the option if not recognized
15151 # So say no if there are warnings other than the usual output.
15152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15155 lt_cv_prog_compiler_pic_works=yes
15156 fi
15157 fi
15158 $RM conftest*
15159
15160 fi
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15162 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15163
15164 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15165 case $lt_prog_compiler_pic in
15166 "" | " "*) ;;
15167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15168 esac
15169 else
15170 lt_prog_compiler_pic=
15171 lt_prog_compiler_can_build_shared=no
15172 fi
15173
15174 fi
15175
15176
15177
15178
15179
15180
15181 #
15182 # Check to make sure the static flag actually works.
15183 #
15184 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15186 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15187 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15188 $as_echo_n "(cached) " >&6
15189 else
15190 lt_cv_prog_compiler_static_works=no
15191 save_LDFLAGS="$LDFLAGS"
15192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15195 # The linker can only warn and ignore the option if not recognized
15196 # So say no if there are warnings
15197 if test -s conftest.err; then
15198 # Append any errors to the config.log.
15199 cat conftest.err 1>&5
15200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15202 if diff conftest.exp conftest.er2 >/dev/null; then
15203 lt_cv_prog_compiler_static_works=yes
15204 fi
15205 else
15206 lt_cv_prog_compiler_static_works=yes
15207 fi
15208 fi
15209 $RM -r conftest*
15210 LDFLAGS="$save_LDFLAGS"
15211
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15214 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15215
15216 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15217 :
15218 else
15219 lt_prog_compiler_static=
15220 fi
15221
15222
15223
15224
15225
15226
15227
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 lt_cv_prog_compiler_c_o=no
15234 $RM -r conftest 2>/dev/null
15235 mkdir conftest
15236 cd conftest
15237 mkdir out
15238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15239
15240 lt_compiler_flag="-o out/conftest2.$ac_objext"
15241 # Insert the option either (1) after the last *FLAGS variable, or
15242 # (2) before a word containing "conftest.", or (3) at the end.
15243 # Note that $ac_compile itself does not contain backslashes and begins
15244 # with a dollar sign (not a hyphen), so the echo should work correctly.
15245 lt_compile=`echo "$ac_compile" | $SED \
15246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15248 -e 's:$: $lt_compiler_flag:'`
15249 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15250 (eval "$lt_compile" 2>out/conftest.err)
15251 ac_status=$?
15252 cat out/conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15255 then
15256 # The compiler can only warn and ignore the option if not recognized
15257 # So say no if there are warnings
15258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15261 lt_cv_prog_compiler_c_o=yes
15262 fi
15263 fi
15264 chmod u+w . 2>&5
15265 $RM conftest*
15266 # SGI C++ compiler will create directory out/ii_files/ for
15267 # template instantiation
15268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15269 $RM out/* && rmdir out
15270 cd ..
15271 $RM -r conftest
15272 $RM conftest*
15273
15274 fi
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15276 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15277
15278
15279
15280
15281
15282
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 lt_cv_prog_compiler_c_o=no
15289 $RM -r conftest 2>/dev/null
15290 mkdir conftest
15291 cd conftest
15292 mkdir out
15293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15294
15295 lt_compiler_flag="-o out/conftest2.$ac_objext"
15296 # Insert the option either (1) after the last *FLAGS variable, or
15297 # (2) before a word containing "conftest.", or (3) at the end.
15298 # Note that $ac_compile itself does not contain backslashes and begins
15299 # with a dollar sign (not a hyphen), so the echo should work correctly.
15300 lt_compile=`echo "$ac_compile" | $SED \
15301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15303 -e 's:$: $lt_compiler_flag:'`
15304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15305 (eval "$lt_compile" 2>out/conftest.err)
15306 ac_status=$?
15307 cat out/conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15310 then
15311 # The compiler can only warn and ignore the option if not recognized
15312 # So say no if there are warnings
15313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15316 lt_cv_prog_compiler_c_o=yes
15317 fi
15318 fi
15319 chmod u+w . 2>&5
15320 $RM conftest*
15321 # SGI C++ compiler will create directory out/ii_files/ for
15322 # template instantiation
15323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15324 $RM out/* && rmdir out
15325 cd ..
15326 $RM -r conftest
15327 $RM conftest*
15328
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15332
15333
15334
15335
15336 hard_links="nottested"
15337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15338 # do not overwrite the value of need_locks provided by the user
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15340 $as_echo_n "checking if we can lock with hard links... " >&6; }
15341 hard_links=yes
15342 $RM conftest*
15343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15344 touch conftest.a
15345 ln conftest.a conftest.b 2>&5 || hard_links=no
15346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15348 $as_echo "$hard_links" >&6; }
15349 if test "$hard_links" = no; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15351 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15352 need_locks=warn
15353 fi
15354 else
15355 need_locks=no
15356 fi
15357
15358
15359
15360
15361
15362
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15364 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15365
15366 runpath_var=
15367 allow_undefined_flag=
15368 always_export_symbols=no
15369 archive_cmds=
15370 archive_expsym_cmds=
15371 compiler_needs_object=no
15372 enable_shared_with_static_runtimes=no
15373 export_dynamic_flag_spec=
15374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15375 hardcode_automatic=no
15376 hardcode_direct=no
15377 hardcode_direct_absolute=no
15378 hardcode_libdir_flag_spec=
15379 hardcode_libdir_flag_spec_ld=
15380 hardcode_libdir_separator=
15381 hardcode_minus_L=no
15382 hardcode_shlibpath_var=unsupported
15383 inherit_rpath=no
15384 link_all_deplibs=unknown
15385 module_cmds=
15386 module_expsym_cmds=
15387 old_archive_from_new_cmds=
15388 old_archive_from_expsyms_cmds=
15389 thread_safe_flag_spec=
15390 whole_archive_flag_spec=
15391 # include_expsyms should be a list of space-separated symbols to be *always*
15392 # included in the symbol list
15393 include_expsyms=
15394 # exclude_expsyms can be an extended regexp of symbols to exclude
15395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15397 # as well as any symbol that contains `d'.
15398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15400 # platforms (ab)use it in PIC code, but their linkers get confused if
15401 # the symbol is explicitly referenced. Since portable code cannot
15402 # rely on this symbol name, it's probably fine to never include it in
15403 # preloaded symbol tables.
15404 # Exclude shared library initialization/finalization symbols.
15405 extract_expsyms_cmds=
15406
15407 case $host_os in
15408 cygwin* | mingw* | pw32* | cegcc*)
15409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15410 # When not using gcc, we currently assume that we are using
15411 # Microsoft Visual C++.
15412 if test "$GCC" != yes; then
15413 with_gnu_ld=no
15414 fi
15415 ;;
15416 interix*)
15417 # we just hope/assume this is gcc and not c89 (= MSVC++)
15418 with_gnu_ld=yes
15419 ;;
15420 openbsd*)
15421 with_gnu_ld=no
15422 ;;
15423 esac
15424
15425 ld_shlibs=yes
15426
15427 # On some targets, GNU ld is compatible enough with the native linker
15428 # that we're better off using the native interface for both.
15429 lt_use_gnu_ld_interface=no
15430 if test "$with_gnu_ld" = yes; then
15431 case $host_os in
15432 aix*)
15433 # The AIX port of GNU ld has always aspired to compatibility
15434 # with the native linker. However, as the warning in the GNU ld
15435 # block says, versions before 2.19.5* couldn't really create working
15436 # shared libraries, regardless of the interface used.
15437 case `$LD -v 2>&1` in
15438 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15439 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15440 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15441 *)
15442 lt_use_gnu_ld_interface=yes
15443 ;;
15444 esac
15445 ;;
15446 *)
15447 lt_use_gnu_ld_interface=yes
15448 ;;
15449 esac
15450 fi
15451
15452 if test "$lt_use_gnu_ld_interface" = yes; then
15453 # If archive_cmds runs LD, not CC, wlarc should be empty
15454 wlarc='${wl}'
15455
15456 # Set some defaults for GNU ld with shared library support. These
15457 # are reset later if shared libraries are not supported. Putting them
15458 # here allows them to be overridden if necessary.
15459 runpath_var=LD_RUN_PATH
15460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15461 export_dynamic_flag_spec='${wl}--export-dynamic'
15462 # ancient GNU ld didn't support --whole-archive et. al.
15463 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15464 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15465 else
15466 whole_archive_flag_spec=
15467 fi
15468 supports_anon_versioning=no
15469 case `$LD -v 2>&1` in
15470 *GNU\ gold*) supports_anon_versioning=yes ;;
15471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15474 *\ 2.11.*) ;; # other 2.11 versions
15475 *) supports_anon_versioning=yes ;;
15476 esac
15477
15478 # See if GNU ld supports shared libraries.
15479 case $host_os in
15480 aix[3-9]*)
15481 # On AIX/PPC, the GNU linker is very broken
15482 if test "$host_cpu" != ia64; then
15483 ld_shlibs=no
15484 cat <<_LT_EOF 1>&2
15485
15486 *** Warning: the GNU linker, at least up to release 2.19, is reported
15487 *** to be unable to reliably create shared libraries on AIX.
15488 *** Therefore, libtool is disabling shared libraries support. If you
15489 *** really care for shared libraries, you may want to install binutils
15490 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15491 *** You will then need to restart the configuration process.
15492
15493 _LT_EOF
15494 fi
15495 ;;
15496
15497 amigaos*)
15498 case $host_cpu in
15499 powerpc)
15500 # see comment about AmigaOS4 .so support
15501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502 archive_expsym_cmds=''
15503 ;;
15504 m68k)
15505 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)'
15506 hardcode_libdir_flag_spec='-L$libdir'
15507 hardcode_minus_L=yes
15508 ;;
15509 esac
15510 ;;
15511
15512 beos*)
15513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15514 allow_undefined_flag=unsupported
15515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15516 # support --undefined. This deserves some investigation. FIXME
15517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15518 else
15519 ld_shlibs=no
15520 fi
15521 ;;
15522
15523 cygwin* | mingw* | pw32* | cegcc*)
15524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15525 # as there is no search path for DLLs.
15526 hardcode_libdir_flag_spec='-L$libdir'
15527 export_dynamic_flag_spec='${wl}--export-all-symbols'
15528 allow_undefined_flag=unsupported
15529 always_export_symbols=no
15530 enable_shared_with_static_runtimes=yes
15531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15532
15533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15535 # If the export-symbols file already is a .def file (1st line
15536 # is EXPORTS), use it as is; otherwise, prepend...
15537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15538 cp $export_symbols $output_objdir/$soname.def;
15539 else
15540 echo EXPORTS > $output_objdir/$soname.def;
15541 cat $export_symbols >> $output_objdir/$soname.def;
15542 fi~
15543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15544 else
15545 ld_shlibs=no
15546 fi
15547 ;;
15548
15549 haiku*)
15550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551 link_all_deplibs=yes
15552 ;;
15553
15554 interix[3-9]*)
15555 hardcode_direct=no
15556 hardcode_shlibpath_var=no
15557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15558 export_dynamic_flag_spec='${wl}-E'
15559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15560 # Instead, shared libraries are loaded at an image base (0x10000000 by
15561 # default) and relocated if they conflict, which is a slow very memory
15562 # consuming and fragmenting process. To avoid this, we pick a random,
15563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15564 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15566 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'
15567 ;;
15568
15569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15570 tmp_diet=no
15571 if test "$host_os" = linux-dietlibc; then
15572 case $cc_basename in
15573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15574 esac
15575 fi
15576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15577 && test "$tmp_diet" = no
15578 then
15579 tmp_addflag=
15580 tmp_sharedflag='-shared'
15581 case $cc_basename,$host_cpu in
15582 pgcc*) # Portland Group C compiler
15583 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'
15584 tmp_addflag=' $pic_flag'
15585 ;;
15586 pgf77* | pgf90* | pgf95* | pgfortran*)
15587 # Portland Group f77 and f90 compilers
15588 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'
15589 tmp_addflag=' $pic_flag -Mnomain' ;;
15590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15591 tmp_addflag=' -i_dynamic' ;;
15592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15593 tmp_addflag=' -i_dynamic -nofor_main' ;;
15594 ifc* | ifort*) # Intel Fortran compiler
15595 tmp_addflag=' -nofor_main' ;;
15596 lf95*) # Lahey Fortran 8.1
15597 whole_archive_flag_spec=
15598 tmp_sharedflag='--shared' ;;
15599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15600 tmp_sharedflag='-qmkshrobj'
15601 tmp_addflag= ;;
15602 nvcc*) # Cuda Compiler Driver 2.2
15603 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'
15604 compiler_needs_object=yes
15605 ;;
15606 esac
15607 case `$CC -V 2>&1 | sed 5q` in
15608 *Sun\ C*) # Sun C 5.9
15609 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'
15610 compiler_needs_object=yes
15611 tmp_sharedflag='-G' ;;
15612 *Sun\ F*) # Sun Fortran 8.3
15613 tmp_sharedflag='-G' ;;
15614 esac
15615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616
15617 if test "x$supports_anon_versioning" = xyes; then
15618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15620 echo "local: *; };" >> $output_objdir/$libname.ver~
15621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15622 fi
15623
15624 case $cc_basename in
15625 xlf* | bgf* | bgxlf* | mpixlf*)
15626 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15627 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15628 hardcode_libdir_flag_spec=
15629 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15630 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15631 if test "x$supports_anon_versioning" = xyes; then
15632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15634 echo "local: *; };" >> $output_objdir/$libname.ver~
15635 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15636 fi
15637 ;;
15638 esac
15639 else
15640 ld_shlibs=no
15641 fi
15642 ;;
15643
15644 netbsd*)
15645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15647 wlarc=
15648 else
15649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15651 fi
15652 ;;
15653
15654 solaris*)
15655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15656 ld_shlibs=no
15657 cat <<_LT_EOF 1>&2
15658
15659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15660 *** create shared libraries on Solaris systems. Therefore, libtool
15661 *** is disabling shared libraries support. We urge you to upgrade GNU
15662 *** binutils to release 2.9.1 or newer. Another option is to modify
15663 *** your PATH or compiler configuration so that the native linker is
15664 *** used, and then restart.
15665
15666 _LT_EOF
15667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15670 else
15671 ld_shlibs=no
15672 fi
15673 ;;
15674
15675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15676 case `$LD -v 2>&1` in
15677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15678 ld_shlibs=no
15679 cat <<_LT_EOF 1>&2
15680
15681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15682 *** reliably create shared libraries on SCO systems. Therefore, libtool
15683 *** is disabling shared libraries support. We urge you to upgrade GNU
15684 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15685 *** your PATH or compiler configuration so that the native linker is
15686 *** used, and then restart.
15687
15688 _LT_EOF
15689 ;;
15690 *)
15691 # For security reasons, it is highly recommended that you always
15692 # use absolute paths for naming shared libraries, and exclude the
15693 # DT_RUNPATH tag from executables and libraries. But doing so
15694 # requires that you compile everything twice, which is a pain.
15695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15699 else
15700 ld_shlibs=no
15701 fi
15702 ;;
15703 esac
15704 ;;
15705
15706 sunos4*)
15707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708 wlarc=
15709 hardcode_direct=yes
15710 hardcode_shlibpath_var=no
15711 ;;
15712
15713 *)
15714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15717 else
15718 ld_shlibs=no
15719 fi
15720 ;;
15721 esac
15722
15723 if test "$ld_shlibs" = no; then
15724 runpath_var=
15725 hardcode_libdir_flag_spec=
15726 export_dynamic_flag_spec=
15727 whole_archive_flag_spec=
15728 fi
15729 else
15730 # PORTME fill in a description of your system's linker (not GNU ld)
15731 case $host_os in
15732 aix3*)
15733 allow_undefined_flag=unsupported
15734 always_export_symbols=yes
15735 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'
15736 # Note: this linker hardcodes the directories in LIBPATH if there
15737 # are no directories specified by -L.
15738 hardcode_minus_L=yes
15739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15740 # Neither direct hardcoding nor static linking is supported with a
15741 # broken collect2.
15742 hardcode_direct=unsupported
15743 fi
15744 ;;
15745
15746 aix[4-9]*)
15747 if test "$host_cpu" = ia64; then
15748 # On IA64, the linker does run time linking by default, so we don't
15749 # have to do anything special.
15750 aix_use_runtimelinking=no
15751 exp_sym_flag='-Bexport'
15752 no_entry_flag=""
15753 else
15754 # If we're using GNU nm, then we don't want the "-C" option.
15755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15756 # Also, AIX nm treats weak defined symbols like other global
15757 # defined symbols, whereas GNU nm marks them as "W".
15758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15759 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'
15760 else
15761 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'
15762 fi
15763 aix_use_runtimelinking=no
15764
15765 # Test if we are trying to use run time linking or normal
15766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15767 # need to do runtime linking.
15768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15769 for ld_flag in $LDFLAGS; do
15770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15771 aix_use_runtimelinking=yes
15772 break
15773 fi
15774 done
15775 ;;
15776 esac
15777
15778 exp_sym_flag='-bexport'
15779 no_entry_flag='-bnoentry'
15780 fi
15781
15782 # When large executables or shared objects are built, AIX ld can
15783 # have problems creating the table of contents. If linking a library
15784 # or program results in "error TOC overflow" add -mminimal-toc to
15785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15787
15788 archive_cmds=''
15789 hardcode_direct=yes
15790 hardcode_direct_absolute=yes
15791 hardcode_libdir_separator=':'
15792 link_all_deplibs=yes
15793 file_list_spec='${wl}-f,'
15794
15795 if test "$GCC" = yes; then
15796 case $host_os in aix4.[012]|aix4.[012].*)
15797 # We only want to do this on AIX 4.2 and lower, the check
15798 # below for broken collect2 doesn't work under 4.3+
15799 collect2name=`${CC} -print-prog-name=collect2`
15800 if test -f "$collect2name" &&
15801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15802 then
15803 # We have reworked collect2
15804 :
15805 else
15806 # We have old collect2
15807 hardcode_direct=unsupported
15808 # It fails to find uninstalled libraries when the uninstalled
15809 # path is not listed in the libpath. Setting hardcode_minus_L
15810 # to unsupported forces relinking
15811 hardcode_minus_L=yes
15812 hardcode_libdir_flag_spec='-L$libdir'
15813 hardcode_libdir_separator=
15814 fi
15815 ;;
15816 esac
15817 shared_flag='-shared'
15818 if test "$aix_use_runtimelinking" = yes; then
15819 shared_flag="$shared_flag "'${wl}-G'
15820 fi
15821 else
15822 # not using gcc
15823 if test "$host_cpu" = ia64; then
15824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15825 # chokes on -Wl,-G. The following line is correct:
15826 shared_flag='-G'
15827 else
15828 if test "$aix_use_runtimelinking" = yes; then
15829 shared_flag='${wl}-G'
15830 else
15831 shared_flag='${wl}-bM:SRE'
15832 fi
15833 fi
15834 fi
15835
15836 export_dynamic_flag_spec='${wl}-bexpall'
15837 # It seems that -bexpall does not export symbols beginning with
15838 # underscore (_), so it is better to generate a list of symbols to export.
15839 always_export_symbols=yes
15840 if test "$aix_use_runtimelinking" = yes; then
15841 # Warning - without using the other runtime loading flags (-brtl),
15842 # -berok will link without error, but may produce a broken library.
15843 allow_undefined_flag='-berok'
15844 # Determine the default libpath from the value encoded in an
15845 # empty executable.
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15848
15849 int
15850 main ()
15851 {
15852
15853 ;
15854 return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_link "$LINENO"; then :
15858
15859 lt_aix_libpath_sed='
15860 /Import File Strings/,/^$/ {
15861 /^0/ {
15862 s/^0 *\(.*\)$/\1/
15863 p
15864 }
15865 }'
15866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15867 # Check for a 64-bit object if we didn't find anything.
15868 if test -z "$aix_libpath"; then
15869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15870 fi
15871 fi
15872 rm -f core conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
15874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15875
15876 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15877 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"
15878 else
15879 if test "$host_cpu" = ia64; then
15880 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15881 allow_undefined_flag="-z nodefs"
15882 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"
15883 else
15884 # Determine the default libpath from the value encoded in an
15885 # empty executable.
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888
15889 int
15890 main ()
15891 {
15892
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"; then :
15898
15899 lt_aix_libpath_sed='
15900 /Import File Strings/,/^$/ {
15901 /^0/ {
15902 s/^0 *\(.*\)$/\1/
15903 p
15904 }
15905 }'
15906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15907 # Check for a 64-bit object if we didn't find anything.
15908 if test -z "$aix_libpath"; then
15909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15910 fi
15911 fi
15912 rm -f core conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15915
15916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15917 # Warning - without using the other run time loading flags,
15918 # -berok will link without error, but may produce a broken library.
15919 no_undefined_flag=' ${wl}-bernotok'
15920 allow_undefined_flag=' ${wl}-berok'
15921 if test "$with_gnu_ld" = yes; then
15922 # We only use this code for GNU lds that support --whole-archive.
15923 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15924 else
15925 # Exported symbols can be pulled into shared objects from archives
15926 whole_archive_flag_spec='$convenience'
15927 fi
15928 archive_cmds_need_lc=yes
15929 # This is similar to how AIX traditionally builds its shared libraries.
15930 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'
15931 fi
15932 fi
15933 ;;
15934
15935 amigaos*)
15936 case $host_cpu in
15937 powerpc)
15938 # see comment about AmigaOS4 .so support
15939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 archive_expsym_cmds=''
15941 ;;
15942 m68k)
15943 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)'
15944 hardcode_libdir_flag_spec='-L$libdir'
15945 hardcode_minus_L=yes
15946 ;;
15947 esac
15948 ;;
15949
15950 bsdi[45]*)
15951 export_dynamic_flag_spec=-rdynamic
15952 ;;
15953
15954 cygwin* | mingw* | pw32* | cegcc*)
15955 # When not using gcc, we currently assume that we are using
15956 # Microsoft Visual C++.
15957 # hardcode_libdir_flag_spec is actually meaningless, as there is
15958 # no search path for DLLs.
15959 hardcode_libdir_flag_spec=' '
15960 allow_undefined_flag=unsupported
15961 # Tell ltmain to make .lib files, not .a files.
15962 libext=lib
15963 # Tell ltmain to make .dll files, not .so files.
15964 shrext_cmds=".dll"
15965 # FIXME: Setting linknames here is a bad hack.
15966 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15967 # The linker will automatically build a .lib file if we build a DLL.
15968 old_archive_from_new_cmds='true'
15969 # FIXME: Should let the user specify the lib program.
15970 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15971 fix_srcfile_path='`cygpath -w "$srcfile"`'
15972 enable_shared_with_static_runtimes=yes
15973 ;;
15974
15975 darwin* | rhapsody*)
15976
15977
15978 archive_cmds_need_lc=no
15979 hardcode_direct=no
15980 hardcode_automatic=yes
15981 hardcode_shlibpath_var=unsupported
15982 if test "$lt_cv_ld_force_load" = "yes"; then
15983 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\"`'
15984 else
15985 whole_archive_flag_spec=''
15986 fi
15987 link_all_deplibs=yes
15988 allow_undefined_flag="$_lt_dar_allow_undefined"
15989 case $cc_basename in
15990 ifort*) _lt_dar_can_shared=yes ;;
15991 *) _lt_dar_can_shared=$GCC ;;
15992 esac
15993 if test "$_lt_dar_can_shared" = "yes"; then
15994 output_verbose_link_cmd=func_echo_all
15995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15997 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}"
15998 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}"
15999
16000 else
16001 ld_shlibs=no
16002 fi
16003
16004 ;;
16005
16006 dgux*)
16007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_libdir_flag_spec='-L$libdir'
16009 hardcode_shlibpath_var=no
16010 ;;
16011
16012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16013 # support. Future versions do this automatically, but an explicit c++rt0.o
16014 # does not break anything, and helps significantly (at the cost of a little
16015 # extra space).
16016 freebsd2.2*)
16017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16018 hardcode_libdir_flag_spec='-R$libdir'
16019 hardcode_direct=yes
16020 hardcode_shlibpath_var=no
16021 ;;
16022
16023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16024 freebsd2.*)
16025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16026 hardcode_direct=yes
16027 hardcode_minus_L=yes
16028 hardcode_shlibpath_var=no
16029 ;;
16030
16031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16032 freebsd* | dragonfly*)
16033 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16034 hardcode_libdir_flag_spec='-R$libdir'
16035 hardcode_direct=yes
16036 hardcode_shlibpath_var=no
16037 ;;
16038
16039 hpux9*)
16040 if test "$GCC" = yes; then
16041 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'
16042 else
16043 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'
16044 fi
16045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16046 hardcode_libdir_separator=:
16047 hardcode_direct=yes
16048
16049 # hardcode_minus_L: Not really in the search PATH,
16050 # but as the default location of the library.
16051 hardcode_minus_L=yes
16052 export_dynamic_flag_spec='${wl}-E'
16053 ;;
16054
16055 hpux10*)
16056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16058 else
16059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16060 fi
16061 if test "$with_gnu_ld" = no; then
16062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16063 hardcode_libdir_flag_spec_ld='+b $libdir'
16064 hardcode_libdir_separator=:
16065 hardcode_direct=yes
16066 hardcode_direct_absolute=yes
16067 export_dynamic_flag_spec='${wl}-E'
16068 # hardcode_minus_L: Not really in the search PATH,
16069 # but as the default location of the library.
16070 hardcode_minus_L=yes
16071 fi
16072 ;;
16073
16074 hpux11*)
16075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16076 case $host_cpu in
16077 hppa*64*)
16078 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16079 ;;
16080 ia64*)
16081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16082 ;;
16083 *)
16084 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16085 ;;
16086 esac
16087 else
16088 case $host_cpu in
16089 hppa*64*)
16090 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 ;;
16092 ia64*)
16093 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16094 ;;
16095 *)
16096
16097 # Older versions of the 11.00 compiler do not understand -b yet
16098 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16100 $as_echo_n "checking if $CC understands -b... " >&6; }
16101 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 lt_cv_prog_compiler__b=no
16105 save_LDFLAGS="$LDFLAGS"
16106 LDFLAGS="$LDFLAGS -b"
16107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16109 # The linker can only warn and ignore the option if not recognized
16110 # So say no if there are warnings
16111 if test -s conftest.err; then
16112 # Append any errors to the config.log.
16113 cat conftest.err 1>&5
16114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16116 if diff conftest.exp conftest.er2 >/dev/null; then
16117 lt_cv_prog_compiler__b=yes
16118 fi
16119 else
16120 lt_cv_prog_compiler__b=yes
16121 fi
16122 fi
16123 $RM -r conftest*
16124 LDFLAGS="$save_LDFLAGS"
16125
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16128 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16129
16130 if test x"$lt_cv_prog_compiler__b" = xyes; then
16131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16132 else
16133 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16134 fi
16135
16136 ;;
16137 esac
16138 fi
16139 if test "$with_gnu_ld" = no; then
16140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16141 hardcode_libdir_separator=:
16142
16143 case $host_cpu in
16144 hppa*64*|ia64*)
16145 hardcode_direct=no
16146 hardcode_shlibpath_var=no
16147 ;;
16148 *)
16149 hardcode_direct=yes
16150 hardcode_direct_absolute=yes
16151 export_dynamic_flag_spec='${wl}-E'
16152
16153 # hardcode_minus_L: Not really in the search PATH,
16154 # but as the default location of the library.
16155 hardcode_minus_L=yes
16156 ;;
16157 esac
16158 fi
16159 ;;
16160
16161 irix5* | irix6* | nonstopux*)
16162 if test "$GCC" = yes; then
16163 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'
16164 # Try to use the -exported_symbol ld option, if it does not
16165 # work, assume that -exports_file does not work either and
16166 # implicitly export all symbols.
16167 save_LDFLAGS="$LDFLAGS"
16168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 int foo(void) {}
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174 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'
16175
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext \
16178 conftest$ac_exeext conftest.$ac_ext
16179 LDFLAGS="$save_LDFLAGS"
16180 else
16181 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'
16182 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'
16183 fi
16184 archive_cmds_need_lc='no'
16185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16186 hardcode_libdir_separator=:
16187 inherit_rpath=yes
16188 link_all_deplibs=yes
16189 ;;
16190
16191 netbsd*)
16192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16194 else
16195 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16196 fi
16197 hardcode_libdir_flag_spec='-R$libdir'
16198 hardcode_direct=yes
16199 hardcode_shlibpath_var=no
16200 ;;
16201
16202 newsos6)
16203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_direct=yes
16205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16206 hardcode_libdir_separator=:
16207 hardcode_shlibpath_var=no
16208 ;;
16209
16210 *nto* | *qnx*)
16211 ;;
16212
16213 openbsd*)
16214 if test -f /usr/libexec/ld.so; then
16215 hardcode_direct=yes
16216 hardcode_shlibpath_var=no
16217 hardcode_direct_absolute=yes
16218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16222 export_dynamic_flag_spec='${wl}-E'
16223 else
16224 case $host_os in
16225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16227 hardcode_libdir_flag_spec='-R$libdir'
16228 ;;
16229 *)
16230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16232 ;;
16233 esac
16234 fi
16235 else
16236 ld_shlibs=no
16237 fi
16238 ;;
16239
16240 os2*)
16241 hardcode_libdir_flag_spec='-L$libdir'
16242 hardcode_minus_L=yes
16243 allow_undefined_flag=unsupported
16244 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'
16245 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16246 ;;
16247
16248 osf3*)
16249 if test "$GCC" = yes; then
16250 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16251 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'
16252 else
16253 allow_undefined_flag=' -expect_unresolved \*'
16254 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'
16255 fi
16256 archive_cmds_need_lc='no'
16257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16258 hardcode_libdir_separator=:
16259 ;;
16260
16261 osf4* | osf5*) # as osf3* with the addition of -msym flag
16262 if test "$GCC" = yes; then
16263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16264 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'
16265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16266 else
16267 allow_undefined_flag=' -expect_unresolved \*'
16268 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'
16269 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~
16270 $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'
16271
16272 # Both c and cxx compiler support -rpath directly
16273 hardcode_libdir_flag_spec='-rpath $libdir'
16274 fi
16275 archive_cmds_need_lc='no'
16276 hardcode_libdir_separator=:
16277 ;;
16278
16279 solaris*)
16280 no_undefined_flag=' -z defs'
16281 if test "$GCC" = yes; then
16282 wlarc='${wl}'
16283 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16285 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16286 else
16287 case `$CC -V 2>&1` in
16288 *"Compilers 5.0"*)
16289 wlarc=''
16290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16293 ;;
16294 *)
16295 wlarc='${wl}'
16296 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16298 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16299 ;;
16300 esac
16301 fi
16302 hardcode_libdir_flag_spec='-R$libdir'
16303 hardcode_shlibpath_var=no
16304 case $host_os in
16305 solaris2.[0-5] | solaris2.[0-5].*) ;;
16306 *)
16307 # The compiler driver will combine and reorder linker options,
16308 # but understands `-z linker_flag'. GCC discards it without `$wl',
16309 # but is careful enough not to reorder.
16310 # Supported since Solaris 2.6 (maybe 2.5.1?)
16311 if test "$GCC" = yes; then
16312 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16313 else
16314 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16315 fi
16316 ;;
16317 esac
16318 link_all_deplibs=yes
16319 ;;
16320
16321 sunos4*)
16322 if test "x$host_vendor" = xsequent; then
16323 # Use $CC to link under sequent, because it throws in some extra .o
16324 # files that make .init and .fini sections work.
16325 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16326 else
16327 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16328 fi
16329 hardcode_libdir_flag_spec='-L$libdir'
16330 hardcode_direct=yes
16331 hardcode_minus_L=yes
16332 hardcode_shlibpath_var=no
16333 ;;
16334
16335 sysv4)
16336 case $host_vendor in
16337 sni)
16338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339 hardcode_direct=yes # is this really true???
16340 ;;
16341 siemens)
16342 ## LD is ld it makes a PLAMLIB
16343 ## CC just makes a GrossModule.
16344 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16345 reload_cmds='$CC -r -o $output$reload_objs'
16346 hardcode_direct=no
16347 ;;
16348 motorola)
16349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16351 ;;
16352 esac
16353 runpath_var='LD_RUN_PATH'
16354 hardcode_shlibpath_var=no
16355 ;;
16356
16357 sysv4.3*)
16358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_shlibpath_var=no
16360 export_dynamic_flag_spec='-Bexport'
16361 ;;
16362
16363 sysv4*MP*)
16364 if test -d /usr/nec; then
16365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366 hardcode_shlibpath_var=no
16367 runpath_var=LD_RUN_PATH
16368 hardcode_runpath_var=yes
16369 ld_shlibs=yes
16370 fi
16371 ;;
16372
16373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16374 no_undefined_flag='${wl}-z,text'
16375 archive_cmds_need_lc=no
16376 hardcode_shlibpath_var=no
16377 runpath_var='LD_RUN_PATH'
16378
16379 if test "$GCC" = yes; then
16380 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 else
16383 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 fi
16386 ;;
16387
16388 sysv5* | sco3.2v5* | sco5v6*)
16389 # Note: We can NOT use -z defs as we might desire, because we do not
16390 # link with -lc, and that would cause any symbols used from libc to
16391 # always be unresolved, which means just about no library would
16392 # ever link correctly. If we're not using GNU ld we use -z text
16393 # though, which does catch some bad symbols but isn't as heavy-handed
16394 # as -z defs.
16395 no_undefined_flag='${wl}-z,text'
16396 allow_undefined_flag='${wl}-z,nodefs'
16397 archive_cmds_need_lc=no
16398 hardcode_shlibpath_var=no
16399 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16400 hardcode_libdir_separator=':'
16401 link_all_deplibs=yes
16402 export_dynamic_flag_spec='${wl}-Bexport'
16403 runpath_var='LD_RUN_PATH'
16404
16405 if test "$GCC" = yes; then
16406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408 else
16409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 fi
16412 ;;
16413
16414 uts4*)
16415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416 hardcode_libdir_flag_spec='-L$libdir'
16417 hardcode_shlibpath_var=no
16418 ;;
16419
16420 *)
16421 ld_shlibs=no
16422 ;;
16423 esac
16424
16425 if test x$host_vendor = xsni; then
16426 case $host in
16427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16428 export_dynamic_flag_spec='${wl}-Blargedynsym'
16429 ;;
16430 esac
16431 fi
16432 fi
16433
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16435 $as_echo "$ld_shlibs" >&6; }
16436 test "$ld_shlibs" = no && can_build_shared=no
16437
16438 with_gnu_ld=$with_gnu_ld
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454 #
16455 # Do we need to explicitly link libc?
16456 #
16457 case "x$archive_cmds_need_lc" in
16458 x|xyes)
16459 # Assume -lc should be added
16460 archive_cmds_need_lc=yes
16461
16462 if test "$enable_shared" = yes && test "$GCC" = yes; then
16463 case $archive_cmds in
16464 *'~'*)
16465 # FIXME: we may have to deal with multi-command sequences.
16466 ;;
16467 '$CC '*)
16468 # Test whether the compiler implicitly links with -lc since on some
16469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16470 # to ld, don't add -lc before -lgcc.
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16472 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16473 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 $RM conftest*
16477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16478
16479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16480 (eval $ac_compile) 2>&5
16481 ac_status=$?
16482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16483 test $ac_status = 0; } 2>conftest.err; then
16484 soname=conftest
16485 lib=conftest
16486 libobjs=conftest.$ac_objext
16487 deplibs=
16488 wl=$lt_prog_compiler_wl
16489 pic_flag=$lt_prog_compiler_pic
16490 compiler_flags=-v
16491 linker_flags=-v
16492 verstring=
16493 output_objdir=.
16494 libname=conftest
16495 lt_save_allow_undefined_flag=$allow_undefined_flag
16496 allow_undefined_flag=
16497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16498 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16499 ac_status=$?
16500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501 test $ac_status = 0; }
16502 then
16503 lt_cv_archive_cmds_need_lc=no
16504 else
16505 lt_cv_archive_cmds_need_lc=yes
16506 fi
16507 allow_undefined_flag=$lt_save_allow_undefined_flag
16508 else
16509 cat conftest.err 1>&5
16510 fi
16511 $RM conftest*
16512
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16515 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16516 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16517 ;;
16518 esac
16519 fi
16520 ;;
16521 esac
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
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16680 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16681
16682 if test "$GCC" = yes; then
16683 case $host_os in
16684 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16685 *) lt_awk_arg="/^libraries:/" ;;
16686 esac
16687 case $host_os in
16688 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16689 *) lt_sed_strip_eq="s,=/,/,g" ;;
16690 esac
16691 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16692 case $lt_search_path_spec in
16693 *\;*)
16694 # if the path contains ";" then we assume it to be the separator
16695 # otherwise default to the standard path separator (i.e. ":") - it is
16696 # assumed that no part of a normal pathname contains ";" but that should
16697 # okay in the real world where ";" in dirpaths is itself problematic.
16698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16699 ;;
16700 *)
16701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16702 ;;
16703 esac
16704 # Ok, now we have the path, separated by spaces, we can step through it
16705 # and add multilib dir if necessary.
16706 lt_tmp_lt_search_path_spec=
16707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16708 for lt_sys_path in $lt_search_path_spec; do
16709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16711 else
16712 test -d "$lt_sys_path" && \
16713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16714 fi
16715 done
16716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16717 BEGIN {RS=" "; FS="/|\n";} {
16718 lt_foo="";
16719 lt_count=0;
16720 for (lt_i = NF; lt_i > 0; lt_i--) {
16721 if ($lt_i != "" && $lt_i != ".") {
16722 if ($lt_i == "..") {
16723 lt_count++;
16724 } else {
16725 if (lt_count == 0) {
16726 lt_foo="/" $lt_i lt_foo;
16727 } else {
16728 lt_count--;
16729 }
16730 }
16731 }
16732 }
16733 if (lt_foo != "") { lt_freq[lt_foo]++; }
16734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16735 }'`
16736 # AWK program above erroneously prepends '/' to C:/dos/paths
16737 # for these hosts.
16738 case $host_os in
16739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16740 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16741 esac
16742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16743 else
16744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16745 fi
16746 library_names_spec=
16747 libname_spec='lib$name'
16748 soname_spec=
16749 shrext_cmds=".so"
16750 postinstall_cmds=
16751 postuninstall_cmds=
16752 finish_cmds=
16753 finish_eval=
16754 shlibpath_var=
16755 shlibpath_overrides_runpath=unknown
16756 version_type=none
16757 dynamic_linker="$host_os ld.so"
16758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16759 need_lib_prefix=unknown
16760 hardcode_into_libs=no
16761
16762 # when you set need_version to no, make sure it does not cause -set_version
16763 # flags to be left without arguments
16764 need_version=unknown
16765
16766 case $host_os in
16767 aix3*)
16768 version_type=linux
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16770 shlibpath_var=LIBPATH
16771
16772 # AIX 3 has no versioning support, so we append a major version to the name.
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 ;;
16775
16776 aix[4-9]*)
16777 version_type=linux
16778 need_lib_prefix=no
16779 need_version=no
16780 hardcode_into_libs=yes
16781 if test "$host_cpu" = ia64; then
16782 # AIX 5 supports IA64
16783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 else
16786 # With GCC up to 2.95.x, collect2 would create an import file
16787 # for dependence libraries. The import file would start with
16788 # the line `#! .'. This would cause the generated library to
16789 # depend on `.', always an invalid library. This was fixed in
16790 # development snapshots of GCC prior to 3.0.
16791 case $host_os in
16792 aix4 | aix4.[01] | aix4.[01].*)
16793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16794 echo ' yes '
16795 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16796 :
16797 else
16798 can_build_shared=no
16799 fi
16800 ;;
16801 esac
16802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16803 # soname into executable. Probably we can add versioning support to
16804 # collect2, so additional links can be useful in future.
16805 if test "$aix_use_runtimelinking" = yes; then
16806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16807 # instead of lib<name>.a to let people know that these are not
16808 # typical AIX shared libraries.
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810 else
16811 # We preserve .a as extension for shared libraries through AIX4.2
16812 # and later when we are not doing run time linking.
16813 library_names_spec='${libname}${release}.a $libname.a'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 fi
16816 shlibpath_var=LIBPATH
16817 fi
16818 ;;
16819
16820 amigaos*)
16821 case $host_cpu in
16822 powerpc)
16823 # Since July 2007 AmigaOS4 officially supports .so libraries.
16824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 ;;
16827 m68k)
16828 library_names_spec='$libname.ixlibrary $libname.a'
16829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16830 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'
16831 ;;
16832 esac
16833 ;;
16834
16835 beos*)
16836 library_names_spec='${libname}${shared_ext}'
16837 dynamic_linker="$host_os ld.so"
16838 shlibpath_var=LIBRARY_PATH
16839 ;;
16840
16841 bsdi[45]*)
16842 version_type=linux
16843 need_version=no
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16850 # the default ld.so.conf also contains /usr/contrib/lib and
16851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16852 # libtool to hard-code these into programs
16853 ;;
16854
16855 cygwin* | mingw* | pw32* | cegcc*)
16856 version_type=windows
16857 shrext_cmds=".dll"
16858 need_version=no
16859 need_lib_prefix=no
16860
16861 case $GCC,$host_os in
16862 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16863 library_names_spec='$libname.dll.a'
16864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16865 postinstall_cmds='base_file=`basename \${file}`~
16866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16867 dldir=$destdir/`dirname \$dlpath`~
16868 test -d \$dldir || mkdir -p \$dldir~
16869 $install_prog $dir/$dlname \$dldir/$dlname~
16870 chmod a+x \$dldir/$dlname~
16871 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16872 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16873 fi'
16874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16875 dlpath=$dir/\$dldll~
16876 $RM \$dlpath'
16877 shlibpath_overrides_runpath=yes
16878
16879 case $host_os in
16880 cygwin*)
16881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883
16884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16885 ;;
16886 mingw* | cegcc*)
16887 # MinGW DLLs use traditional 'lib' prefix
16888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16889 ;;
16890 pw32*)
16891 # pw32 DLLs use 'pw' prefix rather than 'lib'
16892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16893 ;;
16894 esac
16895 ;;
16896
16897 *)
16898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16899 ;;
16900 esac
16901 dynamic_linker='Win32 ld.exe'
16902 # FIXME: first we should search . and the directory the executable is in
16903 shlibpath_var=PATH
16904 ;;
16905
16906 darwin* | rhapsody*)
16907 dynamic_linker="$host_os dyld"
16908 version_type=darwin
16909 need_lib_prefix=no
16910 need_version=no
16911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16912 soname_spec='${libname}${release}${major}$shared_ext'
16913 shlibpath_overrides_runpath=yes
16914 shlibpath_var=DYLD_LIBRARY_PATH
16915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16916
16917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16919 ;;
16920
16921 dgux*)
16922 version_type=linux
16923 need_lib_prefix=no
16924 need_version=no
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 ;;
16929
16930 freebsd* | dragonfly*)
16931 # DragonFly does not have aout. When/if they implement a new
16932 # versioning mechanism, adjust this.
16933 if test -x /usr/bin/objformat; then
16934 objformat=`/usr/bin/objformat`
16935 else
16936 case $host_os in
16937 freebsd[23].*) objformat=aout ;;
16938 *) objformat=elf ;;
16939 esac
16940 fi
16941 version_type=freebsd-$objformat
16942 case $version_type in
16943 freebsd-elf*)
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16945 need_version=no
16946 need_lib_prefix=no
16947 ;;
16948 freebsd-*)
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16950 need_version=yes
16951 ;;
16952 esac
16953 shlibpath_var=LD_LIBRARY_PATH
16954 case $host_os in
16955 freebsd2.*)
16956 shlibpath_overrides_runpath=yes
16957 ;;
16958 freebsd3.[01]* | freebsdelf3.[01]*)
16959 shlibpath_overrides_runpath=yes
16960 hardcode_into_libs=yes
16961 ;;
16962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16964 shlibpath_overrides_runpath=no
16965 hardcode_into_libs=yes
16966 ;;
16967 *) # from 4.6 on, and DragonFly
16968 shlibpath_overrides_runpath=yes
16969 hardcode_into_libs=yes
16970 ;;
16971 esac
16972 ;;
16973
16974 gnu*)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 hardcode_into_libs=yes
16982 ;;
16983
16984 haiku*)
16985 version_type=linux
16986 need_lib_prefix=no
16987 need_version=no
16988 dynamic_linker="$host_os runtime_loader"
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16990 soname_spec='${libname}${release}${shared_ext}$major'
16991 shlibpath_var=LIBRARY_PATH
16992 shlibpath_overrides_runpath=yes
16993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16994 hardcode_into_libs=yes
16995 ;;
16996
16997 hpux9* | hpux10* | hpux11*)
16998 # Give a soname corresponding to the major version so that dld.sl refuses to
16999 # link against other versions.
17000 version_type=sunos
17001 need_lib_prefix=no
17002 need_version=no
17003 case $host_cpu in
17004 ia64*)
17005 shrext_cmds='.so'
17006 hardcode_into_libs=yes
17007 dynamic_linker="$host_os dld.so"
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 if test "X$HPUX_IA64_MODE" = X32; then
17013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17014 else
17015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17016 fi
17017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17018 ;;
17019 hppa*64*)
17020 shrext_cmds='.sl'
17021 hardcode_into_libs=yes
17022 dynamic_linker="$host_os dld.sl"
17023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17029 ;;
17030 *)
17031 shrext_cmds='.sl'
17032 dynamic_linker="$host_os dld.sl"
17033 shlibpath_var=SHLIB_PATH
17034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 ;;
17038 esac
17039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17040 postinstall_cmds='chmod 555 $lib'
17041 # or fails outright, so override atomically:
17042 install_override_mode=555
17043 ;;
17044
17045 interix[3-9]*)
17046 version_type=linux
17047 need_lib_prefix=no
17048 need_version=no
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 shlibpath_overrides_runpath=no
17054 hardcode_into_libs=yes
17055 ;;
17056
17057 irix5* | irix6* | nonstopux*)
17058 case $host_os in
17059 nonstopux*) version_type=nonstopux ;;
17060 *)
17061 if test "$lt_cv_prog_gnu_ld" = yes; then
17062 version_type=linux
17063 else
17064 version_type=irix
17065 fi ;;
17066 esac
17067 need_lib_prefix=no
17068 need_version=no
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17071 case $host_os in
17072 irix5* | nonstopux*)
17073 libsuff= shlibsuff=
17074 ;;
17075 *)
17076 case $LD in # libtool.m4 will add one of these switches to LD
17077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17078 libsuff= shlibsuff= libmagic=32-bit;;
17079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17080 libsuff=32 shlibsuff=N32 libmagic=N32;;
17081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17083 *) libsuff= shlibsuff= libmagic=never-match;;
17084 esac
17085 ;;
17086 esac
17087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17088 shlibpath_overrides_runpath=no
17089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17091 hardcode_into_libs=yes
17092 ;;
17093
17094 # No shared lib support for Linux oldld, aout, or coff.
17095 linux*oldld* | linux*aout* | linux*coff*)
17096 dynamic_linker=no
17097 ;;
17098
17099 # This must be Linux ELF.
17100 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17101 version_type=linux
17102 need_lib_prefix=no
17103 need_version=no
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=no
17109
17110 # Some binutils ld are patched to set DT_RUNPATH
17111 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17112 $as_echo_n "(cached) " >&6
17113 else
17114 lt_cv_shlibpath_overrides_runpath=no
17115 save_LDFLAGS=$LDFLAGS
17116 save_libdir=$libdir
17117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121
17122 int
17123 main ()
17124 {
17125
17126 ;
17127 return 0;
17128 }
17129 _ACEOF
17130 if ac_fn_c_try_link "$LINENO"; then :
17131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17132 lt_cv_shlibpath_overrides_runpath=yes
17133 fi
17134 fi
17135 rm -f core conftest.err conftest.$ac_objext \
17136 conftest$ac_exeext conftest.$ac_ext
17137 LDFLAGS=$save_LDFLAGS
17138 libdir=$save_libdir
17139
17140 fi
17141
17142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17143
17144 # This implies no fast_install, which is unacceptable.
17145 # Some rework will be needed to allow for fast_install
17146 # before this can be enabled.
17147 hardcode_into_libs=yes
17148
17149 # Append ld.so.conf contents to the search path
17150 if test -f /etc/ld.so.conf; then
17151 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' ' '`
17152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17153 fi
17154
17155 # We used to test for /lib/ld.so.1 and disable shared libraries on
17156 # powerpc, because MkLinux only supported shared libraries with the
17157 # GNU dynamic linker. Since this was broken with cross compilers,
17158 # most powerpc-linux boxes support dynamic linking these days and
17159 # people can always --disable-shared, the test was removed, and we
17160 # assume the GNU/Linux dynamic linker is in use.
17161 dynamic_linker='GNU/Linux ld.so'
17162 ;;
17163
17164 netbsd*)
17165 version_type=sunos
17166 need_lib_prefix=no
17167 need_version=no
17168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17171 dynamic_linker='NetBSD (a.out) ld.so'
17172 else
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 dynamic_linker='NetBSD ld.elf_so'
17176 fi
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 hardcode_into_libs=yes
17180 ;;
17181
17182 newsos6)
17183 version_type=linux
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=yes
17187 ;;
17188
17189 *nto* | *qnx*)
17190 version_type=qnx
17191 need_lib_prefix=no
17192 need_version=no
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=no
17197 hardcode_into_libs=yes
17198 dynamic_linker='ldqnx.so'
17199 ;;
17200
17201 openbsd*)
17202 version_type=sunos
17203 sys_lib_dlsearch_path_spec="/usr/lib"
17204 need_lib_prefix=no
17205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17206 case $host_os in
17207 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17208 *) need_version=no ;;
17209 esac
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17214 case $host_os in
17215 openbsd2.[89] | openbsd2.[89].*)
17216 shlibpath_overrides_runpath=no
17217 ;;
17218 *)
17219 shlibpath_overrides_runpath=yes
17220 ;;
17221 esac
17222 else
17223 shlibpath_overrides_runpath=yes
17224 fi
17225 ;;
17226
17227 os2*)
17228 libname_spec='$name'
17229 shrext_cmds=".dll"
17230 need_lib_prefix=no
17231 library_names_spec='$libname${shared_ext} $libname.a'
17232 dynamic_linker='OS/2 ld.exe'
17233 shlibpath_var=LIBPATH
17234 ;;
17235
17236 osf3* | osf4* | osf5*)
17237 version_type=osf
17238 need_lib_prefix=no
17239 need_version=no
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17244 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17245 ;;
17246
17247 rdos*)
17248 dynamic_linker=no
17249 ;;
17250
17251 solaris*)
17252 version_type=linux
17253 need_lib_prefix=no
17254 need_version=no
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes
17259 hardcode_into_libs=yes
17260 # ldd complains unless libraries are executable
17261 postinstall_cmds='chmod +x $lib'
17262 ;;
17263
17264 sunos4*)
17265 version_type=sunos
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes
17270 if test "$with_gnu_ld" = yes; then
17271 need_lib_prefix=no
17272 fi
17273 need_version=yes
17274 ;;
17275
17276 sysv4 | sysv4.3*)
17277 version_type=linux
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 case $host_vendor in
17282 sni)
17283 shlibpath_overrides_runpath=no
17284 need_lib_prefix=no
17285 runpath_var=LD_RUN_PATH
17286 ;;
17287 siemens)
17288 need_lib_prefix=no
17289 ;;
17290 motorola)
17291 need_lib_prefix=no
17292 need_version=no
17293 shlibpath_overrides_runpath=no
17294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17295 ;;
17296 esac
17297 ;;
17298
17299 sysv4*MP*)
17300 if test -d /usr/nec ;then
17301 version_type=linux
17302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17303 soname_spec='$libname${shared_ext}.$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 fi
17306 ;;
17307
17308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17309 version_type=freebsd-elf
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=yes
17316 hardcode_into_libs=yes
17317 if test "$with_gnu_ld" = yes; then
17318 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17319 else
17320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17321 case $host_os in
17322 sco3.2v5*)
17323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17324 ;;
17325 esac
17326 fi
17327 sys_lib_dlsearch_path_spec='/usr/lib'
17328 ;;
17329
17330 tpf*)
17331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17332 version_type=linux
17333 need_lib_prefix=no
17334 need_version=no
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=no
17338 hardcode_into_libs=yes
17339 ;;
17340
17341 uts4*)
17342 version_type=linux
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec='${libname}${release}${shared_ext}$major'
17345 shlibpath_var=LD_LIBRARY_PATH
17346 ;;
17347
17348 *)
17349 dynamic_linker=no
17350 ;;
17351 esac
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17353 $as_echo "$dynamic_linker" >&6; }
17354 test "$dynamic_linker" = no && can_build_shared=no
17355
17356 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17357 if test "$GCC" = yes; then
17358 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17359 fi
17360
17361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17362 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17363 fi
17364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17365 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17366 fi
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
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17460 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17461 hardcode_action=
17462 if test -n "$hardcode_libdir_flag_spec" ||
17463 test -n "$runpath_var" ||
17464 test "X$hardcode_automatic" = "Xyes" ; then
17465
17466 # We can hardcode non-existent directories.
17467 if test "$hardcode_direct" != no &&
17468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17469 # have to relink, otherwise we might link with an installed library
17470 # when we should be linking with a yet-to-be-installed one
17471 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17472 test "$hardcode_minus_L" != no; then
17473 # Linking always hardcodes the temporary library directory.
17474 hardcode_action=relink
17475 else
17476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17477 hardcode_action=immediate
17478 fi
17479 else
17480 # We cannot hardcode anything, or else we can only hardcode existing
17481 # directories.
17482 hardcode_action=unsupported
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17485 $as_echo "$hardcode_action" >&6; }
17486
17487 if test "$hardcode_action" = relink ||
17488 test "$inherit_rpath" = yes; then
17489 # Fast installation is not supported
17490 enable_fast_install=no
17491 elif test "$shlibpath_overrides_runpath" = yes ||
17492 test "$enable_shared" = no; then
17493 # Fast installation is not necessary
17494 enable_fast_install=needless
17495 fi
17496
17497
17498
17499
17500
17501
17502 if test "x$enable_dlopen" != xyes; then
17503 enable_dlopen=unknown
17504 enable_dlopen_self=unknown
17505 enable_dlopen_self_static=unknown
17506 else
17507 lt_cv_dlopen=no
17508 lt_cv_dlopen_libs=
17509
17510 case $host_os in
17511 beos*)
17512 lt_cv_dlopen="load_add_on"
17513 lt_cv_dlopen_libs=
17514 lt_cv_dlopen_self=yes
17515 ;;
17516
17517 mingw* | pw32* | cegcc*)
17518 lt_cv_dlopen="LoadLibrary"
17519 lt_cv_dlopen_libs=
17520 ;;
17521
17522 cygwin*)
17523 lt_cv_dlopen="dlopen"
17524 lt_cv_dlopen_libs=
17525 ;;
17526
17527 darwin*)
17528 # if libdl is installed we need to link against it
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17530 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17531 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17532 $as_echo_n "(cached) " >&6
17533 else
17534 ac_check_lib_save_LIBS=$LIBS
17535 LIBS="-ldl $LIBS"
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538
17539 /* Override any GCC internal prototype to avoid an error.
17540 Use char because int might match the return type of a GCC
17541 builtin and then its argument prototype would still apply. */
17542 #ifdef __cplusplus
17543 extern "C"
17544 #endif
17545 char dlopen ();
17546 int
17547 main ()
17548 {
17549 return dlopen ();
17550 ;
17551 return 0;
17552 }
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 ac_cv_lib_dl_dlopen=yes
17556 else
17557 ac_cv_lib_dl_dlopen=no
17558 fi
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17561 LIBS=$ac_check_lib_save_LIBS
17562 fi
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17564 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17565 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17567 else
17568
17569 lt_cv_dlopen="dyld"
17570 lt_cv_dlopen_libs=
17571 lt_cv_dlopen_self=yes
17572
17573 fi
17574
17575 ;;
17576
17577 *)
17578 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17579 if test "x$ac_cv_func_shl_load" = x""yes; then :
17580 lt_cv_dlopen="shl_load"
17581 else
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17583 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17584 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17585 $as_echo_n "(cached) " >&6
17586 else
17587 ac_check_lib_save_LIBS=$LIBS
17588 LIBS="-ldld $LIBS"
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591
17592 /* Override any GCC internal prototype to avoid an error.
17593 Use char because int might match the return type of a GCC
17594 builtin and then its argument prototype would still apply. */
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 char shl_load ();
17599 int
17600 main ()
17601 {
17602 return shl_load ();
17603 ;
17604 return 0;
17605 }
17606 _ACEOF
17607 if ac_fn_c_try_link "$LINENO"; then :
17608 ac_cv_lib_dld_shl_load=yes
17609 else
17610 ac_cv_lib_dld_shl_load=no
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17615 fi
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17617 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17618 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17619 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17620 else
17621 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17622 if test "x$ac_cv_func_dlopen" = x""yes; then :
17623 lt_cv_dlopen="dlopen"
17624 else
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17626 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17630 ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-ldl $LIBS"
17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17634
17635 /* Override any GCC internal prototype to avoid an error.
17636 Use char because int might match the return type of a GCC
17637 builtin and then its argument prototype would still apply. */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 char dlopen ();
17642 int
17643 main ()
17644 {
17645 return dlopen ();
17646 ;
17647 return 0;
17648 }
17649 _ACEOF
17650 if ac_fn_c_try_link "$LINENO"; then :
17651 ac_cv_lib_dl_dlopen=yes
17652 else
17653 ac_cv_lib_dl_dlopen=no
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17660 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17661 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663 else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17665 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17666 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17668 else
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lsvld $LIBS"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17673
17674 /* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17677 #ifdef __cplusplus
17678 extern "C"
17679 #endif
17680 char dlopen ();
17681 int
17682 main ()
17683 {
17684 return dlopen ();
17685 ;
17686 return 0;
17687 }
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690 ac_cv_lib_svld_dlopen=yes
17691 else
17692 ac_cv_lib_svld_dlopen=no
17693 fi
17694 rm -f core conftest.err conftest.$ac_objext \
17695 conftest$ac_exeext conftest.$ac_ext
17696 LIBS=$ac_check_lib_save_LIBS
17697 fi
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17699 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17700 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17702 else
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17704 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17706 $as_echo_n "(cached) " >&6
17707 else
17708 ac_check_lib_save_LIBS=$LIBS
17709 LIBS="-ldld $LIBS"
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 char dld_link ();
17720 int
17721 main ()
17722 {
17723 return dld_link ();
17724 ;
17725 return 0;
17726 }
17727 _ACEOF
17728 if ac_fn_c_try_link "$LINENO"; then :
17729 ac_cv_lib_dld_dld_link=yes
17730 else
17731 ac_cv_lib_dld_dld_link=no
17732 fi
17733 rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17736 fi
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17738 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17739 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17741 fi
17742
17743
17744 fi
17745
17746
17747 fi
17748
17749
17750 fi
17751
17752
17753 fi
17754
17755
17756 fi
17757
17758 ;;
17759 esac
17760
17761 if test "x$lt_cv_dlopen" != xno; then
17762 enable_dlopen=yes
17763 else
17764 enable_dlopen=no
17765 fi
17766
17767 case $lt_cv_dlopen in
17768 dlopen)
17769 save_CPPFLAGS="$CPPFLAGS"
17770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17771
17772 save_LDFLAGS="$LDFLAGS"
17773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17774
17775 save_LIBS="$LIBS"
17776 LIBS="$lt_cv_dlopen_libs $LIBS"
17777
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17779 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17780 if test "${lt_cv_dlopen_self+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17783 if test "$cross_compiling" = yes; then :
17784 lt_cv_dlopen_self=cross
17785 else
17786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17787 lt_status=$lt_dlunknown
17788 cat > conftest.$ac_ext <<_LT_EOF
17789 #line 17789 "configure"
17790 #include "confdefs.h"
17791
17792 #if HAVE_DLFCN_H
17793 #include <dlfcn.h>
17794 #endif
17795
17796 #include <stdio.h>
17797
17798 #ifdef RTLD_GLOBAL
17799 # define LT_DLGLOBAL RTLD_GLOBAL
17800 #else
17801 # ifdef DL_GLOBAL
17802 # define LT_DLGLOBAL DL_GLOBAL
17803 # else
17804 # define LT_DLGLOBAL 0
17805 # endif
17806 #endif
17807
17808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17809 find out it does not work in some platform. */
17810 #ifndef LT_DLLAZY_OR_NOW
17811 # ifdef RTLD_LAZY
17812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17813 # else
17814 # ifdef DL_LAZY
17815 # define LT_DLLAZY_OR_NOW DL_LAZY
17816 # else
17817 # ifdef RTLD_NOW
17818 # define LT_DLLAZY_OR_NOW RTLD_NOW
17819 # else
17820 # ifdef DL_NOW
17821 # define LT_DLLAZY_OR_NOW DL_NOW
17822 # else
17823 # define LT_DLLAZY_OR_NOW 0
17824 # endif
17825 # endif
17826 # endif
17827 # endif
17828 #endif
17829
17830 /* When -fvisbility=hidden is used, assume the code has been annotated
17831 correspondingly for the symbols needed. */
17832 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17833 void fnord () __attribute__((visibility("default")));
17834 #endif
17835
17836 void fnord () { int i=42; }
17837 int main ()
17838 {
17839 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17840 int status = $lt_dlunknown;
17841
17842 if (self)
17843 {
17844 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17845 else
17846 {
17847 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17848 else puts (dlerror ());
17849 }
17850 /* dlclose (self); */
17851 }
17852 else
17853 puts (dlerror ());
17854
17855 return status;
17856 }
17857 _LT_EOF
17858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17859 (eval $ac_link) 2>&5
17860 ac_status=$?
17861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17862 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17863 (./conftest; exit; ) >&5 2>/dev/null
17864 lt_status=$?
17865 case x$lt_status in
17866 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17867 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17868 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17869 esac
17870 else :
17871 # compilation failed
17872 lt_cv_dlopen_self=no
17873 fi
17874 fi
17875 rm -fr conftest*
17876
17877
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17880 $as_echo "$lt_cv_dlopen_self" >&6; }
17881
17882 if test "x$lt_cv_dlopen_self" = xyes; then
17883 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17885 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17886 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17888 else
17889 if test "$cross_compiling" = yes; then :
17890 lt_cv_dlopen_self_static=cross
17891 else
17892 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17893 lt_status=$lt_dlunknown
17894 cat > conftest.$ac_ext <<_LT_EOF
17895 #line 17895 "configure"
17896 #include "confdefs.h"
17897
17898 #if HAVE_DLFCN_H
17899 #include <dlfcn.h>
17900 #endif
17901
17902 #include <stdio.h>
17903
17904 #ifdef RTLD_GLOBAL
17905 # define LT_DLGLOBAL RTLD_GLOBAL
17906 #else
17907 # ifdef DL_GLOBAL
17908 # define LT_DLGLOBAL DL_GLOBAL
17909 # else
17910 # define LT_DLGLOBAL 0
17911 # endif
17912 #endif
17913
17914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17915 find out it does not work in some platform. */
17916 #ifndef LT_DLLAZY_OR_NOW
17917 # ifdef RTLD_LAZY
17918 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17919 # else
17920 # ifdef DL_LAZY
17921 # define LT_DLLAZY_OR_NOW DL_LAZY
17922 # else
17923 # ifdef RTLD_NOW
17924 # define LT_DLLAZY_OR_NOW RTLD_NOW
17925 # else
17926 # ifdef DL_NOW
17927 # define LT_DLLAZY_OR_NOW DL_NOW
17928 # else
17929 # define LT_DLLAZY_OR_NOW 0
17930 # endif
17931 # endif
17932 # endif
17933 # endif
17934 #endif
17935
17936 /* When -fvisbility=hidden is used, assume the code has been annotated
17937 correspondingly for the symbols needed. */
17938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17939 void fnord () __attribute__((visibility("default")));
17940 #endif
17941
17942 void fnord () { int i=42; }
17943 int main ()
17944 {
17945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17946 int status = $lt_dlunknown;
17947
17948 if (self)
17949 {
17950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17951 else
17952 {
17953 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17954 else puts (dlerror ());
17955 }
17956 /* dlclose (self); */
17957 }
17958 else
17959 puts (dlerror ());
17960
17961 return status;
17962 }
17963 _LT_EOF
17964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17965 (eval $ac_link) 2>&5
17966 ac_status=$?
17967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17968 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17969 (./conftest; exit; ) >&5 2>/dev/null
17970 lt_status=$?
17971 case x$lt_status in
17972 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17973 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17974 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17975 esac
17976 else :
17977 # compilation failed
17978 lt_cv_dlopen_self_static=no
17979 fi
17980 fi
17981 rm -fr conftest*
17982
17983
17984 fi
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17986 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17987 fi
17988
17989 CPPFLAGS="$save_CPPFLAGS"
17990 LDFLAGS="$save_LDFLAGS"
17991 LIBS="$save_LIBS"
17992 ;;
17993 esac
17994
17995 case $lt_cv_dlopen_self in
17996 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17997 *) enable_dlopen_self=unknown ;;
17998 esac
17999
18000 case $lt_cv_dlopen_self_static in
18001 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18002 *) enable_dlopen_self_static=unknown ;;
18003 esac
18004 fi
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022 striplib=
18023 old_striplib=
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18025 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18026 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18027 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18028 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18030 $as_echo "yes" >&6; }
18031 else
18032 # FIXME - insert some real tests, host_os isn't really good enough
18033 case $host_os in
18034 darwin*)
18035 if test -n "$STRIP" ; then
18036 striplib="$STRIP -x"
18037 old_striplib="$STRIP -S"
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18039 $as_echo "yes" >&6; }
18040 else
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18043 fi
18044 ;;
18045 *)
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047 $as_echo "no" >&6; }
18048 ;;
18049 esac
18050 fi
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063 # Report which library types will actually be built
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18065 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18067 $as_echo "$can_build_shared" >&6; }
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18070 $as_echo_n "checking whether to build shared libraries... " >&6; }
18071 test "$can_build_shared" = "no" && enable_shared=no
18072
18073 # On AIX, shared libraries and static libraries use the same namespace, and
18074 # are all built from PIC.
18075 case $host_os in
18076 aix3*)
18077 test "$enable_shared" = yes && enable_static=no
18078 if test -n "$RANLIB"; then
18079 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18080 postinstall_cmds='$RANLIB $lib'
18081 fi
18082 ;;
18083
18084 aix[4-9]*)
18085 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18086 test "$enable_shared" = yes && enable_static=no
18087 fi
18088 ;;
18089 esac
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18091 $as_echo "$enable_shared" >&6; }
18092
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18094 $as_echo_n "checking whether to build static libraries... " >&6; }
18095 # Make sure either enable_shared or enable_static is yes.
18096 test "$enable_shared" = yes || enable_static=yes
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18098 $as_echo "$enable_static" >&6; }
18099
18100
18101
18102
18103 fi
18104 ac_ext=c
18105 ac_cpp='$CPP $CPPFLAGS'
18106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18109
18110 CC="$lt_save_CC"
18111
18112 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18113 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18114 (test "X$CXX" != "Xg++"))) ; then
18115 ac_ext=cpp
18116 ac_cpp='$CXXCPP $CPPFLAGS'
18117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18121 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18122 if test -z "$CXXCPP"; then
18123 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18124 $as_echo_n "(cached) " >&6
18125 else
18126 # Double quotes because CXXCPP needs to be expanded
18127 for CXXCPP in "$CXX -E" "/lib/cpp"
18128 do
18129 ac_preproc_ok=false
18130 for ac_cxx_preproc_warn_flag in '' yes
18131 do
18132 # Use a header file that comes with gcc, so configuring glibc
18133 # with a fresh cross-compiler works.
18134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18135 # <limits.h> exists even on freestanding compilers.
18136 # On the NeXT, cc -E runs the code through the compiler's parser,
18137 # not just through cpp. "Syntax error" is here to catch this case.
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18145 Syntax error
18146 _ACEOF
18147 if ac_fn_cxx_try_cpp "$LINENO"; then :
18148
18149 else
18150 # Broken: fails on valid input.
18151 continue
18152 fi
18153 rm -f conftest.err conftest.$ac_ext
18154
18155 # OK, works on sane cases. Now check whether nonexistent headers
18156 # can be detected and how.
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h. */
18159 #include <ac_nonexistent.h>
18160 _ACEOF
18161 if ac_fn_cxx_try_cpp "$LINENO"; then :
18162 # Broken: success on invalid input.
18163 continue
18164 else
18165 # Passes both tests.
18166 ac_preproc_ok=:
18167 break
18168 fi
18169 rm -f conftest.err conftest.$ac_ext
18170
18171 done
18172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18173 rm -f conftest.err conftest.$ac_ext
18174 if $ac_preproc_ok; then :
18175 break
18176 fi
18177
18178 done
18179 ac_cv_prog_CXXCPP=$CXXCPP
18180
18181 fi
18182 CXXCPP=$ac_cv_prog_CXXCPP
18183 else
18184 ac_cv_prog_CXXCPP=$CXXCPP
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18187 $as_echo "$CXXCPP" >&6; }
18188 ac_preproc_ok=false
18189 for ac_cxx_preproc_warn_flag in '' yes
18190 do
18191 # Use a header file that comes with gcc, so configuring glibc
18192 # with a fresh cross-compiler works.
18193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 # <limits.h> exists even on freestanding compilers.
18195 # On the NeXT, cc -E runs the code through the compiler's parser,
18196 # not just through cpp. "Syntax error" is here to catch this case.
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18204 Syntax error
18205 _ACEOF
18206 if ac_fn_cxx_try_cpp "$LINENO"; then :
18207
18208 else
18209 # Broken: fails on valid input.
18210 continue
18211 fi
18212 rm -f conftest.err conftest.$ac_ext
18213
18214 # OK, works on sane cases. Now check whether nonexistent headers
18215 # can be detected and how.
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 #include <ac_nonexistent.h>
18219 _ACEOF
18220 if ac_fn_cxx_try_cpp "$LINENO"; then :
18221 # Broken: success on invalid input.
18222 continue
18223 else
18224 # Passes both tests.
18225 ac_preproc_ok=:
18226 break
18227 fi
18228 rm -f conftest.err conftest.$ac_ext
18229
18230 done
18231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18232 rm -f conftest.err conftest.$ac_ext
18233 if $ac_preproc_ok; then :
18234
18235 else
18236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18238 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18239 See \`config.log' for more details." "$LINENO" 5; }
18240 fi
18241
18242 ac_ext=c
18243 ac_cpp='$CPP $CPPFLAGS'
18244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18247
18248 else
18249 _lt_caught_CXX_error=yes
18250 fi
18251
18252 ac_ext=cpp
18253 ac_cpp='$CXXCPP $CPPFLAGS'
18254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18257
18258 archive_cmds_need_lc_CXX=no
18259 allow_undefined_flag_CXX=
18260 always_export_symbols_CXX=no
18261 archive_expsym_cmds_CXX=
18262 compiler_needs_object_CXX=no
18263 export_dynamic_flag_spec_CXX=
18264 hardcode_direct_CXX=no
18265 hardcode_direct_absolute_CXX=no
18266 hardcode_libdir_flag_spec_CXX=
18267 hardcode_libdir_flag_spec_ld_CXX=
18268 hardcode_libdir_separator_CXX=
18269 hardcode_minus_L_CXX=no
18270 hardcode_shlibpath_var_CXX=unsupported
18271 hardcode_automatic_CXX=no
18272 inherit_rpath_CXX=no
18273 module_cmds_CXX=
18274 module_expsym_cmds_CXX=
18275 link_all_deplibs_CXX=unknown
18276 old_archive_cmds_CXX=$old_archive_cmds
18277 reload_flag_CXX=$reload_flag
18278 reload_cmds_CXX=$reload_cmds
18279 no_undefined_flag_CXX=
18280 whole_archive_flag_spec_CXX=
18281 enable_shared_with_static_runtimes_CXX=no
18282
18283 # Source file extension for C++ test sources.
18284 ac_ext=cpp
18285
18286 # Object file extension for compiled C++ test sources.
18287 objext=o
18288 objext_CXX=$objext
18289
18290 # No sense in running all these tests if we already determined that
18291 # the CXX compiler isn't working. Some variables (like enable_shared)
18292 # are currently assumed to apply to all compilers on this platform,
18293 # and will be corrupted by setting them based on a non-working compiler.
18294 if test "$_lt_caught_CXX_error" != yes; then
18295 # Code to be used in simple compile tests
18296 lt_simple_compile_test_code="int some_variable = 0;"
18297
18298 # Code to be used in simple link tests
18299 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18300
18301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18302
18303
18304
18305
18306
18307
18308 # If no C compiler was specified, use CC.
18309 LTCC=${LTCC-"$CC"}
18310
18311 # If no C compiler flags were specified, use CFLAGS.
18312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18313
18314 # Allow CC to be a program name with arguments.
18315 compiler=$CC
18316
18317
18318 # save warnings/boilerplate of simple test code
18319 ac_outfile=conftest.$ac_objext
18320 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18322 _lt_compiler_boilerplate=`cat conftest.err`
18323 $RM conftest*
18324
18325 ac_outfile=conftest.$ac_objext
18326 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18328 _lt_linker_boilerplate=`cat conftest.err`
18329 $RM -r conftest*
18330
18331
18332 # Allow CC to be a program name with arguments.
18333 lt_save_CC=$CC
18334 lt_save_LD=$LD
18335 lt_save_GCC=$GCC
18336 GCC=$GXX
18337 lt_save_with_gnu_ld=$with_gnu_ld
18338 lt_save_path_LD=$lt_cv_path_LD
18339 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18340 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18341 else
18342 $as_unset lt_cv_prog_gnu_ld
18343 fi
18344 if test -n "${lt_cv_path_LDCXX+set}"; then
18345 lt_cv_path_LD=$lt_cv_path_LDCXX
18346 else
18347 $as_unset lt_cv_path_LD
18348 fi
18349 test -z "${LDCXX+set}" || LD=$LDCXX
18350 CC=${CXX-"c++"}
18351 compiler=$CC
18352 compiler_CXX=$CC
18353 for cc_temp in $compiler""; do
18354 case $cc_temp in
18355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18357 \-*) ;;
18358 *) break;;
18359 esac
18360 done
18361 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18362
18363
18364 if test -n "$compiler"; then
18365 # We don't want -fno-exception when compiling C++ code, so set the
18366 # no_builtin_flag separately
18367 if test "$GXX" = yes; then
18368 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18369 else
18370 lt_prog_compiler_no_builtin_flag_CXX=
18371 fi
18372
18373 if test "$GXX" = yes; then
18374 # Set up default GNU C++ configuration
18375
18376
18377
18378 # Check whether --with-gnu-ld was given.
18379 if test "${with_gnu_ld+set}" = set; then :
18380 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18381 else
18382 with_gnu_ld=no
18383 fi
18384
18385 ac_prog=ld
18386 if test "$GCC" = yes; then
18387 # Check if gcc -print-prog-name=ld gives a path.
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18389 $as_echo_n "checking for ld used by $CC... " >&6; }
18390 case $host in
18391 *-*-mingw*)
18392 # gcc leaves a trailing carriage return which upsets mingw
18393 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18394 *)
18395 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18396 esac
18397 case $ac_prog in
18398 # Accept absolute paths.
18399 [\\/]* | ?:[\\/]*)
18400 re_direlt='/[^/][^/]*/\.\./'
18401 # Canonicalize the pathname of ld
18402 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18403 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18404 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18405 done
18406 test -z "$LD" && LD="$ac_prog"
18407 ;;
18408 "")
18409 # If it fails, then pretend we aren't using GCC.
18410 ac_prog=ld
18411 ;;
18412 *)
18413 # If it is relative, then search for the first ld in PATH.
18414 with_gnu_ld=unknown
18415 ;;
18416 esac
18417 elif test "$with_gnu_ld" = yes; then
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18419 $as_echo_n "checking for GNU ld... " >&6; }
18420 else
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18422 $as_echo_n "checking for non-GNU ld... " >&6; }
18423 fi
18424 if test "${lt_cv_path_LD+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18426 else
18427 if test -z "$LD"; then
18428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18429 for ac_dir in $PATH; do
18430 IFS="$lt_save_ifs"
18431 test -z "$ac_dir" && ac_dir=.
18432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18433 lt_cv_path_LD="$ac_dir/$ac_prog"
18434 # Check to see if the program is GNU ld. I'd rather use --version,
18435 # but apparently some variants of GNU ld only accept -v.
18436 # Break only if it was the GNU/non-GNU ld that we prefer.
18437 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18438 *GNU* | *'with BFD'*)
18439 test "$with_gnu_ld" != no && break
18440 ;;
18441 *)
18442 test "$with_gnu_ld" != yes && break
18443 ;;
18444 esac
18445 fi
18446 done
18447 IFS="$lt_save_ifs"
18448 else
18449 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18450 fi
18451 fi
18452
18453 LD="$lt_cv_path_LD"
18454 if test -n "$LD"; then
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18456 $as_echo "$LD" >&6; }
18457 else
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18460 fi
18461 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18463 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18464 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18465 $as_echo_n "(cached) " >&6
18466 else
18467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18468 case `$LD -v 2>&1 </dev/null` in
18469 *GNU* | *'with BFD'*)
18470 lt_cv_prog_gnu_ld=yes
18471 ;;
18472 *)
18473 lt_cv_prog_gnu_ld=no
18474 ;;
18475 esac
18476 fi
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18478 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18479 with_gnu_ld=$lt_cv_prog_gnu_ld
18480
18481
18482
18483
18484
18485
18486
18487 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18488 # archiving commands below assume that GNU ld is being used.
18489 if test "$with_gnu_ld" = yes; then
18490 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491 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'
18492
18493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18495
18496 # If archive_cmds runs LD, not CC, wlarc should be empty
18497 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18498 # investigate it a little bit more. (MM)
18499 wlarc='${wl}'
18500
18501 # ancient GNU ld didn't support --whole-archive et. al.
18502 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18503 $GREP 'no-whole-archive' > /dev/null; then
18504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18505 else
18506 whole_archive_flag_spec_CXX=
18507 fi
18508 else
18509 with_gnu_ld=no
18510 wlarc=
18511
18512 # A generic and very simple default shared library creation
18513 # command for GNU C++ for the case where it uses the native
18514 # linker, instead of GNU ld. If possible, this setting should
18515 # overridden to take advantage of the native linker features on
18516 # the platform it is being used on.
18517 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18518 fi
18519
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18524
18525 else
18526 GXX=no
18527 with_gnu_ld=no
18528 wlarc=
18529 fi
18530
18531 # PORTME: fill in a description of your system's C++ link characteristics
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18533 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18534 ld_shlibs_CXX=yes
18535 case $host_os in
18536 aix3*)
18537 # FIXME: insert proper C++ library support
18538 ld_shlibs_CXX=no
18539 ;;
18540 aix[4-9]*)
18541 if test "$host_cpu" = ia64; then
18542 # On IA64, the linker does run time linking by default, so we don't
18543 # have to do anything special.
18544 aix_use_runtimelinking=no
18545 exp_sym_flag='-Bexport'
18546 no_entry_flag=""
18547 else
18548 aix_use_runtimelinking=no
18549
18550 # Test if we are trying to use run time linking or normal
18551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18552 # need to do runtime linking.
18553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18554 for ld_flag in $LDFLAGS; do
18555 case $ld_flag in
18556 *-brtl*)
18557 aix_use_runtimelinking=yes
18558 break
18559 ;;
18560 esac
18561 done
18562 ;;
18563 esac
18564
18565 exp_sym_flag='-bexport'
18566 no_entry_flag='-bnoentry'
18567 fi
18568
18569 # When large executables or shared objects are built, AIX ld can
18570 # have problems creating the table of contents. If linking a library
18571 # or program results in "error TOC overflow" add -mminimal-toc to
18572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18574
18575 archive_cmds_CXX=''
18576 hardcode_direct_CXX=yes
18577 hardcode_direct_absolute_CXX=yes
18578 hardcode_libdir_separator_CXX=':'
18579 link_all_deplibs_CXX=yes
18580 file_list_spec_CXX='${wl}-f,'
18581
18582 if test "$GXX" = yes; then
18583 case $host_os in aix4.[012]|aix4.[012].*)
18584 # We only want to do this on AIX 4.2 and lower, the check
18585 # below for broken collect2 doesn't work under 4.3+
18586 collect2name=`${CC} -print-prog-name=collect2`
18587 if test -f "$collect2name" &&
18588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18589 then
18590 # We have reworked collect2
18591 :
18592 else
18593 # We have old collect2
18594 hardcode_direct_CXX=unsupported
18595 # It fails to find uninstalled libraries when the uninstalled
18596 # path is not listed in the libpath. Setting hardcode_minus_L
18597 # to unsupported forces relinking
18598 hardcode_minus_L_CXX=yes
18599 hardcode_libdir_flag_spec_CXX='-L$libdir'
18600 hardcode_libdir_separator_CXX=
18601 fi
18602 esac
18603 shared_flag='-shared'
18604 if test "$aix_use_runtimelinking" = yes; then
18605 shared_flag="$shared_flag "'${wl}-G'
18606 fi
18607 else
18608 # not using gcc
18609 if test "$host_cpu" = ia64; then
18610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18611 # chokes on -Wl,-G. The following line is correct:
18612 shared_flag='-G'
18613 else
18614 if test "$aix_use_runtimelinking" = yes; then
18615 shared_flag='${wl}-G'
18616 else
18617 shared_flag='${wl}-bM:SRE'
18618 fi
18619 fi
18620 fi
18621
18622 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18623 # It seems that -bexpall does not export symbols beginning with
18624 # underscore (_), so it is better to generate a list of symbols to
18625 # export.
18626 always_export_symbols_CXX=yes
18627 if test "$aix_use_runtimelinking" = yes; then
18628 # Warning - without using the other runtime loading flags (-brtl),
18629 # -berok will link without error, but may produce a broken library.
18630 allow_undefined_flag_CXX='-berok'
18631 # Determine the default libpath from the value encoded in an empty
18632 # executable.
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18635
18636 int
18637 main ()
18638 {
18639
18640 ;
18641 return 0;
18642 }
18643 _ACEOF
18644 if ac_fn_cxx_try_link "$LINENO"; then :
18645
18646 lt_aix_libpath_sed='
18647 /Import File Strings/,/^$/ {
18648 /^0/ {
18649 s/^0 *\(.*\)$/\1/
18650 p
18651 }
18652 }'
18653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18654 # Check for a 64-bit object if we didn't find anything.
18655 if test -z "$aix_libpath"; then
18656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18657 fi
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18662
18663 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18664
18665 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"
18666 else
18667 if test "$host_cpu" = ia64; then
18668 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18669 allow_undefined_flag_CXX="-z nodefs"
18670 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"
18671 else
18672 # Determine the default libpath from the value encoded in an
18673 # empty executable.
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676
18677 int
18678 main ()
18679 {
18680
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 if ac_fn_cxx_try_link "$LINENO"; then :
18686
18687 lt_aix_libpath_sed='
18688 /Import File Strings/,/^$/ {
18689 /^0/ {
18690 s/^0 *\(.*\)$/\1/
18691 p
18692 }
18693 }'
18694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18695 # Check for a 64-bit object if we didn't find anything.
18696 if test -z "$aix_libpath"; then
18697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18698 fi
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18703
18704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18705 # Warning - without using the other run time loading flags,
18706 # -berok will link without error, but may produce a broken library.
18707 no_undefined_flag_CXX=' ${wl}-bernotok'
18708 allow_undefined_flag_CXX=' ${wl}-berok'
18709 if test "$with_gnu_ld" = yes; then
18710 # We only use this code for GNU lds that support --whole-archive.
18711 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18712 else
18713 # Exported symbols can be pulled into shared objects from archives
18714 whole_archive_flag_spec_CXX='$convenience'
18715 fi
18716 archive_cmds_need_lc_CXX=yes
18717 # This is similar to how AIX traditionally builds its shared
18718 # libraries.
18719 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'
18720 fi
18721 fi
18722 ;;
18723
18724 beos*)
18725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18726 allow_undefined_flag_CXX=unsupported
18727 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18728 # support --undefined. This deserves some investigation. FIXME
18729 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18730 else
18731 ld_shlibs_CXX=no
18732 fi
18733 ;;
18734
18735 chorus*)
18736 case $cc_basename in
18737 *)
18738 # FIXME: insert proper C++ library support
18739 ld_shlibs_CXX=no
18740 ;;
18741 esac
18742 ;;
18743
18744 cygwin* | mingw* | pw32* | cegcc*)
18745 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18746 # as there is no search path for DLLs.
18747 hardcode_libdir_flag_spec_CXX='-L$libdir'
18748 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18749 allow_undefined_flag_CXX=unsupported
18750 always_export_symbols_CXX=no
18751 enable_shared_with_static_runtimes_CXX=yes
18752
18753 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18754 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'
18755 # If the export-symbols file already is a .def file (1st line
18756 # is EXPORTS), use it as is; otherwise, prepend...
18757 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18758 cp $export_symbols $output_objdir/$soname.def;
18759 else
18760 echo EXPORTS > $output_objdir/$soname.def;
18761 cat $export_symbols >> $output_objdir/$soname.def;
18762 fi~
18763 $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'
18764 else
18765 ld_shlibs_CXX=no
18766 fi
18767 ;;
18768 darwin* | rhapsody*)
18769
18770
18771 archive_cmds_need_lc_CXX=no
18772 hardcode_direct_CXX=no
18773 hardcode_automatic_CXX=yes
18774 hardcode_shlibpath_var_CXX=unsupported
18775 if test "$lt_cv_ld_force_load" = "yes"; then
18776 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\"`'
18777 else
18778 whole_archive_flag_spec_CXX=''
18779 fi
18780 link_all_deplibs_CXX=yes
18781 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18782 case $cc_basename in
18783 ifort*) _lt_dar_can_shared=yes ;;
18784 *) _lt_dar_can_shared=$GCC ;;
18785 esac
18786 if test "$_lt_dar_can_shared" = "yes"; then
18787 output_verbose_link_cmd=func_echo_all
18788 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}"
18789 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18790 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}"
18791 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}"
18792 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18793 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}"
18794 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}"
18795 fi
18796
18797 else
18798 ld_shlibs_CXX=no
18799 fi
18800
18801 ;;
18802
18803 dgux*)
18804 case $cc_basename in
18805 ec++*)
18806 # FIXME: insert proper C++ library support
18807 ld_shlibs_CXX=no
18808 ;;
18809 ghcx*)
18810 # Green Hills C++ Compiler
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
18814 *)
18815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18817 ;;
18818 esac
18819 ;;
18820
18821 freebsd2.*)
18822 # C++ shared libraries reported to be fairly broken before
18823 # switch to ELF
18824 ld_shlibs_CXX=no
18825 ;;
18826
18827 freebsd-elf*)
18828 archive_cmds_need_lc_CXX=no
18829 ;;
18830
18831 freebsd* | dragonfly*)
18832 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18833 # conventions
18834 ld_shlibs_CXX=yes
18835 ;;
18836
18837 gnu*)
18838 ;;
18839
18840 haiku*)
18841 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18842 link_all_deplibs_CXX=yes
18843 ;;
18844
18845 hpux9*)
18846 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18847 hardcode_libdir_separator_CXX=:
18848 export_dynamic_flag_spec_CXX='${wl}-E'
18849 hardcode_direct_CXX=yes
18850 hardcode_minus_L_CXX=yes # Not in the search PATH,
18851 # but as the default
18852 # location of the library.
18853
18854 case $cc_basename in
18855 CC*)
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18858 ;;
18859 aCC*)
18860 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'
18861 # Commands to make compiler produce verbose output that lists
18862 # what "hidden" libraries, object files and flags are used when
18863 # linking a shared library.
18864 #
18865 # There doesn't appear to be a way to prevent this compiler from
18866 # explicitly linking system object files so we need to strip them
18867 # from the output so that they don't get included in the library
18868 # dependencies.
18869 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"'
18870 ;;
18871 *)
18872 if test "$GXX" = yes; then
18873 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'
18874 else
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18877 fi
18878 ;;
18879 esac
18880 ;;
18881
18882 hpux10*|hpux11*)
18883 if test $with_gnu_ld = no; then
18884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18885 hardcode_libdir_separator_CXX=:
18886
18887 case $host_cpu in
18888 hppa*64*|ia64*)
18889 ;;
18890 *)
18891 export_dynamic_flag_spec_CXX='${wl}-E'
18892 ;;
18893 esac
18894 fi
18895 case $host_cpu in
18896 hppa*64*|ia64*)
18897 hardcode_direct_CXX=no
18898 hardcode_shlibpath_var_CXX=no
18899 ;;
18900 *)
18901 hardcode_direct_CXX=yes
18902 hardcode_direct_absolute_CXX=yes
18903 hardcode_minus_L_CXX=yes # Not in the search PATH,
18904 # but as the default
18905 # location of the library.
18906 ;;
18907 esac
18908
18909 case $cc_basename in
18910 CC*)
18911 # FIXME: insert proper C++ library support
18912 ld_shlibs_CXX=no
18913 ;;
18914 aCC*)
18915 case $host_cpu in
18916 hppa*64*)
18917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18918 ;;
18919 ia64*)
18920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18921 ;;
18922 *)
18923 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18924 ;;
18925 esac
18926 # Commands to make compiler produce verbose output that lists
18927 # what "hidden" libraries, object files and flags are used when
18928 # linking a shared library.
18929 #
18930 # There doesn't appear to be a way to prevent this compiler from
18931 # explicitly linking system object files so we need to strip them
18932 # from the output so that they don't get included in the library
18933 # dependencies.
18934 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"'
18935 ;;
18936 *)
18937 if test "$GXX" = yes; then
18938 if test $with_gnu_ld = no; then
18939 case $host_cpu in
18940 hppa*64*)
18941 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18942 ;;
18943 ia64*)
18944 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18945 ;;
18946 *)
18947 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'
18948 ;;
18949 esac
18950 fi
18951 else
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18954 fi
18955 ;;
18956 esac
18957 ;;
18958
18959 interix[3-9]*)
18960 hardcode_direct_CXX=no
18961 hardcode_shlibpath_var_CXX=no
18962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18963 export_dynamic_flag_spec_CXX='${wl}-E'
18964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18965 # Instead, shared libraries are loaded at an image base (0x10000000 by
18966 # default) and relocated if they conflict, which is a slow very memory
18967 # consuming and fragmenting process. To avoid this, we pick a random,
18968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18970 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'
18971 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'
18972 ;;
18973 irix5* | irix6*)
18974 case $cc_basename in
18975 CC*)
18976 # SGI C++
18977 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'
18978
18979 # Archives containing C++ object files must be created using
18980 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18981 # necessary to make sure instantiated templates are included
18982 # in the archive.
18983 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18984 ;;
18985 *)
18986 if test "$GXX" = yes; then
18987 if test "$with_gnu_ld" = no; then
18988 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'
18989 else
18990 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'
18991 fi
18992 fi
18993 link_all_deplibs_CXX=yes
18994 ;;
18995 esac
18996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18997 hardcode_libdir_separator_CXX=:
18998 inherit_rpath_CXX=yes
18999 ;;
19000
19001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19002 case $cc_basename in
19003 KCC*)
19004 # Kuck and Associates, Inc. (KAI) C++ Compiler
19005
19006 # KCC will only create a shared library if the output file
19007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19008 # to its proper name (with version) after linking.
19009 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'
19010 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'
19011 # Commands to make compiler produce verbose output that lists
19012 # what "hidden" libraries, object files and flags are used when
19013 # linking a shared library.
19014 #
19015 # There doesn't appear to be a way to prevent this compiler from
19016 # explicitly linking system object files so we need to strip them
19017 # from the output so that they don't get included in the library
19018 # dependencies.
19019 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"'
19020
19021 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19023
19024 # Archives containing C++ object files must be created using
19025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19027 ;;
19028 icpc* | ecpc* )
19029 # Intel C++
19030 with_gnu_ld=yes
19031 # version 8.0 and above of icpc choke on multiply defined symbols
19032 # if we add $predep_objects and $postdep_objects, however 7.1 and
19033 # earlier do not add the objects themselves.
19034 case `$CC -V 2>&1` in
19035 *"Version 7."*)
19036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19037 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'
19038 ;;
19039 *) # Version 8.0 or newer
19040 tmp_idyn=
19041 case $host_cpu in
19042 ia64*) tmp_idyn=' -i_dynamic';;
19043 esac
19044 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19045 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'
19046 ;;
19047 esac
19048 archive_cmds_need_lc_CXX=no
19049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19051 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19052 ;;
19053 pgCC* | pgcpp*)
19054 # Portland Group C++ compiler
19055 case `$CC -V` in
19056 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19057 prelink_cmds_CXX='tpldir=Template.dir~
19058 rm -rf $tpldir~
19059 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19060 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19061 old_archive_cmds_CXX='tpldir=Template.dir~
19062 rm -rf $tpldir~
19063 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19064 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19065 $RANLIB $oldlib'
19066 archive_cmds_CXX='tpldir=Template.dir~
19067 rm -rf $tpldir~
19068 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19069 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19070 archive_expsym_cmds_CXX='tpldir=Template.dir~
19071 rm -rf $tpldir~
19072 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19073 $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'
19074 ;;
19075 *) # Version 6 and above use weak symbols
19076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19077 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'
19078 ;;
19079 esac
19080
19081 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19083 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'
19084 ;;
19085 cxx*)
19086 # Compaq C++
19087 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19088 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'
19089
19090 runpath_var=LD_RUN_PATH
19091 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19092 hardcode_libdir_separator_CXX=:
19093
19094 # Commands to make compiler produce verbose output that lists
19095 # what "hidden" libraries, object files and flags are used when
19096 # linking a shared library.
19097 #
19098 # There doesn't appear to be a way to prevent this compiler from
19099 # explicitly linking system object files so we need to strip them
19100 # from the output so that they don't get included in the library
19101 # dependencies.
19102 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'
19103 ;;
19104 xl* | mpixl* | bgxl*)
19105 # IBM XL 8.0 on PPC, with GNU ld
19106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19108 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 if test "x$supports_anon_versioning" = xyes; then
19110 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19112 echo "local: *; };" >> $output_objdir/$libname.ver~
19113 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19114 fi
19115 ;;
19116 *)
19117 case `$CC -V 2>&1 | sed 5q` in
19118 *Sun\ C*)
19119 # Sun C++ 5.9
19120 no_undefined_flag_CXX=' -zdefs'
19121 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19122 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'
19123 hardcode_libdir_flag_spec_CXX='-R$libdir'
19124 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'
19125 compiler_needs_object_CXX=yes
19126
19127 # Not sure whether something based on
19128 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19129 # would be better.
19130 output_verbose_link_cmd='func_echo_all'
19131
19132 # Archives containing C++ object files must be created using
19133 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19134 # necessary to make sure instantiated templates are included
19135 # in the archive.
19136 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19137 ;;
19138 esac
19139 ;;
19140 esac
19141 ;;
19142
19143 lynxos*)
19144 # FIXME: insert proper C++ library support
19145 ld_shlibs_CXX=no
19146 ;;
19147
19148 m88k*)
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 ;;
19152
19153 mvs*)
19154 case $cc_basename in
19155 cxx*)
19156 # FIXME: insert proper C++ library support
19157 ld_shlibs_CXX=no
19158 ;;
19159 *)
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 ;;
19163 esac
19164 ;;
19165
19166 netbsd*)
19167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19168 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19169 wlarc=
19170 hardcode_libdir_flag_spec_CXX='-R$libdir'
19171 hardcode_direct_CXX=yes
19172 hardcode_shlibpath_var_CXX=no
19173 fi
19174 # Workaround some broken pre-1.5 toolchains
19175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19176 ;;
19177
19178 *nto* | *qnx*)
19179 ld_shlibs_CXX=yes
19180 ;;
19181
19182 openbsd2*)
19183 # C++ shared libraries are fairly broken
19184 ld_shlibs_CXX=no
19185 ;;
19186
19187 openbsd*)
19188 if test -f /usr/libexec/ld.so; then
19189 hardcode_direct_CXX=yes
19190 hardcode_shlibpath_var_CXX=no
19191 hardcode_direct_absolute_CXX=yes
19192 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19195 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19196 export_dynamic_flag_spec_CXX='${wl}-E'
19197 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19198 fi
19199 output_verbose_link_cmd=func_echo_all
19200 else
19201 ld_shlibs_CXX=no
19202 fi
19203 ;;
19204
19205 osf3* | osf4* | osf5*)
19206 case $cc_basename in
19207 KCC*)
19208 # Kuck and Associates, Inc. (KAI) C++ Compiler
19209
19210 # KCC will only create a shared library if the output file
19211 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19212 # to its proper name (with version) after linking.
19213 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'
19214
19215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19216 hardcode_libdir_separator_CXX=:
19217
19218 # Archives containing C++ object files must be created using
19219 # the KAI C++ compiler.
19220 case $host in
19221 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19222 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19223 esac
19224 ;;
19225 RCC*)
19226 # Rational C++ 2.4.1
19227 # FIXME: insert proper C++ library support
19228 ld_shlibs_CXX=no
19229 ;;
19230 cxx*)
19231 case $host in
19232 osf3*)
19233 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19236 ;;
19237 *)
19238 allow_undefined_flag_CXX=' -expect_unresolved \*'
19239 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'
19240 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19241 echo "-hidden">> $lib.exp~
19242 $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~
19243 $RM $lib.exp'
19244 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19245 ;;
19246 esac
19247
19248 hardcode_libdir_separator_CXX=:
19249
19250 # Commands to make compiler produce verbose output that lists
19251 # what "hidden" libraries, object files and flags are used when
19252 # linking a shared library.
19253 #
19254 # There doesn't appear to be a way to prevent this compiler from
19255 # explicitly linking system object files so we need to strip them
19256 # from the output so that they don't get included in the library
19257 # dependencies.
19258 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"'
19259 ;;
19260 *)
19261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19262 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19263 case $host in
19264 osf3*)
19265 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'
19266 ;;
19267 *)
19268 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'
19269 ;;
19270 esac
19271
19272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19273 hardcode_libdir_separator_CXX=:
19274
19275 # Commands to make compiler produce verbose output that lists
19276 # what "hidden" libraries, object files and flags are used when
19277 # linking a shared library.
19278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19279
19280 else
19281 # FIXME: insert proper C++ library support
19282 ld_shlibs_CXX=no
19283 fi
19284 ;;
19285 esac
19286 ;;
19287
19288 psos*)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292
19293 sunos4*)
19294 case $cc_basename in
19295 CC*)
19296 # Sun C++ 4.x
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300 lcc*)
19301 # Lucid
19302 # FIXME: insert proper C++ library support
19303 ld_shlibs_CXX=no
19304 ;;
19305 *)
19306 # FIXME: insert proper C++ library support
19307 ld_shlibs_CXX=no
19308 ;;
19309 esac
19310 ;;
19311
19312 solaris*)
19313 case $cc_basename in
19314 CC*)
19315 # Sun C++ 4.2, 5.x and Centerline C++
19316 archive_cmds_need_lc_CXX=yes
19317 no_undefined_flag_CXX=' -zdefs'
19318 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19319 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19320 $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'
19321
19322 hardcode_libdir_flag_spec_CXX='-R$libdir'
19323 hardcode_shlibpath_var_CXX=no
19324 case $host_os in
19325 solaris2.[0-5] | solaris2.[0-5].*) ;;
19326 *)
19327 # The compiler driver will combine and reorder linker options,
19328 # but understands `-z linker_flag'.
19329 # Supported since Solaris 2.6 (maybe 2.5.1?)
19330 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19331 ;;
19332 esac
19333 link_all_deplibs_CXX=yes
19334
19335 output_verbose_link_cmd='func_echo_all'
19336
19337 # Archives containing C++ object files must be created using
19338 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19339 # necessary to make sure instantiated templates are included
19340 # in the archive.
19341 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19342 ;;
19343 gcx*)
19344 # Green Hills C++ Compiler
19345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19346
19347 # The C++ compiler must be used to create the archive.
19348 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19349 ;;
19350 *)
19351 # GNU C++ compiler with Solaris linker
19352 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19353 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19354 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19355 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19356 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19357 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19358
19359 # Commands to make compiler produce verbose output that lists
19360 # what "hidden" libraries, object files and flags are used when
19361 # linking a shared library.
19362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19363 else
19364 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19365 # platform.
19366 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19368 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19369
19370 # Commands to make compiler produce verbose output that lists
19371 # what "hidden" libraries, object files and flags are used when
19372 # linking a shared library.
19373 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19374 fi
19375
19376 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19377 case $host_os in
19378 solaris2.[0-5] | solaris2.[0-5].*) ;;
19379 *)
19380 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19381 ;;
19382 esac
19383 fi
19384 ;;
19385 esac
19386 ;;
19387
19388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19389 no_undefined_flag_CXX='${wl}-z,text'
19390 archive_cmds_need_lc_CXX=no
19391 hardcode_shlibpath_var_CXX=no
19392 runpath_var='LD_RUN_PATH'
19393
19394 case $cc_basename in
19395 CC*)
19396 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19397 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19398 ;;
19399 *)
19400 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19401 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19402 ;;
19403 esac
19404 ;;
19405
19406 sysv5* | sco3.2v5* | sco5v6*)
19407 # Note: We can NOT use -z defs as we might desire, because we do not
19408 # link with -lc, and that would cause any symbols used from libc to
19409 # always be unresolved, which means just about no library would
19410 # ever link correctly. If we're not using GNU ld we use -z text
19411 # though, which does catch some bad symbols but isn't as heavy-handed
19412 # as -z defs.
19413 no_undefined_flag_CXX='${wl}-z,text'
19414 allow_undefined_flag_CXX='${wl}-z,nodefs'
19415 archive_cmds_need_lc_CXX=no
19416 hardcode_shlibpath_var_CXX=no
19417 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19418 hardcode_libdir_separator_CXX=':'
19419 link_all_deplibs_CXX=yes
19420 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19421 runpath_var='LD_RUN_PATH'
19422
19423 case $cc_basename in
19424 CC*)
19425 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19427 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19428 '"$old_archive_cmds_CXX"
19429 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19430 '"$reload_cmds_CXX"
19431 ;;
19432 *)
19433 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435 ;;
19436 esac
19437 ;;
19438
19439 tandem*)
19440 case $cc_basename in
19441 NCC*)
19442 # NonStop-UX NCC 3.20
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19445 ;;
19446 *)
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19449 ;;
19450 esac
19451 ;;
19452
19453 vxworks*)
19454 # FIXME: insert proper C++ library support
19455 ld_shlibs_CXX=no
19456 ;;
19457
19458 *)
19459 # FIXME: insert proper C++ library support
19460 ld_shlibs_CXX=no
19461 ;;
19462 esac
19463
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19465 $as_echo "$ld_shlibs_CXX" >&6; }
19466 test "$ld_shlibs_CXX" = no && can_build_shared=no
19467
19468 GCC_CXX="$GXX"
19469 LD_CXX="$LD"
19470
19471 ## CAVEAT EMPTOR:
19472 ## There is no encapsulation within the following macros, do not change
19473 ## the running order or otherwise move them around unless you know exactly
19474 ## what you are doing...
19475 # Dependencies to place before and after the object being linked:
19476 predep_objects_CXX=
19477 postdep_objects_CXX=
19478 predeps_CXX=
19479 postdeps_CXX=
19480 compiler_lib_search_path_CXX=
19481
19482 cat > conftest.$ac_ext <<_LT_EOF
19483 class Foo
19484 {
19485 public:
19486 Foo (void) { a = 0; }
19487 private:
19488 int a;
19489 };
19490 _LT_EOF
19491
19492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19493 (eval $ac_compile) 2>&5
19494 ac_status=$?
19495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19496 test $ac_status = 0; }; then
19497 # Parse the compiler output and extract the necessary
19498 # objects, libraries and library flags.
19499
19500 # Sentinel used to keep track of whether or not we are before
19501 # the conftest object file.
19502 pre_test_object_deps_done=no
19503
19504 for p in `eval "$output_verbose_link_cmd"`; do
19505 case $p in
19506
19507 -L* | -R* | -l*)
19508 # Some compilers place space between "-{L,R}" and the path.
19509 # Remove the space.
19510 if test $p = "-L" ||
19511 test $p = "-R"; then
19512 prev=$p
19513 continue
19514 else
19515 prev=
19516 fi
19517
19518 if test "$pre_test_object_deps_done" = no; then
19519 case $p in
19520 -L* | -R*)
19521 # Internal compiler library paths should come after those
19522 # provided the user. The postdeps already come after the
19523 # user supplied libs so there is no need to process them.
19524 if test -z "$compiler_lib_search_path_CXX"; then
19525 compiler_lib_search_path_CXX="${prev}${p}"
19526 else
19527 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19528 fi
19529 ;;
19530 # The "-l" case would never come before the object being
19531 # linked, so don't bother handling this case.
19532 esac
19533 else
19534 if test -z "$postdeps_CXX"; then
19535 postdeps_CXX="${prev}${p}"
19536 else
19537 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19538 fi
19539 fi
19540 ;;
19541
19542 *.$objext)
19543 # This assumes that the test object file only shows up
19544 # once in the compiler output.
19545 if test "$p" = "conftest.$objext"; then
19546 pre_test_object_deps_done=yes
19547 continue
19548 fi
19549
19550 if test "$pre_test_object_deps_done" = no; then
19551 if test -z "$predep_objects_CXX"; then
19552 predep_objects_CXX="$p"
19553 else
19554 predep_objects_CXX="$predep_objects_CXX $p"
19555 fi
19556 else
19557 if test -z "$postdep_objects_CXX"; then
19558 postdep_objects_CXX="$p"
19559 else
19560 postdep_objects_CXX="$postdep_objects_CXX $p"
19561 fi
19562 fi
19563 ;;
19564
19565 *) ;; # Ignore the rest.
19566
19567 esac
19568 done
19569
19570 # Clean up.
19571 rm -f a.out a.exe
19572 else
19573 echo "libtool.m4: error: problem compiling CXX test program"
19574 fi
19575
19576 $RM -f confest.$objext
19577
19578 # PORTME: override above test on systems where it is broken
19579 case $host_os in
19580 interix[3-9]*)
19581 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19582 # hack all around it, let's just trust "g++" to DTRT.
19583 predep_objects_CXX=
19584 postdep_objects_CXX=
19585 postdeps_CXX=
19586 ;;
19587
19588 linux*)
19589 case `$CC -V 2>&1 | sed 5q` in
19590 *Sun\ C*)
19591 # Sun C++ 5.9
19592
19593 # The more standards-conforming stlport4 library is
19594 # incompatible with the Cstd library. Avoid specifying
19595 # it if it's in CXXFLAGS. Ignore libCrun as
19596 # -library=stlport4 depends on it.
19597 case " $CXX $CXXFLAGS " in
19598 *" -library=stlport4 "*)
19599 solaris_use_stlport4=yes
19600 ;;
19601 esac
19602
19603 if test "$solaris_use_stlport4" != yes; then
19604 postdeps_CXX='-library=Cstd -library=Crun'
19605 fi
19606 ;;
19607 esac
19608 ;;
19609
19610 solaris*)
19611 case $cc_basename in
19612 CC*)
19613 # The more standards-conforming stlport4 library is
19614 # incompatible with the Cstd library. Avoid specifying
19615 # it if it's in CXXFLAGS. Ignore libCrun as
19616 # -library=stlport4 depends on it.
19617 case " $CXX $CXXFLAGS " in
19618 *" -library=stlport4 "*)
19619 solaris_use_stlport4=yes
19620 ;;
19621 esac
19622
19623 # Adding this requires a known-good setup of shared libraries for
19624 # Sun compiler versions before 5.6, else PIC objects from an old
19625 # archive will be linked into the output, leading to subtle bugs.
19626 if test "$solaris_use_stlport4" != yes; then
19627 postdeps_CXX='-library=Cstd -library=Crun'
19628 fi
19629 ;;
19630 esac
19631 ;;
19632 esac
19633
19634
19635 case " $postdeps_CXX " in
19636 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19637 esac
19638 compiler_lib_search_dirs_CXX=
19639 if test -n "${compiler_lib_search_path_CXX}"; then
19640 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19641 fi
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
19673 lt_prog_compiler_wl_CXX=
19674 lt_prog_compiler_pic_CXX=
19675 lt_prog_compiler_static_CXX=
19676
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19678 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19679
19680 # C++ specific cases for pic, static, wl, etc.
19681 if test "$GXX" = yes; then
19682 lt_prog_compiler_wl_CXX='-Wl,'
19683 lt_prog_compiler_static_CXX='-static'
19684
19685 case $host_os in
19686 aix*)
19687 # All AIX code is PIC.
19688 if test "$host_cpu" = ia64; then
19689 # AIX 5 now supports IA64 processor
19690 lt_prog_compiler_static_CXX='-Bstatic'
19691 fi
19692 lt_prog_compiler_pic_CXX='-fPIC'
19693 ;;
19694
19695 amigaos*)
19696 case $host_cpu in
19697 powerpc)
19698 # see comment about AmigaOS4 .so support
19699 lt_prog_compiler_pic_CXX='-fPIC'
19700 ;;
19701 m68k)
19702 # FIXME: we need at least 68020 code to build shared libraries, but
19703 # adding the `-m68020' flag to GCC prevents building anything better,
19704 # like `-m68040'.
19705 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19706 ;;
19707 esac
19708 ;;
19709
19710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19711 # PIC is the default for these OSes.
19712 ;;
19713 mingw* | cygwin* | os2* | pw32* | cegcc*)
19714 # This hack is so that the source file can tell whether it is being
19715 # built for inclusion in a dll (and should export symbols for example).
19716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19717 # (--disable-auto-import) libraries
19718 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19719 ;;
19720 darwin* | rhapsody*)
19721 # PIC is the default on this platform
19722 # Common symbols not allowed in MH_DYLIB files
19723 lt_prog_compiler_pic_CXX='-fno-common'
19724 ;;
19725 *djgpp*)
19726 # DJGPP does not support shared libraries at all
19727 lt_prog_compiler_pic_CXX=
19728 ;;
19729 haiku*)
19730 # PIC is the default for Haiku.
19731 # The "-static" flag exists, but is broken.
19732 lt_prog_compiler_static_CXX=
19733 ;;
19734 interix[3-9]*)
19735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19736 # Instead, we relocate shared libraries at runtime.
19737 ;;
19738 sysv4*MP*)
19739 if test -d /usr/nec; then
19740 lt_prog_compiler_pic_CXX=-Kconform_pic
19741 fi
19742 ;;
19743 hpux*)
19744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19746 # sets the default TLS model and affects inlining.
19747 case $host_cpu in
19748 hppa*64*)
19749 ;;
19750 *)
19751 lt_prog_compiler_pic_CXX='-fPIC'
19752 ;;
19753 esac
19754 ;;
19755 *qnx* | *nto*)
19756 # QNX uses GNU C++, but need to define -shared option too, otherwise
19757 # it will coredump.
19758 lt_prog_compiler_pic_CXX='-fPIC -shared'
19759 ;;
19760 *)
19761 lt_prog_compiler_pic_CXX='-fPIC'
19762 ;;
19763 esac
19764 else
19765 case $host_os in
19766 aix[4-9]*)
19767 # All AIX code is PIC.
19768 if test "$host_cpu" = ia64; then
19769 # AIX 5 now supports IA64 processor
19770 lt_prog_compiler_static_CXX='-Bstatic'
19771 else
19772 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19773 fi
19774 ;;
19775 chorus*)
19776 case $cc_basename in
19777 cxch68*)
19778 # Green Hills C++ Compiler
19779 # _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"
19780 ;;
19781 esac
19782 ;;
19783 dgux*)
19784 case $cc_basename in
19785 ec++*)
19786 lt_prog_compiler_pic_CXX='-KPIC'
19787 ;;
19788 ghcx*)
19789 # Green Hills C++ Compiler
19790 lt_prog_compiler_pic_CXX='-pic'
19791 ;;
19792 *)
19793 ;;
19794 esac
19795 ;;
19796 freebsd* | dragonfly*)
19797 # FreeBSD uses GNU C++
19798 ;;
19799 hpux9* | hpux10* | hpux11*)
19800 case $cc_basename in
19801 CC*)
19802 lt_prog_compiler_wl_CXX='-Wl,'
19803 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19804 if test "$host_cpu" != ia64; then
19805 lt_prog_compiler_pic_CXX='+Z'
19806 fi
19807 ;;
19808 aCC*)
19809 lt_prog_compiler_wl_CXX='-Wl,'
19810 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19811 case $host_cpu in
19812 hppa*64*|ia64*)
19813 # +Z the default
19814 ;;
19815 *)
19816 lt_prog_compiler_pic_CXX='+Z'
19817 ;;
19818 esac
19819 ;;
19820 *)
19821 ;;
19822 esac
19823 ;;
19824 interix*)
19825 # This is c89, which is MS Visual C++ (no shared libs)
19826 # Anyone wants to do a port?
19827 ;;
19828 irix5* | irix6* | nonstopux*)
19829 case $cc_basename in
19830 CC*)
19831 lt_prog_compiler_wl_CXX='-Wl,'
19832 lt_prog_compiler_static_CXX='-non_shared'
19833 # CC pic flag -KPIC is the default.
19834 ;;
19835 *)
19836 ;;
19837 esac
19838 ;;
19839 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19840 case $cc_basename in
19841 KCC*)
19842 # KAI C++ Compiler
19843 lt_prog_compiler_wl_CXX='--backend -Wl,'
19844 lt_prog_compiler_pic_CXX='-fPIC'
19845 ;;
19846 ecpc* )
19847 # old Intel C++ for x86_64 which still supported -KPIC.
19848 lt_prog_compiler_wl_CXX='-Wl,'
19849 lt_prog_compiler_pic_CXX='-KPIC'
19850 lt_prog_compiler_static_CXX='-static'
19851 ;;
19852 icpc* )
19853 # Intel C++, used to be incompatible with GCC.
19854 # ICC 10 doesn't accept -KPIC any more.
19855 lt_prog_compiler_wl_CXX='-Wl,'
19856 lt_prog_compiler_pic_CXX='-fPIC'
19857 lt_prog_compiler_static_CXX='-static'
19858 ;;
19859 pgCC* | pgcpp*)
19860 # Portland Group C++ compiler
19861 lt_prog_compiler_wl_CXX='-Wl,'
19862 lt_prog_compiler_pic_CXX='-fpic'
19863 lt_prog_compiler_static_CXX='-Bstatic'
19864 ;;
19865 cxx*)
19866 # Compaq C++
19867 # Make sure the PIC flag is empty. It appears that all Alpha
19868 # Linux and Compaq Tru64 Unix objects are PIC.
19869 lt_prog_compiler_pic_CXX=
19870 lt_prog_compiler_static_CXX='-non_shared'
19871 ;;
19872 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19873 # IBM XL 8.0, 9.0 on PPC and BlueGene
19874 lt_prog_compiler_wl_CXX='-Wl,'
19875 lt_prog_compiler_pic_CXX='-qpic'
19876 lt_prog_compiler_static_CXX='-qstaticlink'
19877 ;;
19878 *)
19879 case `$CC -V 2>&1 | sed 5q` in
19880 *Sun\ C*)
19881 # Sun C++ 5.9
19882 lt_prog_compiler_pic_CXX='-KPIC'
19883 lt_prog_compiler_static_CXX='-Bstatic'
19884 lt_prog_compiler_wl_CXX='-Qoption ld '
19885 ;;
19886 esac
19887 ;;
19888 esac
19889 ;;
19890 lynxos*)
19891 ;;
19892 m88k*)
19893 ;;
19894 mvs*)
19895 case $cc_basename in
19896 cxx*)
19897 lt_prog_compiler_pic_CXX='-W c,exportall'
19898 ;;
19899 *)
19900 ;;
19901 esac
19902 ;;
19903 netbsd*)
19904 ;;
19905 *qnx* | *nto*)
19906 # QNX uses GNU C++, but need to define -shared option too, otherwise
19907 # it will coredump.
19908 lt_prog_compiler_pic_CXX='-fPIC -shared'
19909 ;;
19910 osf3* | osf4* | osf5*)
19911 case $cc_basename in
19912 KCC*)
19913 lt_prog_compiler_wl_CXX='--backend -Wl,'
19914 ;;
19915 RCC*)
19916 # Rational C++ 2.4.1
19917 lt_prog_compiler_pic_CXX='-pic'
19918 ;;
19919 cxx*)
19920 # Digital/Compaq C++
19921 lt_prog_compiler_wl_CXX='-Wl,'
19922 # Make sure the PIC flag is empty. It appears that all Alpha
19923 # Linux and Compaq Tru64 Unix objects are PIC.
19924 lt_prog_compiler_pic_CXX=
19925 lt_prog_compiler_static_CXX='-non_shared'
19926 ;;
19927 *)
19928 ;;
19929 esac
19930 ;;
19931 psos*)
19932 ;;
19933 solaris*)
19934 case $cc_basename in
19935 CC*)
19936 # Sun C++ 4.2, 5.x and Centerline C++
19937 lt_prog_compiler_pic_CXX='-KPIC'
19938 lt_prog_compiler_static_CXX='-Bstatic'
19939 lt_prog_compiler_wl_CXX='-Qoption ld '
19940 ;;
19941 gcx*)
19942 # Green Hills C++ Compiler
19943 lt_prog_compiler_pic_CXX='-PIC'
19944 ;;
19945 *)
19946 ;;
19947 esac
19948 ;;
19949 sunos4*)
19950 case $cc_basename in
19951 CC*)
19952 # Sun C++ 4.x
19953 lt_prog_compiler_pic_CXX='-pic'
19954 lt_prog_compiler_static_CXX='-Bstatic'
19955 ;;
19956 lcc*)
19957 # Lucid
19958 lt_prog_compiler_pic_CXX='-pic'
19959 ;;
19960 *)
19961 ;;
19962 esac
19963 ;;
19964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19965 case $cc_basename in
19966 CC*)
19967 lt_prog_compiler_wl_CXX='-Wl,'
19968 lt_prog_compiler_pic_CXX='-KPIC'
19969 lt_prog_compiler_static_CXX='-Bstatic'
19970 ;;
19971 esac
19972 ;;
19973 tandem*)
19974 case $cc_basename in
19975 NCC*)
19976 # NonStop-UX NCC 3.20
19977 lt_prog_compiler_pic_CXX='-KPIC'
19978 ;;
19979 *)
19980 ;;
19981 esac
19982 ;;
19983 vxworks*)
19984 ;;
19985 *)
19986 lt_prog_compiler_can_build_shared_CXX=no
19987 ;;
19988 esac
19989 fi
19990
19991 case $host_os in
19992 # For platforms which do not support PIC, -DPIC is meaningless:
19993 *djgpp*)
19994 lt_prog_compiler_pic_CXX=
19995 ;;
19996 *)
19997 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19998 ;;
19999 esac
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20001 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20002
20003
20004
20005 #
20006 # Check to make sure the PIC flag actually works.
20007 #
20008 if test -n "$lt_prog_compiler_pic_CXX"; then
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20010 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20011 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20012 $as_echo_n "(cached) " >&6
20013 else
20014 lt_cv_prog_compiler_pic_works_CXX=no
20015 ac_outfile=conftest.$ac_objext
20016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20017 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20018 # Insert the option either (1) after the last *FLAGS variable, or
20019 # (2) before a word containing "conftest.", or (3) at the end.
20020 # Note that $ac_compile itself does not contain backslashes and begins
20021 # with a dollar sign (not a hyphen), so the echo should work correctly.
20022 # The option is referenced via a variable to avoid confusing sed.
20023 lt_compile=`echo "$ac_compile" | $SED \
20024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20026 -e 's:$: $lt_compiler_flag:'`
20027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20028 (eval "$lt_compile" 2>conftest.err)
20029 ac_status=$?
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 if (exit $ac_status) && test -s "$ac_outfile"; then
20033 # The compiler can only warn and ignore the option if not recognized
20034 # So say no if there are warnings other than the usual output.
20035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20038 lt_cv_prog_compiler_pic_works_CXX=yes
20039 fi
20040 fi
20041 $RM conftest*
20042
20043 fi
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20045 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20046
20047 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20048 case $lt_prog_compiler_pic_CXX in
20049 "" | " "*) ;;
20050 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20051 esac
20052 else
20053 lt_prog_compiler_pic_CXX=
20054 lt_prog_compiler_can_build_shared_CXX=no
20055 fi
20056
20057 fi
20058
20059
20060
20061 #
20062 # Check to make sure the static flag actually works.
20063 #
20064 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20066 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20067 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20068 $as_echo_n "(cached) " >&6
20069 else
20070 lt_cv_prog_compiler_static_works_CXX=no
20071 save_LDFLAGS="$LDFLAGS"
20072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20075 # The linker can only warn and ignore the option if not recognized
20076 # So say no if there are warnings
20077 if test -s conftest.err; then
20078 # Append any errors to the config.log.
20079 cat conftest.err 1>&5
20080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20082 if diff conftest.exp conftest.er2 >/dev/null; then
20083 lt_cv_prog_compiler_static_works_CXX=yes
20084 fi
20085 else
20086 lt_cv_prog_compiler_static_works_CXX=yes
20087 fi
20088 fi
20089 $RM -r conftest*
20090 LDFLAGS="$save_LDFLAGS"
20091
20092 fi
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20094 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20095
20096 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20097 :
20098 else
20099 lt_prog_compiler_static_CXX=
20100 fi
20101
20102
20103
20104
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20109 else
20110 lt_cv_prog_compiler_c_o_CXX=no
20111 $RM -r conftest 2>/dev/null
20112 mkdir conftest
20113 cd conftest
20114 mkdir out
20115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20116
20117 lt_compiler_flag="-o out/conftest2.$ac_objext"
20118 # Insert the option either (1) after the last *FLAGS variable, or
20119 # (2) before a word containing "conftest.", or (3) at the end.
20120 # Note that $ac_compile itself does not contain backslashes and begins
20121 # with a dollar sign (not a hyphen), so the echo should work correctly.
20122 lt_compile=`echo "$ac_compile" | $SED \
20123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20125 -e 's:$: $lt_compiler_flag:'`
20126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20127 (eval "$lt_compile" 2>out/conftest.err)
20128 ac_status=$?
20129 cat out/conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20132 then
20133 # The compiler can only warn and ignore the option if not recognized
20134 # So say no if there are warnings
20135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20138 lt_cv_prog_compiler_c_o_CXX=yes
20139 fi
20140 fi
20141 chmod u+w . 2>&5
20142 $RM conftest*
20143 # SGI C++ compiler will create directory out/ii_files/ for
20144 # template instantiation
20145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20146 $RM out/* && rmdir out
20147 cd ..
20148 $RM -r conftest
20149 $RM conftest*
20150
20151 fi
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20153 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20154
20155
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20159 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 lt_cv_prog_compiler_c_o_CXX=no
20163 $RM -r conftest 2>/dev/null
20164 mkdir conftest
20165 cd conftest
20166 mkdir out
20167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20168
20169 lt_compiler_flag="-o out/conftest2.$ac_objext"
20170 # Insert the option either (1) after the last *FLAGS variable, or
20171 # (2) before a word containing "conftest.", or (3) at the end.
20172 # Note that $ac_compile itself does not contain backslashes and begins
20173 # with a dollar sign (not a hyphen), so the echo should work correctly.
20174 lt_compile=`echo "$ac_compile" | $SED \
20175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20177 -e 's:$: $lt_compiler_flag:'`
20178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20179 (eval "$lt_compile" 2>out/conftest.err)
20180 ac_status=$?
20181 cat out/conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20184 then
20185 # The compiler can only warn and ignore the option if not recognized
20186 # So say no if there are warnings
20187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20190 lt_cv_prog_compiler_c_o_CXX=yes
20191 fi
20192 fi
20193 chmod u+w . 2>&5
20194 $RM conftest*
20195 # SGI C++ compiler will create directory out/ii_files/ for
20196 # template instantiation
20197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20198 $RM out/* && rmdir out
20199 cd ..
20200 $RM -r conftest
20201 $RM conftest*
20202
20203 fi
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20206
20207
20208
20209
20210 hard_links="nottested"
20211 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20212 # do not overwrite the value of need_locks provided by the user
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20214 $as_echo_n "checking if we can lock with hard links... " >&6; }
20215 hard_links=yes
20216 $RM conftest*
20217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20218 touch conftest.a
20219 ln conftest.a conftest.b 2>&5 || hard_links=no
20220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20222 $as_echo "$hard_links" >&6; }
20223 if test "$hard_links" = no; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20225 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20226 need_locks=warn
20227 fi
20228 else
20229 need_locks=no
20230 fi
20231
20232
20233
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20235 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20236
20237 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20238 case $host_os in
20239 aix[4-9]*)
20240 # If we're using GNU nm, then we don't want the "-C" option.
20241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20242 # Also, AIX nm treats weak defined symbols like other global defined
20243 # symbols, whereas GNU nm marks them as "W".
20244 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20245 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'
20246 else
20247 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'
20248 fi
20249 ;;
20250 pw32*)
20251 export_symbols_cmds_CXX="$ltdll_cmds"
20252 ;;
20253 cygwin* | mingw* | cegcc*)
20254 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'
20255 ;;
20256 *)
20257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20258 ;;
20259 esac
20260 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20261
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20263 $as_echo "$ld_shlibs_CXX" >&6; }
20264 test "$ld_shlibs_CXX" = no && can_build_shared=no
20265
20266 with_gnu_ld_CXX=$with_gnu_ld
20267
20268
20269
20270
20271
20272
20273 #
20274 # Do we need to explicitly link libc?
20275 #
20276 case "x$archive_cmds_need_lc_CXX" in
20277 x|xyes)
20278 # Assume -lc should be added
20279 archive_cmds_need_lc_CXX=yes
20280
20281 if test "$enable_shared" = yes && test "$GCC" = yes; then
20282 case $archive_cmds_CXX in
20283 *'~'*)
20284 # FIXME: we may have to deal with multi-command sequences.
20285 ;;
20286 '$CC '*)
20287 # Test whether the compiler implicitly links with -lc since on some
20288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20289 # to ld, don't add -lc before -lgcc.
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20291 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20292 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20295 $RM conftest*
20296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20297
20298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20299 (eval $ac_compile) 2>&5
20300 ac_status=$?
20301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20302 test $ac_status = 0; } 2>conftest.err; then
20303 soname=conftest
20304 lib=conftest
20305 libobjs=conftest.$ac_objext
20306 deplibs=
20307 wl=$lt_prog_compiler_wl_CXX
20308 pic_flag=$lt_prog_compiler_pic_CXX
20309 compiler_flags=-v
20310 linker_flags=-v
20311 verstring=
20312 output_objdir=.
20313 libname=conftest
20314 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20315 allow_undefined_flag_CXX=
20316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20317 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20318 ac_status=$?
20319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20320 test $ac_status = 0; }
20321 then
20322 lt_cv_archive_cmds_need_lc_CXX=no
20323 else
20324 lt_cv_archive_cmds_need_lc_CXX=yes
20325 fi
20326 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20327 else
20328 cat conftest.err 1>&5
20329 fi
20330 $RM conftest*
20331
20332 fi
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20334 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20335 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20336 ;;
20337 esac
20338 fi
20339 ;;
20340 esac
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
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20406 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20407
20408 library_names_spec=
20409 libname_spec='lib$name'
20410 soname_spec=
20411 shrext_cmds=".so"
20412 postinstall_cmds=
20413 postuninstall_cmds=
20414 finish_cmds=
20415 finish_eval=
20416 shlibpath_var=
20417 shlibpath_overrides_runpath=unknown
20418 version_type=none
20419 dynamic_linker="$host_os ld.so"
20420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20421 need_lib_prefix=unknown
20422 hardcode_into_libs=no
20423
20424 # when you set need_version to no, make sure it does not cause -set_version
20425 # flags to be left without arguments
20426 need_version=unknown
20427
20428 case $host_os in
20429 aix3*)
20430 version_type=linux
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20432 shlibpath_var=LIBPATH
20433
20434 # AIX 3 has no versioning support, so we append a major version to the name.
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 ;;
20437
20438 aix[4-9]*)
20439 version_type=linux
20440 need_lib_prefix=no
20441 need_version=no
20442 hardcode_into_libs=yes
20443 if test "$host_cpu" = ia64; then
20444 # AIX 5 supports IA64
20445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20446 shlibpath_var=LD_LIBRARY_PATH
20447 else
20448 # With GCC up to 2.95.x, collect2 would create an import file
20449 # for dependence libraries. The import file would start with
20450 # the line `#! .'. This would cause the generated library to
20451 # depend on `.', always an invalid library. This was fixed in
20452 # development snapshots of GCC prior to 3.0.
20453 case $host_os in
20454 aix4 | aix4.[01] | aix4.[01].*)
20455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20456 echo ' yes '
20457 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20458 :
20459 else
20460 can_build_shared=no
20461 fi
20462 ;;
20463 esac
20464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20465 # soname into executable. Probably we can add versioning support to
20466 # collect2, so additional links can be useful in future.
20467 if test "$aix_use_runtimelinking" = yes; then
20468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20469 # instead of lib<name>.a to let people know that these are not
20470 # typical AIX shared libraries.
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 else
20473 # We preserve .a as extension for shared libraries through AIX4.2
20474 # and later when we are not doing run time linking.
20475 library_names_spec='${libname}${release}.a $libname.a'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 fi
20478 shlibpath_var=LIBPATH
20479 fi
20480 ;;
20481
20482 amigaos*)
20483 case $host_cpu in
20484 powerpc)
20485 # Since July 2007 AmigaOS4 officially supports .so libraries.
20486 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 ;;
20489 m68k)
20490 library_names_spec='$libname.ixlibrary $libname.a'
20491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20492 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'
20493 ;;
20494 esac
20495 ;;
20496
20497 beos*)
20498 library_names_spec='${libname}${shared_ext}'
20499 dynamic_linker="$host_os ld.so"
20500 shlibpath_var=LIBRARY_PATH
20501 ;;
20502
20503 bsdi[45]*)
20504 version_type=linux
20505 need_version=no
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507 soname_spec='${libname}${release}${shared_ext}$major'
20508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20509 shlibpath_var=LD_LIBRARY_PATH
20510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20512 # the default ld.so.conf also contains /usr/contrib/lib and
20513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20514 # libtool to hard-code these into programs
20515 ;;
20516
20517 cygwin* | mingw* | pw32* | cegcc*)
20518 version_type=windows
20519 shrext_cmds=".dll"
20520 need_version=no
20521 need_lib_prefix=no
20522
20523 case $GCC,$host_os in
20524 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20525 library_names_spec='$libname.dll.a'
20526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20527 postinstall_cmds='base_file=`basename \${file}`~
20528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20529 dldir=$destdir/`dirname \$dlpath`~
20530 test -d \$dldir || mkdir -p \$dldir~
20531 $install_prog $dir/$dlname \$dldir/$dlname~
20532 chmod a+x \$dldir/$dlname~
20533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20535 fi'
20536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20537 dlpath=$dir/\$dldll~
20538 $RM \$dlpath'
20539 shlibpath_overrides_runpath=yes
20540
20541 case $host_os in
20542 cygwin*)
20543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545
20546 ;;
20547 mingw* | cegcc*)
20548 # MinGW DLLs use traditional 'lib' prefix
20549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20550 ;;
20551 pw32*)
20552 # pw32 DLLs use 'pw' prefix rather than 'lib'
20553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20554 ;;
20555 esac
20556 ;;
20557
20558 *)
20559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20560 ;;
20561 esac
20562 dynamic_linker='Win32 ld.exe'
20563 # FIXME: first we should search . and the directory the executable is in
20564 shlibpath_var=PATH
20565 ;;
20566
20567 darwin* | rhapsody*)
20568 dynamic_linker="$host_os dyld"
20569 version_type=darwin
20570 need_lib_prefix=no
20571 need_version=no
20572 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20573 soname_spec='${libname}${release}${major}$shared_ext'
20574 shlibpath_overrides_runpath=yes
20575 shlibpath_var=DYLD_LIBRARY_PATH
20576 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20577
20578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20579 ;;
20580
20581 dgux*)
20582 version_type=linux
20583 need_lib_prefix=no
20584 need_version=no
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 shlibpath_var=LD_LIBRARY_PATH
20588 ;;
20589
20590 freebsd* | dragonfly*)
20591 # DragonFly does not have aout. When/if they implement a new
20592 # versioning mechanism, adjust this.
20593 if test -x /usr/bin/objformat; then
20594 objformat=`/usr/bin/objformat`
20595 else
20596 case $host_os in
20597 freebsd[23].*) objformat=aout ;;
20598 *) objformat=elf ;;
20599 esac
20600 fi
20601 version_type=freebsd-$objformat
20602 case $version_type in
20603 freebsd-elf*)
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20605 need_version=no
20606 need_lib_prefix=no
20607 ;;
20608 freebsd-*)
20609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20610 need_version=yes
20611 ;;
20612 esac
20613 shlibpath_var=LD_LIBRARY_PATH
20614 case $host_os in
20615 freebsd2.*)
20616 shlibpath_overrides_runpath=yes
20617 ;;
20618 freebsd3.[01]* | freebsdelf3.[01]*)
20619 shlibpath_overrides_runpath=yes
20620 hardcode_into_libs=yes
20621 ;;
20622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20624 shlibpath_overrides_runpath=no
20625 hardcode_into_libs=yes
20626 ;;
20627 *) # from 4.6 on, and DragonFly
20628 shlibpath_overrides_runpath=yes
20629 hardcode_into_libs=yes
20630 ;;
20631 esac
20632 ;;
20633
20634 gnu*)
20635 version_type=linux
20636 need_lib_prefix=no
20637 need_version=no
20638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20639 soname_spec='${libname}${release}${shared_ext}$major'
20640 shlibpath_var=LD_LIBRARY_PATH
20641 hardcode_into_libs=yes
20642 ;;
20643
20644 haiku*)
20645 version_type=linux
20646 need_lib_prefix=no
20647 need_version=no
20648 dynamic_linker="$host_os runtime_loader"
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 shlibpath_var=LIBRARY_PATH
20652 shlibpath_overrides_runpath=yes
20653 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20654 hardcode_into_libs=yes
20655 ;;
20656
20657 hpux9* | hpux10* | hpux11*)
20658 # Give a soname corresponding to the major version so that dld.sl refuses to
20659 # link against other versions.
20660 version_type=sunos
20661 need_lib_prefix=no
20662 need_version=no
20663 case $host_cpu in
20664 ia64*)
20665 shrext_cmds='.so'
20666 hardcode_into_libs=yes
20667 dynamic_linker="$host_os dld.so"
20668 shlibpath_var=LD_LIBRARY_PATH
20669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20671 soname_spec='${libname}${release}${shared_ext}$major'
20672 if test "X$HPUX_IA64_MODE" = X32; then
20673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20674 else
20675 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20676 fi
20677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20678 ;;
20679 hppa*64*)
20680 shrext_cmds='.sl'
20681 hardcode_into_libs=yes
20682 dynamic_linker="$host_os dld.sl"
20683 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20689 ;;
20690 *)
20691 shrext_cmds='.sl'
20692 dynamic_linker="$host_os dld.sl"
20693 shlibpath_var=SHLIB_PATH
20694 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20696 soname_spec='${libname}${release}${shared_ext}$major'
20697 ;;
20698 esac
20699 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20700 postinstall_cmds='chmod 555 $lib'
20701 # or fails outright, so override atomically:
20702 install_override_mode=555
20703 ;;
20704
20705 interix[3-9]*)
20706 version_type=linux
20707 need_lib_prefix=no
20708 need_version=no
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20710 soname_spec='${libname}${release}${shared_ext}$major'
20711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20712 shlibpath_var=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath=no
20714 hardcode_into_libs=yes
20715 ;;
20716
20717 irix5* | irix6* | nonstopux*)
20718 case $host_os in
20719 nonstopux*) version_type=nonstopux ;;
20720 *)
20721 if test "$lt_cv_prog_gnu_ld" = yes; then
20722 version_type=linux
20723 else
20724 version_type=irix
20725 fi ;;
20726 esac
20727 need_lib_prefix=no
20728 need_version=no
20729 soname_spec='${libname}${release}${shared_ext}$major'
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20731 case $host_os in
20732 irix5* | nonstopux*)
20733 libsuff= shlibsuff=
20734 ;;
20735 *)
20736 case $LD in # libtool.m4 will add one of these switches to LD
20737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20738 libsuff= shlibsuff= libmagic=32-bit;;
20739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20740 libsuff=32 shlibsuff=N32 libmagic=N32;;
20741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20743 *) libsuff= shlibsuff= libmagic=never-match;;
20744 esac
20745 ;;
20746 esac
20747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20748 shlibpath_overrides_runpath=no
20749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20751 hardcode_into_libs=yes
20752 ;;
20753
20754 # No shared lib support for Linux oldld, aout, or coff.
20755 linux*oldld* | linux*aout* | linux*coff*)
20756 dynamic_linker=no
20757 ;;
20758
20759 # This must be Linux ELF.
20760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20761 version_type=linux
20762 need_lib_prefix=no
20763 need_version=no
20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath=no
20769
20770 # Some binutils ld are patched to set DT_RUNPATH
20771 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20772 $as_echo_n "(cached) " >&6
20773 else
20774 lt_cv_shlibpath_overrides_runpath=no
20775 save_LDFLAGS=$LDFLAGS
20776 save_libdir=$libdir
20777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h. */
20781
20782 int
20783 main ()
20784 {
20785
20786 ;
20787 return 0;
20788 }
20789 _ACEOF
20790 if ac_fn_cxx_try_link "$LINENO"; then :
20791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20792 lt_cv_shlibpath_overrides_runpath=yes
20793 fi
20794 fi
20795 rm -f core conftest.err conftest.$ac_objext \
20796 conftest$ac_exeext conftest.$ac_ext
20797 LDFLAGS=$save_LDFLAGS
20798 libdir=$save_libdir
20799
20800 fi
20801
20802 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20803
20804 # This implies no fast_install, which is unacceptable.
20805 # Some rework will be needed to allow for fast_install
20806 # before this can be enabled.
20807 hardcode_into_libs=yes
20808
20809 # Append ld.so.conf contents to the search path
20810 if test -f /etc/ld.so.conf; then
20811 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' ' '`
20812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20813 fi
20814
20815 # We used to test for /lib/ld.so.1 and disable shared libraries on
20816 # powerpc, because MkLinux only supported shared libraries with the
20817 # GNU dynamic linker. Since this was broken with cross compilers,
20818 # most powerpc-linux boxes support dynamic linking these days and
20819 # people can always --disable-shared, the test was removed, and we
20820 # assume the GNU/Linux dynamic linker is in use.
20821 dynamic_linker='GNU/Linux ld.so'
20822 ;;
20823
20824 netbsd*)
20825 version_type=sunos
20826 need_lib_prefix=no
20827 need_version=no
20828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20831 dynamic_linker='NetBSD (a.out) ld.so'
20832 else
20833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20834 soname_spec='${libname}${release}${shared_ext}$major'
20835 dynamic_linker='NetBSD ld.elf_so'
20836 fi
20837 shlibpath_var=LD_LIBRARY_PATH
20838 shlibpath_overrides_runpath=yes
20839 hardcode_into_libs=yes
20840 ;;
20841
20842 newsos6)
20843 version_type=linux
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=yes
20847 ;;
20848
20849 *nto* | *qnx*)
20850 version_type=qnx
20851 need_lib_prefix=no
20852 need_version=no
20853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20854 soname_spec='${libname}${release}${shared_ext}$major'
20855 shlibpath_var=LD_LIBRARY_PATH
20856 shlibpath_overrides_runpath=no
20857 hardcode_into_libs=yes
20858 dynamic_linker='ldqnx.so'
20859 ;;
20860
20861 openbsd*)
20862 version_type=sunos
20863 sys_lib_dlsearch_path_spec="/usr/lib"
20864 need_lib_prefix=no
20865 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20866 case $host_os in
20867 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20868 *) need_version=no ;;
20869 esac
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20872 shlibpath_var=LD_LIBRARY_PATH
20873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20874 case $host_os in
20875 openbsd2.[89] | openbsd2.[89].*)
20876 shlibpath_overrides_runpath=no
20877 ;;
20878 *)
20879 shlibpath_overrides_runpath=yes
20880 ;;
20881 esac
20882 else
20883 shlibpath_overrides_runpath=yes
20884 fi
20885 ;;
20886
20887 os2*)
20888 libname_spec='$name'
20889 shrext_cmds=".dll"
20890 need_lib_prefix=no
20891 library_names_spec='$libname${shared_ext} $libname.a'
20892 dynamic_linker='OS/2 ld.exe'
20893 shlibpath_var=LIBPATH
20894 ;;
20895
20896 osf3* | osf4* | osf5*)
20897 version_type=osf
20898 need_lib_prefix=no
20899 need_version=no
20900 soname_spec='${libname}${release}${shared_ext}$major'
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 shlibpath_var=LD_LIBRARY_PATH
20903 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20904 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20905 ;;
20906
20907 rdos*)
20908 dynamic_linker=no
20909 ;;
20910
20911 solaris*)
20912 version_type=linux
20913 need_lib_prefix=no
20914 need_version=no
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916 soname_spec='${libname}${release}${shared_ext}$major'
20917 shlibpath_var=LD_LIBRARY_PATH
20918 shlibpath_overrides_runpath=yes
20919 hardcode_into_libs=yes
20920 # ldd complains unless libraries are executable
20921 postinstall_cmds='chmod +x $lib'
20922 ;;
20923
20924 sunos4*)
20925 version_type=sunos
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=yes
20930 if test "$with_gnu_ld" = yes; then
20931 need_lib_prefix=no
20932 fi
20933 need_version=yes
20934 ;;
20935
20936 sysv4 | sysv4.3*)
20937 version_type=linux
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 case $host_vendor in
20942 sni)
20943 shlibpath_overrides_runpath=no
20944 need_lib_prefix=no
20945 runpath_var=LD_RUN_PATH
20946 ;;
20947 siemens)
20948 need_lib_prefix=no
20949 ;;
20950 motorola)
20951 need_lib_prefix=no
20952 need_version=no
20953 shlibpath_overrides_runpath=no
20954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20955 ;;
20956 esac
20957 ;;
20958
20959 sysv4*MP*)
20960 if test -d /usr/nec ;then
20961 version_type=linux
20962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20963 soname_spec='$libname${shared_ext}.$major'
20964 shlibpath_var=LD_LIBRARY_PATH
20965 fi
20966 ;;
20967
20968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20969 version_type=freebsd-elf
20970 need_lib_prefix=no
20971 need_version=no
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 shlibpath_var=LD_LIBRARY_PATH
20975 shlibpath_overrides_runpath=yes
20976 hardcode_into_libs=yes
20977 if test "$with_gnu_ld" = yes; then
20978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20979 else
20980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20981 case $host_os in
20982 sco3.2v5*)
20983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20984 ;;
20985 esac
20986 fi
20987 sys_lib_dlsearch_path_spec='/usr/lib'
20988 ;;
20989
20990 tpf*)
20991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20992 version_type=linux
20993 need_lib_prefix=no
20994 need_version=no
20995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 shlibpath_var=LD_LIBRARY_PATH
20997 shlibpath_overrides_runpath=no
20998 hardcode_into_libs=yes
20999 ;;
21000
21001 uts4*)
21002 version_type=linux
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 shlibpath_var=LD_LIBRARY_PATH
21006 ;;
21007
21008 *)
21009 dynamic_linker=no
21010 ;;
21011 esac
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21013 $as_echo "$dynamic_linker" >&6; }
21014 test "$dynamic_linker" = no && can_build_shared=no
21015
21016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21017 if test "$GCC" = yes; then
21018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21019 fi
21020
21021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21022 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21023 fi
21024 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21025 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21026 fi
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
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21067 hardcode_action_CXX=
21068 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21069 test -n "$runpath_var_CXX" ||
21070 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21071
21072 # We can hardcode non-existent directories.
21073 if test "$hardcode_direct_CXX" != no &&
21074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21075 # have to relink, otherwise we might link with an installed library
21076 # when we should be linking with a yet-to-be-installed one
21077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21078 test "$hardcode_minus_L_CXX" != no; then
21079 # Linking always hardcodes the temporary library directory.
21080 hardcode_action_CXX=relink
21081 else
21082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21083 hardcode_action_CXX=immediate
21084 fi
21085 else
21086 # We cannot hardcode anything, or else we can only hardcode existing
21087 # directories.
21088 hardcode_action_CXX=unsupported
21089 fi
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21091 $as_echo "$hardcode_action_CXX" >&6; }
21092
21093 if test "$hardcode_action_CXX" = relink ||
21094 test "$inherit_rpath_CXX" = yes; then
21095 # Fast installation is not supported
21096 enable_fast_install=no
21097 elif test "$shlibpath_overrides_runpath" = yes ||
21098 test "$enable_shared" = no; then
21099 # Fast installation is not necessary
21100 enable_fast_install=needless
21101 fi
21102
21103
21104
21105
21106
21107
21108
21109 fi # test -n "$compiler"
21110
21111 CC=$lt_save_CC
21112 LDCXX=$LD
21113 LD=$lt_save_LD
21114 GCC=$lt_save_GCC
21115 with_gnu_ld=$lt_save_with_gnu_ld
21116 lt_cv_path_LDCXX=$lt_cv_path_LD
21117 lt_cv_path_LD=$lt_save_path_LD
21118 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21119 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21120 fi # test "$_lt_caught_CXX_error" != yes
21121
21122 ac_ext=c
21123 ac_cpp='$CPP $CPPFLAGS'
21124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143 # Only expand once:
21144
21145
21146
21147
21148
21149 # Identify the assembler which will work hand-in-glove with the newly
21150 # built GCC, so that we can examine its features. This is the assembler
21151 # which will be driven by the driver program.
21152 #
21153 # If build != host, and we aren't building gas in-tree, we identify a
21154 # build->target assembler and hope that it will have the same features
21155 # as the host->target assembler we'll be using.
21156 gcc_cv_gas_major_version=
21157 gcc_cv_gas_minor_version=
21158 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21159
21160 if test "${gcc_cv_as+set}" = set; then :
21161
21162 else
21163
21164 if test -x "$DEFAULT_ASSEMBLER"; then
21165 gcc_cv_as="$DEFAULT_ASSEMBLER"
21166 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21167 && test -f ../gas/Makefile \
21168 && test x$build = x$host; then
21169 gcc_cv_as=../gas/as-new$build_exeext
21170 elif test -x as$build_exeext; then
21171 # Build using assembler in the current directory.
21172 gcc_cv_as=./as$build_exeext
21173 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21174 gcc_cv_as="$AS_FOR_TARGET"
21175 else
21176 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21177 set dummy $AS_FOR_TARGET; ac_word=$2
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21179 $as_echo_n "checking for $ac_word... " >&6; }
21180 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21181 $as_echo_n "(cached) " >&6
21182 else
21183 case $gcc_cv_as in
21184 [\\/]* | ?:[\\/]*)
21185 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21186 ;;
21187 *)
21188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21189 for as_dir in $PATH
21190 do
21191 IFS=$as_save_IFS
21192 test -z "$as_dir" && as_dir=.
21193 for ac_exec_ext in '' $ac_executable_extensions; do
21194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21195 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21197 break 2
21198 fi
21199 done
21200 done
21201 IFS=$as_save_IFS
21202
21203 ;;
21204 esac
21205 fi
21206 gcc_cv_as=$ac_cv_path_gcc_cv_as
21207 if test -n "$gcc_cv_as"; then
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21209 $as_echo "$gcc_cv_as" >&6; }
21210 else
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21212 $as_echo "no" >&6; }
21213 fi
21214
21215
21216 fi
21217 fi
21218
21219 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21220
21221 case "$ORIGINAL_AS_FOR_TARGET" in
21222 ./as | ./as$build_exeext) ;;
21223 *) ac_config_files="$ac_config_files as:exec-tool.in"
21224 ;;
21225 esac
21226
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21228 $as_echo_n "checking what assembler to use... " >&6; }
21229 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21230 # Single tree build which includes gas. We want to prefer it
21231 # over whatever linker top-level may have detected, since
21232 # we'll use what we're building after installation anyway.
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21234 $as_echo "newly built gas" >&6; }
21235 in_tree_gas=yes
21236 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21237 for f in $gcc_cv_as_bfd_srcdir/configure \
21238 $gcc_cv_as_gas_srcdir/configure \
21239 $gcc_cv_as_gas_srcdir/configure.in \
21240 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21241 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21242 if test x$gcc_cv_gas_version != x; then
21243 break
21244 fi
21245 done
21246 case $gcc_cv_gas_version in
21247 VERSION=[0-9]*) ;;
21248 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21249 esac
21250 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21251 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21252 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21253 case $gcc_cv_gas_patch_version in
21254 "") gcc_cv_gas_patch_version="0" ;;
21255 esac
21256 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21257 + $gcc_cv_gas_minor_version \) \* 1000 \
21258 + $gcc_cv_gas_patch_version`
21259
21260 in_tree_gas_is_elf=no
21261 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21262 || (grep 'obj_format = multi' ../gas/Makefile \
21263 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21264 then
21265 in_tree_gas_is_elf=yes
21266 fi
21267 else
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21269 $as_echo "$gcc_cv_as" >&6; }
21270 in_tree_gas=no
21271 fi
21272
21273 # Identify the linker which will work hand-in-glove with the newly
21274 # built GCC, so that we can examine its features. This is the linker
21275 # which will be driven by the driver program.
21276 #
21277 # If build != host, and we aren't building gas in-tree, we identify a
21278 # build->target linker and hope that it will have the same features
21279 # as the host->target linker we'll be using.
21280 gcc_cv_gld_major_version=
21281 gcc_cv_gld_minor_version=
21282 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21283 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21284
21285 if test "${gcc_cv_ld+set}" = set; then :
21286
21287 else
21288
21289 if test -x "$DEFAULT_LINKER"; then
21290 gcc_cv_ld="$DEFAULT_LINKER"
21291 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21292 && test -f ../ld/Makefile \
21293 && test x$build = x$host; then
21294 gcc_cv_ld=../ld/ld-new$build_exeext
21295 elif test -x collect-ld$build_exeext; then
21296 # Build using linker in the current directory.
21297 gcc_cv_ld=./collect-ld$build_exeext
21298 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21299 gcc_cv_ld="$LD_FOR_TARGET"
21300 else
21301 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21302 set dummy $LD_FOR_TARGET; ac_word=$2
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21304 $as_echo_n "checking for $ac_word... " >&6; }
21305 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21306 $as_echo_n "(cached) " >&6
21307 else
21308 case $gcc_cv_ld in
21309 [\\/]* | ?:[\\/]*)
21310 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21311 ;;
21312 *)
21313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21314 for as_dir in $PATH
21315 do
21316 IFS=$as_save_IFS
21317 test -z "$as_dir" && as_dir=.
21318 for ac_exec_ext in '' $ac_executable_extensions; do
21319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21320 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21322 break 2
21323 fi
21324 done
21325 done
21326 IFS=$as_save_IFS
21327
21328 ;;
21329 esac
21330 fi
21331 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21332 if test -n "$gcc_cv_ld"; then
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21334 $as_echo "$gcc_cv_ld" >&6; }
21335 else
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21337 $as_echo "no" >&6; }
21338 fi
21339
21340
21341 fi
21342 fi
21343
21344 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21345 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21346 # if the PLUGIN_LD is set ld-new, just have it as ld
21347 # as that is the installed named.
21348 if test x$PLUGIN_LD_SUFFIX == xld-new \
21349 || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
21350 PLUGIN_LD_SUFFIX=ld
21351 fi
21352
21353 # Check whether --with-plugin-ld was given.
21354 if test "${with_plugin_ld+set}" = set; then :
21355 withval=$with_plugin_ld; if test x"$withval" != x; then
21356 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21357 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21358 fi
21359 fi
21360
21361
21362
21363 cat >>confdefs.h <<_ACEOF
21364 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21365 _ACEOF
21366
21367
21368 # Check to see if we are using gold instead of ld
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21370 $as_echo_n "checking whether we are using gold... " >&6; }
21371 ld_is_gold=no
21372 if test x$gcc_cv_ld != x; then
21373 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21374 | grep "GNU gold" > /dev/null; then
21375 ld_is_gold=yes
21376 fi
21377 fi
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21379 $as_echo "$ld_is_gold" >&6; }
21380
21381 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21382
21383 case "$ORIGINAL_LD_FOR_TARGET" in
21384 ./collect-ld | ./collect-ld$build_exeext) ;;
21385 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21386 ;;
21387 esac
21388
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21390 $as_echo_n "checking what linker to use... " >&6; }
21391 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21392 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21393 # Single tree build which includes ld. We want to prefer it
21394 # over whatever linker top-level may have detected, since
21395 # we'll use what we're building after installation anyway.
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21397 $as_echo "newly built ld" >&6; }
21398 in_tree_ld=yes
21399 in_tree_ld_is_elf=no
21400 if (grep 'EMUL = .*elf' ../ld/Makefile \
21401 || grep 'EMUL = .*linux' ../ld/Makefile \
21402 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21403 in_tree_ld_is_elf=yes
21404 elif test "$ld_is_gold" = yes; then
21405 in_tree_ld_is_elf=yes
21406 fi
21407 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
21408 do
21409 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21410 if test x$gcc_cv_gld_version != x; then
21411 break
21412 fi
21413 done
21414 case $gcc_cv_gld_version in
21415 VERSION=[0-9]*) ;;
21416 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21417 esac
21418 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21419 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21420 else
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21422 $as_echo "$gcc_cv_ld" >&6; }
21423 in_tree_ld=no
21424 fi
21425
21426 # Figure out what nm we will be using.
21427 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21428 if test "${gcc_cv_nm+set}" = set; then :
21429
21430 else
21431
21432 if test -f $gcc_cv_binutils_srcdir/configure.in \
21433 && test -f ../binutils/Makefile \
21434 && test x$build = x$host; then
21435 gcc_cv_nm=../binutils/nm-new$build_exeext
21436 elif test -x nm$build_exeext; then
21437 gcc_cv_nm=./nm$build_exeext
21438 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21439 gcc_cv_nm="$NM_FOR_TARGET"
21440 else
21441 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21442 set dummy $NM_FOR_TARGET; ac_word=$2
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21444 $as_echo_n "checking for $ac_word... " >&6; }
21445 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21446 $as_echo_n "(cached) " >&6
21447 else
21448 case $gcc_cv_nm in
21449 [\\/]* | ?:[\\/]*)
21450 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21451 ;;
21452 *)
21453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21454 for as_dir in $PATH
21455 do
21456 IFS=$as_save_IFS
21457 test -z "$as_dir" && as_dir=.
21458 for ac_exec_ext in '' $ac_executable_extensions; do
21459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21460 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21462 break 2
21463 fi
21464 done
21465 done
21466 IFS=$as_save_IFS
21467
21468 ;;
21469 esac
21470 fi
21471 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21472 if test -n "$gcc_cv_nm"; then
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21474 $as_echo "$gcc_cv_nm" >&6; }
21475 else
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 $as_echo "no" >&6; }
21478 fi
21479
21480
21481 fi
21482 fi
21483
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21485 $as_echo_n "checking what nm to use... " >&6; }
21486 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21487 # Single tree build which includes binutils.
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21489 $as_echo "newly built nm" >&6; }
21490 in_tree_nm=yes
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21493 $as_echo "$gcc_cv_nm" >&6; }
21494 in_tree_nm=no
21495 fi
21496
21497 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21498
21499 case "$ORIGINAL_NM_FOR_TARGET" in
21500 ./nm | ./nm$build_exeext) ;;
21501 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21502 ;;
21503 esac
21504
21505
21506 # Figure out what objdump we will be using.
21507 if test "${gcc_cv_objdump+set}" = set; then :
21508
21509 else
21510
21511 if test -f $gcc_cv_binutils_srcdir/configure.in \
21512 && test -f ../binutils/Makefile \
21513 && test x$build = x$host; then
21514 # Single tree build which includes binutils.
21515 gcc_cv_objdump=../binutils/objdump$build_exeext
21516 elif test -x objdump$build_exeext; then
21517 gcc_cv_objdump=./objdump$build_exeext
21518 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21519 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21520 else
21521 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21522 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21524 $as_echo_n "checking for $ac_word... " >&6; }
21525 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21526 $as_echo_n "(cached) " >&6
21527 else
21528 case $gcc_cv_objdump in
21529 [\\/]* | ?:[\\/]*)
21530 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21531 ;;
21532 *)
21533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21534 for as_dir in $PATH
21535 do
21536 IFS=$as_save_IFS
21537 test -z "$as_dir" && as_dir=.
21538 for ac_exec_ext in '' $ac_executable_extensions; do
21539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21540 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21542 break 2
21543 fi
21544 done
21545 done
21546 IFS=$as_save_IFS
21547
21548 ;;
21549 esac
21550 fi
21551 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21552 if test -n "$gcc_cv_objdump"; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21554 $as_echo "$gcc_cv_objdump" >&6; }
21555 else
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558 fi
21559
21560
21561 fi
21562 fi
21563
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21565 $as_echo_n "checking what objdump to use... " >&6; }
21566 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21567 # Single tree build which includes binutils.
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21569 $as_echo "newly built objdump" >&6; }
21570 elif test x$gcc_cv_objdump = x; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21572 $as_echo "not found" >&6; }
21573 else
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21575 $as_echo "$gcc_cv_objdump" >&6; }
21576 fi
21577
21578 # Figure out what readelf we will be using.
21579 if test "${gcc_cv_readelf+set}" = set; then :
21580
21581 else
21582
21583 if test -f $gcc_cv_binutils_srcdir/configure.in \
21584 && test -f ../binutils/Makefile \
21585 && test x$build = x$host; then
21586 # Single tree build which includes binutils.
21587 gcc_cv_readelf=../binutils/readelf$build_exeext
21588 elif test -x readelf$build_exeext; then
21589 gcc_cv_readelf=./readelf$build_exeext
21590 else
21591 # Extract the first word of "readelf", so it can be a program name with args.
21592 set dummy readelf; ac_word=$2
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21594 $as_echo_n "checking for $ac_word... " >&6; }
21595 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21596 $as_echo_n "(cached) " >&6
21597 else
21598 case $gcc_cv_readelf in
21599 [\\/]* | ?:[\\/]*)
21600 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21601 ;;
21602 *)
21603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21604 for as_dir in $PATH
21605 do
21606 IFS=$as_save_IFS
21607 test -z "$as_dir" && as_dir=.
21608 for ac_exec_ext in '' $ac_executable_extensions; do
21609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21610 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21612 break 2
21613 fi
21614 done
21615 done
21616 IFS=$as_save_IFS
21617
21618 ;;
21619 esac
21620 fi
21621 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21622 if test -n "$gcc_cv_readelf"; then
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21624 $as_echo "$gcc_cv_readelf" >&6; }
21625 else
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21627 $as_echo "no" >&6; }
21628 fi
21629
21630
21631 fi
21632 fi
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21635 $as_echo_n "checking what readelf to use... " >&6; }
21636 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21637 # Single tree build which includes binutils.
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21639 $as_echo "newly built readelf" >&6; }
21640 elif test x$gcc_cv_readelf = x; then
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21642 $as_echo "not found" >&6; }
21643 else
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21645 $as_echo "$gcc_cv_readelf" >&6; }
21646 fi
21647
21648 # Figure out what assembler alignment features are present.
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21650 $as_echo_n "checking assembler flags... " >&6; }
21651 if test "${gcc_cv_as_flags+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21653 else
21654 case "$target" in
21655 i[34567]86-*-linux*)
21656 gcc_cv_as_flags="--32"
21657 ;;
21658 powerpc*-*-darwin*)
21659 gcc_cv_as_flags="-arch ppc"
21660 ;;
21661 *)
21662 gcc_cv_as_flags=" "
21663 ;;
21664 esac
21665 fi
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21667 $as_echo "$gcc_cv_as_flags" >&6; }
21668
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21670 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21671 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21672 $as_echo_n "(cached) " >&6
21673 else
21674 gcc_cv_as_balign_and_p2align=no
21675 if test $in_tree_gas = yes; then
21676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21677 then gcc_cv_as_balign_and_p2align=yes
21678 fi
21679 elif test x$gcc_cv_as != x; then
21680 $as_echo '.balign 4
21681 .p2align 2' > conftest.s
21682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687 test $ac_status = 0; }; }
21688 then
21689 gcc_cv_as_balign_and_p2align=yes
21690 else
21691 echo "configure: failed program was" >&5
21692 cat conftest.s >&5
21693 fi
21694 rm -f conftest.o conftest.s
21695 fi
21696 fi
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21698 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21699 if test $gcc_cv_as_balign_and_p2align = yes; then
21700
21701 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21702
21703 fi
21704
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21706 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21707 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 gcc_cv_as_max_skip_p2align=no
21711 if test $in_tree_gas = yes; then
21712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21713 then gcc_cv_as_max_skip_p2align=yes
21714 fi
21715 elif test x$gcc_cv_as != x; then
21716 $as_echo '.p2align 4,,7' > conftest.s
21717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722 test $ac_status = 0; }; }
21723 then
21724 gcc_cv_as_max_skip_p2align=yes
21725 else
21726 echo "configure: failed program was" >&5
21727 cat conftest.s >&5
21728 fi
21729 rm -f conftest.o conftest.s
21730 fi
21731 fi
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21733 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21734 if test $gcc_cv_as_max_skip_p2align = yes; then
21735
21736 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21737
21738 fi
21739
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21741 $as_echo_n "checking assembler for .literal16... " >&6; }
21742 if test "${gcc_cv_as_literal16+set}" = set; then :
21743 $as_echo_n "(cached) " >&6
21744 else
21745 gcc_cv_as_literal16=no
21746 if test $in_tree_gas = yes; then
21747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21748 then gcc_cv_as_literal16=yes
21749 fi
21750 elif test x$gcc_cv_as != x; then
21751 $as_echo '.literal16' > conftest.s
21752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21757 test $ac_status = 0; }; }
21758 then
21759 gcc_cv_as_literal16=yes
21760 else
21761 echo "configure: failed program was" >&5
21762 cat conftest.s >&5
21763 fi
21764 rm -f conftest.o conftest.s
21765 fi
21766 fi
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21768 $as_echo "$gcc_cv_as_literal16" >&6; }
21769 if test $gcc_cv_as_literal16 = yes; then
21770
21771 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21772
21773 fi
21774
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21776 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21777 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21779 else
21780 gcc_cv_as_subsection_m1=no
21781 if test $in_tree_gas = yes; then
21782 if test $in_tree_gas_is_elf = yes \
21783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21784 then gcc_cv_as_subsection_m1=yes
21785 fi
21786 elif test x$gcc_cv_as != x; then
21787 $as_echo 'conftest_label1: .word 0
21788 .subsection -1
21789 conftest_label2: .word 0
21790 .previous' > conftest.s
21791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21796 test $ac_status = 0; }; }
21797 then
21798 if test x$gcc_cv_nm != x; then
21799 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21800 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21801 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21802 then :
21803 else gcc_cv_as_subsection_m1=yes
21804 fi
21805 rm -f conftest.nm1 conftest.nm2
21806 fi
21807 else
21808 echo "configure: failed program was" >&5
21809 cat conftest.s >&5
21810 fi
21811 rm -f conftest.o conftest.s
21812 fi
21813 fi
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21815 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21816 if test $gcc_cv_as_subsection_m1 = yes; then
21817
21818 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21819
21820 fi
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21823 $as_echo_n "checking assembler for .weak... " >&6; }
21824 if test "${gcc_cv_as_weak+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 gcc_cv_as_weak=no
21828 if test $in_tree_gas = yes; then
21829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21830 then gcc_cv_as_weak=yes
21831 fi
21832 elif test x$gcc_cv_as != x; then
21833 $as_echo ' .weak foobar' > conftest.s
21834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836 (eval $ac_try) 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; }
21840 then
21841 gcc_cv_as_weak=yes
21842 else
21843 echo "configure: failed program was" >&5
21844 cat conftest.s >&5
21845 fi
21846 rm -f conftest.o conftest.s
21847 fi
21848 fi
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21850 $as_echo "$gcc_cv_as_weak" >&6; }
21851 if test $gcc_cv_as_weak = yes; then
21852
21853 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21854
21855 fi
21856
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21858 $as_echo_n "checking assembler for .weakref... " >&6; }
21859 if test "${gcc_cv_as_weakref+set}" = set; then :
21860 $as_echo_n "(cached) " >&6
21861 else
21862 gcc_cv_as_weakref=no
21863 if test $in_tree_gas = yes; then
21864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21865 then gcc_cv_as_weakref=yes
21866 fi
21867 elif test x$gcc_cv_as != x; then
21868 $as_echo ' .weakref foobar, barfnot' > conftest.s
21869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21874 test $ac_status = 0; }; }
21875 then
21876 gcc_cv_as_weakref=yes
21877 else
21878 echo "configure: failed program was" >&5
21879 cat conftest.s >&5
21880 fi
21881 rm -f conftest.o conftest.s
21882 fi
21883 fi
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21885 $as_echo "$gcc_cv_as_weakref" >&6; }
21886 if test $gcc_cv_as_weakref = yes; then
21887
21888 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21889
21890 fi
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21893 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21894 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 gcc_cv_as_nsubspa_comdat=no
21898 if test $in_tree_gas = yes; then
21899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21900 then gcc_cv_as_nsubspa_comdat=yes
21901 fi
21902 elif test x$gcc_cv_as != x; then
21903 $as_echo ' .SPACE $TEXT$
21904 .NSUBSPA $CODE$,COMDAT' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21911 then
21912 gcc_cv_as_nsubspa_comdat=yes
21913 else
21914 echo "configure: failed program was" >&5
21915 cat conftest.s >&5
21916 fi
21917 rm -f conftest.o conftest.s
21918 fi
21919 fi
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21921 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21922 if test $gcc_cv_as_nsubspa_comdat = yes; then
21923
21924 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21925
21926 fi
21927
21928 # .hidden needs to be supported in both the assembler and the linker,
21929 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21930 # This is irritatingly difficult to feature test for; we have to check the
21931 # date string after the version number. If we've got an in-tree
21932 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21933 # to be safe.
21934 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21936 $as_echo_n "checking assembler for .hidden... " >&6; }
21937 if test "${gcc_cv_as_hidden+set}" = set; then :
21938 $as_echo_n "(cached) " >&6
21939 else
21940 gcc_cv_as_hidden=no
21941 if test $in_tree_gas = yes; then
21942 if test $in_tree_gas_is_elf = yes \
21943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21944 then gcc_cv_as_hidden=yes
21945 fi
21946 elif test x$gcc_cv_as != x; then
21947 $as_echo ' .hidden foobar
21948 foobar:' > conftest.s
21949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21954 test $ac_status = 0; }; }
21955 then
21956
21957 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21958 # STV_HIDDEN, so disable .hidden support if so.
21959 case "${target}" in
21960 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21961 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21962 cat > conftest.s <<EOF
21963 .globl hidden
21964 .hidden hidden
21965 hidden:
21966 .globl default
21967 .set default,hidden
21968 EOF
21969 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21970 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21971 grep '\.hidden default' > /dev/null; then
21972 gcc_cv_as_hidden=no
21973 else
21974 gcc_cv_as_hidden=yes
21975 fi
21976 else
21977 # Assume bug is present if objdump is missing.
21978 gcc_cv_as_hidden=no
21979 fi
21980 ;;
21981 *)
21982 gcc_cv_as_hidden=yes
21983 ;;
21984 esac
21985 else
21986 echo "configure: failed program was" >&5
21987 cat conftest.s >&5
21988 fi
21989 rm -f conftest.o conftest.s
21990 fi
21991 fi
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21993 $as_echo "$gcc_cv_as_hidden" >&6; }
21994
21995 case "${target}" in
21996 *-*-darwin*)
21997 # Darwin as has some visibility support, though with a different syntax.
21998 gcc_cv_as_hidden=yes
21999 ;;
22000 esac
22001
22002 # gnu_indirect_function type is an extension proposed at
22003 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22004 # selection of function implementation
22005 # Check whether --enable-gnu-indirect-function was given.
22006 if test "${enable_gnu_indirect_function+set}" = set; then :
22007 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22008 yes | no) ;;
22009 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22010 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22011 esac
22012 else
22013 enable_gnu_indirect_function="$default_gnu_indirect_function"
22014 fi
22015
22016 if test x$enable_gnu_indirect_function = xyes; then
22017
22018 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22019
22020 fi
22021
22022 if test $in_tree_ld != yes ; then
22023 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22024 if echo "$ld_ver" | grep GNU > /dev/null; then
22025 if test x"$ld_is_gold" = xyes; then
22026 # GNU gold --version looks like this:
22027 #
22028 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22029 #
22030 # We extract the binutils version which is more familiar and specific
22031 # than the gold version.
22032 ld_vers=`echo $ld_ver | sed -n \
22033 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22034 else
22035 # GNU ld --version looks like this:
22036 #
22037 # GNU ld (GNU Binutils) 2.21.51.20110225
22038 ld_vers=`echo $ld_ver | sed -n \
22039 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22040 fi
22041 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'`
22042 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22043 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22044 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22045 else
22046 case "${target}" in
22047 *-*-solaris2*)
22048 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22049 # format.
22050 #
22051 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22052 # /usr/ccs/bin/ld has been configured.
22053 ld_ver=`$gcc_cv_ld -V 2>&1`
22054 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22055 ld_vers=`echo $ld_ver | sed -n \
22056 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22057 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22058 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22059 fi
22060 ;;
22061 esac
22062 fi
22063 fi
22064
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22066 $as_echo_n "checking linker for .hidden support... " >&6; }
22067 if test "${gcc_cv_ld_hidden+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22070 if test $in_tree_ld = yes ; then
22071 gcc_cv_ld_hidden=no
22072 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 \
22073 && test $in_tree_ld_is_elf = yes; then
22074 gcc_cv_ld_hidden=yes
22075 fi
22076 else
22077 gcc_cv_ld_hidden=yes
22078 if test x"$ld_is_gold" = xyes; then
22079 :
22080 elif echo "$ld_ver" | grep GNU > /dev/null; then
22081 case "${target}" in
22082 mmix-knuth-mmixware)
22083 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22084 gcc_cv_ld_hidden=no
22085 ;;
22086 esac
22087 if test 0"$ld_date" -lt 20020404; then
22088 if test -n "$ld_date"; then
22089 # If there was date string, but was earlier than 2002-04-04, fail
22090 gcc_cv_ld_hidden=no
22091 elif test -z "$ld_vers"; then
22092 # If there was no date string nor ld version number, something is wrong
22093 gcc_cv_ld_hidden=no
22094 else
22095 test -z "$ld_vers_patch" && ld_vers_patch=0
22096 if test "$ld_vers_major" -lt 2; then
22097 gcc_cv_ld_hidden=no
22098 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22099 gcc_cv_ld_hidden="no"
22100 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22101 gcc_cv_ld_hidden=no
22102 fi
22103 fi
22104 fi
22105 else
22106 case "${target}" in
22107 *-*-darwin*)
22108 # Darwin ld has some visibility support.
22109 gcc_cv_ld_hidden=yes
22110 ;;
22111 hppa64*-*-hpux* | ia64*-*-hpux*)
22112 gcc_cv_ld_hidden=yes
22113 ;;
22114 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22115 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22116 # .symbolic was only added in Solaris 9 12/02.
22117 gcc_cv_ld_hidden=yes
22118 ;;
22119 *)
22120 gcc_cv_ld_hidden=no
22121 ;;
22122 esac
22123 fi
22124 fi
22125 fi
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22127 $as_echo "$gcc_cv_ld_hidden" >&6; }
22128 libgcc_visibility=no
22129
22130
22131 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22132 libgcc_visibility=yes
22133
22134 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22135
22136 fi
22137
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22139 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22140 gcc_cv_ld_ro_rw_mix=unknown
22141 if test $in_tree_ld = yes ; then
22142 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 \
22143 && test $in_tree_ld_is_elf = yes; then
22144 gcc_cv_ld_ro_rw_mix=read-write
22145 fi
22146 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22147 echo '.section myfoosect, "a"' > conftest1.s
22148 echo '.section myfoosect, "aw"' > conftest2.s
22149 echo '.byte 1' >> conftest2.s
22150 echo '.section myfoosect, "a"' > conftest3.s
22151 echo '.byte 0' >> conftest3.s
22152 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22153 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22154 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22155 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22156 conftest2.o conftest3.o > /dev/null 2>&1; then
22157 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22158 | sed -e '/myfoosect/!d' -e N`
22159 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22160 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22161 gcc_cv_ld_ro_rw_mix=read-only
22162 else
22163 gcc_cv_ld_ro_rw_mix=read-write
22164 fi
22165 fi
22166 fi
22167 rm -f conftest.* conftest[123].*
22168 fi
22169 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22170
22171 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22172
22173 fi
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22175 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22176
22177 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22178 case "${target}" in
22179 *-*-solaris2*)
22180 #
22181 # Solaris 2 ld -V output looks like this for a regular version:
22182 #
22183 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22184 #
22185 # but test versions add stuff at the end:
22186 #
22187 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22188 #
22189 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22190 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22191 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22192 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22193 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22194 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22195 fi
22196 ;;
22197 esac
22198 fi
22199
22200 # Check whether --enable-initfini-array was given.
22201 if test "${enable_initfini_array+set}" = set; then :
22202 enableval=$enable_initfini_array;
22203 else
22204
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22206 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22207 if test "${gcc_cv_initfini_array+set}" = set; then :
22208 $as_echo_n "(cached) " >&6
22209 else
22210 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22211 case "${target}" in
22212 ia64-*)
22213 if test "$cross_compiling" = yes; then :
22214 gcc_cv_initfini_array=no
22215 else
22216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h. */
22218
22219 #ifndef __ELF__
22220 #error Not an ELF OS
22221 #endif
22222 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22223 if it can be used. */
22224 static int x = -1;
22225 int main (void) { return x; }
22226 int foo (void) { x = 0; }
22227 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22228
22229 _ACEOF
22230 if ac_fn_c_try_run "$LINENO"; then :
22231 gcc_cv_initfini_array=yes
22232 else
22233 gcc_cv_initfini_array=no
22234 fi
22235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236 conftest.$ac_objext conftest.beam conftest.$ac_ext
22237 fi
22238 ;;
22239 *)
22240 gcc_cv_initfini_array=no
22241 if test $in_tree_ld = yes ; then
22242 if test "$gcc_cv_gld_major_version" -eq 2 \
22243 -a "$gcc_cv_gld_minor_version" -ge 22 \
22244 -o "$gcc_cv_gld_major_version" -gt 2 \
22245 && test $in_tree_ld_is_elf = yes; then
22246 gcc_cv_initfini_array=yes
22247 fi
22248 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22249 cat > conftest.s <<\EOF
22250 .section .dtors,"a",%progbits
22251 .balign 4
22252 .byte 'A', 'A', 'A', 'A'
22253 .section .ctors,"a",%progbits
22254 .balign 4
22255 .byte 'B', 'B', 'B', 'B'
22256 .section .fini_array.65530,"a",%progbits
22257 .balign 4
22258 .byte 'C', 'C', 'C', 'C'
22259 .section .init_array.65530,"a",%progbits
22260 .balign 4
22261 .byte 'D', 'D', 'D', 'D'
22262 .section .dtors.64528,"a",%progbits
22263 .balign 4
22264 .byte 'E', 'E', 'E', 'E'
22265 .section .ctors.64528,"a",%progbits
22266 .balign 4
22267 .byte 'F', 'F', 'F', 'F'
22268 .section .fini_array.01005,"a",%progbits
22269 .balign 4
22270 .byte 'G', 'G', 'G', 'G'
22271 .section .init_array.01005,"a",%progbits
22272 .balign 4
22273 .byte 'H', 'H', 'H', 'H'
22274 .text
22275 .globl _start
22276 _start:
22277 EOF
22278 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22279 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22280 && $gcc_cv_objdump -s -j .init_array conftest \
22281 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22282 && $gcc_cv_objdump -s -j .fini_array conftest \
22283 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22284 gcc_cv_initfini_array=yes
22285 fi
22286 rm -f conftest conftest.*
22287 fi
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22290
22291 #ifndef __ELF__
22292 # error Not an ELF OS
22293 #endif
22294 #include <stdlib.h>
22295 #if defined __GLIBC_PREREQ
22296 # if __GLIBC_PREREQ (2, 4)
22297 # else
22298 # error GLIBC 2.4 required
22299 # endif
22300 #else
22301 # if defined __sun__ && defined __svr4__
22302 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22303 # else
22304 # error The C library not known to support .init_array/.fini_array
22305 # endif
22306 #endif
22307
22308 _ACEOF
22309 if ac_fn_c_try_cpp "$LINENO"; then :
22310
22311 else
22312 gcc_cv_initfini_array=no
22313 fi
22314 rm -f conftest.err conftest.$ac_ext;;
22315 esac
22316 else
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22318 $as_echo_n "checking cross compile... guessing... " >&6; }
22319 gcc_cv_initfini_array=no
22320 fi
22321 fi
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22323 $as_echo "$gcc_cv_initfini_array" >&6; }
22324 enable_initfini_array=$gcc_cv_initfini_array
22325
22326 fi
22327
22328 if test $enable_initfini_array = yes; then
22329
22330 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22331
22332 fi
22333
22334 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22336 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22337 if test "${gcc_cv_as_leb128+set}" = set; then :
22338 $as_echo_n "(cached) " >&6
22339 else
22340 gcc_cv_as_leb128=no
22341 if test $in_tree_gas = yes; then
22342 if test $in_tree_gas_is_elf = yes \
22343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22344 then gcc_cv_as_leb128=yes
22345 fi
22346 elif test x$gcc_cv_as != x; then
22347 $as_echo ' .data
22348 .uleb128 L2 - L1
22349 L1:
22350 .uleb128 1280
22351 .sleb128 -1010
22352 L2:' > conftest.s
22353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22358 test $ac_status = 0; }; }
22359 then
22360 # GAS versions before 2.11 do not support uleb128,
22361 # despite appearing to.
22362 # ??? There exists an elf-specific test that will crash
22363 # the assembler. Perhaps it's better to figure out whether
22364 # arbitrary sections are supported and try the test.
22365 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22366 if echo "$as_ver" | grep GNU > /dev/null; then
22367 as_vers=`echo $as_ver | sed -n \
22368 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22369 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22370 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22371 if test $as_major -eq 2 && test $as_minor -lt 11
22372 then :
22373 else gcc_cv_as_leb128=yes
22374 fi
22375 fi
22376 else
22377 echo "configure: failed program was" >&5
22378 cat conftest.s >&5
22379 fi
22380 rm -f conftest.o conftest.s
22381 fi
22382 fi
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22384 $as_echo "$gcc_cv_as_leb128" >&6; }
22385 if test $gcc_cv_as_leb128 = yes; then
22386
22387 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22388
22389 fi
22390
22391 # Check if we have assembler support for unwind directives.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22393 $as_echo_n "checking assembler for cfi directives... " >&6; }
22394 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 gcc_cv_as_cfi_directive=no
22398 if test x$gcc_cv_as != x; then
22399 $as_echo ' .text
22400 .cfi_startproc
22401 .cfi_offset 0, 0
22402 .cfi_same_value 1
22403 .cfi_def_cfa 1, 2
22404 .cfi_escape 1, 2, 3, 4, 5
22405 .cfi_endproc' > conftest.s
22406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22411 test $ac_status = 0; }; }
22412 then
22413 case "$target" in
22414 *-*-solaris*)
22415 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22416 # read-only and read-write sections, we need to make sure that the
22417 # assembler used emits read-write .eh_frame sections.
22418 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22419 if test "x$gcc_cv_objdump" != x; then
22420 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22421 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22422 gcc_cv_as_cfi_directive=no
22423 else
22424 case "$target" in
22425 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22426 # On Solaris/x86, make sure that GCC and gas agree on using
22427 # read-only .eh_frame sections for 64-bit.
22428 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22429 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22430 sed -e /.eh_frame/!d -e N | \
22431 grep READONLY > /dev/null; then
22432 gcc_cv_as_cfi_directive=yes
22433 else
22434 gcc_cv_as_cfi_directive=no
22435 fi
22436 ;;
22437 *)
22438 gcc_cv_as_cfi_directive=yes
22439 ;;
22440 esac
22441 fi
22442 else
22443 # no objdump, err on the side of caution
22444 gcc_cv_as_cfi_directive=no
22445 fi
22446 else
22447 gcc_cv_as_cfi_directive=yes
22448 fi
22449 ;;
22450 *-*-*)
22451 gcc_cv_as_cfi_directive=yes
22452 ;;
22453 esac
22454 else
22455 echo "configure: failed program was" >&5
22456 cat conftest.s >&5
22457 fi
22458 rm -f conftest.o conftest.s
22459 fi
22460 fi
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22462 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22463
22464 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22466 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22467 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22470 gcc_cv_as_cfi_advance_working=no
22471 if test x$gcc_cv_as != x; then
22472 $as_echo ' .text
22473 .cfi_startproc
22474 .cfi_adjust_cfa_offset 64
22475 .skip 75040, 0
22476 .cfi_adjust_cfa_offset 128
22477 .cfi_endproc' > conftest.s
22478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22483 test $ac_status = 0; }; }
22484 then
22485
22486 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22487 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22488 gcc_cv_as_cfi_advance_working=yes
22489 fi
22490
22491 else
22492 echo "configure: failed program was" >&5
22493 cat conftest.s >&5
22494 fi
22495 rm -f conftest.o conftest.s
22496 fi
22497 fi
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22499 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22500
22501 else
22502 # no objdump, err on the side of caution
22503 gcc_cv_as_cfi_advance_working=no
22504 fi
22505
22506
22507 cat >>confdefs.h <<_ACEOF
22508 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22509 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22510 _ACEOF
22511
22512
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22515 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22516 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gcc_cv_as_cfi_personality_directive=no
22520 if test x$gcc_cv_as != x; then
22521 $as_echo ' .text
22522 .cfi_startproc
22523 .cfi_personality 0, symbol
22524 .cfi_endproc' > conftest.s
22525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22531 then
22532 gcc_cv_as_cfi_personality_directive=yes
22533 else
22534 echo "configure: failed program was" >&5
22535 cat conftest.s >&5
22536 fi
22537 rm -f conftest.o conftest.s
22538 fi
22539 fi
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22541 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22542
22543
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22546 then echo 1; else echo 0; fi`
22547 _ACEOF
22548
22549
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22551 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22552 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22553 $as_echo_n "(cached) " >&6
22554 else
22555 gcc_cv_as_cfi_sections_directive=no
22556 if test x$gcc_cv_as != x; then
22557 $as_echo ' .text
22558 .cfi_sections .debug_frame, .eh_frame
22559 .cfi_startproc
22560 .cfi_endproc' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 case $target_os in
22569 win32 | pe | cygwin* | mingw32* | uwin*)
22570 # Need to check that we generated the correct relocation for the
22571 # .debug_frame section. This was fixed for binutils 2.21.
22572 gcc_cv_as_cfi_sections_directive=no
22573 if test "x$gcc_cv_objdump" != x; then
22574 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22575 grep secrel > /dev/null; then
22576 gcc_cv_as_cfi_sections_directive=yes
22577 fi
22578 fi
22579 ;;
22580 *)
22581 gcc_cv_as_cfi_sections_directive=yes
22582 ;;
22583 esac
22584 else
22585 echo "configure: failed program was" >&5
22586 cat conftest.s >&5
22587 fi
22588 rm -f conftest.o conftest.s
22589 fi
22590 fi
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22592 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22593
22594
22595
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22598 then echo 1; else echo 0; fi`
22599 _ACEOF
22600
22601
22602 # GAS versions up to and including 2.11.0 may mis-optimize
22603 # .eh_frame data.
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22605 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22606 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 gcc_cv_as_eh_frame=no
22610 if test $in_tree_gas = yes; then
22611 if test $in_tree_gas_is_elf = yes \
22612 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22613 then gcc_cv_as_eh_frame=yes
22614 fi
22615 elif test x$gcc_cv_as != x; then
22616 $as_echo ' .text
22617 .LFB1:
22618 .4byte 0
22619 .L1:
22620 .4byte 0
22621 .LFE1:
22622 .section .eh_frame,"aw",@progbits
22623 __FRAME_BEGIN__:
22624 .4byte .LECIE1-.LSCIE1
22625 .LSCIE1:
22626 .4byte 0x0
22627 .byte 0x1
22628 .ascii "z\0"
22629 .byte 0x1
22630 .byte 0x78
22631 .byte 0x1a
22632 .byte 0x0
22633 .byte 0x4
22634 .4byte 1
22635 .p2align 1
22636 .LECIE1:
22637 .LSFDE1:
22638 .4byte .LEFDE1-.LASFDE1
22639 .LASFDE1:
22640 .4byte .LASFDE1-__FRAME_BEGIN__
22641 .4byte .LFB1
22642 .4byte .LFE1-.LFB1
22643 .byte 0x4
22644 .4byte .LFE1-.LFB1
22645 .byte 0x4
22646 .4byte .L1-.LFB1
22647 .LEFDE1:' > conftest.s
22648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22653 test $ac_status = 0; }; }
22654 then
22655 cat > conftest.lit <<EOF
22656 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22657 0010 01000000 12000000 18000000 00000000 ................
22658 0020 08000000 04080000 0044 .........D
22659 EOF
22660 cat > conftest.big <<EOF
22661 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22662 0010 00000001 00000012 00000018 00000000 ................
22663 0020 00000008 04000000 0844 .........D
22664 EOF
22665 # If the assembler didn't choke, and we can objdump,
22666 # and we got the correct data, then succeed.
22667 # The text in the here-document typically retains its unix-style line
22668 # endings, while the output of objdump will use host line endings.
22669 # Therefore, use diff -b for the comparisons.
22670 if test x$gcc_cv_objdump != x \
22671 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22672 | tail -3 > conftest.got \
22673 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22674 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22675 then
22676 gcc_cv_as_eh_frame=yes
22677 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22682 test $ac_status = 0; }; }; then
22683 gcc_cv_as_eh_frame=buggy
22684 else
22685 # Uh oh, what do we do now?
22686 gcc_cv_as_eh_frame=no
22687 fi
22688 else
22689 echo "configure: failed program was" >&5
22690 cat conftest.s >&5
22691 fi
22692 rm -f conftest.o conftest.s
22693 fi
22694 fi
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22696 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22697
22698
22699 if test $gcc_cv_as_eh_frame = buggy; then
22700
22701 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22702
22703 fi
22704
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22706 $as_echo_n "checking assembler for section merging support... " >&6; }
22707 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 gcc_cv_as_shf_merge=no
22711 if test $in_tree_gas = yes; then
22712 if test $in_tree_gas_is_elf = yes \
22713 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22714 then gcc_cv_as_shf_merge=yes
22715 fi
22716 elif test x$gcc_cv_as != x; then
22717 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723 test $ac_status = 0; }; }
22724 then
22725 gcc_cv_as_shf_merge=yes
22726 else
22727 echo "configure: failed program was" >&5
22728 cat conftest.s >&5
22729 fi
22730 rm -f conftest.o conftest.s
22731 fi
22732 fi
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22734 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22735
22736 if test $gcc_cv_as_shf_merge = no; then
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22738 $as_echo_n "checking assembler for section merging support... " >&6; }
22739 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 gcc_cv_as_shf_merge=no
22743 if test $in_tree_gas = yes; then
22744 if test $in_tree_gas_is_elf = yes \
22745 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22746 then gcc_cv_as_shf_merge=yes
22747 fi
22748 elif test x$gcc_cv_as != x; then
22749 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22755 test $ac_status = 0; }; }
22756 then
22757 gcc_cv_as_shf_merge=yes
22758 else
22759 echo "configure: failed program was" >&5
22760 cat conftest.s >&5
22761 fi
22762 rm -f conftest.o conftest.s
22763 fi
22764 fi
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22766 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22767
22768 fi
22769
22770 cat >>confdefs.h <<_ACEOF
22771 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22772 _ACEOF
22773
22774
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22776 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22777 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22778 $as_echo_n "(cached) " >&6
22779 else
22780 gcc_cv_as_comdat_group=no
22781 if test $in_tree_gas = yes; then
22782 if test $in_tree_gas_is_elf = yes \
22783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22784 then gcc_cv_as_comdat_group=yes
22785 fi
22786 elif test x$gcc_cv_as != x; then
22787 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22793 test $ac_status = 0; }; }
22794 then
22795 gcc_cv_as_comdat_group=yes
22796 else
22797 echo "configure: failed program was" >&5
22798 cat conftest.s >&5
22799 fi
22800 rm -f conftest.o conftest.s
22801 fi
22802 fi
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22804 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22805
22806 if test $gcc_cv_as_comdat_group = yes; then
22807 gcc_cv_as_comdat_group_percent=no
22808 gcc_cv_as_comdat_group_group=no
22809 else
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22811 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22812 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22813 $as_echo_n "(cached) " >&6
22814 else
22815 gcc_cv_as_comdat_group_percent=no
22816 if test $in_tree_gas = yes; then
22817 if test $in_tree_gas_is_elf = yes \
22818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22819 then gcc_cv_as_comdat_group_percent=yes
22820 fi
22821 elif test x$gcc_cv_as != x; then
22822 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22825 (eval $ac_try) 2>&5
22826 ac_status=$?
22827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22828 test $ac_status = 0; }; }
22829 then
22830 gcc_cv_as_comdat_group_percent=yes
22831 else
22832 echo "configure: failed program was" >&5
22833 cat conftest.s >&5
22834 fi
22835 rm -f conftest.o conftest.s
22836 fi
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22839 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22840
22841 if test $gcc_cv_as_comdat_group_percent = yes; then
22842 gcc_cv_as_comdat_group_group=no
22843 else
22844 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22845 gcc_cv_as_comdat_group_group=no
22846 fi
22847 case "${target}" in
22848 # Sun as uses a completely different syntax.
22849 *-*-solaris2*)
22850 case "${target}" in
22851 sparc*-*-solaris2*)
22852 conftest_s='
22853 .group foo,".text%foo",#comdat
22854 .section ".text%foo", #alloc,#execinstr,#progbits
22855 .globl foo
22856 foo:
22857 '
22858 ;;
22859 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22860 conftest_s='
22861 .group foo,.text%foo,#comdat
22862 .section .text%foo, "ax", @progbits
22863 .globl foo
22864 foo:
22865 '
22866 ;;
22867 esac
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22869 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22870 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 gcc_cv_as_comdat_group_group=no
22874 if test x$gcc_cv_as != x; then
22875 $as_echo "$conftest_s" > conftest.s
22876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22882 then
22883 gcc_cv_as_comdat_group_group=yes
22884 else
22885 echo "configure: failed program was" >&5
22886 cat conftest.s >&5
22887 fi
22888 rm -f conftest.o conftest.s
22889 fi
22890 fi
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22892 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22893
22894 ;;
22895 esac
22896 fi
22897 fi
22898 if test x"$ld_is_gold" = xyes; then
22899 comdat_group=yes
22900 elif test $in_tree_ld = yes ; then
22901 comdat_group=no
22902 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 \
22903 && test $in_tree_ld_is_elf = yes; then
22904 comdat_group=yes
22905 fi
22906 elif echo "$ld_ver" | grep GNU > /dev/null; then
22907 comdat_group=yes
22908 if test 0"$ld_date" -lt 20050308; then
22909 if test -n "$ld_date"; then
22910 # If there was date string, but was earlier than 2005-03-08, fail
22911 comdat_group=no
22912 elif test "$ld_vers_major" -lt 2; then
22913 comdat_group=no
22914 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22915 comdat_group=no
22916 fi
22917 fi
22918 else
22919 case "${target}" in
22920 *-*-solaris2.1[1-9]*)
22921 comdat_group=no
22922 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22923 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22924 # version 1.688.
22925 #
22926 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22927 # least ld version 1.2267.
22928 if test "$ld_vers_major" -gt 1; then
22929 comdat_group=yes
22930 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22931 comdat_group=yes
22932 elif test "$ld_vers_minor" -ge 2267; then
22933 comdat_group=yes
22934 fi
22935 ;;
22936 *)
22937 # Assume linkers other than GNU ld don't support COMDAT group.
22938 comdat_group=no
22939 ;;
22940 esac
22941 fi
22942 # Allow overriding the automatic COMDAT group tests above.
22943 # Check whether --enable-comdat was given.
22944 if test "${enable_comdat+set}" = set; then :
22945 enableval=$enable_comdat; comdat_group="$enable_comdat"
22946 fi
22947
22948 if test $comdat_group = no; then
22949 gcc_cv_as_comdat_group=no
22950 gcc_cv_as_comdat_group_percent=no
22951 gcc_cv_as_comdat_group_group=no
22952 fi
22953
22954 cat >>confdefs.h <<_ACEOF
22955 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22956 || test $gcc_cv_as_comdat_group_percent = yes \
22957 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22958 _ACEOF
22959
22960
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22962 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22963 if test "${gcc_cv_as_discriminator+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22965 else
22966 gcc_cv_as_discriminator=no
22967 if test $in_tree_gas = yes; then
22968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22969 then gcc_cv_as_discriminator=yes
22970 fi
22971 elif test x$gcc_cv_as != x; then
22972 $as_echo ' .text
22973 .file 1 "conf.c"
22974 .loc 1 1 0 discriminator 1' > conftest.s
22975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22977 (eval $ac_try) 2>&5
22978 ac_status=$?
22979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22980 test $ac_status = 0; }; }
22981 then
22982 gcc_cv_as_discriminator=yes
22983 else
22984 echo "configure: failed program was" >&5
22985 cat conftest.s >&5
22986 fi
22987 rm -f conftest.o conftest.s
22988 fi
22989 fi
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22991 $as_echo "$gcc_cv_as_discriminator" >&6; }
22992 if test $gcc_cv_as_discriminator = yes; then
22993
22994 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22995
22996 fi
22997
22998 # Thread-local storage - the check is heavily parameterized.
22999 conftest_s=
23000 tls_first_major=
23001 tls_first_minor=
23002 tls_as_opt=
23003 case "$target" in
23004 alpha*-*-*)
23005 conftest_s='
23006 .section ".tdata","awT",@progbits
23007 foo: .long 25
23008 .text
23009 ldq $27,__tls_get_addr($29) !literal!1
23010 lda $16,foo($29) !tlsgd!1
23011 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23012 ldq $27,__tls_get_addr($29) !literal!2
23013 lda $16,foo($29) !tlsldm!2
23014 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23015 ldq $1,foo($29) !gotdtprel
23016 ldah $2,foo($29) !dtprelhi
23017 lda $3,foo($2) !dtprello
23018 lda $4,foo($29) !dtprel
23019 ldq $1,foo($29) !gottprel
23020 ldah $2,foo($29) !tprelhi
23021 lda $3,foo($2) !tprello
23022 lda $4,foo($29) !tprel'
23023 tls_first_major=2
23024 tls_first_minor=13
23025 tls_as_opt=--fatal-warnings
23026 ;;
23027 cris-*-*|crisv32-*-*)
23028 conftest_s='
23029 .section ".tdata","awT",@progbits
23030 x: .long 25
23031 .text
23032 move.d x:IE,$r10
23033 nop'
23034 tls_first_major=2
23035 tls_first_minor=20
23036 tls_as_opt=--fatal-warnings
23037 ;;
23038 frv*-*-*)
23039 conftest_s='
23040 .section ".tdata","awT",@progbits
23041 x: .long 25
23042 .text
23043 call #gettlsoff(x)'
23044 tls_first_major=2
23045 tls_first_minor=14
23046 ;;
23047 hppa*-*-linux*)
23048 conftest_s='
23049 t1: .reg %r20
23050 t2: .reg %r21
23051 gp: .reg %r19
23052 .section ".tdata","awT",@progbits
23053 foo: .long 25
23054 .text
23055 .align 4
23056 addil LT%foo-$tls_gdidx$,gp
23057 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23058 b __tls_get_addr
23059 nop
23060 addil LT%foo-$tls_ldidx$,gp
23061 b __tls_get_addr
23062 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23063 addil LR%foo-$tls_dtpoff$,%ret0
23064 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23065 mfctl %cr27,%t1
23066 addil LT%foo-$tls_ieoff$,gp
23067 ldw RT%foo-$tls_ieoff$(%r1),%t2
23068 add %t1,%t2,%t3
23069 mfctl %cr27,%t1
23070 addil LR%foo-$tls_leoff$,%t1
23071 ldo RR%foo-$tls_leoff$(%r1),%t2'
23072 tls_first_major=2
23073 tls_first_minor=15
23074 tls_as_opt=--fatal-warnings
23075 ;;
23076 arm*-*-*)
23077 conftest_s='
23078 .section ".tdata","awT",%progbits
23079 foo: .long 25
23080 .text
23081 .word foo(gottpoff)
23082 .word foo(tpoff)
23083 .word foo(tlsgd)
23084 .word foo(tlsldm)
23085 .word foo(tlsldo)'
23086 tls_first_major=2
23087 tls_first_minor=17
23088 ;;
23089 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23090 case "$target" in
23091 i[34567]86-*-solaris2.*)
23092 on_solaris=yes
23093 tga_func=___tls_get_addr
23094 ;;
23095 x86_64-*-solaris2.1[0-9]*)
23096 on_solaris=yes
23097 tga_func=__tls_get_addr
23098 ;;
23099 *)
23100 on_solaris=no
23101 ;;
23102 esac
23103 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23104 conftest_s='
23105 .section .tdata,"awt",@progbits'
23106 tls_first_major=0
23107 tls_first_minor=0
23108
23109 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23110
23111 else
23112 conftest_s='
23113 .section ".tdata","awT",@progbits'
23114 tls_first_major=2
23115 tls_first_minor=14
23116 tls_as_opt="--fatal-warnings"
23117 fi
23118 conftest_s="$conftest_s
23119 foo: .long 25
23120 .text
23121 movl %gs:0, %eax
23122 leal foo@tlsgd(,%ebx,1), %eax
23123 leal foo@tlsldm(%ebx), %eax
23124 leal foo@dtpoff(%eax), %edx
23125 movl foo@gottpoff(%ebx), %eax
23126 subl foo@gottpoff(%ebx), %eax
23127 addl foo@gotntpoff(%ebx), %eax
23128 movl foo@indntpoff, %eax
23129 movl \$foo@tpoff, %eax
23130 subl \$foo@tpoff, %eax
23131 leal foo@ntpoff(%ecx), %eax"
23132 ;;
23133 x86_64-*-*)
23134 conftest_s='
23135 .section ".tdata","awT",@progbits
23136 foo: .long 25
23137 .text
23138 movq %fs:0, %rax
23139 leaq foo@TLSGD(%rip), %rdi
23140 leaq foo@TLSLD(%rip), %rdi
23141 leaq foo@DTPOFF(%rax), %rdx
23142 movq foo@GOTTPOFF(%rip), %rax
23143 movq $foo@TPOFF, %rax'
23144 tls_first_major=2
23145 tls_first_minor=14
23146 tls_as_opt=--fatal-warnings
23147 ;;
23148 ia64-*-*)
23149 conftest_s='
23150 .section ".tdata","awT",@progbits
23151 foo: data8 25
23152 .text
23153 addl r16 = @ltoff(@dtpmod(foo#)), gp
23154 addl r17 = @ltoff(@dtprel(foo#)), gp
23155 addl r18 = @ltoff(@tprel(foo#)), gp
23156 addl r19 = @dtprel(foo#), gp
23157 adds r21 = @dtprel(foo#), r13
23158 movl r23 = @dtprel(foo#)
23159 addl r20 = @tprel(foo#), gp
23160 adds r22 = @tprel(foo#), r13
23161 movl r24 = @tprel(foo#)'
23162 tls_first_major=2
23163 tls_first_minor=13
23164 tls_as_opt=--fatal-warnings
23165 ;;
23166 mips*-*-*)
23167 conftest_s='
23168 .section .tdata,"awT",@progbits
23169 x:
23170 .word 2
23171 .text
23172 addiu $4, $28, %tlsgd(x)
23173 addiu $4, $28, %tlsldm(x)
23174 lui $4, %dtprel_hi(x)
23175 addiu $4, $4, %dtprel_lo(x)
23176 lw $4, %gottprel(x)($28)
23177 lui $4, %tprel_hi(x)
23178 addiu $4, $4, %tprel_lo(x)'
23179 tls_first_major=2
23180 tls_first_minor=16
23181 tls_as_opt='-32 --fatal-warnings'
23182 ;;
23183 m68k-*-*)
23184 conftest_s='
23185 .section .tdata,"awT",@progbits
23186 x:
23187 .word 2
23188 .text
23189 foo:
23190 move.l x@TLSGD(%a5),%a0
23191 move.l x@TLSLDM(%a5),%a0
23192 move.l x@TLSLDO(%a5),%a0
23193 move.l x@TLSIE(%a5),%a0
23194 move.l x@TLSLE(%a5),%a0'
23195 tls_first_major=2
23196 tls_first_minor=19
23197 tls_as_opt='--fatal-warnings'
23198 ;;
23199 aarch64*-*-*)
23200 conftest_s='
23201 .section ".tdata","awT",%progbits
23202 foo: .long 25
23203 .text
23204 adrp x0, :tlsgd:x
23205 add x0, x0, #:tlsgd_lo12:x
23206 bl __tls_get_addr
23207 nop'
23208 tls_first_major=2
23209 tls_first_minor=20
23210 tls_as_opt='--fatal-warnings'
23211 ;;
23212 powerpc-*-*)
23213 conftest_s='
23214 .section ".tdata","awT",@progbits
23215 .align 2
23216 ld0: .space 4
23217 ld1: .space 4
23218 x1: .space 4
23219 x2: .space 4
23220 x3: .space 4
23221 .text
23222 addi 3,31,ld0@got@tlsgd
23223 bl __tls_get_addr
23224 addi 3,31,x1@got@tlsld
23225 bl __tls_get_addr
23226 addi 9,3,x1@dtprel
23227 addis 9,3,x2@dtprel@ha
23228 addi 9,9,x2@dtprel@l
23229 lwz 9,x3@got@tprel(31)
23230 add 9,9,x@tls
23231 addi 9,2,x1@tprel
23232 addis 9,2,x2@tprel@ha
23233 addi 9,9,x2@tprel@l'
23234 tls_first_major=2
23235 tls_first_minor=14
23236 tls_as_opt="-a32 --fatal-warnings"
23237 ;;
23238 powerpc64-*-*)
23239 conftest_s='
23240 .section ".tdata","awT",@progbits
23241 .align 3
23242 ld0: .space 8
23243 ld1: .space 8
23244 x1: .space 8
23245 x2: .space 8
23246 x3: .space 8
23247 .text
23248 addi 3,2,ld0@got@tlsgd
23249 bl .__tls_get_addr
23250 nop
23251 addi 3,2,ld1@toc
23252 bl .__tls_get_addr
23253 nop
23254 addi 3,2,x1@got@tlsld
23255 bl .__tls_get_addr
23256 nop
23257 addi 9,3,x1@dtprel
23258 bl .__tls_get_addr
23259 nop
23260 addis 9,3,x2@dtprel@ha
23261 addi 9,9,x2@dtprel@l
23262 bl .__tls_get_addr
23263 nop
23264 ld 9,x3@got@dtprel(2)
23265 add 9,9,3
23266 bl .__tls_get_addr
23267 nop'
23268 tls_first_major=2
23269 tls_first_minor=14
23270 tls_as_opt="-a64 --fatal-warnings"
23271 ;;
23272 s390-*-*)
23273 conftest_s='
23274 .section ".tdata","awT",@progbits
23275 foo: .long 25
23276 .text
23277 .long foo@TLSGD
23278 .long foo@TLSLDM
23279 .long foo@DTPOFF
23280 .long foo@NTPOFF
23281 .long foo@GOTNTPOFF
23282 .long foo@INDNTPOFF
23283 l %r1,foo@GOTNTPOFF(%r12)
23284 l %r1,0(%r1):tls_load:foo
23285 bas %r14,0(%r1,%r13):tls_gdcall:foo
23286 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23287 tls_first_major=2
23288 tls_first_minor=14
23289 tls_as_opt="-m31 --fatal-warnings"
23290 ;;
23291 s390x-*-*)
23292 conftest_s='
23293 .section ".tdata","awT",@progbits
23294 foo: .long 25
23295 .text
23296 .quad foo@TLSGD
23297 .quad foo@TLSLDM
23298 .quad foo@DTPOFF
23299 .quad foo@NTPOFF
23300 .quad foo@GOTNTPOFF
23301 lg %r1,foo@GOTNTPOFF(%r12)
23302 larl %r1,foo@INDNTPOFF
23303 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23304 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23305 tls_first_major=2
23306 tls_first_minor=14
23307 tls_as_opt="-m64 -Aesame --fatal-warnings"
23308 ;;
23309 sh-*-* | sh[34]-*-*)
23310 conftest_s='
23311 .section ".tdata","awT",@progbits
23312 foo: .long 25
23313 .text
23314 .long foo@TLSGD
23315 .long foo@TLSLDM
23316 .long foo@DTPOFF
23317 .long foo@GOTTPOFF
23318 .long foo@TPOFF'
23319 tls_first_major=2
23320 tls_first_minor=13
23321 tls_as_opt=--fatal-warnings
23322 ;;
23323 sparc*-*-*)
23324 case "$target" in
23325 sparc*-sun-solaris2.*)
23326 on_solaris=yes
23327 tga_func=__tls_get_addr
23328 ;;
23329 *)
23330 on_solaris=no
23331 ;;
23332 esac
23333 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23334 conftest_s='
23335 .section ".tdata",#alloc,#write,#tls'
23336 tls_first_major=0
23337 tls_first_minor=0
23338 else
23339 conftest_s='
23340 .section ".tdata","awT",@progbits'
23341 tls_first_major=2
23342 tls_first_minor=14
23343 tls_as_opt="-32 --fatal-warnings"
23344 fi
23345 conftest_s="$conftest_s
23346 foo: .long 25
23347 .text
23348 sethi %tgd_hi22(foo), %o0
23349 add %o0, %tgd_lo10(foo), %o1
23350 add %l7, %o1, %o0, %tgd_add(foo)
23351 call __tls_get_addr, %tgd_call(foo)
23352 sethi %tldm_hi22(foo), %l1
23353 add %l1, %tldm_lo10(foo), %l2
23354 add %l7, %l2, %o0, %tldm_add(foo)
23355 call __tls_get_addr, %tldm_call(foo)
23356 sethi %tldo_hix22(foo), %l3
23357 xor %l3, %tldo_lox10(foo), %l4
23358 add %o0, %l4, %l5, %tldo_add(foo)
23359 sethi %tie_hi22(foo), %o3
23360 add %o3, %tie_lo10(foo), %o3
23361 ld [%l7 + %o3], %o2, %tie_ld(foo)
23362 add %g7, %o2, %o4, %tie_add(foo)
23363 sethi %tle_hix22(foo), %l1
23364 xor %l1, %tle_lox10(foo), %o5
23365 ld [%g7 + %o5], %o1"
23366 ;;
23367 tilepro*-*-*)
23368 conftest_s='
23369 .section ".tdata","awT",@progbits
23370 foo: .long 25
23371 .text
23372 addli r0, zero, tls_gd(foo)
23373 auli r0, zero, tls_gd_ha16(foo)
23374 addli r0, r0, tls_gd_lo16(foo)
23375 jal __tls_get_addr
23376 addli r0, zero, tls_ie(foo)
23377 auli r0, r0, tls_ie_ha16(foo)
23378 addli r0, r0, tls_ie_lo16(foo)'
23379 tls_first_major=2
23380 tls_first_minor=22
23381 tls_as_opt="--fatal-warnings"
23382 ;;
23383 tilegx*-*-*)
23384 conftest_s='
23385 .section ".tdata","awT",@progbits
23386 foo: .long 25
23387 .text
23388 shl16insli r0, zero, hw0_last_tls_gd(foo)
23389 shl16insli r0, zero, hw1_last_tls_gd(foo)
23390 shl16insli r0, r0, hw0_tls_gd(foo)
23391 jal __tls_get_addr
23392 shl16insli r0, zero, hw1_last_tls_ie(foo)
23393 shl16insli r0, r0, hw0_tls_ie(foo)'
23394 tls_first_major=2
23395 tls_first_minor=22
23396 tls_as_opt="--fatal-warnings"
23397 ;;
23398 xtensa*-*-*)
23399 conftest_s='
23400 .section ".tdata","awT",@progbits
23401 foo: .long 25
23402 .text
23403 movi a8, foo@TLSFUNC
23404 movi a10, foo@TLSARG
23405 callx8.tls a8, foo@TLSCALL'
23406 tls_first_major=2
23407 tls_first_minor=19
23408 ;;
23409 esac
23410 set_have_as_tls=no
23411 if test "x$enable_tls" = xno ; then
23412 : # TLS explicitly disabled.
23413 elif test "x$enable_tls" = xyes ; then
23414 set_have_as_tls=yes # TLS explicitly enabled.
23415 elif test -z "$tls_first_major"; then
23416 : # If we don't have a check, assume no support.
23417 else
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23419 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23420 if test "${gcc_cv_as_tls+set}" = set; then :
23421 $as_echo_n "(cached) " >&6
23422 else
23423 gcc_cv_as_tls=no
23424 if test $in_tree_gas = yes; then
23425 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23426 then gcc_cv_as_tls=yes
23427 fi
23428 elif test x$gcc_cv_as != x; then
23429 $as_echo "$conftest_s" > conftest.s
23430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23435 test $ac_status = 0; }; }
23436 then
23437 gcc_cv_as_tls=yes
23438 else
23439 echo "configure: failed program was" >&5
23440 cat conftest.s >&5
23441 fi
23442 rm -f conftest.o conftest.s
23443 fi
23444 fi
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23446 $as_echo "$gcc_cv_as_tls" >&6; }
23447 if test $gcc_cv_as_tls = yes; then
23448 set_have_as_tls=yes
23449 fi
23450 fi
23451 case "$target" in
23452 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23453 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23454 # Sun style that Sun ld and GCC don't support any longer.
23455 *-*-solaris2.*)
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23457 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23458 ld_tls_support=no
23459 # Check ld and ld.so.1 TLS support.
23460 if echo "$ld_ver" | grep GNU > /dev/null; then
23461 # Assume all interesting versions of GNU ld have TLS support.
23462 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23463 ld_tls_support=yes
23464 else
23465 case "$target" in
23466 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23467 i?86-*-solaris2.9)
23468 min_tls_ld_vers_minor=374
23469 ;;
23470 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23471 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23472 min_tls_ld_vers_minor=343
23473 ;;
23474 esac
23475 if test "$ld_vers_major" -gt 1 || \
23476 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23477 ld_tls_support=yes
23478 else
23479 set_have_as_tls=no
23480 fi
23481 fi
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23483 $as_echo "$ld_tls_support" >&6; }
23484
23485 save_LIBS="$LIBS"
23486 save_LDFLAGS="$LDFLAGS"
23487 LIBS=
23488 LDFLAGS=
23489
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23491 $as_echo_n "checking library containing $tga_func... " >&6; }
23492 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23493 # (32-bit x86) only lived in libthread, so check for that. Keep
23494 # set_have_as_tls if found, disable if not.
23495 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23497 $as_echo_n "checking for library containing $tga_func... " >&6; }
23498 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23499 $as_echo_n "(cached) " >&6
23500 else
23501 ac_func_search_save_LIBS=$LIBS
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23504
23505 /* Override any GCC internal prototype to avoid an error.
23506 Use char because int might match the return type of a GCC
23507 builtin and then its argument prototype would still apply. */
23508 #ifdef __cplusplus
23509 extern "C"
23510 #endif
23511 char $tga_func ();
23512 int
23513 main ()
23514 {
23515 return $tga_func ();
23516 ;
23517 return 0;
23518 }
23519 _ACEOF
23520 for ac_lib in '' thread; do
23521 if test -z "$ac_lib"; then
23522 ac_res="none required"
23523 else
23524 ac_res=-l$ac_lib
23525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23526 fi
23527 if ac_fn_c_try_link "$LINENO"; then :
23528 eval "$as_ac_Search=\$ac_res"
23529 fi
23530 rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext
23532 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23533 break
23534 fi
23535 done
23536 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23537
23538 else
23539 eval "$as_ac_Search=no"
23540 fi
23541 rm conftest.$ac_ext
23542 LIBS=$ac_func_search_save_LIBS
23543 fi
23544 eval ac_res=\$$as_ac_Search
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23546 $as_echo "$ac_res" >&6; }
23547 eval ac_res=\$$as_ac_Search
23548 if test "$ac_res" != no; then :
23549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23550
23551 else
23552 set_have_as_tls=no
23553 fi
23554
23555 # Clear LIBS if we cannot support TLS.
23556 if test $set_have_as_tls = no; then
23557 LIBS=
23558 fi
23559 # Always define LIB_TLS_SPEC, even without TLS support.
23560
23561 cat >>confdefs.h <<_ACEOF
23562 #define LIB_TLS_SPEC "$LIBS"
23563 _ACEOF
23564
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23566 $as_echo "$LIBS" >&6; }
23567
23568 LIBS="$save_LIBS"
23569 LDFLAGS="$save_LDFLAGS"
23570 ;;
23571 esac
23572 if test $set_have_as_tls = yes ; then
23573
23574 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23575
23576 fi
23577
23578 # Target-specific assembler checks.
23579
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23581 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23582 gcc_cv_ld_static_dynamic=no
23583 gcc_cv_ld_static_option='-Bstatic'
23584 gcc_cv_ld_dynamic_option='-Bdynamic'
23585 if test $in_tree_ld = yes ; then
23586 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
23587 gcc_cv_ld_static_dynamic=yes
23588 fi
23589 elif test x$gcc_cv_ld != x; then
23590 # Check if linker supports -Bstatic/-Bdynamic option
23591 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23592 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23593 gcc_cv_ld_static_dynamic=yes
23594 else
23595 case "$target" in
23596 # HP-UX ld uses -a flags to select between shared and archive.
23597 *-*-hpux*)
23598 if test x"$gnu_ld" = xno; then
23599 gcc_cv_ld_static_dynamic=yes
23600 gcc_cv_ld_static_option="-aarchive_shared"
23601 gcc_cv_ld_dynamic_option="-adefault"
23602 fi
23603 ;;
23604 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23605 *-*-solaris2*)
23606 gcc_cv_ld_static_dynamic=yes
23607 ;;
23608 esac
23609 fi
23610 fi
23611 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23612
23613 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23614
23615
23616 cat >>confdefs.h <<_ACEOF
23617 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23618 _ACEOF
23619
23620
23621 cat >>confdefs.h <<_ACEOF
23622 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23623 _ACEOF
23624
23625 fi
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23627 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23628
23629 if test x"$demangler_in_ld" = xyes; then
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23631 $as_echo_n "checking linker --demangle support... " >&6; }
23632 gcc_cv_ld_demangle=no
23633 if test $in_tree_ld = yes; then
23634 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 \
23635 gcc_cv_ld_demangle=yes
23636 fi
23637 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23638 # Check if the GNU linker supports --demangle option
23639 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23640 gcc_cv_ld_demangle=yes
23641 fi
23642 fi
23643 if test x"$gcc_cv_ld_demangle" = xyes; then
23644
23645 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23646
23647 fi
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23649 $as_echo "$gcc_cv_ld_demangle" >&6; }
23650 fi
23651
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23653 $as_echo_n "checking linker plugin support... " >&6; }
23654 gcc_cv_lto_plugin=0
23655 if test -f liblto_plugin.la; then
23656 save_ld_ver="$ld_ver"
23657 save_ld_vers_major="$ld_vers_major"
23658 save_ld_vers_minor="$ld_vers_minor"
23659 save_ld_is_gold="$ld_is_gold"
23660
23661 ld_is_gold=no
23662
23663 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23664 ld_ver="GNU ld"
23665 # FIXME: ld_is_gold?
23666 ld_vers_major="$gcc_cv_gld_major_version"
23667 ld_vers_minor="$gcc_cv_gld_minor_version"
23668 else
23669 # Determine plugin linker version.
23670 # FIXME: Partial duplicate from above, generalize.
23671 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23672 if echo "$ld_ver" | grep GNU > /dev/null; then
23673 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23674 ld_is_gold=yes
23675 ld_vers=`echo $ld_ver | sed -n \
23676 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23677 else
23678 ld_vers=`echo $ld_ver | sed -n \
23679 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23680 fi
23681 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23682 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23683 fi
23684 fi
23685
23686 # Determine plugin support.
23687 if echo "$ld_ver" | grep GNU > /dev/null; then
23688 # Require GNU ld or gold 2.21+ for plugin support by default.
23689 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23690 gcc_cv_lto_plugin=2
23691 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23692 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23693 gcc_cv_lto_plugin=1
23694 fi
23695 fi
23696
23697 ld_ver="$save_ld_ver"
23698 ld_vers_major="$save_ld_vers_major"
23699 ld_vers_minor="$save_ld_vers_minor"
23700 ld_is_gold="$save_ld_is_gold"
23701 fi
23702
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23705 _ACEOF
23706
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23708 $as_echo "$gcc_cv_lto_plugin" >&6; }
23709
23710 case "$target" in
23711 # All TARGET_ABI_OSF targets.
23712 alpha*-*-linux* | alpha*-*-*bsd*)
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23714 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23715 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23717 else
23718 gcc_cv_as_alpha_explicit_relocs=no
23719 if test $in_tree_gas = yes; then
23720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23721 then gcc_cv_as_alpha_explicit_relocs=yes
23722 fi
23723 elif test x$gcc_cv_as != x; then
23724 $as_echo ' .set nomacro
23725 .text
23726 extbl $3, $2, $3 !lituse_bytoff!1
23727 ldq $2, a($29) !literal!1
23728 ldq $4, b($29) !literal!2
23729 ldq_u $3, 0($2) !lituse_base!1
23730 ldq $27, f($29) !literal!5
23731 jsr $26, ($27), f !lituse_jsr!5
23732 ldah $29, 0($26) !gpdisp!3
23733 lda $0, c($29) !gprel
23734 ldah $1, d($29) !gprelhigh
23735 lda $1, d($1) !gprellow
23736 lda $29, 0($29) !gpdisp!3' > conftest.s
23737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23742 test $ac_status = 0; }; }
23743 then
23744 gcc_cv_as_alpha_explicit_relocs=yes
23745 else
23746 echo "configure: failed program was" >&5
23747 cat conftest.s >&5
23748 fi
23749 rm -f conftest.o conftest.s
23750 fi
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23753 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23754 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23755
23756 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23757
23758 fi
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23760 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23761 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 gcc_cv_as_alpha_jsrdirect_relocs=no
23765 if test $in_tree_gas = yes; then
23766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23767 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23768 fi
23769 elif test x$gcc_cv_as != x; then
23770 $as_echo ' .set nomacro
23771 .text
23772 ldq $27, a($29) !literal!1
23773 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23780 then
23781 gcc_cv_as_alpha_jsrdirect_relocs=yes
23782 else
23783 echo "configure: failed program was" >&5
23784 cat conftest.s >&5
23785 fi
23786 rm -f conftest.o conftest.s
23787 fi
23788 fi
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23790 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23791 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23792
23793 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23794
23795 fi
23796 ;;
23797
23798 cris-*-*)
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23800 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23801 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23803 else
23804 gcc_cv_as_cris_no_mul_bug=no
23805 if test $in_tree_gas = yes; then
23806 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23807 then gcc_cv_as_cris_no_mul_bug=yes
23808 fi
23809 elif test x$gcc_cv_as != x; then
23810 $as_echo '.text' > conftest.s
23811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23817 then
23818 gcc_cv_as_cris_no_mul_bug=yes
23819 else
23820 echo "configure: failed program was" >&5
23821 cat conftest.s >&5
23822 fi
23823 rm -f conftest.o conftest.s
23824 fi
23825 fi
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23827 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23828 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23829
23830 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23831
23832 fi
23833 ;;
23834
23835 sparc*-*-*)
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23837 $as_echo_n "checking assembler for .register... " >&6; }
23838 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23839 $as_echo_n "(cached) " >&6
23840 else
23841 gcc_cv_as_sparc_register_op=no
23842 if test x$gcc_cv_as != x; then
23843 $as_echo '.register %g2, #scratch' > conftest.s
23844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23849 test $ac_status = 0; }; }
23850 then
23851 gcc_cv_as_sparc_register_op=yes
23852 else
23853 echo "configure: failed program was" >&5
23854 cat conftest.s >&5
23855 fi
23856 rm -f conftest.o conftest.s
23857 fi
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23860 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23861 if test $gcc_cv_as_sparc_register_op = yes; then
23862
23863 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23864
23865 fi
23866
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23868 $as_echo_n "checking assembler for -relax option... " >&6; }
23869 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23870 $as_echo_n "(cached) " >&6
23871 else
23872 gcc_cv_as_sparc_relax=no
23873 if test x$gcc_cv_as != x; then
23874 $as_echo '.text' > conftest.s
23875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23880 test $ac_status = 0; }; }
23881 then
23882 gcc_cv_as_sparc_relax=yes
23883 else
23884 echo "configure: failed program was" >&5
23885 cat conftest.s >&5
23886 fi
23887 rm -f conftest.o conftest.s
23888 fi
23889 fi
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23891 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23892 if test $gcc_cv_as_sparc_relax = yes; then
23893
23894 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23895
23896 fi
23897
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23899 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23900 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23901 $as_echo_n "(cached) " >&6
23902 else
23903 gcc_cv_as_sparc_gotdata_op=no
23904 if test x$gcc_cv_as != x; then
23905 $as_echo '.text
23906 .align 4
23907 foo:
23908 nop
23909 bar:
23910 sethi %gdop_hix22(foo), %g1
23911 xor %g1, %gdop_lox10(foo), %g1
23912 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23918 test $ac_status = 0; }; }
23919 then
23920 if test x$gcc_cv_ld != x \
23921 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23922 if test x$gcc_cv_objdump != x; then
23923 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23924 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23925 gcc_cv_as_sparc_gotdata_op=no
23926 else
23927 gcc_cv_as_sparc_gotdata_op=yes
23928 fi
23929 fi
23930 fi
23931 rm -f conftest
23932 else
23933 echo "configure: failed program was" >&5
23934 cat conftest.s >&5
23935 fi
23936 rm -f conftest.o conftest.s
23937 fi
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23940 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23941 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23942
23943 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23944
23945 fi
23946
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23948 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23949 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23950 $as_echo_n "(cached) " >&6
23951 else
23952 gcc_cv_as_sparc_ua_pcrel=no
23953 if test x$gcc_cv_as != x; then
23954 $as_echo '.text
23955 foo:
23956 nop
23957 .data
23958 .align 4
23959 .byte 0
23960 .uaword %r_disp32(foo)' > conftest.s
23961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; }
23967 then
23968 if test x$gcc_cv_ld != x \
23969 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23970 gcc_cv_as_sparc_ua_pcrel=yes
23971 fi
23972 rm -f conftest
23973 else
23974 echo "configure: failed program was" >&5
23975 cat conftest.s >&5
23976 fi
23977 rm -f conftest.o conftest.s
23978 fi
23979 fi
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23981 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23982 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23983
23984 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23985
23986
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23988 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23989 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23991 else
23992 gcc_cv_as_sparc_ua_pcrel_hidden=no
23993 if test x$gcc_cv_as != x; then
23994 $as_echo '.data
23995 .align 4
23996 .byte 0x31
23997 .uaword %r_disp32(foo)
23998 .byte 0x32, 0x33, 0x34
23999 .global foo
24000 .hidden foo
24001 foo:
24002 .skip 4' > conftest.s
24003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005 (eval $ac_try) 2>&5
24006 ac_status=$?
24007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008 test $ac_status = 0; }; }
24009 then
24010 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24011 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24012 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24013 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24014 if $gcc_cv_objdump -R conftest 2> /dev/null \
24015 | grep 'DISP32' > /dev/null 2>&1; then
24016 :
24017 else
24018 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24019 fi
24020 fi
24021 rm -f conftest
24022 else
24023 echo "configure: failed program was" >&5
24024 cat conftest.s >&5
24025 fi
24026 rm -f conftest.o conftest.s
24027 fi
24028 fi
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24030 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24031 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24032
24033 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24034
24035 fi
24036
24037 fi # unaligned pcrel relocs
24038
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24040 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24041 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24042 $as_echo_n "(cached) " >&6
24043 else
24044 gcc_cv_as_sparc_offsetable_lo10=no
24045 if test x$gcc_cv_as != x; then
24046 $as_echo '.text
24047 or %g1, %lo(ab) + 12, %g1
24048 or %g1, %lo(ab + 12), %g1' > conftest.s
24049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24055 then
24056 if test x$gcc_cv_objdump != x \
24057 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24058 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24059 gcc_cv_as_sparc_offsetable_lo10=yes
24060 fi
24061 else
24062 echo "configure: failed program was" >&5
24063 cat conftest.s >&5
24064 fi
24065 rm -f conftest.o conftest.s
24066 fi
24067 fi
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24069 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24070 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24071
24072 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24073
24074 fi
24075
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24077 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24078 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24079 $as_echo_n "(cached) " >&6
24080 else
24081 gcc_cv_as_sparc_fmaf=no
24082 if test x$gcc_cv_as != x; then
24083 $as_echo '.text
24084 .register %g2, #scratch
24085 .register %g3, #scratch
24086 .align 4
24087 fmaddd %f0, %f2, %f4, %f6
24088 addxccc %g1, %g2, %g3
24089 fsrl32 %f2, %f4, %f8
24090 fnaddd %f10, %f12, %f14' > conftest.s
24091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24097 then
24098 gcc_cv_as_sparc_fmaf=yes
24099 else
24100 echo "configure: failed program was" >&5
24101 cat conftest.s >&5
24102 fi
24103 rm -f conftest.o conftest.s
24104 fi
24105 fi
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24107 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24108 if test $gcc_cv_as_sparc_fmaf = yes; then
24109
24110 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24111
24112 fi
24113 ;;
24114
24115 i[34567]86-*-* | x86_64-*-*)
24116 case $target_os in
24117 cygwin*)
24118 # Full C++ conformance when using a shared libstdc++-v3 requires some
24119 # support from the Cygwin DLL, which in more recent versions exports
24120 # wrappers to aid in interposing and redirecting operators new, delete,
24121 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24122 # are configuring for a version of Cygwin that exports the wrappers.
24123 if test x$host = x$target; then
24124 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24125 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24126 gcc_ac_cygwin_dll_wrappers=yes
24127 else
24128 gcc_ac_cygwin_dll_wrappers=no
24129 fi
24130
24131 else
24132 # Can't check presence of libc functions during cross-compile, so
24133 # we just have to assume we're building for an up-to-date target.
24134 gcc_ac_cygwin_dll_wrappers=yes
24135 fi
24136
24137 cat >>confdefs.h <<_ACEOF
24138 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24139 _ACEOF
24140
24141 esac
24142 case $target_os in
24143 cygwin* | pe | mingw32* | interix*)
24144 # Recent binutils allows the three-operand form of ".comm" on PE. This
24145 # definition is used unconditionally to initialise the default state of
24146 # the target option variable that governs usage of the feature.
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24148 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24149 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24151 else
24152 gcc_cv_as_comm_has_align=no
24153 if test $in_tree_gas = yes; then
24154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24155 then gcc_cv_as_comm_has_align=yes
24156 fi
24157 elif test x$gcc_cv_as != x; then
24158 $as_echo '.comm foo,1,32' > conftest.s
24159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164 test $ac_status = 0; }; }
24165 then
24166 gcc_cv_as_comm_has_align=yes
24167 else
24168 echo "configure: failed program was" >&5
24169 cat conftest.s >&5
24170 fi
24171 rm -f conftest.o conftest.s
24172 fi
24173 fi
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24175 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24176
24177
24178 cat >>confdefs.h <<_ACEOF
24179 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24180 _ACEOF
24181
24182 # Used for DWARF 2 in PE
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24184 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24185 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 gcc_cv_as_ix86_pe_secrel32=no
24189 if test $in_tree_gas = yes; then
24190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24191 then gcc_cv_as_ix86_pe_secrel32=yes
24192 fi
24193 elif test x$gcc_cv_as != x; then
24194 $as_echo '.text
24195 foo: nop
24196 .data
24197 .secrel32 foo' > conftest.s
24198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; }
24204 then
24205 if test x$gcc_cv_ld != x \
24206 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24207 gcc_cv_as_ix86_pe_secrel32=yes
24208 fi
24209 rm -f conftest
24210 else
24211 echo "configure: failed program was" >&5
24212 cat conftest.s >&5
24213 fi
24214 rm -f conftest.o conftest.s
24215 fi
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24218 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24219 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24220
24221 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24222
24223 fi
24224 # Test if the assembler supports the extended form of the .section
24225 # directive that specifies section alignment. LTO support uses this,
24226 # but normally only after installation, so we warn but don't fail the
24227 # configure if LTO is enabled but the assembler does not support it.
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24229 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24230 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 gcc_cv_as_section_has_align=no
24234 if test $in_tree_gas = yes; then
24235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24236 then gcc_cv_as_section_has_align=yes
24237 fi
24238 elif test x$gcc_cv_as != x; then
24239 $as_echo '.section lto_test,"dr0"' > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 gcc_cv_as_section_has_align=yes
24248 else
24249 echo "configure: failed program was" >&5
24250 cat conftest.s >&5
24251 fi
24252 rm -f conftest.o conftest.s
24253 fi
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24256 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24257
24258 if test x$gcc_cv_as_section_has_align != xyes; then
24259 case ",$enable_languages," in
24260 *,lto,*)
24261 { $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
24262 $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;}
24263 ;;
24264 esac
24265 fi
24266 # Test if the assembler supports the section flag 'e' for specifying
24267 # an excluded section.
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24269 $as_echo_n "checking assembler for .section with e... " >&6; }
24270 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24272 else
24273 gcc_cv_as_section_has_e=no
24274 if test $in_tree_gas = yes; then
24275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24276 then gcc_cv_as_section_has_e=yes
24277 fi
24278 elif test x$gcc_cv_as != x; then
24279 $as_echo '.section foo1,"e"
24280 .byte 0,0,0,0' > conftest.s
24281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
24285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24286 test $ac_status = 0; }; }
24287 then
24288 gcc_cv_as_section_has_e=yes
24289 else
24290 echo "configure: failed program was" >&5
24291 cat conftest.s >&5
24292 fi
24293 rm -f conftest.o conftest.s
24294 fi
24295 fi
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24297 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24298
24299
24300 cat >>confdefs.h <<_ACEOF
24301 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24302 _ACEOF
24303
24304 ;;
24305 esac
24306
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24308 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24309 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24310 $as_echo_n "(cached) " >&6
24311 else
24312 gcc_cv_as_ix86_filds=no
24313 if test x$gcc_cv_as != x; then
24314 $as_echo 'filds mem; fists mem' > conftest.s
24315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320 test $ac_status = 0; }; }
24321 then
24322 gcc_cv_as_ix86_filds=yes
24323 else
24324 echo "configure: failed program was" >&5
24325 cat conftest.s >&5
24326 fi
24327 rm -f conftest.o conftest.s
24328 fi
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24331 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24332 if test $gcc_cv_as_ix86_filds = yes; then
24333
24334 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24335
24336 fi
24337
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24339 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24340 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24341 $as_echo_n "(cached) " >&6
24342 else
24343 gcc_cv_as_ix86_fildq=no
24344 if test x$gcc_cv_as != x; then
24345 $as_echo 'fildq mem; fistpq mem' > conftest.s
24346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24348 (eval $ac_try) 2>&5
24349 ac_status=$?
24350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24351 test $ac_status = 0; }; }
24352 then
24353 gcc_cv_as_ix86_fildq=yes
24354 else
24355 echo "configure: failed program was" >&5
24356 cat conftest.s >&5
24357 fi
24358 rm -f conftest.o conftest.s
24359 fi
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24362 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24363 if test $gcc_cv_as_ix86_fildq = yes; then
24364
24365 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24366
24367 fi
24368
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24370 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24371 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 gcc_cv_as_ix86_cmov_sun_syntax=no
24375 if test x$gcc_cv_as != x; then
24376 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24383 then
24384 gcc_cv_as_ix86_cmov_sun_syntax=yes
24385 else
24386 echo "configure: failed program was" >&5
24387 cat conftest.s >&5
24388 fi
24389 rm -f conftest.o conftest.s
24390 fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24393 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24394 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24395
24396 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24397
24398 fi
24399
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24401 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24402 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24404 else
24405 gcc_cv_as_ix86_ffreep=no
24406 if test x$gcc_cv_as != x; then
24407 $as_echo 'ffreep %st(1)' > conftest.s
24408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413 test $ac_status = 0; }; }
24414 then
24415 gcc_cv_as_ix86_ffreep=yes
24416 else
24417 echo "configure: failed program was" >&5
24418 cat conftest.s >&5
24419 fi
24420 rm -f conftest.o conftest.s
24421 fi
24422 fi
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24424 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24425 if test $gcc_cv_as_ix86_ffreep = yes; then
24426
24427 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24428
24429 fi
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24432 $as_echo_n "checking assembler for .quad directive... " >&6; }
24433 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 gcc_cv_as_ix86_quad=no
24437 if test x$gcc_cv_as != x; then
24438 $as_echo '.quad 0' > conftest.s
24439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24445 then
24446 gcc_cv_as_ix86_quad=yes
24447 else
24448 echo "configure: failed program was" >&5
24449 cat conftest.s >&5
24450 fi
24451 rm -f conftest.o conftest.s
24452 fi
24453 fi
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24455 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24456 if test $gcc_cv_as_ix86_quad = yes; then
24457
24458 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24459
24460 fi
24461
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24463 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24464 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_ix86_sahf=no
24468 if test x$gcc_cv_as != x; then
24469 $as_echo '.code64
24470 sahf' > conftest.s
24471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24477 then
24478 gcc_cv_as_ix86_sahf=yes
24479 else
24480 echo "configure: failed program was" >&5
24481 cat conftest.s >&5
24482 fi
24483 rm -f conftest.o conftest.s
24484 fi
24485 fi
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24487 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24488 if test $gcc_cv_as_ix86_sahf = yes; then
24489
24490 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24491
24492 fi
24493
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24495 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24496 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24497 $as_echo_n "(cached) " >&6
24498 else
24499 gcc_cv_as_ix86_hle=no
24500 if test x$gcc_cv_as != x; then
24501 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24507 test $ac_status = 0; }; }
24508 then
24509 gcc_cv_as_ix86_hle=yes
24510 else
24511 echo "configure: failed program was" >&5
24512 cat conftest.s >&5
24513 fi
24514 rm -f conftest.o conftest.s
24515 fi
24516 fi
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24518 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24519 if test $gcc_cv_as_ix86_hle = yes; then
24520
24521 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24522
24523 fi
24524
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24526 $as_echo_n "checking assembler for swap suffix... " >&6; }
24527 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24528 $as_echo_n "(cached) " >&6
24529 else
24530 gcc_cv_as_ix86_swap=no
24531 if test x$gcc_cv_as != x; then
24532 $as_echo 'movl.s %esp, %ebp' > conftest.s
24533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24535 (eval $ac_try) 2>&5
24536 ac_status=$?
24537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24538 test $ac_status = 0; }; }
24539 then
24540 gcc_cv_as_ix86_swap=yes
24541 else
24542 echo "configure: failed program was" >&5
24543 cat conftest.s >&5
24544 fi
24545 rm -f conftest.o conftest.s
24546 fi
24547 fi
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24549 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24550 if test $gcc_cv_as_ix86_swap = yes; then
24551
24552 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24553
24554 fi
24555
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24557 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24558 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24559 $as_echo_n "(cached) " >&6
24560 else
24561 gcc_cv_as_ix86_diff_sect_delta=no
24562 if test x$gcc_cv_as != x; then
24563 $as_echo '.section .rodata
24564 .L1:
24565 .long .L2-.L1
24566 .long .L3-.L1
24567 .text
24568 .L3: nop
24569 .L2: nop' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 gcc_cv_as_ix86_diff_sect_delta=yes
24578 else
24579 echo "configure: failed program was" >&5
24580 cat conftest.s >&5
24581 fi
24582 rm -f conftest.o conftest.s
24583 fi
24584 fi
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24586 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24587 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24588
24589 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24590
24591 fi
24592
24593 # These two are used unconditionally by i386.[ch]; it is to be defined
24594 # to 1 if the feature is present, 0 otherwise.
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24596 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24597 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24599 else
24600 gcc_cv_as_ix86_gotoff_in_data=no
24601 if test $in_tree_gas = yes; then
24602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24603 then gcc_cv_as_ix86_gotoff_in_data=yes
24604 fi
24605 elif test x$gcc_cv_as != x; then
24606 $as_echo ' .text
24607 .L0:
24608 nop
24609 .data
24610 .long .L0@GOTOFF' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 gcc_cv_as_ix86_gotoff_in_data=yes
24619 else
24620 echo "configure: failed program was" >&5
24621 cat conftest.s >&5
24622 fi
24623 rm -f conftest.o conftest.s
24624 fi
24625 fi
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24627 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24628
24629
24630 cat >>confdefs.h <<_ACEOF
24631 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24632 _ACEOF
24633
24634
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24636 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24637 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24639 else
24640 gcc_cv_as_ix86_rep_lock_prefix=no
24641 if test x$gcc_cv_as != x; then
24642 $as_echo 'rep movsl
24643 rep ret
24644 rep nop
24645 rep bsf %ecx, %eax
24646 rep bsr %ecx, %eax
24647 lock addl %edi, (%eax,%esi)
24648 lock orl $0, (%esp)' > conftest.s
24649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24654 test $ac_status = 0; }; }
24655 then
24656 gcc_cv_as_ix86_rep_lock_prefix=yes
24657 else
24658 echo "configure: failed program was" >&5
24659 cat conftest.s >&5
24660 fi
24661 rm -f conftest.o conftest.s
24662 fi
24663 fi
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24665 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24666 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24667
24668 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24669
24670 fi
24671
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24673 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24674 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24675 $as_echo_n "(cached) " >&6
24676 else
24677 gcc_cv_as_ix86_tlsgdplt=no
24678 if test x$gcc_cv_as != x; then
24679 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24682 (eval $ac_try) 2>&5
24683 ac_status=$?
24684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685 test $ac_status = 0; }; }
24686 then
24687 if test x$gcc_cv_ld != x \
24688 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24689 gcc_cv_as_ix86_tlsgdplt=yes
24690 fi
24691 rm -f conftest
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24695 fi
24696 rm -f conftest.o conftest.s
24697 fi
24698 fi
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24700 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24701 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24702
24703 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24704
24705 fi
24706
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24708 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24709 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_tlsldmplt=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo 'tls_ld:
24715 call tls_ld@tlsldmplt' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 if test x$gcc_cv_ld != x \
24724 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24725 gcc_cv_as_ix86_tlsldmplt=yes
24726 fi
24727 rm -f conftest
24728 else
24729 echo "configure: failed program was" >&5
24730 cat conftest.s >&5
24731 fi
24732 rm -f conftest.o conftest.s
24733 fi
24734 fi
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24736 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24737 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24738
24739 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24740
24741 fi
24742
24743 ;;
24744
24745 ia64*-*-*)
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24747 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24748 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24750 else
24751 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24752 if test $in_tree_gas = yes; then
24753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24754 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24755 fi
24756 elif test x$gcc_cv_as != x; then
24757 $as_echo ' .text
24758 addl r15 = @ltoffx(x#), gp
24759 ;;
24760 ld8.mov r16 = [r15], x#' > conftest.s
24761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24766 test $ac_status = 0; }; }
24767 then
24768 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24769 else
24770 echo "configure: failed program was" >&5
24771 cat conftest.s >&5
24772 fi
24773 rm -f conftest.o conftest.s
24774 fi
24775 fi
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24777 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24778 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24779
24780 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24781
24782 fi
24783
24784 ;;
24785
24786 powerpc*-*-*)
24787 case $target in
24788 *-*-aix*) conftest_s=' .machine "pwr5"
24789 .csect .text[PR]
24790 mfcr 3,128';;
24791 *-*-darwin*)
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24793 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24794 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24796 else
24797 gcc_cv_as_machine_directive=no
24798 if test x$gcc_cv_as != x; then
24799 $as_echo ' .machine ppc7400' > conftest.s
24800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24806 then
24807 gcc_cv_as_machine_directive=yes
24808 else
24809 echo "configure: failed program was" >&5
24810 cat conftest.s >&5
24811 fi
24812 rm -f conftest.o conftest.s
24813 fi
24814 fi
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24816 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24817
24818 if test x$gcc_cv_as_machine_directive != xyes; then
24819 echo "*** This target requires an assembler supporting \".machine\"" >&2
24820 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24821 test x$build = x$target && exit 1
24822 fi
24823 conftest_s=' .text
24824 mfcr r3,128';;
24825 *) conftest_s=' .machine power4
24826 .text
24827 mfcr 3,128';;
24828 esac
24829
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24831 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24832 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 gcc_cv_as_powerpc_mfcrf=no
24836 if test $in_tree_gas = yes; then
24837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24838 then gcc_cv_as_powerpc_mfcrf=yes
24839 fi
24840 elif test x$gcc_cv_as != x; then
24841 $as_echo "$conftest_s" > conftest.s
24842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847 test $ac_status = 0; }; }
24848 then
24849 gcc_cv_as_powerpc_mfcrf=yes
24850 else
24851 echo "configure: failed program was" >&5
24852 cat conftest.s >&5
24853 fi
24854 rm -f conftest.o conftest.s
24855 fi
24856 fi
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24858 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24859 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24860
24861 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24862
24863 fi
24864
24865 case $target in
24866 *-*-aix*) conftest_s=' .machine "pwr5"
24867 .csect .text[PR]
24868 popcntb 3,3';;
24869 *) conftest_s=' .machine power5
24870 .text
24871 popcntb 3,3';;
24872 esac
24873
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24875 $as_echo_n "checking assembler for popcntb support... " >&6; }
24876 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24878 else
24879 gcc_cv_as_powerpc_popcntb=no
24880 if test $in_tree_gas = yes; then
24881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24882 then gcc_cv_as_powerpc_popcntb=yes
24883 fi
24884 elif test x$gcc_cv_as != x; then
24885 $as_echo "$conftest_s" > conftest.s
24886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24892 then
24893 gcc_cv_as_powerpc_popcntb=yes
24894 else
24895 echo "configure: failed program was" >&5
24896 cat conftest.s >&5
24897 fi
24898 rm -f conftest.o conftest.s
24899 fi
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24902 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24903 if test $gcc_cv_as_powerpc_popcntb = yes; then
24904
24905 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24906
24907 fi
24908
24909 case $target in
24910 *-*-aix*) conftest_s=' .machine "pwr5x"
24911 .csect .text[PR]
24912 frin 1,1';;
24913 *) conftest_s=' .machine power5
24914 .text
24915 frin 1,1';;
24916 esac
24917
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24919 $as_echo_n "checking assembler for fp round support... " >&6; }
24920 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24922 else
24923 gcc_cv_as_powerpc_fprnd=no
24924 if test $in_tree_gas = yes; then
24925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24926 then gcc_cv_as_powerpc_fprnd=yes
24927 fi
24928 elif test x$gcc_cv_as != x; then
24929 $as_echo "$conftest_s" > conftest.s
24930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24935 test $ac_status = 0; }; }
24936 then
24937 gcc_cv_as_powerpc_fprnd=yes
24938 else
24939 echo "configure: failed program was" >&5
24940 cat conftest.s >&5
24941 fi
24942 rm -f conftest.o conftest.s
24943 fi
24944 fi
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24946 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24947 if test $gcc_cv_as_powerpc_fprnd = yes; then
24948
24949 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24950
24951 fi
24952
24953 case $target in
24954 *-*-aix*) conftest_s=' .machine "pwr6"
24955 .csect .text[PR]
24956 mffgpr 1,3';;
24957 *) conftest_s=' .machine power6
24958 .text
24959 mffgpr 1,3';;
24960 esac
24961
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24963 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24964 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 gcc_cv_as_powerpc_mfpgpr=no
24968 if test $in_tree_gas = yes; then
24969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24970 then gcc_cv_as_powerpc_mfpgpr=yes
24971 fi
24972 elif test x$gcc_cv_as != x; then
24973 $as_echo "$conftest_s" > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 gcc_cv_as_powerpc_mfpgpr=yes
24982 else
24983 echo "configure: failed program was" >&5
24984 cat conftest.s >&5
24985 fi
24986 rm -f conftest.o conftest.s
24987 fi
24988 fi
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24990 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24991 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24992
24993 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24994
24995 fi
24996
24997 case $target in
24998 *-*-aix*) conftest_s=' .csect .text[PR]
24999 LCF..0:
25000 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25001 *-*-darwin*)
25002 conftest_s=' .text
25003 LCF0:
25004 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25005 *) conftest_s=' .text
25006 .LCF0:
25007 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25008 esac
25009
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25011 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25012 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_powerpc_rel16=no
25016 if test $in_tree_gas = yes; then
25017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25018 then gcc_cv_as_powerpc_rel16=yes
25019 fi
25020 elif test x$gcc_cv_as != x; then
25021 $as_echo "$conftest_s" > conftest.s
25022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25024 (eval $ac_try) 2>&5
25025 ac_status=$?
25026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25027 test $ac_status = 0; }; }
25028 then
25029 gcc_cv_as_powerpc_rel16=yes
25030 else
25031 echo "configure: failed program was" >&5
25032 cat conftest.s >&5
25033 fi
25034 rm -f conftest.o conftest.s
25035 fi
25036 fi
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25038 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25039 if test $gcc_cv_as_powerpc_rel16 = yes; then
25040
25041 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25042
25043 fi
25044
25045 case $target in
25046 *-*-aix*) conftest_s=' .machine "pwr6"
25047 .csect .text[PR]
25048 cmpb 3,4,5';;
25049 *) conftest_s=' .machine power6
25050 .text
25051 cmpb 3,4,5';;
25052 esac
25053
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25055 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25056 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25057 $as_echo_n "(cached) " >&6
25058 else
25059 gcc_cv_as_powerpc_cmpb=no
25060 if test $in_tree_gas = yes; then
25061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25062 then gcc_cv_as_powerpc_cmpb=yes
25063 fi
25064 elif test x$gcc_cv_as != x; then
25065 $as_echo "$conftest_s" > conftest.s
25066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25072 then
25073 gcc_cv_as_powerpc_cmpb=yes
25074 else
25075 echo "configure: failed program was" >&5
25076 cat conftest.s >&5
25077 fi
25078 rm -f conftest.o conftest.s
25079 fi
25080 fi
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25082 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25083 if test $gcc_cv_as_powerpc_cmpb = yes; then
25084
25085 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25086
25087 fi
25088
25089 case $target in
25090 *-*-aix*) conftest_s=' .machine "pwr6"
25091 .csect .text[PR]
25092 dadd 1,2,3';;
25093 *) conftest_s=' .machine power6
25094 .text
25095 dadd 1,2,3';;
25096 esac
25097
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25099 $as_echo_n "checking assembler for decimal float support... " >&6; }
25100 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 gcc_cv_as_powerpc_dfp=no
25104 if test $in_tree_gas = yes; then
25105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25106 then gcc_cv_as_powerpc_dfp=yes
25107 fi
25108 elif test x$gcc_cv_as != x; then
25109 $as_echo "$conftest_s" > conftest.s
25110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25115 test $ac_status = 0; }; }
25116 then
25117 gcc_cv_as_powerpc_dfp=yes
25118 else
25119 echo "configure: failed program was" >&5
25120 cat conftest.s >&5
25121 fi
25122 rm -f conftest.o conftest.s
25123 fi
25124 fi
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25126 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25127 if test $gcc_cv_as_powerpc_dfp = yes; then
25128
25129 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25130
25131 fi
25132
25133 case $target in
25134 *-*-aix*) conftest_s=' .machine "pwr7"
25135 .csect .text[PR]
25136 lxvd2x 1,2,3';;
25137 *) conftest_s=' .machine power7
25138 .text
25139 lxvd2x 1,2,3';;
25140 esac
25141
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25143 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25144 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25145 $as_echo_n "(cached) " >&6
25146 else
25147 gcc_cv_as_powerpc_vsx=no
25148 if test $in_tree_gas = yes; then
25149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25150 then gcc_cv_as_powerpc_vsx=yes
25151 fi
25152 elif test x$gcc_cv_as != x; then
25153 $as_echo "$conftest_s" > conftest.s
25154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25160 then
25161 gcc_cv_as_powerpc_vsx=yes
25162 else
25163 echo "configure: failed program was" >&5
25164 cat conftest.s >&5
25165 fi
25166 rm -f conftest.o conftest.s
25167 fi
25168 fi
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25170 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25171 if test $gcc_cv_as_powerpc_vsx = yes; then
25172
25173 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25174
25175 fi
25176
25177 case $target in
25178 *-*-aix*) conftest_s=' .machine "pwr7"
25179 .csect .text[PR]
25180 popcntd 3,3';;
25181 *) conftest_s=' .machine power7
25182 .text
25183 popcntd 3,3';;
25184 esac
25185
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25187 $as_echo_n "checking assembler for popcntd support... " >&6; }
25188 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25190 else
25191 gcc_cv_as_powerpc_popcntd=no
25192 if test $in_tree_gas = yes; then
25193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25194 then gcc_cv_as_powerpc_popcntd=yes
25195 fi
25196 elif test x$gcc_cv_as != x; then
25197 $as_echo "$conftest_s" > conftest.s
25198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25203 test $ac_status = 0; }; }
25204 then
25205 gcc_cv_as_powerpc_popcntd=yes
25206 else
25207 echo "configure: failed program was" >&5
25208 cat conftest.s >&5
25209 fi
25210 rm -f conftest.o conftest.s
25211 fi
25212 fi
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25214 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25215 if test $gcc_cv_as_powerpc_popcntd = yes; then
25216
25217 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25218
25219 fi
25220
25221 case $target in
25222 *-*-aix*) conftest_s=' .machine "pwr8"
25223 .csect .text[PR]';;
25224 *) conftest_s=' .machine power8
25225 .text';;
25226 esac
25227
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25229 $as_echo_n "checking assembler for power8 support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25232 else
25233 gcc_cv_as_powerpc_power8=no
25234 if test $in_tree_gas = yes; then
25235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25236 then gcc_cv_as_powerpc_power8=yes
25237 fi
25238 elif test x$gcc_cv_as != x; then
25239 $as_echo "$conftest_s" > conftest.s
25240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25243 ac_status=$?
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25246 then
25247 gcc_cv_as_powerpc_power8=yes
25248 else
25249 echo "configure: failed program was" >&5
25250 cat conftest.s >&5
25251 fi
25252 rm -f conftest.o conftest.s
25253 fi
25254 fi
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25256 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25257 if test $gcc_cv_as_powerpc_power8 = yes; then
25258
25259 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25260
25261 fi
25262
25263 case $target in
25264 *-*-aix*) conftest_s=' .csect .text[PR]
25265 lwsync';;
25266 *) conftest_s=' .text
25267 lwsync';;
25268 esac
25269
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25271 $as_echo_n "checking assembler for lwsync support... " >&6; }
25272 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25273 $as_echo_n "(cached) " >&6
25274 else
25275 gcc_cv_as_powerpc_lwsync=no
25276 if test $in_tree_gas = yes; then
25277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25278 then gcc_cv_as_powerpc_lwsync=yes
25279 fi
25280 elif test x$gcc_cv_as != x; then
25281 $as_echo "$conftest_s" > conftest.s
25282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25287 test $ac_status = 0; }; }
25288 then
25289 gcc_cv_as_powerpc_lwsync=yes
25290 else
25291 echo "configure: failed program was" >&5
25292 cat conftest.s >&5
25293 fi
25294 rm -f conftest.o conftest.s
25295 fi
25296 fi
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25298 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25299 if test $gcc_cv_as_powerpc_lwsync = yes; then
25300
25301 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25302
25303 fi
25304
25305 case $target in
25306 *-*-aix*) conftest_s=' .machine "476"
25307 .csect .text[PR]
25308 dci 0';;
25309 *) conftest_s=' .machine "476"
25310 .text
25311 dci 0';;
25312 esac
25313
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25315 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25316 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_powerpc_dci=no
25320 if test $in_tree_gas = yes; then
25321 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25322 then gcc_cv_as_powerpc_dci=yes
25323 fi
25324 elif test x$gcc_cv_as != x; then
25325 $as_echo "$conftest_s" > conftest.s
25326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; }
25332 then
25333 gcc_cv_as_powerpc_dci=yes
25334 else
25335 echo "configure: failed program was" >&5
25336 cat conftest.s >&5
25337 fi
25338 rm -f conftest.o conftest.s
25339 fi
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25342 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25343 if test $gcc_cv_as_powerpc_dci = yes; then
25344
25345 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25346
25347 fi
25348
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25350 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25351 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 gcc_cv_as_powerpc_gnu_attribute=no
25355 if test $in_tree_gas = yes; then
25356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25357 then gcc_cv_as_powerpc_gnu_attribute=yes
25358 fi
25359 elif test x$gcc_cv_as != x; then
25360 $as_echo '.gnu_attribute 4,1' > conftest.s
25361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }; }
25367 then
25368 gcc_cv_as_powerpc_gnu_attribute=yes
25369 else
25370 echo "configure: failed program was" >&5
25371 cat conftest.s >&5
25372 fi
25373 rm -f conftest.o conftest.s
25374 fi
25375 fi
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25377 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25378 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25379
25380 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25381
25382 fi
25383
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25385 $as_echo_n "checking assembler for tls marker support... " >&6; }
25386 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_powerpc_tls_markers=no
25390 if test $in_tree_gas = yes; then
25391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25392 then gcc_cv_as_powerpc_tls_markers=yes
25393 fi
25394 elif test x$gcc_cv_as != x; then
25395 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 then
25403 gcc_cv_as_powerpc_tls_markers=yes
25404 else
25405 echo "configure: failed program was" >&5
25406 cat conftest.s >&5
25407 fi
25408 rm -f conftest.o conftest.s
25409 fi
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25412 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25413 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25414
25415 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25416
25417 fi
25418
25419 case $target in
25420 *-*-aix*)
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25422 $as_echo_n "checking assembler for .ref support... " >&6; }
25423 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_aix_ref=no
25427 if test $in_tree_gas = yes; then
25428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25429 then gcc_cv_as_aix_ref=yes
25430 fi
25431 elif test x$gcc_cv_as != x; then
25432 $as_echo ' .csect stuff[rw]
25433 stuff:
25434 .long 1
25435 .extern sym
25436 .ref sym
25437 ' > conftest.s
25438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25444 then
25445 gcc_cv_as_aix_ref=yes
25446 else
25447 echo "configure: failed program was" >&5
25448 cat conftest.s >&5
25449 fi
25450 rm -f conftest.o conftest.s
25451 fi
25452 fi
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25454 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25455 if test $gcc_cv_as_aix_ref = yes; then
25456
25457 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25458
25459 fi
25460 ;;
25461 esac
25462 ;;
25463
25464 mips*-*-*)
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25466 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25467 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 gcc_cv_as_mips_explicit_relocs=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25473 then gcc_cv_as_mips_explicit_relocs=yes
25474 fi
25475 elif test x$gcc_cv_as != x; then
25476 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25483 then
25484 gcc_cv_as_mips_explicit_relocs=yes
25485 else
25486 echo "configure: failed program was" >&5
25487 cat conftest.s >&5
25488 fi
25489 rm -f conftest.o conftest.s
25490 fi
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25493 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25494 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25495 if test x$target_cpu_default = x
25496 then target_cpu_default=MASK_EXPLICIT_RELOCS
25497 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25498 fi
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25501 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25502 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25504 else
25505 gcc_cv_as_mips_no_shared=no
25506 if test $in_tree_gas = yes; then
25507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25508 then gcc_cv_as_mips_no_shared=yes
25509 fi
25510 elif test x$gcc_cv_as != x; then
25511 $as_echo 'nop' > conftest.s
25512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25517 test $ac_status = 0; }; }
25518 then
25519 gcc_cv_as_mips_no_shared=yes
25520 else
25521 echo "configure: failed program was" >&5
25522 cat conftest.s >&5
25523 fi
25524 rm -f conftest.o conftest.s
25525 fi
25526 fi
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25528 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25529 if test $gcc_cv_as_mips_no_shared = yes; then
25530
25531 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25532
25533 fi
25534
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25536 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25537 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25538 $as_echo_n "(cached) " >&6
25539 else
25540 gcc_cv_as_mips_gnu_attribute=no
25541 if test $in_tree_gas = yes; then
25542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25543 then gcc_cv_as_mips_gnu_attribute=yes
25544 fi
25545 elif test x$gcc_cv_as != x; then
25546 $as_echo '.gnu_attribute 4,1' > conftest.s
25547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552 test $ac_status = 0; }; }
25553 then
25554 gcc_cv_as_mips_gnu_attribute=yes
25555 else
25556 echo "configure: failed program was" >&5
25557 cat conftest.s >&5
25558 fi
25559 rm -f conftest.o conftest.s
25560 fi
25561 fi
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25563 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25564 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25565
25566 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25567
25568 fi
25569
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25571 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25572 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25574 else
25575 gcc_cv_as_mips_dtprelword=no
25576 if test $in_tree_gas = yes; then
25577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25578 then gcc_cv_as_mips_dtprelword=yes
25579 fi
25580 elif test x$gcc_cv_as != x; then
25581 $as_echo '.section .tdata,"awT",@progbits
25582 x:
25583 .word 2
25584 .text
25585 .dtprelword x+0x8000' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_mips_dtprelword=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25597 fi
25598 rm -f conftest.o conftest.s
25599 fi
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25602 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25603 if test $gcc_cv_as_mips_dtprelword = yes; then
25604
25605 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25606
25607 fi
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25610 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25611 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 gcc_cv_as_mips_dspr1_mult=no
25615 if test x$gcc_cv_as != x; then
25616 $as_echo ' .set mips32r2
25617 .set nodspr2
25618 .set dsp
25619 madd $ac3,$4,$5
25620 maddu $ac3,$4,$5
25621 msub $ac3,$4,$5
25622 msubu $ac3,$4,$5
25623 mult $ac3,$4,$5
25624 multu $ac3,$4,$5' > conftest.s
25625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25631 then
25632 gcc_cv_as_mips_dspr1_mult=yes
25633 else
25634 echo "configure: failed program was" >&5
25635 cat conftest.s >&5
25636 fi
25637 rm -f conftest.o conftest.s
25638 fi
25639 fi
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25641 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25642 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25643
25644 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25645
25646 fi
25647
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25649 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25650 gcc_cv_as_ld_jalr_reloc=no
25651 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25652 if test $in_tree_ld = yes ; then
25653 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 \
25654 && test $in_tree_ld_is_elf = yes; then
25655 gcc_cv_as_ld_jalr_reloc=yes
25656 fi
25657 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25658 echo ' .ent x' > conftest.s
25659 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25660 echo ' ld $25,%call16(y)($28)' >> conftest.s
25661 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25662 echo '1: jalr $25' >> conftest.s
25663 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25664 echo '1: jalr $25' >> conftest.s
25665 echo ' .end x' >> conftest.s
25666 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25667 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25668 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25669 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25670 gcc_cv_as_ld_jalr_reloc=yes
25671 fi
25672 fi
25673 rm -f conftest.*
25674 fi
25675 fi
25676 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25677 if test x$target_cpu_default = x; then
25678 target_cpu_default=MASK_RELAX_PIC_CALLS
25679 else
25680 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25681 fi
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25684 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25685
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25687 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25688 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25689 $as_echo_n "(cached) " >&6
25690 else
25691 gcc_cv_ld_mips_personality_relaxation=no
25692 if test $in_tree_ld = yes ; then
25693 if test "$gcc_cv_gld_major_version" -eq 2 \
25694 -a "$gcc_cv_gld_minor_version" -ge 21 \
25695 -o "$gcc_cv_gld_major_version" -gt 2; then
25696 gcc_cv_ld_mips_personality_relaxation=yes
25697 fi
25698 elif test x$gcc_cv_as != x \
25699 -a x$gcc_cv_ld != x \
25700 -a x$gcc_cv_readelf != x ; then
25701 cat > conftest.s <<EOF
25702 .cfi_startproc
25703 .cfi_personality 0x80,indirect_ptr
25704 .ent test
25705 test:
25706 nop
25707 .end test
25708 .cfi_endproc
25709
25710 .section .data,"aw",@progbits
25711 indirect_ptr:
25712 .dc.a personality
25713 EOF
25714 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25715 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25716 if $gcc_cv_readelf -d conftest 2>&1 \
25717 | grep TEXTREL > /dev/null 2>&1; then
25718 :
25719 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25720 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25721 :
25722 else
25723 gcc_cv_ld_mips_personality_relaxation=yes
25724 fi
25725 fi
25726 fi
25727 rm -f conftest.s conftest.o conftest
25728 fi
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25730 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25731 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25732
25733 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25734
25735 fi
25736 ;;
25737 esac
25738
25739 # Mips and HP-UX need the GNU assembler.
25740 # Linux on IA64 might be able to use the Intel assembler.
25741
25742 case "$target" in
25743 mips*-*-* | *-*-hpux* )
25744 if test x$gas_flag = xyes \
25745 || test x"$host" != x"$build" \
25746 || test ! -x "$gcc_cv_as" \
25747 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25748 :
25749 else
25750 echo "*** This configuration requires the GNU assembler" >&2
25751 exit 1
25752 fi
25753 ;;
25754 esac
25755
25756 # ??? Not all targets support dwarf2 debug_line, even within a version
25757 # of gas. Moreover, we need to emit a valid instruction to trigger any
25758 # info to the output file. So, as supported targets are added to gas 2.11,
25759 # add some instruction here to (also) show we expect this might work.
25760 # ??? Once 2.11 is released, probably need to add first known working
25761 # version to the per-target configury.
25762 case "$cpu_type" in
25763 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25764 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25765 insn="nop"
25766 ;;
25767 ia64 | s390)
25768 insn="nop 0"
25769 ;;
25770 mmix)
25771 insn="swym 0"
25772 ;;
25773 esac
25774 if test x"$insn" != x; then
25775 conftest_s="\
25776 .file 1 \"conftest.s\"
25777 .loc 1 3 0
25778 $insn"
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25780 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25781 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_dwarf2_debug_line=no
25785 if test $in_tree_gas = yes; then
25786 if test $in_tree_gas_is_elf = yes \
25787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25788 then gcc_cv_as_dwarf2_debug_line=yes
25789 fi
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo "$conftest_s" > conftest.s
25792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25798 then
25799 if test x$gcc_cv_objdump != x \
25800 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25801 | grep debug_line > /dev/null 2>&1; then
25802 gcc_cv_as_dwarf2_debug_line=yes
25803 fi
25804 else
25805 echo "configure: failed program was" >&5
25806 cat conftest.s >&5
25807 fi
25808 rm -f conftest.o conftest.s
25809 fi
25810 fi
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25812 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25813
25814
25815 # The .debug_line file table must be in the exact order that
25816 # we specified the files, since these indices are also used
25817 # by DW_AT_decl_file. Approximate this test by testing if
25818 # the assembler bitches if the same index is assigned twice.
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25820 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25821 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25823 else
25824 gcc_cv_as_dwarf2_file_buggy=no
25825 if test x$gcc_cv_as != x; then
25826 $as_echo ' .file 1 "foo.s"
25827 .file 1 "bar.s"' > conftest.s
25828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25831 ac_status=$?
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25834 then
25835 gcc_cv_as_dwarf2_file_buggy=yes
25836 else
25837 echo "configure: failed program was" >&5
25838 cat conftest.s >&5
25839 fi
25840 rm -f conftest.o conftest.s
25841 fi
25842 fi
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25844 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25845
25846
25847 if test $gcc_cv_as_dwarf2_debug_line = yes \
25848 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25849
25850 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25851
25852 fi
25853
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25855 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25856 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25857 $as_echo_n "(cached) " >&6
25858 else
25859 gcc_cv_as_gdwarf2_flag=no
25860 if test $in_tree_gas = yes; then
25861 if test $in_tree_gas_is_elf = yes \
25862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25863 then gcc_cv_as_gdwarf2_flag=yes
25864 fi
25865 elif test x$gcc_cv_as != x; then
25866 $as_echo "$insn" > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 gcc_cv_as_gdwarf2_flag=yes
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25878 fi
25879 rm -f conftest.o conftest.s
25880 fi
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25883 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25884 if test $gcc_cv_as_gdwarf2_flag = yes; then
25885
25886 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25887
25888 fi
25889
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25891 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25892 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25893 $as_echo_n "(cached) " >&6
25894 else
25895 gcc_cv_as_gstabs_flag=no
25896 if test $in_tree_gas = yes; then
25897 if test $in_tree_gas_is_elf = yes \
25898 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25899 then gcc_cv_as_gstabs_flag=yes
25900 fi
25901 elif test x$gcc_cv_as != x; then
25902 $as_echo "$insn" > conftest.s
25903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25908 test $ac_status = 0; }; }
25909 then
25910 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25911 # and warns about it, but still exits successfully. So check for
25912 # this.
25913 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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 else gcc_cv_as_gstabs_flag=yes
25921 fi
25922 else
25923 echo "configure: failed program was" >&5
25924 cat conftest.s >&5
25925 fi
25926 rm -f conftest.o conftest.s
25927 fi
25928 fi
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25930 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25931 if test $gcc_cv_as_gstabs_flag = yes; then
25932
25933 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25934
25935 fi
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25938 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25939 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25940 $as_echo_n "(cached) " >&6
25941 else
25942 gcc_cv_as_debug_prefix_map_flag=no
25943 if test $in_tree_gas = yes; then
25944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25945 then gcc_cv_as_debug_prefix_map_flag=yes
25946 fi
25947 elif test x$gcc_cv_as != x; then
25948 $as_echo "$insn" > conftest.s
25949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25954 test $ac_status = 0; }; }
25955 then
25956 gcc_cv_as_debug_prefix_map_flag=yes
25957 else
25958 echo "configure: failed program was" >&5
25959 cat conftest.s >&5
25960 fi
25961 rm -f conftest.o conftest.s
25962 fi
25963 fi
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25965 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25966 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25967
25968 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25969
25970 fi
25971 fi
25972
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25974 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25975 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25977 else
25978 gcc_cv_as_lcomm_with_alignment=no
25979 if test x$gcc_cv_as != x; then
25980 $as_echo '.lcomm bar,4,16' > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 gcc_cv_as_lcomm_with_alignment=yes
25989 else
25990 echo "configure: failed program was" >&5
25991 cat conftest.s >&5
25992 fi
25993 rm -f conftest.o conftest.s
25994 fi
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25997 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25998 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25999
26000 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26001
26002 fi
26003
26004 # Check whether --enable-gnu-unique-object was given.
26005 if test "${enable_gnu_unique_object+set}" = set; then :
26006 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26007 yes | no) ;;
26008 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26009 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26010 esac
26011 else
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26013 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26014 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26016 else
26017 gcc_cv_as_gnu_unique_object=no
26018 if test $in_tree_gas = yes; then
26019 if test $in_tree_gas_is_elf = yes \
26020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26021 then gcc_cv_as_gnu_unique_object=yes
26022 fi
26023 elif test x$gcc_cv_as != x; then
26024 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26031 then
26032 gcc_cv_as_gnu_unique_object=yes
26033 else
26034 echo "configure: failed program was" >&5
26035 cat conftest.s >&5
26036 fi
26037 rm -f conftest.o conftest.s
26038 fi
26039 fi
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26041 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26042 if test $gcc_cv_as_gnu_unique_object = yes; then
26043 # We need to unquote above to to use the definition from config.gcc.
26044 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26045 if test x$host = x$build -a x$host = x$target &&
26046 ldd --version 2>/dev/null &&
26047 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26048 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26049 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26050 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26051 if test "$glibcnum" -ge 2011 ; then
26052 enable_gnu_unique_object=yes
26053 fi
26054 fi
26055 fi
26056 fi
26057
26058 if test x$enable_gnu_unique_object = xyes; then
26059
26060 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26061
26062 fi
26063
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26065 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26066 if test "${gcc_cv_as_line_zero+set}" = set; then :
26067 $as_echo_n "(cached) " >&6
26068 else
26069 gcc_cv_as_line_zero=no
26070 if test $in_tree_gas = yes; then
26071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26072 then gcc_cv_as_line_zero=yes
26073 fi
26074 elif test "x$gcc_cv_as" != x; then
26075 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26076 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; } &&
26082 test "x`cat conftest.out`" = x
26083 then
26084 gcc_cv_as_line_zero=yes
26085 else
26086 echo "configure: failed program was" >&5
26087 cat conftest.s >&5
26088 echo "configure: error output was" >&5
26089 cat conftest.out >&5
26090 fi
26091 rm -f conftest.o conftest.s conftest.out
26092 fi
26093 fi
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26095 $as_echo "$gcc_cv_as_line_zero" >&6; }
26096 if test "x$gcc_cv_as_line_zero" = xyes; then
26097
26098 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26099
26100 fi
26101
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26103 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26104 gcc_cv_ld_eh_frame_hdr=no
26105 if test $in_tree_ld = yes ; then
26106 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 \
26107 && test $in_tree_ld_is_elf = yes; then
26108 gcc_cv_ld_eh_frame_hdr=yes
26109 fi
26110 elif test x$gcc_cv_ld != x; then
26111 if echo "$ld_ver" | grep GNU > /dev/null; then
26112 # Check if linker supports --eh-frame-hdr option
26113 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26114 gcc_cv_ld_eh_frame_hdr=yes
26115 fi
26116 else
26117 case "$target" in
26118 *-*-solaris2*)
26119 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26120 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26121 gcc_cv_ld_eh_frame_hdr=yes
26122 fi
26123 ;;
26124 esac
26125 fi
26126 fi
26127
26128 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26129
26130 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26131
26132 fi
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26134 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26135
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26137 $as_echo_n "checking linker position independent executable support... " >&6; }
26138 gcc_cv_ld_pie=no
26139 if test $in_tree_ld = yes ; then
26140 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 \
26141 && test $in_tree_ld_is_elf = yes; then
26142 gcc_cv_ld_pie=yes
26143 fi
26144 elif test x$gcc_cv_ld != x; then
26145 # Check if linker supports -pie option
26146 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26147 gcc_cv_ld_pie=yes
26148 fi
26149 fi
26150 if test x"$gcc_cv_ld_pie" = xyes; then
26151
26152 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26153
26154 fi
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26156 $as_echo "$gcc_cv_ld_pie" >&6; }
26157
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26159 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26160 gcc_cv_ld_eh_gc_sections=no
26161 if test $in_tree_ld = yes ; then
26162 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 \
26163 && test $in_tree_ld_is_elf = yes; then
26164 gcc_cv_ld_eh_gc_sections=yes
26165 fi
26166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26167 cat > conftest.s <<EOF
26168 .section .text
26169 .globl _start
26170 .type _start, @function
26171 _start:
26172 .long foo
26173 .size _start, .-_start
26174 .section .text.foo,"ax",@progbits
26175 .type foo, @function
26176 foo:
26177 .long 0
26178 .size foo, .-foo
26179 .section .gcc_except_table.foo,"a",@progbits
26180 .L0:
26181 .long 0
26182 .section .eh_frame,"a",@progbits
26183 .long .L0
26184 EOF
26185 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26186 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26187 | grep "gc-sections option ignored" > /dev/null; then
26188 gcc_cv_ld_eh_gc_sections=no
26189 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26190 | grep gcc_except_table > /dev/null; then
26191 gcc_cv_ld_eh_gc_sections=yes
26192 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26193 if test x$gcc_cv_as_comdat_group != xyes; then
26194 gcc_cv_ld_eh_gc_sections=no
26195 cat > conftest.s <<EOF
26196 .section .text
26197 .globl _start
26198 .type _start, @function
26199 _start:
26200 .long foo
26201 .size _start, .-_start
26202 .section .gnu.linkonce.t.foo,"ax",@progbits
26203 .type foo, @function
26204 foo:
26205 .long 0
26206 .size foo, .-foo
26207 .section .gcc_except_table.foo,"a",@progbits
26208 .L0:
26209 .long 0
26210 .section .eh_frame,"a",@progbits
26211 .long .L0
26212 EOF
26213 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26214 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26215 | grep "gc-sections option ignored" > /dev/null; then
26216 gcc_cv_ld_eh_gc_sections=no
26217 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26218 | grep gcc_except_table > /dev/null; then
26219 gcc_cv_ld_eh_gc_sections=yes
26220 fi
26221 fi
26222 fi
26223 fi
26224 fi
26225 rm -f conftest.s conftest.o conftest
26226 fi
26227 case "$target" in
26228 hppa*-*-linux*)
26229 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26230 gcc_cv_ld_eh_gc_sections=no
26231 ;;
26232 esac
26233 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26234
26235 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26236
26237 fi
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26239 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26240
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26242 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26243 gcc_cv_ld_eh_gc_sections_bug=no
26244 if test $in_tree_ld = yes ; then
26245 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 \
26246 && test $in_tree_ld_is_elf = yes; then
26247 gcc_cv_ld_eh_gc_sections_bug=yes
26248 fi
26249 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
26250 gcc_cv_ld_eh_gc_sections_bug=yes
26251 cat > conftest.s <<EOF
26252 .section .text
26253 .globl _start
26254 .type _start, @function
26255 _start:
26256 .long foo
26257 .size _start, .-_start
26258 .section .text.startup.foo,"ax",@progbits
26259 .type foo, @function
26260 foo:
26261 .long 0
26262 .size foo, .-foo
26263 .section .gcc_except_table.foo,"a",@progbits
26264 .L0:
26265 .long 0
26266 .section .eh_frame,"a",@progbits
26267 .long .L0
26268 EOF
26269 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26270 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26271 | grep "gc-sections option ignored" > /dev/null; then
26272 :
26273 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26274 | grep gcc_except_table > /dev/null; then
26275 gcc_cv_ld_eh_gc_sections_bug=no
26276 fi
26277 fi
26278 rm -f conftest.s conftest.o conftest
26279 fi
26280 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26281
26282 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26283
26284 fi
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26286 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26287
26288 # --------
26289 # UNSORTED
26290 # --------
26291
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26293 $as_echo_n "checking linker --as-needed support... " >&6; }
26294 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26296 else
26297 gcc_cv_ld_as_needed=no
26298 if test $in_tree_ld = yes ; then
26299 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 \
26300 && test $in_tree_ld_is_elf = yes; then
26301 gcc_cv_ld_as_needed=yes
26302 fi
26303 elif test x$gcc_cv_ld != x; then
26304 # Check if linker supports --as-needed and --no-as-needed options
26305 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26306 gcc_cv_ld_as_needed=yes
26307 fi
26308 fi
26309
26310 fi
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26312 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26313 if test x"$gcc_cv_ld_as_needed" = xyes; then
26314
26315 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26316
26317 fi
26318
26319 case "$target:$tm_file" in
26320 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26321 case "$target" in
26322 *-*-linux*)
26323 emul_name="-melf64ppc"
26324 ;;
26325 *-*-freebsd*)
26326 emul_name="-melf64ppc_fbsd"
26327 ;;
26328 esac
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26330 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26331 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334 gcc_cv_ld_no_dot_syms=no
26335 if test x"$ld_is_gold" = xyes; then
26336 gcc_cv_ld_no_dot_syms=yes
26337 elif test $in_tree_ld = yes ; then
26338 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
26339 gcc_cv_ld_no_dot_syms=yes
26340 fi
26341 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26342 cat > conftest1.s <<EOF
26343 .text
26344 bl .foo
26345 EOF
26346 cat > conftest2.s <<EOF
26347 .section ".opd","aw"
26348 .align 3
26349 .globl foo
26350 .type foo,@function
26351 foo:
26352 .quad .LEfoo,.TOC.@tocbase,0
26353 .text
26354 .LEfoo:
26355 blr
26356 .size foo,.-.LEfoo
26357 EOF
26358 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26359 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26360 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26361 gcc_cv_ld_no_dot_syms=yes
26362 fi
26363 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26364 fi
26365
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26368 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26369 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26370
26371 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26372
26373 fi
26374
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26376 $as_echo_n "checking linker large toc support... " >&6; }
26377 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26378 $as_echo_n "(cached) " >&6
26379 else
26380 gcc_cv_ld_large_toc=no
26381 if test x"$ld_is_gold" = xyes; then
26382 gcc_cv_ld_large_toc=yes
26383 elif test $in_tree_ld = yes ; then
26384 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
26385 gcc_cv_ld_large_toc=yes
26386 fi
26387 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26388 cat > conftest.s <<EOF
26389 .section ".tbss","awT",@nobits
26390 .align 3
26391 ie0: .space 8
26392 .global _start
26393 .text
26394 _start:
26395 addis 9,13,ie0@got@tprel@ha
26396 ld 9,ie0@got@tprel@l(9)
26397 EOF
26398 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26399 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26400 gcc_cv_ld_large_toc=yes
26401 fi
26402 rm -f conftest conftest.o conftest.s
26403 fi
26404
26405 fi
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26407 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26408 if test x"$gcc_cv_ld_large_toc" = xyes; then
26409
26410 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26411
26412 fi
26413 ;;
26414 esac
26415
26416 case "$target" in
26417 *-*-aix*)
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26419 $as_echo_n "checking linker large toc support... " >&6; }
26420 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26421 $as_echo_n "(cached) " >&6
26422 else
26423 gcc_cv_ld_large_toc=no
26424 if test x$gcc_cv_as != x ; then
26425 cat > conftest.s <<EOF
26426 .toc
26427 LC..1:
26428 .tc a[TC],a[RW]
26429 .extern a[RW]
26430 .csect .text[PR]
26431 .largetoctest:
26432 addis 9,LC..1@u(2)
26433 ld 3,LC..1@l(9)
26434 EOF
26435 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26436 gcc_cv_ld_large_toc=yes
26437 fi
26438 rm -f conftest conftest.o conftest.s
26439 fi
26440
26441 fi
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26443 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26444 if test x"$gcc_cv_ld_large_toc" = xyes; then
26445
26446 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26447
26448 fi
26449 ;;
26450 esac
26451
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26453 $as_echo_n "checking linker --build-id support... " >&6; }
26454 if test "${gcc_cv_ld_buildid+set}" = set; then :
26455 $as_echo_n "(cached) " >&6
26456 else
26457 gcc_cv_ld_buildid=no
26458 if test $in_tree_ld = yes ; then
26459 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26460 "$gcc_cv_gld_minor_version" -ge 18 -o \
26461 "$gcc_cv_gld_major_version" -gt 2 \
26462 && test $in_tree_ld_is_elf = yes; then
26463 gcc_cv_ld_buildid=yes
26464 fi
26465 elif test x$gcc_cv_ld != x; then
26466 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26467 gcc_cv_ld_buildid=yes
26468 fi
26469 fi
26470 fi
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26472 $as_echo "$gcc_cv_ld_buildid" >&6; }
26473 if test x"$gcc_cv_ld_buildid" = xyes; then
26474
26475 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26476
26477 fi
26478
26479 # Check whether --enable-linker-build-id was given.
26480 if test "${enable_linker_build_id+set}" = set; then :
26481 enableval=$enable_linker_build_id;
26482 else
26483 enable_linker_build_id=no
26484 fi
26485
26486
26487 if test x"$enable_linker_build_id" = xyes; then
26488 if test x"$gcc_cv_ld_buildid" = xyes; then
26489
26490 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26491
26492 else
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26494 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26495 fi
26496 fi
26497
26498 # In binutils 2.21, GNU ld gained support for new emulations fully
26499 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26501 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26502 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26503 $as_echo_n "(cached) " >&6
26504 else
26505 gcc_cv_ld_sol2_emulation=no
26506 if test $in_tree_ld = yes ; then
26507 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26508 "$gcc_cv_gld_minor_version" -ge 21 -o \
26509 "$gcc_cv_gld_major_version" -gt 2 \
26510 && test $in_tree_ld_is_elf = yes; then
26511 gcc_cv_ld_sol2_emulation=yes
26512 fi
26513 elif test x$gcc_cv_ld != x; then
26514 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26515 grep _sol2 > /dev/null; then
26516 gcc_cv_ld_sol2_emulation=yes
26517 fi
26518 fi
26519 fi
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26521 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26522 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26523
26524 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26525
26526 fi
26527
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26529 $as_echo_n "checking linker --sysroot support... " >&6; }
26530 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26531 $as_echo_n "(cached) " >&6
26532 else
26533 gcc_cv_ld_sysroot=no
26534 if test $in_tree_ld = yes ; then
26535 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
26536 gcc_cv_ld_sysroot=yes
26537 fi
26538 elif test x$gcc_cv_ld != x; then
26539 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26540 gcc_cv_ld_sysroot=yes
26541 fi
26542 fi
26543 fi
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26545 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26546 if test x"$gcc_cv_ld_sysroot" = xyes; then
26547
26548 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26549
26550 fi
26551
26552 if test x$with_sysroot = x && test x$host = x$target \
26553 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26554 && test "$prefix" != "NONE"; then
26555
26556 cat >>confdefs.h <<_ACEOF
26557 #define PREFIX_INCLUDE_DIR "$prefix/include"
26558 _ACEOF
26559
26560 fi
26561
26562 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26563 if test "x$with_headers" != x; then
26564 target_header_dir=$with_headers
26565 elif test "x$with_sysroot" = x; then
26566 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26567 elif test "x$with_build_sysroot" != "x"; then
26568 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26569 elif test "x$with_sysroot" = xyes; then
26570 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26571 else
26572 target_header_dir="${with_sysroot}${native_system_header_dir}"
26573 fi
26574 else
26575 target_header_dir=${native_system_header_dir}
26576 fi
26577
26578 # Test for stack protector support in target C library.
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26580 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26581 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26582 $as_echo_n "(cached) " >&6
26583 else
26584 gcc_cv_libc_provides_ssp=no
26585 case "$target" in
26586 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26587 # glibc 2.4 and later provides __stack_chk_fail and
26588 # either __stack_chk_guard, or TLS access to stack guard canary.
26589 if test -f $target_header_dir/features.h \
26590 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26591 $target_header_dir/features.h > /dev/null; then
26592 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26593 $target_header_dir/features.h > /dev/null; then
26594 gcc_cv_libc_provides_ssp=yes
26595 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26596 $target_header_dir/features.h > /dev/null \
26597 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26598 $target_header_dir/features.h > /dev/null; then
26599 gcc_cv_libc_provides_ssp=yes
26600 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26601 $target_header_dir/features.h > /dev/null && \
26602 test -f $target_header_dir/bits/uClibc_config.h && \
26603 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26604 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26605 gcc_cv_libc_provides_ssp=yes
26606 fi
26607 # all versions of Bionic support stack protector
26608 elif test -f $target_header_dir/sys/cdefs.h \
26609 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26610 $target_header_dir/sys/cdefs.h > /dev/null; then
26611 gcc_cv_libc_provides_ssp=yes
26612 fi
26613 ;;
26614 *-*-gnu*)
26615 # Avoid complicated tests (see
26616 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26617 # simply assert that glibc does provide this, which is true for all
26618 # realistically usable GNU/Hurd configurations.
26619 gcc_cv_libc_provides_ssp=yes;;
26620 *-*-darwin* | *-*-freebsd*)
26621 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26622 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26623 gcc_cv_libc_provides_ssp=yes
26624 else
26625 echo "no __stack_chk_fail on this target"
26626 fi
26627
26628 ;;
26629 *) gcc_cv_libc_provides_ssp=no ;;
26630 esac
26631 fi
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26633 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26634
26635 if test x$gcc_cv_libc_provides_ssp = xyes; then
26636
26637 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26638
26639 fi
26640
26641 # Test for <sys/sdt.h> on the target.
26642
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26644 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26645 have_sys_sdt_h=no
26646 if test -f $target_header_dir/sys/sdt.h; then
26647 have_sys_sdt_h=yes
26648
26649 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26650
26651 fi
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26653 $as_echo "$have_sys_sdt_h" >&6; }
26654
26655 # Check if TFmode long double should be used by default or not.
26656 # Some glibc targets used DFmode long double, but with glibc 2.4
26657 # and later they can use TFmode.
26658 case "$target" in
26659 powerpc*-*-linux* | \
26660 sparc*-*-linux* | \
26661 s390*-*-linux* | \
26662 alpha*-*-linux*)
26663
26664 # Check whether --with-long-double-128 was given.
26665 if test "${with_long_double_128+set}" = set; then :
26666 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26667 else
26668 gcc_cv_target_ldbl128=no
26669 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26670 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26671 && gcc_cv_target_ldbl128=yes
26672
26673 fi
26674
26675 ;;
26676 esac
26677 if test x$gcc_cv_target_ldbl128 = xyes; then
26678
26679 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26680
26681 fi
26682
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26684 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26685 gcc_cv_target_dl_iterate_phdr=unknown
26686 case "$target" in
26687 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26688 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26689 # libdl there, both complicating its use and breaking compatibility
26690 # between Solaris 10 updates.
26691 *-*-solaris2.1[1-9]*)
26692 # <link.h> needs both a dl_iterate_phdr declaration and support for
26693 # compilation with largefile support.
26694 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26695 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26696 gcc_cv_target_dl_iterate_phdr=yes
26697 else
26698 gcc_cv_target_dl_iterate_phdr=no
26699 fi
26700 ;;
26701 esac
26702
26703 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26704
26705 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26706
26707 fi
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26709 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26710
26711 # Find out what GC implementation we want, or may, use.
26712
26713 # Check whether --with-gc was given.
26714 if test "${with_gc+set}" = set; then :
26715 withval=$with_gc; case "$withval" in
26716 page)
26717 GGC=ggc-$withval
26718 ;;
26719 zone)
26720 GGC=ggc-$withval
26721
26722 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26723
26724 ;;
26725 *)
26726 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26727 ;;
26728 esac
26729 else
26730 GGC=ggc-page
26731 fi
26732
26733
26734 echo "Using $GGC for garbage collection."
26735
26736 # Libraries to use on the host. This will normally be set by the top
26737 # level Makefile. Here we simply capture the value for our Makefile.
26738 if test -z "${HOST_LIBS+set}"; then
26739 HOST_LIBS=
26740 fi
26741
26742
26743 # Use the system's zlib library.
26744 zlibdir=-L../zlib
26745 zlibinc="-I\$(srcdir)/../zlib"
26746
26747 # Check whether --with-system-zlib was given.
26748 if test "${with_system_zlib+set}" = set; then :
26749 withval=$with_system_zlib; zlibdir=
26750 zlibinc=
26751
26752 fi
26753
26754
26755
26756
26757
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26760 # Check whether --enable-maintainer-mode was given.
26761 if test "${enable_maintainer_mode+set}" = set; then :
26762 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26763 else
26764 maintainer_mode=no
26765 fi
26766
26767
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26769 $as_echo "$maintainer_mode" >&6; }
26770
26771 if test "$maintainer_mode" = "yes"; then
26772 MAINT=''
26773 else
26774 MAINT='#'
26775 fi
26776
26777 # --------------
26778 # Language hooks
26779 # --------------
26780
26781 # Make empty files to contain the specs and options for each language.
26782 # Then add #include lines to for a compiler that has specs and/or options.
26783
26784 subdirs=
26785 lang_opt_files=
26786 lang_specs_files=
26787 lang_tree_files=
26788 # These (without "all_") are set in each config-lang.in.
26789 # `language' must be a single word so is spelled singularly.
26790 all_languages=
26791 all_compilers=
26792 all_outputs='Makefile'
26793 # List of language makefile fragments.
26794 all_lang_makefrags=
26795 # Additional files for gengtype
26796 all_gtfiles="$target_gtfiles"
26797
26798 # These are the languages that are set in --enable-languages,
26799 # and are available in the GCC tree.
26800 all_selected_languages=
26801
26802 # Add the language fragments.
26803 # Languages are added via two mechanisms. Some information must be
26804 # recorded in makefile variables, these are defined in config-lang.in.
26805 # We accumulate them and plug them into the main Makefile.
26806 # The other mechanism is a set of hooks for each of the main targets
26807 # like `clean', `install', etc.
26808
26809 language_hooks="Make-hooks"
26810
26811 for lang in ${srcdir}/*/config-lang.in
26812 do
26813 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26814
26815 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26816 if test "x$lang_alias" = x
26817 then
26818 echo "$lang doesn't set \$language." 1>&2
26819 exit 1
26820 fi
26821 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26822 subdirs="$subdirs $subdir"
26823
26824 # $gcc_subdir is where the gcc integration files are to be found
26825 # for a language, both for internal compiler purposes (compiler
26826 # sources implementing front-end to GCC tree converters), and for
26827 # build infrastructure purposes (Make-lang.in, etc.)
26828 #
26829 # This will be <subdir> (relative to $srcdir) if a line like
26830 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26831 # is found in <langdir>/config-lang.in, and will remain <langdir>
26832 # otherwise.
26833 #
26834 # Except for the language alias (fetched above), the regular
26835 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26836 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26837 # only this and the language alias.
26838
26839 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26840 if [ "$gcc_subdir" = "" ]; then
26841 gcc_subdir="$subdir"
26842 fi
26843
26844 case ",$enable_languages," in
26845 *,$lang_alias,*)
26846 all_selected_languages="$all_selected_languages $lang_alias"
26847 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26848 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26849 fi
26850 ;;
26851 esac
26852
26853 language=
26854 boot_language=
26855 compilers=
26856 outputs=
26857 gtfiles=
26858 subdir_requires=
26859 . ${srcdir}/$gcc_subdir/config-lang.in
26860 if test "x$language" = x
26861 then
26862 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26863 exit 1
26864 fi
26865
26866 ok=:
26867 case ",$enable_languages," in
26868 *,$lang_alias,*) ;;
26869 *)
26870 for i in $subdir_requires; do
26871 test -f "${srcdir}/$i/config-lang.in" && continue
26872 ok=false
26873 break
26874 done
26875 ;;
26876 esac
26877 $ok || continue
26878
26879 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26880 if test -f $srcdir/$gcc_subdir/lang.opt; then
26881 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26882 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26883 fi
26884 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26885 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26886 fi
26887 all_languages="$all_languages $language"
26888 all_compilers="$all_compilers $compilers"
26889 all_outputs="$all_outputs $outputs"
26890 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26891 case ",$enable_languages," in
26892 *,lto,*)
26893
26894 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26895
26896 enable_lto=yes
26897
26898 ;;
26899 *) ;;
26900 esac
26901 done
26902
26903 check_languages=
26904 for language in $all_selected_languages
26905 do
26906 check_languages="$check_languages check-$language"
26907 done
26908
26909 # We link each language in with a set of hooks, reached indirectly via
26910 # lang.${target}. Only do so for selected languages.
26911
26912 rm -f Make-hooks
26913 touch Make-hooks
26914 target_list="all.cross start.encap rest.encap tags \
26915 install-common install-man install-info install-pdf install-html dvi \
26916 pdf html uninstall info man srcextra srcman srcinfo \
26917 mostlyclean clean distclean maintainer-clean install-plugin"
26918
26919 for t in $target_list
26920 do
26921 x=
26922 for lang in $all_selected_languages
26923 do
26924 x="$x $lang.$t"
26925 done
26926 echo "lang.$t: $x" >> Make-hooks
26927 done
26928
26929 # --------
26930 # Option include files
26931 # --------
26932
26933 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26934 option_includes="option-includes.mk"
26935
26936
26937 # --------
26938 # UNSORTED
26939 # --------
26940
26941 # Create .gdbinit.
26942
26943 echo "dir ." > .gdbinit
26944 echo "dir ${srcdir}" >> .gdbinit
26945 if test x$gdb_needs_out_file_path = xyes
26946 then
26947 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26948 fi
26949 if test "x$subdirs" != x; then
26950 for s in $subdirs
26951 do
26952 echo "dir ${srcdir}/$s" >> .gdbinit
26953 done
26954 fi
26955 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26956
26957 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26958
26959
26960
26961 # Find a directory in which to install a shared libgcc.
26962
26963 # Check whether --enable-version-specific-runtime-libs was given.
26964 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26965 enableval=$enable_version_specific_runtime_libs;
26966 fi
26967
26968
26969 # Substitute configuration variables
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032 # Echo link setup.
27033 if test x${build} = x${host} ; then
27034 if test x${host} = x${target} ; then
27035 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27036 else
27037 echo "Links are now set up to build a cross-compiler" 1>&2
27038 echo " from ${host} to ${target}." 1>&2
27039 fi
27040 else
27041 if test x${host} = x${target} ; then
27042 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27043 echo " for ${target}." 1>&2
27044 else
27045 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27046 echo " from ${host} to ${target}." 1>&2
27047 fi
27048 fi
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058 if test "x${CLOOGLIBS}" != "x" ; then
27059
27060 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27061
27062 fi
27063
27064 # Check for plugin support
27065 # Check whether --enable-plugin was given.
27066 if test "${enable_plugin+set}" = set; then :
27067 enableval=$enable_plugin; enable_plugin=$enableval
27068 else
27069 enable_plugin=yes; default_plugin=yes
27070 fi
27071
27072
27073 pluginlibs=
27074
27075 case "${host}" in
27076 *-*-darwin*)
27077 if test x$build = x$host; then
27078 export_sym_check="nm${exeext} -g"
27079 elif test x$host = x$target; then
27080 export_sym_check="$gcc_cv_nm -g"
27081 else
27082 export_sym_check=
27083 fi
27084 ;;
27085 *)
27086 if test x$build = x$host; then
27087 export_sym_check="objdump${exeext} -T"
27088 elif test x$host = x$target; then
27089 export_sym_check="$gcc_cv_objdump -T"
27090 else
27091 export_sym_check=
27092 fi
27093 ;;
27094 esac
27095
27096 if test x"$enable_plugin" = x"yes"; then
27097
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27099 $as_echo_n "checking for exported symbols... " >&6; }
27100 if test "x$export_sym_check" != x; then
27101 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27102 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27103 if $export_sym_check conftest | grep foobar > /dev/null; then
27104 : # No need to use a flag
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27106 $as_echo "yes" >&6; }
27107 else
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27109 $as_echo "yes" >&6; }
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27111 $as_echo_n "checking for -rdynamic... " >&6; }
27112 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27113 if $export_sym_check conftest | grep foobar > /dev/null; then
27114 plugin_rdynamic=yes
27115 pluginlibs="-rdynamic"
27116 else
27117 plugin_rdynamic=no
27118 enable_plugin=no
27119 fi
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27121 $as_echo "$plugin_rdynamic" >&6; }
27122 fi
27123 else
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27125 $as_echo "unable to check" >&6; }
27126 fi
27127
27128 # Check -ldl
27129 saved_LIBS="$LIBS"
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27131 $as_echo_n "checking for library containing dlopen... " >&6; }
27132 if test "${ac_cv_search_dlopen+set}" = set; then :
27133 $as_echo_n "(cached) " >&6
27134 else
27135 ac_func_search_save_LIBS=$LIBS
27136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27137 /* end confdefs.h. */
27138
27139 /* Override any GCC internal prototype to avoid an error.
27140 Use char because int might match the return type of a GCC
27141 builtin and then its argument prototype would still apply. */
27142 #ifdef __cplusplus
27143 extern "C"
27144 #endif
27145 char dlopen ();
27146 int
27147 main ()
27148 {
27149 return dlopen ();
27150 ;
27151 return 0;
27152 }
27153 _ACEOF
27154 for ac_lib in '' dl; do
27155 if test -z "$ac_lib"; then
27156 ac_res="none required"
27157 else
27158 ac_res=-l$ac_lib
27159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27160 fi
27161 if ac_fn_c_try_link "$LINENO"; then :
27162 ac_cv_search_dlopen=$ac_res
27163 fi
27164 rm -f core conftest.err conftest.$ac_objext \
27165 conftest$ac_exeext
27166 if test "${ac_cv_search_dlopen+set}" = set; then :
27167 break
27168 fi
27169 done
27170 if test "${ac_cv_search_dlopen+set}" = set; then :
27171
27172 else
27173 ac_cv_search_dlopen=no
27174 fi
27175 rm conftest.$ac_ext
27176 LIBS=$ac_func_search_save_LIBS
27177 fi
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27179 $as_echo "$ac_cv_search_dlopen" >&6; }
27180 ac_res=$ac_cv_search_dlopen
27181 if test "$ac_res" != no; then :
27182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27183
27184 fi
27185
27186 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27187 pluginlibs="$pluginlibs -ldl"
27188 fi
27189 LIBS="$saved_LIBS"
27190
27191 # Check that we can build shared objects with -fPIC -shared
27192 saved_LDFLAGS="$LDFLAGS"
27193 saved_CFLAGS="$CFLAGS"
27194 case "${host}" in
27195 *-*-darwin*)
27196 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27197 CFLAGS="$CFLAGS -fPIC"
27198 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27199 ;;
27200 *)
27201 CFLAGS="$CFLAGS -fPIC"
27202 LDFLAGS="$LDFLAGS -fPIC -shared"
27203 ;;
27204 esac
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27206 $as_echo_n "checking for -fPIC -shared... " >&6; }
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27209 extern int X;
27210 int
27211 main ()
27212 {
27213 return X == 0;
27214 ;
27215 return 0;
27216 }
27217 _ACEOF
27218 if ac_fn_c_try_link "$LINENO"; then :
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27220 $as_echo "yes" >&6; }; have_pic_shared=yes
27221 else
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27223 $as_echo "no" >&6; }; have_pic_shared=no
27224 fi
27225 rm -f core conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext conftest.$ac_ext
27227 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27228 pluginlibs=
27229 enable_plugin=no
27230 fi
27231 LDFLAGS="$saved_LDFLAGS"
27232 CFLAGS="$saved_CFLAGS"
27233
27234 # If plugin support had been requested but not available, fail.
27235 if test x"$enable_plugin" = x"no" ; then
27236 if test x"$default_plugin" != x"yes"; then
27237 as_fn_error "
27238 Building GCC with plugin support requires a host that supports
27239 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27240 fi
27241 fi
27242 fi
27243
27244
27245
27246 if test x"$enable_plugin" = x"yes"; then
27247
27248 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27249
27250 fi
27251
27252
27253 # Check whether --enable-libquadmath-support was given.
27254 if test "${enable_libquadmath_support+set}" = set; then :
27255 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27256 else
27257 ENABLE_LIBQUADMATH_SUPPORT=yes
27258 fi
27259
27260 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27261
27262 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27263
27264 fi
27265
27266
27267 # Specify what hash style to use by default.
27268
27269 # Check whether --with-linker-hash-style was given.
27270 if test "${with_linker_hash_style+set}" = set; then :
27271 withval=$with_linker_hash_style; case x"$withval" in
27272 xsysv)
27273 LINKER_HASH_STYLE=sysv
27274 ;;
27275 xgnu)
27276 LINKER_HASH_STYLE=gnu
27277 ;;
27278 xboth)
27279 LINKER_HASH_STYLE=both
27280 ;;
27281 *)
27282 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27283 ;;
27284 esac
27285 else
27286 LINKER_HASH_STYLE=''
27287 fi
27288
27289 if test x"${LINKER_HASH_STYLE}" != x; then
27290
27291 cat >>confdefs.h <<_ACEOF
27292 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27293 _ACEOF
27294
27295 fi
27296
27297 # Configure the subdirectories
27298 # AC_CONFIG_SUBDIRS($subdirs)
27299
27300 # Create the Makefile
27301 # and configure language subdirectories
27302 ac_config_files="$ac_config_files $all_outputs"
27303
27304
27305 ac_config_commands="$ac_config_commands default"
27306
27307 cat >confcache <<\_ACEOF
27308 # This file is a shell script that caches the results of configure
27309 # tests run on this system so they can be shared between configure
27310 # scripts and configure runs, see configure's option --config-cache.
27311 # It is not useful on other systems. If it contains results you don't
27312 # want to keep, you may remove or edit it.
27313 #
27314 # config.status only pays attention to the cache file if you give it
27315 # the --recheck option to rerun configure.
27316 #
27317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27319 # following values.
27320
27321 _ACEOF
27322
27323 # The following way of writing the cache mishandles newlines in values,
27324 # but we know of no workaround that is simple, portable, and efficient.
27325 # So, we kill variables containing newlines.
27326 # Ultrix sh set writes to stderr and can't be redirected directly,
27327 # and sets the high bit in the cache file unless we assign to the vars.
27328 (
27329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27330 eval ac_val=\$$ac_var
27331 case $ac_val in #(
27332 *${as_nl}*)
27333 case $ac_var in #(
27334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27336 esac
27337 case $ac_var in #(
27338 _ | IFS | as_nl) ;; #(
27339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27340 *) { eval $ac_var=; unset $ac_var;} ;;
27341 esac ;;
27342 esac
27343 done
27344
27345 (set) 2>&1 |
27346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27347 *${as_nl}ac_space=\ *)
27348 # `set' does not quote correctly, so add quotes: double-quote
27349 # substitution turns \\\\ into \\, and sed turns \\ into \.
27350 sed -n \
27351 "s/'/'\\\\''/g;
27352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27353 ;; #(
27354 *)
27355 # `set' quotes correctly as required by POSIX, so do not add quotes.
27356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27357 ;;
27358 esac |
27359 sort
27360 ) |
27361 sed '
27362 /^ac_cv_env_/b end
27363 t clear
27364 :clear
27365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27366 t end
27367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27368 :end' >>confcache
27369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27370 if test -w "$cache_file"; then
27371 test "x$cache_file" != "x/dev/null" &&
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27373 $as_echo "$as_me: updating cache $cache_file" >&6;}
27374 cat confcache >$cache_file
27375 else
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27377 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27378 fi
27379 fi
27380 rm -f confcache
27381
27382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27383 # Let make expand exec_prefix.
27384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27385
27386 DEFS=-DHAVE_CONFIG_H
27387
27388 ac_libobjs=
27389 ac_ltlibobjs=
27390 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27391 # 1. Remove the extension, and $U if already installed.
27392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27393 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27395 # will be set to the directory where LIBOBJS objects are built.
27396 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27397 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27398 done
27399 LIBOBJS=$ac_libobjs
27400
27401 LTLIBOBJS=$ac_ltlibobjs
27402
27403
27404
27405
27406 : ${CONFIG_STATUS=./config.status}
27407 ac_write_fail=0
27408 ac_clean_files_save=$ac_clean_files
27409 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27411 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27412 as_write_fail=0
27413 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27414 #! $SHELL
27415 # Generated by $as_me.
27416 # Run this file to recreate the current configuration.
27417 # Compiler output produced by configure, useful for debugging
27418 # configure, is in config.log if it exists.
27419
27420 debug=false
27421 ac_cs_recheck=false
27422 ac_cs_silent=false
27423
27424 SHELL=\${CONFIG_SHELL-$SHELL}
27425 export SHELL
27426 _ASEOF
27427 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27428 ## -------------------- ##
27429 ## M4sh Initialization. ##
27430 ## -------------------- ##
27431
27432 # Be more Bourne compatible
27433 DUALCASE=1; export DUALCASE # for MKS sh
27434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27435 emulate sh
27436 NULLCMD=:
27437 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27438 # is contrary to our usage. Disable this feature.
27439 alias -g '${1+"$@"}'='"$@"'
27440 setopt NO_GLOB_SUBST
27441 else
27442 case `(set -o) 2>/dev/null` in #(
27443 *posix*) :
27444 set -o posix ;; #(
27445 *) :
27446 ;;
27447 esac
27448 fi
27449
27450
27451 as_nl='
27452 '
27453 export as_nl
27454 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27455 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27456 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27458 # Prefer a ksh shell builtin over an external printf program on Solaris,
27459 # but without wasting forks for bash or zsh.
27460 if test -z "$BASH_VERSION$ZSH_VERSION" \
27461 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27462 as_echo='print -r --'
27463 as_echo_n='print -rn --'
27464 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27465 as_echo='printf %s\n'
27466 as_echo_n='printf %s'
27467 else
27468 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27469 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27470 as_echo_n='/usr/ucb/echo -n'
27471 else
27472 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27473 as_echo_n_body='eval
27474 arg=$1;
27475 case $arg in #(
27476 *"$as_nl"*)
27477 expr "X$arg" : "X\\(.*\\)$as_nl";
27478 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27479 esac;
27480 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27481 '
27482 export as_echo_n_body
27483 as_echo_n='sh -c $as_echo_n_body as_echo'
27484 fi
27485 export as_echo_body
27486 as_echo='sh -c $as_echo_body as_echo'
27487 fi
27488
27489 # The user is always right.
27490 if test "${PATH_SEPARATOR+set}" != set; then
27491 PATH_SEPARATOR=:
27492 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27493 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27494 PATH_SEPARATOR=';'
27495 }
27496 fi
27497
27498
27499 # IFS
27500 # We need space, tab and new line, in precisely that order. Quoting is
27501 # there to prevent editors from complaining about space-tab.
27502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27503 # splitting by setting IFS to empty value.)
27504 IFS=" "" $as_nl"
27505
27506 # Find who we are. Look in the path if we contain no directory separator.
27507 case $0 in #((
27508 *[\\/]* ) as_myself=$0 ;;
27509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27510 for as_dir in $PATH
27511 do
27512 IFS=$as_save_IFS
27513 test -z "$as_dir" && as_dir=.
27514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27515 done
27516 IFS=$as_save_IFS
27517
27518 ;;
27519 esac
27520 # We did not find ourselves, most probably we were run as `sh COMMAND'
27521 # in which case we are not to be found in the path.
27522 if test "x$as_myself" = x; then
27523 as_myself=$0
27524 fi
27525 if test ! -f "$as_myself"; then
27526 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27527 exit 1
27528 fi
27529
27530 # Unset variables that we do not need and which cause bugs (e.g. in
27531 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27532 # suppresses any "Segmentation fault" message there. '((' could
27533 # trigger a bug in pdksh 5.2.14.
27534 for as_var in BASH_ENV ENV MAIL MAILPATH
27535 do eval test x\${$as_var+set} = xset \
27536 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27537 done
27538 PS1='$ '
27539 PS2='> '
27540 PS4='+ '
27541
27542 # NLS nuisances.
27543 LC_ALL=C
27544 export LC_ALL
27545 LANGUAGE=C
27546 export LANGUAGE
27547
27548 # CDPATH.
27549 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27550
27551
27552 # as_fn_error ERROR [LINENO LOG_FD]
27553 # ---------------------------------
27554 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27555 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27556 # script with status $?, using 1 if that was 0.
27557 as_fn_error ()
27558 {
27559 as_status=$?; test $as_status -eq 0 && as_status=1
27560 if test "$3"; then
27561 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27562 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27563 fi
27564 $as_echo "$as_me: error: $1" >&2
27565 as_fn_exit $as_status
27566 } # as_fn_error
27567
27568
27569 # as_fn_set_status STATUS
27570 # -----------------------
27571 # Set $? to STATUS, without forking.
27572 as_fn_set_status ()
27573 {
27574 return $1
27575 } # as_fn_set_status
27576
27577 # as_fn_exit STATUS
27578 # -----------------
27579 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27580 as_fn_exit ()
27581 {
27582 set +e
27583 as_fn_set_status $1
27584 exit $1
27585 } # as_fn_exit
27586
27587 # as_fn_unset VAR
27588 # ---------------
27589 # Portably unset VAR.
27590 as_fn_unset ()
27591 {
27592 { eval $1=; unset $1;}
27593 }
27594 as_unset=as_fn_unset
27595 # as_fn_append VAR VALUE
27596 # ----------------------
27597 # Append the text in VALUE to the end of the definition contained in VAR. Take
27598 # advantage of any shell optimizations that allow amortized linear growth over
27599 # repeated appends, instead of the typical quadratic growth present in naive
27600 # implementations.
27601 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27602 eval 'as_fn_append ()
27603 {
27604 eval $1+=\$2
27605 }'
27606 else
27607 as_fn_append ()
27608 {
27609 eval $1=\$$1\$2
27610 }
27611 fi # as_fn_append
27612
27613 # as_fn_arith ARG...
27614 # ------------------
27615 # Perform arithmetic evaluation on the ARGs, and store the result in the
27616 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27617 # must be portable across $(()) and expr.
27618 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27619 eval 'as_fn_arith ()
27620 {
27621 as_val=$(( $* ))
27622 }'
27623 else
27624 as_fn_arith ()
27625 {
27626 as_val=`expr "$@" || test $? -eq 1`
27627 }
27628 fi # as_fn_arith
27629
27630
27631 if expr a : '\(a\)' >/dev/null 2>&1 &&
27632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27633 as_expr=expr
27634 else
27635 as_expr=false
27636 fi
27637
27638 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27639 as_basename=basename
27640 else
27641 as_basename=false
27642 fi
27643
27644 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27645 as_dirname=dirname
27646 else
27647 as_dirname=false
27648 fi
27649
27650 as_me=`$as_basename -- "$0" ||
27651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27652 X"$0" : 'X\(//\)$' \| \
27653 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27654 $as_echo X/"$0" |
27655 sed '/^.*\/\([^/][^/]*\)\/*$/{
27656 s//\1/
27657 q
27658 }
27659 /^X\/\(\/\/\)$/{
27660 s//\1/
27661 q
27662 }
27663 /^X\/\(\/\).*/{
27664 s//\1/
27665 q
27666 }
27667 s/.*/./; q'`
27668
27669 # Avoid depending upon Character Ranges.
27670 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27671 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27672 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27673 as_cr_digits='0123456789'
27674 as_cr_alnum=$as_cr_Letters$as_cr_digits
27675
27676 ECHO_C= ECHO_N= ECHO_T=
27677 case `echo -n x` in #(((((
27678 -n*)
27679 case `echo 'xy\c'` in
27680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27681 xy) ECHO_C='\c';;
27682 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27683 ECHO_T=' ';;
27684 esac;;
27685 *)
27686 ECHO_N='-n';;
27687 esac
27688
27689 rm -f conf$$ conf$$.exe conf$$.file
27690 if test -d conf$$.dir; then
27691 rm -f conf$$.dir/conf$$.file
27692 else
27693 rm -f conf$$.dir
27694 mkdir conf$$.dir 2>/dev/null
27695 fi
27696 if (echo >conf$$.file) 2>/dev/null; then
27697 if ln -s conf$$.file conf$$ 2>/dev/null; then
27698 as_ln_s='ln -s'
27699 # ... but there are two gotchas:
27700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27702 # In both cases, we have to default to `cp -p'.
27703 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27704 as_ln_s='cp -p'
27705 elif ln conf$$.file conf$$ 2>/dev/null; then
27706 as_ln_s=ln
27707 else
27708 as_ln_s='cp -p'
27709 fi
27710 else
27711 as_ln_s='cp -p'
27712 fi
27713 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27714 rmdir conf$$.dir 2>/dev/null
27715
27716
27717 # as_fn_mkdir_p
27718 # -------------
27719 # Create "$as_dir" as a directory, including parents if necessary.
27720 as_fn_mkdir_p ()
27721 {
27722
27723 case $as_dir in #(
27724 -*) as_dir=./$as_dir;;
27725 esac
27726 test -d "$as_dir" || eval $as_mkdir_p || {
27727 as_dirs=
27728 while :; do
27729 case $as_dir in #(
27730 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27731 *) as_qdir=$as_dir;;
27732 esac
27733 as_dirs="'$as_qdir' $as_dirs"
27734 as_dir=`$as_dirname -- "$as_dir" ||
27735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736 X"$as_dir" : 'X\(//\)[^/]' \| \
27737 X"$as_dir" : 'X\(//\)$' \| \
27738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27739 $as_echo X"$as_dir" |
27740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27741 s//\1/
27742 q
27743 }
27744 /^X\(\/\/\)[^/].*/{
27745 s//\1/
27746 q
27747 }
27748 /^X\(\/\/\)$/{
27749 s//\1/
27750 q
27751 }
27752 /^X\(\/\).*/{
27753 s//\1/
27754 q
27755 }
27756 s/.*/./; q'`
27757 test -d "$as_dir" && break
27758 done
27759 test -z "$as_dirs" || eval "mkdir $as_dirs"
27760 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27761
27762
27763 } # as_fn_mkdir_p
27764 if mkdir -p . 2>/dev/null; then
27765 as_mkdir_p='mkdir -p "$as_dir"'
27766 else
27767 test -d ./-p && rmdir ./-p
27768 as_mkdir_p=false
27769 fi
27770
27771 if test -x / >/dev/null 2>&1; then
27772 as_test_x='test -x'
27773 else
27774 if ls -dL / >/dev/null 2>&1; then
27775 as_ls_L_option=L
27776 else
27777 as_ls_L_option=
27778 fi
27779 as_test_x='
27780 eval sh -c '\''
27781 if test -d "$1"; then
27782 test -d "$1/.";
27783 else
27784 case $1 in #(
27785 -*)set "./$1";;
27786 esac;
27787 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27788 ???[sx]*):;;*)false;;esac;fi
27789 '\'' sh
27790 '
27791 fi
27792 as_executable_p=$as_test_x
27793
27794 # Sed expression to map a string onto a valid CPP name.
27795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27796
27797 # Sed expression to map a string onto a valid variable name.
27798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27799
27800
27801 exec 6>&1
27802 ## ----------------------------------- ##
27803 ## Main body of $CONFIG_STATUS script. ##
27804 ## ----------------------------------- ##
27805 _ASEOF
27806 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27807
27808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27809 # Save the log message, to keep $0 and so on meaningful, and to
27810 # report actual input values of CONFIG_FILES etc. instead of their
27811 # values after options handling.
27812 ac_log="
27813 This file was extended by $as_me, which was
27814 generated by GNU Autoconf 2.64. Invocation command line was
27815
27816 CONFIG_FILES = $CONFIG_FILES
27817 CONFIG_HEADERS = $CONFIG_HEADERS
27818 CONFIG_LINKS = $CONFIG_LINKS
27819 CONFIG_COMMANDS = $CONFIG_COMMANDS
27820 $ $0 $@
27821
27822 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27823 "
27824
27825 _ACEOF
27826
27827 case $ac_config_files in *"
27828 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27829 esac
27830
27831 case $ac_config_headers in *"
27832 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27833 esac
27834
27835
27836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27837 # Files that config.status was made for.
27838 config_files="$ac_config_files"
27839 config_headers="$ac_config_headers"
27840 config_commands="$ac_config_commands"
27841
27842 _ACEOF
27843
27844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27845 ac_cs_usage="\
27846 \`$as_me' instantiates files and other configuration actions
27847 from templates according to the current configuration. Unless the files
27848 and actions are specified as TAGs, all are instantiated by default.
27849
27850 Usage: $0 [OPTION]... [TAG]...
27851
27852 -h, --help print this help, then exit
27853 -V, --version print version number and configuration settings, then exit
27854 -q, --quiet, --silent
27855 do not print progress messages
27856 -d, --debug don't remove temporary files
27857 --recheck update $as_me by reconfiguring in the same conditions
27858 --file=FILE[:TEMPLATE]
27859 instantiate the configuration file FILE
27860 --header=FILE[:TEMPLATE]
27861 instantiate the configuration header FILE
27862
27863 Configuration files:
27864 $config_files
27865
27866 Configuration headers:
27867 $config_headers
27868
27869 Configuration commands:
27870 $config_commands
27871
27872 Report bugs to the package provider."
27873
27874 _ACEOF
27875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27876 ac_cs_version="\\
27877 config.status
27878 configured by $0, generated by GNU Autoconf 2.64,
27879 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27880
27881 Copyright (C) 2009 Free Software Foundation, Inc.
27882 This config.status script is free software; the Free Software Foundation
27883 gives unlimited permission to copy, distribute and modify it."
27884
27885 ac_pwd='$ac_pwd'
27886 srcdir='$srcdir'
27887 AWK='$AWK'
27888 test -n "\$AWK" || AWK=awk
27889 _ACEOF
27890
27891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27892 # The default lists apply if the user does not specify any file.
27893 ac_need_defaults=:
27894 while test $# != 0
27895 do
27896 case $1 in
27897 --*=*)
27898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27900 ac_shift=:
27901 ;;
27902 *)
27903 ac_option=$1
27904 ac_optarg=$2
27905 ac_shift=shift
27906 ;;
27907 esac
27908
27909 case $ac_option in
27910 # Handling of the options.
27911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27912 ac_cs_recheck=: ;;
27913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27914 $as_echo "$ac_cs_version"; exit ;;
27915 --debug | --debu | --deb | --de | --d | -d )
27916 debug=: ;;
27917 --file | --fil | --fi | --f )
27918 $ac_shift
27919 case $ac_optarg in
27920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27921 esac
27922 as_fn_append CONFIG_FILES " '$ac_optarg'"
27923 ac_need_defaults=false;;
27924 --header | --heade | --head | --hea )
27925 $ac_shift
27926 case $ac_optarg in
27927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27928 esac
27929 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27930 ac_need_defaults=false;;
27931 --he | --h)
27932 # Conflict between --help and --header
27933 as_fn_error "ambiguous option: \`$1'
27934 Try \`$0 --help' for more information.";;
27935 --help | --hel | -h )
27936 $as_echo "$ac_cs_usage"; exit ;;
27937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27939 ac_cs_silent=: ;;
27940
27941 # This is an error.
27942 -*) as_fn_error "unrecognized option: \`$1'
27943 Try \`$0 --help' for more information." ;;
27944
27945 *) as_fn_append ac_config_targets " $1"
27946 ac_need_defaults=false ;;
27947
27948 esac
27949 shift
27950 done
27951
27952 ac_configure_extra_args=
27953
27954 if $ac_cs_silent; then
27955 exec 6>/dev/null
27956 ac_configure_extra_args="$ac_configure_extra_args --silent"
27957 fi
27958
27959 _ACEOF
27960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27961 if \$ac_cs_recheck; then
27962 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27963 shift
27964 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27965 CONFIG_SHELL='$SHELL'
27966 export CONFIG_SHELL
27967 exec "\$@"
27968 fi
27969
27970 _ACEOF
27971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27972 exec 5>>config.log
27973 {
27974 echo
27975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27976 ## Running $as_me. ##
27977 _ASBOX
27978 $as_echo "$ac_log"
27979 } >&5
27980
27981 _ACEOF
27982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27983 #
27984 # INIT-COMMANDS
27985 #
27986 subdirs='$subdirs'
27987
27988 _ACEOF
27989
27990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27991
27992 # Handling of arguments.
27993 for ac_config_target in $ac_config_targets
27994 do
27995 case $ac_config_target in
27996 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27997 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27998 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27999 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28000 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28001 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28002
28003 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28004 esac
28005 done
28006
28007
28008 # If the user did not use the arguments to specify the items to instantiate,
28009 # then the envvar interface is used. Set only those that are not.
28010 # We use the long form for the default assignment because of an extremely
28011 # bizarre bug on SunOS 4.1.3.
28012 if $ac_need_defaults; then
28013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28016 fi
28017
28018 # Have a temporary directory for convenience. Make it in the build tree
28019 # simply because there is no reason against having it here, and in addition,
28020 # creating and moving files from /tmp can sometimes cause problems.
28021 # Hook for its removal unless debugging.
28022 # Note that there is a small window in which the directory will not be cleaned:
28023 # after its creation but before its name has been assigned to `$tmp'.
28024 $debug ||
28025 {
28026 tmp=
28027 trap 'exit_status=$?
28028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28029 ' 0
28030 trap 'as_fn_exit 1' 1 2 13 15
28031 }
28032 # Create a (secure) tmp directory for tmp files.
28033
28034 {
28035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28036 test -n "$tmp" && test -d "$tmp"
28037 } ||
28038 {
28039 tmp=./conf$$-$RANDOM
28040 (umask 077 && mkdir "$tmp")
28041 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28042
28043 # Set up the scripts for CONFIG_FILES section.
28044 # No need to generate them if there are no CONFIG_FILES.
28045 # This happens for instance with `./config.status config.h'.
28046 if test -n "$CONFIG_FILES"; then
28047
28048 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28049 ac_cs_awk_getline=:
28050 ac_cs_awk_pipe_init=
28051 ac_cs_awk_read_file='
28052 while ((getline aline < (F[key])) > 0)
28053 print(aline)
28054 close(F[key])'
28055 ac_cs_awk_pipe_fini=
28056 else
28057 ac_cs_awk_getline=false
28058 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28059 ac_cs_awk_read_file='
28060 print "|#_!!_#|"
28061 print "cat " F[key] " &&"
28062 '$ac_cs_awk_pipe_init
28063 # The final `:' finishes the AND list.
28064 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28065 fi
28066 ac_cr=`echo X | tr X '\015'`
28067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28068 # But we know of no other shell where ac_cr would be empty at this
28069 # point, so we can use a bashism as a fallback.
28070 if test "x$ac_cr" = x; then
28071 eval ac_cr=\$\'\\r\'
28072 fi
28073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28075 ac_cs_awk_cr='\r'
28076 else
28077 ac_cs_awk_cr=$ac_cr
28078 fi
28079
28080 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28081 _ACEOF
28082
28083 # Create commands to substitute file output variables.
28084 {
28085 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28086 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28087 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28088 echo "_ACAWK" &&
28089 echo "_ACEOF"
28090 } >conf$$files.sh &&
28091 . ./conf$$files.sh ||
28092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28093 rm -f conf$$files.sh
28094
28095 {
28096 echo "cat >conf$$subs.awk <<_ACEOF" &&
28097 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28098 echo "_ACEOF"
28099 } >conf$$subs.sh ||
28100 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28101 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28102 ac_delim='%!_!# '
28103 for ac_last_try in false false false false false :; do
28104 . ./conf$$subs.sh ||
28105 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28106
28107 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28108 if test $ac_delim_n = $ac_delim_num; then
28109 break
28110 elif $ac_last_try; then
28111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28112 else
28113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28114 fi
28115 done
28116 rm -f conf$$subs.sh
28117
28118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28119 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28120 _ACEOF
28121 sed -n '
28122 h
28123 s/^/S["/; s/!.*/"]=/
28124 p
28125 g
28126 s/^[^!]*!//
28127 :repl
28128 t repl
28129 s/'"$ac_delim"'$//
28130 t delim
28131 :nl
28132 h
28133 s/\(.\{148\}\).*/\1/
28134 t more1
28135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28136 p
28137 n
28138 b repl
28139 :more1
28140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28141 p
28142 g
28143 s/.\{148\}//
28144 t nl
28145 :delim
28146 h
28147 s/\(.\{148\}\).*/\1/
28148 t more2
28149 s/["\\]/\\&/g; s/^/"/; s/$/"/
28150 p
28151 b
28152 :more2
28153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28154 p
28155 g
28156 s/.\{148\}//
28157 t delim
28158 ' <conf$$subs.awk | sed '
28159 /^[^""]/{
28160 N
28161 s/\n//
28162 }
28163 ' >>$CONFIG_STATUS || ac_write_fail=1
28164 rm -f conf$$subs.awk
28165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28166 _ACAWK
28167 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28168 for (key in S) S_is_set[key] = 1
28169 FS = "\a"
28170 \$ac_cs_awk_pipe_init
28171 }
28172 {
28173 line = $ 0
28174 nfields = split(line, field, "@")
28175 substed = 0
28176 len = length(field[1])
28177 for (i = 2; i < nfields; i++) {
28178 key = field[i]
28179 keylen = length(key)
28180 if (S_is_set[key]) {
28181 value = S[key]
28182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28183 len += length(value) + length(field[++i])
28184 substed = 1
28185 } else
28186 len += 1 + keylen
28187 }
28188 if (nfields == 3 && !substed) {
28189 key = field[2]
28190 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28191 \$ac_cs_awk_read_file
28192 next
28193 }
28194 }
28195 print line
28196 }
28197 \$ac_cs_awk_pipe_fini
28198 _ACAWK
28199 _ACEOF
28200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28201 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28203 else
28204 cat
28205 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28206 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28207 _ACEOF
28208
28209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28211 # trailing colons and then remove the whole line if VPATH becomes empty
28212 # (actually we leave an empty line to preserve line numbers).
28213 if test "x$srcdir" = x.; then
28214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28215 s/:*\$(srcdir):*/:/
28216 s/:*\${srcdir}:*/:/
28217 s/:*@srcdir@:*/:/
28218 s/^\([^=]*=[ ]*\):*/\1/
28219 s/:*$//
28220 s/^[^=]*=[ ]*$//
28221 }'
28222 fi
28223
28224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28225 fi # test -n "$CONFIG_FILES"
28226
28227 # Set up the scripts for CONFIG_HEADERS section.
28228 # No need to generate them if there are no CONFIG_HEADERS.
28229 # This happens for instance with `./config.status Makefile'.
28230 if test -n "$CONFIG_HEADERS"; then
28231 cat >"$tmp/defines.awk" <<\_ACAWK ||
28232 BEGIN {
28233 _ACEOF
28234
28235 # Transform confdefs.h into an awk script `defines.awk', embedded as
28236 # here-document in config.status, that substitutes the proper values into
28237 # config.h.in to produce config.h.
28238
28239 # Create a delimiter string that does not exist in confdefs.h, to ease
28240 # handling of long lines.
28241 ac_delim='%!_!# '
28242 for ac_last_try in false false :; do
28243 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28244 if test -z "$ac_t"; then
28245 break
28246 elif $ac_last_try; then
28247 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28248 else
28249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28250 fi
28251 done
28252
28253 # For the awk script, D is an array of macro values keyed by name,
28254 # likewise P contains macro parameters if any. Preserve backslash
28255 # newline sequences.
28256
28257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28258 sed -n '
28259 s/.\{148\}/&'"$ac_delim"'/g
28260 t rset
28261 :rset
28262 s/^[ ]*#[ ]*define[ ][ ]*/ /
28263 t def
28264 d
28265 :def
28266 s/\\$//
28267 t bsnl
28268 s/["\\]/\\&/g
28269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28270 D["\1"]=" \3"/p
28271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28272 d
28273 :bsnl
28274 s/["\\]/\\&/g
28275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28276 D["\1"]=" \3\\\\\\n"\\/p
28277 t cont
28278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28279 t cont
28280 d
28281 :cont
28282 n
28283 s/.\{148\}/&'"$ac_delim"'/g
28284 t clear
28285 :clear
28286 s/\\$//
28287 t bsnlc
28288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28289 d
28290 :bsnlc
28291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28292 b cont
28293 ' <confdefs.h | sed '
28294 s/'"$ac_delim"'/"\\\
28295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28296
28297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28298 for (key in D) D_is_set[key] = 1
28299 FS = "\a"
28300 }
28301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28302 line = \$ 0
28303 split(line, arg, " ")
28304 if (arg[1] == "#") {
28305 defundef = arg[2]
28306 mac1 = arg[3]
28307 } else {
28308 defundef = substr(arg[1], 2)
28309 mac1 = arg[2]
28310 }
28311 split(mac1, mac2, "(") #)
28312 macro = mac2[1]
28313 prefix = substr(line, 1, index(line, defundef) - 1)
28314 if (D_is_set[macro]) {
28315 # Preserve the white space surrounding the "#".
28316 print prefix "define", macro P[macro] D[macro]
28317 next
28318 } else {
28319 # Replace #undef with comments. This is necessary, for example,
28320 # in the case of _POSIX_SOURCE, which is predefined and required
28321 # on some systems where configure will not decide to define it.
28322 if (defundef == "undef") {
28323 print "/*", prefix defundef, macro, "*/"
28324 next
28325 }
28326 }
28327 }
28328 { print }
28329 _ACAWK
28330 _ACEOF
28331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28332 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28333 fi # test -n "$CONFIG_HEADERS"
28334
28335
28336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28337 shift
28338 for ac_tag
28339 do
28340 case $ac_tag in
28341 :[FHLC]) ac_mode=$ac_tag; continue;;
28342 esac
28343 case $ac_mode$ac_tag in
28344 :[FHL]*:*);;
28345 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28346 :[FH]-) ac_tag=-:-;;
28347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28348 esac
28349 ac_save_IFS=$IFS
28350 IFS=:
28351 set x $ac_tag
28352 IFS=$ac_save_IFS
28353 shift
28354 ac_file=$1
28355 shift
28356
28357 case $ac_mode in
28358 :L) ac_source=$1;;
28359 :[FH])
28360 ac_file_inputs=
28361 for ac_f
28362 do
28363 case $ac_f in
28364 -) ac_f="$tmp/stdin";;
28365 *) # Look for the file first in the build tree, then in the source tree
28366 # (if the path is not absolute). The absolute path cannot be DOS-style,
28367 # because $ac_f cannot contain `:'.
28368 test -f "$ac_f" ||
28369 case $ac_f in
28370 [\\/$]*) false;;
28371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28372 esac ||
28373 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28374 esac
28375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28376 as_fn_append ac_file_inputs " '$ac_f'"
28377 done
28378
28379 # Let's still pretend it is `configure' which instantiates (i.e., don't
28380 # use $as_me), people would be surprised to read:
28381 # /* config.h. Generated by config.status. */
28382 configure_input='Generated from '`
28383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28384 `' by configure.'
28385 if test x"$ac_file" != x-; then
28386 configure_input="$ac_file. $configure_input"
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28388 $as_echo "$as_me: creating $ac_file" >&6;}
28389 fi
28390 # Neutralize special characters interpreted by sed in replacement strings.
28391 case $configure_input in #(
28392 *\&* | *\|* | *\\* )
28393 ac_sed_conf_input=`$as_echo "$configure_input" |
28394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28395 *) ac_sed_conf_input=$configure_input;;
28396 esac
28397
28398 case $ac_tag in
28399 *:-:* | *:-) cat >"$tmp/stdin" \
28400 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28401 esac
28402 ;;
28403 esac
28404
28405 ac_dir=`$as_dirname -- "$ac_file" ||
28406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28407 X"$ac_file" : 'X\(//\)[^/]' \| \
28408 X"$ac_file" : 'X\(//\)$' \| \
28409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28410 $as_echo X"$ac_file" |
28411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28412 s//\1/
28413 q
28414 }
28415 /^X\(\/\/\)[^/].*/{
28416 s//\1/
28417 q
28418 }
28419 /^X\(\/\/\)$/{
28420 s//\1/
28421 q
28422 }
28423 /^X\(\/\).*/{
28424 s//\1/
28425 q
28426 }
28427 s/.*/./; q'`
28428 as_dir="$ac_dir"; as_fn_mkdir_p
28429 ac_builddir=.
28430
28431 case "$ac_dir" in
28432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28433 *)
28434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28435 # A ".." for each directory in $ac_dir_suffix.
28436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28437 case $ac_top_builddir_sub in
28438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28440 esac ;;
28441 esac
28442 ac_abs_top_builddir=$ac_pwd
28443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28444 # for backward compatibility:
28445 ac_top_builddir=$ac_top_build_prefix
28446
28447 case $srcdir in
28448 .) # We are building in place.
28449 ac_srcdir=.
28450 ac_top_srcdir=$ac_top_builddir_sub
28451 ac_abs_top_srcdir=$ac_pwd ;;
28452 [\\/]* | ?:[\\/]* ) # Absolute name.
28453 ac_srcdir=$srcdir$ac_dir_suffix;
28454 ac_top_srcdir=$srcdir
28455 ac_abs_top_srcdir=$srcdir ;;
28456 *) # Relative name.
28457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28458 ac_top_srcdir=$ac_top_build_prefix$srcdir
28459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28460 esac
28461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28462
28463
28464 case $ac_mode in
28465 :F)
28466 #
28467 # CONFIG_FILE
28468 #
28469
28470 _ACEOF
28471
28472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28473 # If the template does not know about datarootdir, expand it.
28474 # FIXME: This hack should be removed a few years after 2.60.
28475 ac_datarootdir_hack=; ac_datarootdir_seen=
28476 ac_sed_dataroot='
28477 /datarootdir/ {
28478 p
28479 q
28480 }
28481 /@datadir@/p
28482 /@docdir@/p
28483 /@infodir@/p
28484 /@localedir@/p
28485 /@mandir@/p'
28486 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28487 *datarootdir*) ac_datarootdir_seen=yes;;
28488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28490 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28491 _ACEOF
28492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28493 ac_datarootdir_hack='
28494 s&@datadir@&$datadir&g
28495 s&@docdir@&$docdir&g
28496 s&@infodir@&$infodir&g
28497 s&@localedir@&$localedir&g
28498 s&@mandir@&$mandir&g
28499 s&\\\${datarootdir}&$datarootdir&g' ;;
28500 esac
28501 _ACEOF
28502
28503 # Neutralize VPATH when `$srcdir' = `.'.
28504 # Shell code in configure.ac might set extrasub.
28505 # FIXME: do we really want to maintain this feature?
28506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28507 ac_sed_extra="$ac_vpsub
28508 $extrasub
28509 _ACEOF
28510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28511 :t
28512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28513 s|@configure_input@|$ac_sed_conf_input|;t t
28514 s&@top_builddir@&$ac_top_builddir_sub&;t t
28515 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28516 s&@srcdir@&$ac_srcdir&;t t
28517 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28518 s&@top_srcdir@&$ac_top_srcdir&;t t
28519 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28520 s&@builddir@&$ac_builddir&;t t
28521 s&@abs_builddir@&$ac_abs_builddir&;t t
28522 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28523 $ac_datarootdir_hack
28524 "
28525 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28526 if $ac_cs_awk_getline; then
28527 $AWK -f "$tmp/subs.awk"
28528 else
28529 $AWK -f "$tmp/subs.awk" | $SHELL
28530 fi >$tmp/out \
28531 || as_fn_error "could not create $ac_file" "$LINENO" 5
28532
28533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28534 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28537 which seems to be undefined. Please make sure it is defined." >&5
28538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28539 which seems to be undefined. Please make sure it is defined." >&2;}
28540
28541 rm -f "$tmp/stdin"
28542 case $ac_file in
28543 -) cat "$tmp/out" && rm -f "$tmp/out";;
28544 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28545 esac \
28546 || as_fn_error "could not create $ac_file" "$LINENO" 5
28547 ;;
28548 :H)
28549 #
28550 # CONFIG_HEADER
28551 #
28552 if test x"$ac_file" != x-; then
28553 {
28554 $as_echo "/* $configure_input */" \
28555 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28556 } >"$tmp/config.h" \
28557 || as_fn_error "could not create $ac_file" "$LINENO" 5
28558 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28561 else
28562 rm -f "$ac_file"
28563 mv "$tmp/config.h" "$ac_file" \
28564 || as_fn_error "could not create $ac_file" "$LINENO" 5
28565 fi
28566 else
28567 $as_echo "/* $configure_input */" \
28568 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28569 || as_fn_error "could not create -" "$LINENO" 5
28570 fi
28571 ;;
28572
28573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28574 $as_echo "$as_me: executing $ac_file commands" >&6;}
28575 ;;
28576 esac
28577
28578
28579 case $ac_file$ac_mode in
28580 "as":F) chmod +x as ;;
28581 "collect-ld":F) chmod +x collect-ld ;;
28582 "nm":F) chmod +x nm ;;
28583 "default":C)
28584 case ${CONFIG_HEADERS} in
28585 *auto-host.h:config.in*)
28586 echo > cstamp-h ;;
28587 esac
28588 # Make sure all the subdirs exist.
28589 for d in $subdirs doc build common c-family
28590 do
28591 test -d $d || mkdir $d
28592 done
28593 ;;
28594
28595 esac
28596 done # for ac_tag
28597
28598
28599 as_fn_exit 0
28600 _ACEOF
28601 ac_clean_files=$ac_clean_files_save
28602
28603 test $ac_write_fail = 0 ||
28604 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28605
28606
28607 # configure is writing to config.log, and then calls config.status.
28608 # config.status does its own redirection, appending to config.log.
28609 # Unfortunately, on DOS this fails, as config.log is still kept open
28610 # by configure, so config.status won't be able to write to it; its
28611 # output is simply discarded. So we exec the FD to /dev/null,
28612 # effectively closing config.log, so it can be properly (re)opened and
28613 # appended to by config.status. When coming back to configure, we
28614 # need to make the FD available again.
28615 if test "$no_create" != yes; then
28616 ac_cs_success=:
28617 ac_config_status_args=
28618 test "$silent" = yes &&
28619 ac_config_status_args="$ac_config_status_args --quiet"
28620 exec 5>/dev/null
28621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28622 exec 5>>config.log
28623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28624 # would make configure fail if this is the last instruction.
28625 $ac_cs_success || as_fn_exit $?
28626 fi
28627 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28629 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28630 fi
28631
28632