]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
re PR target/65351 (libiberty's pic version contains non-pic code on m32 darwin;...
[thirdparty/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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
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 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
714 ALL
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 doc_build_sys
745 AR
746 NM
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
759 LN
760 LN_S
761 AWK
762 SET_MAKE
763 accel_dir_suffix
764 real_target_noncanonical
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
797 CPP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
803 CXX
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
810 CC
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 with_multilib_list
907 enable_rpath
908 with_libiconv_prefix
909 enable_sjlj_exceptions
910 enable_secureplt
911 enable_leading_mingw64_underscores
912 enable_cld
913 enable_frame_pointer
914 enable_win32_registry
915 enable_static
916 with_pic
917 enable_fast_install
918 enable_libtool_lock
919 enable_ld
920 enable_gold
921 with_plugin_ld
922 enable_gnu_indirect_function
923 enable_initfini_array
924 enable_comdat
925 enable_fix_cortex_a53_835769
926 with_glibc_version
927 enable_gnu_unique_object
928 enable_linker_build_id
929 with_long_double_128
930 with_gc
931 with_system_zlib
932 enable_maintainer_mode
933 enable_link_mutex
934 enable_version_specific_runtime_libs
935 enable_plugin
936 enable_host_shared
937 enable_libquadmath_support
938 with_linker_hash_style
939 with_diagnostics_color
940 '
941 ac_precious_vars='build_alias
942 host_alias
943 target_alias
944 CC
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
949 CXX
950 CXXFLAGS
951 CCC
952 CPP
953 CXXCPP
954 GMPLIBS
955 GMPINC
956 ISLLIBS
957 ISLINC'
958
959
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
981
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1007
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1011 do
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1017 fi
1018
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
1029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1054
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1307
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
1342 -*) as_fn_error "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1344 ;;
1345
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error "missing argument to $ac_option"
1370 fi
1371
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1378 fi
1379
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1385 do
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1400
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1407
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\).*/{
1456 s//\1/
1457 q
1458 }
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1463 fi
1464 else
1465 ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1553
1554 cat <<\_ACEOF
1555
1556 Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 --target=TARGET configure for building compilers for TARGET [HOST]
1565 _ACEOF
1566 fi
1567
1568 if test -n "$ac_init_help"; then
1569
1570 cat <<\_ACEOF
1571
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-generated-files-in-srcdir
1577 put copies of generated files in source dir intended
1578 for creating source tarballs for users without
1579 texinfo bison or flex
1580 --disable-largefile omit support for large files
1581 --disable-build-format-warnings
1582 don't use -Wformat while building GCC
1583 --enable-werror-always enable -Werror despite compiler version
1584 --enable-checking[=LIST]
1585 enable expensive run-time checks. With LIST, enable
1586 only specific categories of checks. Categories are:
1587 yes,no,all,none,release. Flags are:
1588 assert,df,fold,gc,gcac,gimple,misc,
1589 rtlflag,rtl,runtime,tree,valgrind,types
1590 --enable-coverage[=LEVEL]
1591 enable compiler's code coverage collection. Use to
1592 measure compiler performance and locate unused parts
1593 of the compiler. With LEVEL, specify optimization.
1594 Values are opt, noopt, default is noopt
1595 --enable-gather-detailed-mem-stats
1596 enable detailed memory allocation stats gathering
1597 --enable-valgrind-annotations
1598 enable valgrind runtime interaction
1599 --enable-multilib enable library support for multiple ABIs
1600 --enable-multiarch enable support for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit for C++
1602 --enable-decimal-float={no,yes,bid,dpd}
1603 enable decimal float extension to C. Selecting 'bid'
1604 or 'dpd' choses which decimal floating point format
1605 to use
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1608 package
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check for tls support
1611 --enable-objc-gc enable the use of Boehm's garbage collector with the
1612 GNU Objective-C runtime
1613 --disable-shared don't provide a shared libgcc
1614 --enable-languages=LIST specify which front-ends to build
1615 --disable-rpath do not hardcode runtime library paths
1616 --enable-sjlj-exceptions
1617 arrange to use setjmp/longjmp exception handling
1618 --enable-secureplt enable -msecure-plt by default for PowerPC
1619 --enable-leading-mingw64-underscores
1620 enable leading underscores on 64 bit mingw targets
1621 --enable-cld enable -mcld by default for 32bit x86
1622 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1623 x86
1624 --disable-win32-registry
1625 disable lookup of installation paths in the Registry
1626 on Windows hosts
1627 --enable-win32-registry enable registry lookup (default)
1628 --enable-win32-registry=KEY
1629 use KEY instead of GCC version as the last portion
1630 of the registry key
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-static[=PKGS] build static libraries [default=yes]
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1637 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1638 --enable-gnu-indirect-function
1639 enable the use of the @gnu_indirect_function to
1640 glibc systems
1641 --enable-initfini-array use .init_array/.fini_array sections
1642 --enable-comdat enable COMDAT group support
1643
1644 --enable-fix-cortex-a53-835769
1645 enable workaround for AArch64 Cortex-A53 erratum
1646 835769 by default
1647 --disable-fix-cortex-a53-835769
1648 disable workaround for AArch64 Cortex-A53 erratum
1649 835769 by default
1650
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass --build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful (and
1658 sometimes confusing) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support for Fortran
1668
1669 Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1672 --with-build-libsubdir=DIR Directory where to find libraries for build system
1673 --with-local-prefix=DIR specifies directory to put local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor in DIR
1678 (relative to PREFIX) as well as PREFIX/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld (full pathname)
1681 --with-demangler-in-ld try to use demangler in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as (full pathname)
1684 --with-stabs arrange to use stabs instead of host debug format
1685 --with-dwarf2 force the default debug format to be DWARF 2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to look for standard
1688 system header files in. Defaults to /usr/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1696 --with-gnu-ld assume the C compiler uses GNU ld default=no
1697 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1698 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1700 both]
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1708 the compiler
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1712 --with-diagnostics-color={never,auto,auto-if-env,always}
1713 specify the default of -fdiagnostics-color option
1714 auto-if-env stands for -fdiagnostics-color=auto if
1715 GCC_COLOR environment variable is present and
1716 -fdiagnostics-color=never otherwise
1717
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 CPP C preprocessor
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1734
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1737
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1741 fi
1742
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1750
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753 *)
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1766
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1782
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1796 fi
1797
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.64
1803
1804 Copyright (C) 2009 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1809 fi
1810
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1814
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1850
1851 } # ac_fn_c_try_compile
1852
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=1
1885 fi
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1888
1889 } # ac_fn_cxx_try_compile
1890
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1925
1926 } # ac_fn_c_try_cpp
1927
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_header_mongrel ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 else
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1956 else
1957 ac_header_compiler=no
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1962
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1972 else
1973 ac_header_preproc=no
1974 fi
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1978
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 yes:no: )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ;;
1987 no:yes:* )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2006 fi
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 fi
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013 } # ac_fn_c_check_header_mongrel
2014
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2040 ac_status=$?
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=$ac_status
2050 fi
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 return $ac_retval
2054
2055 } # ac_fn_c_try_run
2056
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085
2086 } # ac_fn_c_check_header_compile
2087
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2092 # computed
2093 ac_fn_c_compute_int ()
2094 {
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=0 ac_mid=0
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 test_array [0] = 0
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2129 else
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2132 ac_lo= ac_hi=
2133 break
2134 fi
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 int
2144 main ()
2145 {
2146 static int test_array [1 - 2 * !(($2) < 0)];
2147 test_array [0] = 0
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=-1 ac_mid=-1
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 test_array [0] = 0
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2171 else
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2174 ac_lo= ac_hi=
2175 break
2176 fi
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 else
2182 ac_lo= ac_hi=
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid
2205 else
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 case $ac_lo in #((
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 '') ac_retval=1 ;;
2213 esac
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 $4
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2220 #include <stdio.h>
2221 #include <stdlib.h>
2222 int
2223 main ()
2224 {
2225
2226 FILE *f = fopen ("conftest.val", "w");
2227 if (! f)
2228 return 1;
2229 if (($2) < 0)
2230 {
2231 long int i = longval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%ld", i);
2235 }
2236 else
2237 {
2238 unsigned long int i = ulongval ();
2239 if (i != ($2))
2240 return 1;
2241 fprintf (f, "%lu", i);
2242 }
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2246
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 else
2254 ac_retval=1
2255 fi
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 rm -f conftest.val
2259
2260 fi
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 return $ac_retval
2263
2264 } # ac_fn_c_compute_int
2265
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2271 {
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 eval "$3=no"
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof ($2))
2286 return 0;
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $4
2295 int
2296 main ()
2297 {
2298 if (sizeof (($2)))
2299 return 0;
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305
2306 else
2307 eval "$3=yes"
2308 fi
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 fi
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2317
2318 } # ac_fn_c_check_type
2319
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_find_intX_t ()
2325 {
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2338 int
2339 main ()
2340 {
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2342 test_array [0] = 0
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2352 int
2353 main ()
2354 {
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2357 test_array [0] = 0
2358
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364
2365 else
2366 case $ac_type in #(
2367 int$2_t) :
2368 eval "$3=yes" ;; #(
2369 *) :
2370 eval "$3=\$ac_type" ;;
2371 esac
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 eval as_val=\$$3
2377 if test "x$as_val" = x""no; then :
2378
2379 else
2380 break
2381 fi
2382 done
2383 fi
2384 eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388
2389 } # ac_fn_c_find_intX_t
2390
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2394 ac_fn_c_try_link ()
2395 {
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2411 fi
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest$ac_exeext
2419 }; then :
2420 ac_retval=0
2421 else
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_retval=1
2426 fi
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 return $ac_retval
2434
2435 } # ac_fn_c_try_link
2436
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2440 # accordingly.
2441 ac_fn_c_find_uintX_t ()
2442 {
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=no"
2450 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2455 int
2456 main ()
2457 {
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2459 test_array [0] = 0
2460
2461 ;
2462 return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 case $ac_type in #(
2467 uint$2_t) :
2468 eval "$3=yes" ;; #(
2469 *) :
2470 eval "$3=\$ac_type" ;;
2471 esac
2472 fi
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 eval as_val=\$$3
2475 if test "x$as_val" = x""no; then :
2476
2477 else
2478 break
2479 fi
2480 done
2481 fi
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486
2487 } # ac_fn_c_find_uintX_t
2488
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc ()
2493 {
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 eval "$3=yes"
2506 else
2507 eval "$3=no"
2508 fi
2509 rm -f conftest.err conftest.$ac_ext
2510 fi
2511 eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515
2516 } # ac_fn_c_check_header_preproc
2517
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp ()
2522 {
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544 else
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_retval=1
2549 fi
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 return $ac_retval
2552
2553 } # ac_fn_cxx_try_cpp
2554
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2559 {
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 #include <$2>
2569 _ACEOF
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2574 fi
2575 rm -f conftest.err conftest.$ac_ext
2576 fi
2577 eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581
2582 } # ac_fn_cxx_check_header_preproc
2583
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2588 {
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2600
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2605
2606 #ifdef __STDC__
2607 # include <limits.h>
2608 #else
2609 # include <assert.h>
2610 #endif
2611
2612 #undef $2
2613
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2617 #ifdef __cplusplus
2618 extern "C"
2619 #endif
2620 char $2 ();
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2625 choke me
2626 #endif
2627
2628 int
2629 main ()
2630 {
2631 return $2 ();
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_link "$LINENO"; then :
2637 eval "$3=yes"
2638 else
2639 eval "$3=no"
2640 fi
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643 fi
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2648
2649 } # ac_fn_c_check_func
2650
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2655 {
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2666 ac_status=$?
2667 if test -s conftest.err; then
2668 grep -v '^ *+' conftest.err >conftest.er1
2669 cat conftest.er1 >&5
2670 mv -f conftest.er1 conftest.err
2671 fi
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest$ac_exeext
2679 }; then :
2680 ac_retval=0
2681 else
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 ac_retval=1
2686 fi
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 return $ac_retval
2694
2695 } # ac_fn_cxx_try_link
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2699
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2702
2703 $ $0 $@
2704
2705 _ACEOF
2706 exec 5>>config.log
2707 {
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2712
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2718
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2721
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2729
2730 _ASUNAME
2731
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 $as_echo "PATH: $as_dir"
2738 done
2739 IFS=$as_save_IFS
2740
2741 } >&5
2742
2743 cat >&5 <<_ACEOF
2744
2745
2746 ## ----------- ##
2747 ## Core tests. ##
2748 ## ----------- ##
2749
2750 _ACEOF
2751
2752
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_configure_args=
2759 ac_configure_args0=
2760 ac_configure_args1=
2761 ac_must_keep_next=false
2762 for ac_pass in 1 2
2763 do
2764 for ac_arg
2765 do
2766 case $ac_arg in
2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769 | -silent | --silent | --silen | --sile | --sil)
2770 continue ;;
2771 *\'*)
2772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773 esac
2774 case $ac_pass in
2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2776 2)
2777 as_fn_append ac_configure_args1 " '$ac_arg'"
2778 if test $ac_must_keep_next = true; then
2779 ac_must_keep_next=false # Got value, back to normal.
2780 else
2781 case $ac_arg in
2782 *=* | --config-cache | -C | -disable-* | --disable-* \
2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785 | -with-* | --with-* | -without-* | --without-* | --x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788 esac
2789 ;;
2790 -* ) ac_must_keep_next=true ;;
2791 esac
2792 fi
2793 as_fn_append ac_configure_args " '$ac_arg'"
2794 ;;
2795 esac
2796 done
2797 done
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2800
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2808 {
2809 echo
2810
2811 cat <<\_ASBOX
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2815 _ASBOX
2816 echo
2817 # The following way of writing the cache mishandles newlines in values,
2818 (
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in #(
2822 *${as_nl}*)
2823 case $ac_var in #(
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2826 esac
2827 case $ac_var in #(
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2831 esac ;;
2832 esac
2833 done
2834 (set) 2>&1 |
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2837 sed -n \
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2840 ;; #(
2841 *)
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2843 ;;
2844 esac |
2845 sort
2846 )
2847 echo
2848
2849 cat <<\_ASBOX
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2853 _ASBOX
2854 echo
2855 for ac_var in $ac_subst_vars
2856 do
2857 eval ac_val=\$$ac_var
2858 case $ac_val in
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860 esac
2861 $as_echo "$ac_var='\''$ac_val'\''"
2862 done | sort
2863 echo
2864
2865 if test -n "$ac_subst_files"; then
2866 cat <<\_ASBOX
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2870 _ASBOX
2871 echo
2872 for ac_var in $ac_subst_files
2873 do
2874 eval ac_val=\$$ac_var
2875 case $ac_val in
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877 esac
2878 $as_echo "$ac_var='\''$ac_val'\''"
2879 done | sort
2880 echo
2881 fi
2882
2883 if test -s confdefs.h; then
2884 cat <<\_ASBOX
2885 ## ----------- ##
2886 ## confdefs.h. ##
2887 ## ----------- ##
2888 _ASBOX
2889 echo
2890 cat confdefs.h
2891 echo
2892 fi
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2896 } >&5
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899 exit $exit_status
2900 ' 0
2901 for ac_signal in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 done
2904 ac_signal=0
2905
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2908
2909 $as_echo "/* confdefs.h */" > confdefs.h
2910
2911 # Predefined preprocessor variables.
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2915 _ACEOF
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2919 _ACEOF
2920
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2923 _ACEOF
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2927 _ACEOF
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2931 _ACEOF
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2935 _ACEOF
2936
2937
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2940 ac_site_file1=NONE
2941 ac_site_file2=NONE
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945 ac_site_file1=$prefix/share/config.site
2946 ac_site_file2=$prefix/etc/config.site
2947 else
2948 ac_site_file1=$ac_default_prefix/share/config.site
2949 ac_site_file2=$ac_default_prefix/etc/config.site
2950 fi
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2952 do
2953 test "x$ac_site_file" = xNONE && continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2958 . "$ac_site_file"
2959 fi
2960 done
2961
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2968 case $cache_file in
2969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970 *) . "./$cache_file";;
2971 esac
2972 fi
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976 >$cache_file
2977 fi
2978
2979 # Check that the precious variables saved in the cache have kept the same
2980 # value.
2981 ac_cache_corrupted=false
2982 for ac_var in $ac_precious_vars; do
2983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2984 eval ac_new_set=\$ac_env_${ac_var}_set
2985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2986 eval ac_new_val=\$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2988 set,)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,set)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted=: ;;
2996 ,);;
2997 *)
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w=`echo x $ac_old_val`
3001 ac_new_val_w=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted=:
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\$ac_old_val
3010 fi
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3015 fi;;
3016 esac
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3019 case $ac_new_val in
3020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg=$ac_var=$ac_new_val ;;
3022 esac
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3026 esac
3027 fi
3028 done
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3035 fi
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3039
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
3046
3047
3048
3049
3050
3051 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3052
3053
3054 gcc_version=`cat $srcdir/BASE-VER`
3055
3056 # Determine the host, build, and target systems
3057 ac_aux_dir=
3058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t in install-sh install.sh shtool; do
3060 if test -f "$ac_dir/$ac_t"; then
3061 ac_aux_dir=$ac_dir
3062 ac_install_sh="$ac_aux_dir/$ac_t -c"
3063 break 2
3064 fi
3065 done
3066 done
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3069 fi
3070
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3078
3079
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 ac_build_alias=$build_alias
3090 test "x$ac_build_alias" = x &&
3091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x &&
3093 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3096
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3103 esac
3104 build=$ac_cv_build
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_build
3107 shift
3108 build_cpu=$1
3109 build_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 build_os=$*
3114 IFS=$ac_save_IFS
3115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3116
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3125 else
3126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3128 fi
3129
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3133 case $ac_cv_host in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3136 esac
3137 host=$ac_cv_host
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_host
3140 shift
3141 host_cpu=$1
3142 host_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 host_os=$*
3147 IFS=$ac_save_IFS
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3149
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test "x$target_alias" = x; then
3157 ac_cv_target=$ac_cv_host
3158 else
3159 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3161 fi
3162
3163 fi
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3167 *-*-*) ;;
3168 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3169 esac
3170 target=$ac_cv_target
3171 ac_save_IFS=$IFS; IFS='-'
3172 set x $ac_cv_target
3173 shift
3174 target_cpu=$1
3175 target_vendor=$2
3176 shift; shift
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3179 target_os=$*
3180 IFS=$ac_save_IFS
3181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3182
3183
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3188 NONENONEs,x,x, &&
3189 program_prefix=${target_alias}-
3190
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical=${build} ;;
3194 *) build_noncanonical=${build_alias} ;;
3195 esac
3196
3197 case ${host_alias} in
3198 "") host_noncanonical=${build_noncanonical} ;;
3199 *) host_noncanonical=${host_alias} ;;
3200 esac
3201
3202 case ${target_alias} in
3203 "") target_noncanonical=${host_noncanonical} ;;
3204 *) target_noncanonical=${target_alias} ;;
3205 esac
3206
3207
3208
3209
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical=${target_noncanonical}
3212 accel_dir_suffix=
3213
3214 # Determine the target- and build-specific subdirectories
3215
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3221 # finishes. So:
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3224
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir="build-${build_noncanonical}"
3227
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval=$with_build_libsubdir; build_libsubdir="$withval"
3231 else
3232 build_libsubdir="$build_subdir"
3233 fi
3234
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = . && test -d gcc ) \
3237 || test -d $srcdir/../host-${host_noncanonical}; then
3238 host_subdir="host-${host_noncanonical}"
3239 else
3240 host_subdir=.
3241 fi
3242 # No prefix.
3243 target_subdir=${target_noncanonical}
3244
3245
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE &&
3248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE &&
3251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3256
3257
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 library_path_setting="contains current directory"
3271 ;;
3272 *)
3273 library_path_setting="ok"
3274 ;;
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3279 as_fn_error "
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3283 fi
3284
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3288 # is true:
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3296 gcc_exec_prefix_setting="contains current directory"
3297 ;;
3298 *)
3299 gcc_exec_prefix_setting="ok"
3300 ;;
3301 esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3305 as_fn_error "
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3309 fi
3310
3311 # -----------
3312 # Directories
3313 # -----------
3314
3315 # Specify the local prefix
3316 local_prefix=
3317
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3322 no) ;;
3323 *) local_prefix=$with_local_prefix ;;
3324 esac
3325 fi
3326
3327
3328 # Default local prefix if it is empty
3329 if test x$local_prefix = x; then
3330 local_prefix=/usr/local
3331 fi
3332
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir=
3337 # Specify the g++ header file directory
3338
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3343 no) ;;
3344 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3345 esac
3346 fi
3347
3348
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x${gcc_gxx_include_dir} = x; then
3351 if test x${enable_version_specific_runtime_libs} = xyes; then
3352 gcc_gxx_include_dir='${libsubdir}/include/c++'
3353 else
3354 libstdcxx_incdir='include/c++/$(version)'
3355 if test x$host != x$target; then
3356 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3357 fi
3358 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3359 fi
3360 fi
3361
3362 gcc_gxx_include_dir_add_sysroot=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot=1
3368 fi
3369 fi
3370
3371
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3375 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x$withval != xno; then
3377 cpp_install_dir=$withval
3378 fi
3379 fi
3380
3381
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3386 # just that.
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3393 else
3394 generated_files_in_srcdir=no
3395 fi
3396
3397
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3400
3401 if test "$generated_files_in_srcdir" = "yes"; then
3402 GENINSRC=''
3403 else
3404 GENINSRC='#'
3405 fi
3406
3407
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3411
3412 # With GNU ld
3413
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3417 else
3418 gnu_ld_flag=no
3419 fi
3420
3421
3422 # With pre-defined ld
3423
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3427 fi
3428
3429 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3433 gnu_ld_flag=yes
3434 fi
3435
3436 cat >>confdefs.h <<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3438 _ACEOF
3439
3440 fi
3441
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3445 if test x"$gnu_ld_flag" = x"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3451 fi
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457 # With demangler in GNU ld
3458
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3462 else
3463 demangler_in_ld=yes
3464 fi
3465
3466
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3470
3471 # With GNU as
3472
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3476 else
3477 gas_flag=no
3478 fi
3479
3480
3481
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3485 fi
3486
3487 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3491 gas_flag=yes
3492 fi
3493
3494 cat >>confdefs.h <<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3496 _ACEOF
3497
3498 fi
3499
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3503 if test x"$gas_flag" = x"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3509 fi
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515 # ---------------
3516 # Find C compiler
3517 # ---------------
3518
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3523 #
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3527
3528 # Find the native compiler
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3621 fi
3622 else
3623 CC="$ac_cv_prog_CC"
3624 fi
3625
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 fi
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3681 do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3689 fi
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694 done
3695 done
3696 IFS=$as_save_IFS
3697
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3708 fi
3709 fi
3710 fi
3711 fi
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$CC" && break
3765 done
3766 fi
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3770 do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807
3808 test -n "$ac_ct_CC" && break
3809 done
3810
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3821 fi
3822 fi
3823
3824 fi
3825
3826
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3831
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3852 fi
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3856
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3882 do
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3889
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3907 do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911 ;;
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 fi
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3927 * )
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933 else
3934 ac_file=''
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3947 fi
3948 ac_exeext=$ac_cv_exeext
3949
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
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 run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3977 fi
3978 fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3982
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4008 # `rm'.
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014 break;;
4015 * ) break;;
4016 esac
4017 done
4018 else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4023 fi
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4027
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4030 ac_exeext=$EXEEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main ()
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try="$ac_compile"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
4066 done
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files: cannot compile
4074 See \`config.log' for more details." "$LINENO" 5; }
4075 fi
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4081 ac_objext=$OBJEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4116 fi
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main ()
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4189 fi
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4214 char **p;
4215 int i;
4216 {
4217 return p[i];
4218 }
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4220 {
4221 char *s;
4222 va_list v;
4223 va_start (v,p);
4224 s = g (p, va_arg (v,int));
4225 va_end (v);
4226 return s;
4227 }
4228
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4240 #define FOO(x) 'x'
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 int argc;
4248 char **argv;
4249 int
4250 main ()
4251 {
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259 do
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 done
4267 rm -f conftest.$ac_ext
4268 CC=$ac_save_CC
4269
4270 fi
4271 # AC_CACHE_VAL
4272 case "x$ac_cv_prog_cc_c89" in
4273 x)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4276 xno)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4279 *)
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 esac
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4285
4286 fi
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293
4294 ac_ext=cpp
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4301 CXX=$CCC
4302 else
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4305 do
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 CXX=$ac_cv_prog_CXX
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343 test -n "$CXX" && break
4344 done
4345 fi
4346 if test -z "$CXX"; then
4347 ac_ct_CXX=$CXX
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4349 do
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387 test -n "$ac_ct_CXX" && break
4388 done
4389
4390 if test "x$ac_ct_CXX" = x; then
4391 CXX="g++"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CXX=$ac_ct_CXX
4400 fi
4401 fi
4402
4403 fi
4404 fi
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4407 set X $ac_compile
4408 ac_compiler=$2
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 ac_status=$?
4419 if test -s conftest.err; then
4420 sed '10a\
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4424 rm -f conftest.er1 conftest.err
4425 fi
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 done
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main ()
4440 {
4441 #ifndef __GNUC__
4442 choke me
4443 #endif
4444
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_cxx_try_compile "$LINENO"; then :
4450 ac_compiler_gnu=yes
4451 else
4452 ac_compiler_gnu=no
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4456
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4461 GXX=yes
4462 else
4463 GXX=
4464 fi
4465 ac_test_CXXFLAGS=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag=yes
4474 ac_cv_prog_cxx_g=no
4475 CXXFLAGS="-g"
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 int
4480 main ()
4481 {
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_cxx_try_compile "$LINENO"; then :
4488 ac_cv_prog_cxx_g=yes
4489 else
4490 CXXFLAGS=""
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main ()
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4503
4504 else
4505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4506 CXXFLAGS="-g"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509
4510 int
4511 main ()
4512 {
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4519 ac_cv_prog_cxx_g=yes
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4534 CXXFLAGS="-g -O2"
4535 else
4536 CXXFLAGS="-g"
4537 fi
4538 else
4539 if test "$GXX" = yes; then
4540 CXXFLAGS="-O2"
4541 else
4542 CXXFLAGS=
4543 fi
4544 fi
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551
4552
4553
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 GNATBIND=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 fi
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631 if test "x$ac_ct_GNATBIND" = x; then
4632 GNATBIND="no"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 GNATBIND=$ac_ct_GNATBIND
4641 fi
4642 else
4643 GNATBIND="$ac_cv_prog_GNATBIND"
4644 fi
4645
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 GNATMAKE=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 fi
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723 if test "x$ac_ct_GNATMAKE" = x; then
4724 GNATMAKE="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATMAKE=$ac_ct_GNATMAKE
4733 fi
4734 else
4735 GNATMAKE="$ac_cv_prog_GNATMAKE"
4736 fi
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat >conftest.adb <<EOF
4744 procedure conftest is begin null; end conftest;
4745 EOF
4746 acx_cv_cc_gcc_supports_ada=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x"$errors" = x && test -f conftest.$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada=yes
4758 fi
4759 rm -f conftest.*
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4763
4764 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4765 have_gnat=yes
4766 else
4767 have_gnat=no
4768 fi
4769
4770
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4773 case "$CC" in
4774 */prev-gcc/xgcc*) ;;
4775 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4777 esac
4778
4779
4780
4781 # Determine PICFLAG for target gnatlib.
4782
4783
4784
4785
4786 case "${target}" in
4787 # PIC is the default on some targets or must not be used.
4788 *-*-darwin*)
4789 # For darwin, common symbols are not allowed in MH_DYLIB files
4790 case "${CFLAGS}" in
4791 # If we are using a compiler supporting mdynamic-no-pic
4792 # and the option has been tested as safe to add, then cancel
4793 # it here, since the code generated is incompatible with shared
4794 # libs.
4795 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4796 *) PICFLAG_FOR_TARGET=-fno-common ;;
4797 esac
4798 ;;
4799 alpha*-dec-osf5*)
4800 # PIC is the default.
4801 ;;
4802 hppa*64*-*-hpux*)
4803 # PIC is the default for 64-bit PA HP-UX.
4804 ;;
4805 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4806 ;;
4807 i[34567]86-*-mingw* | x86_64-*-mingw*)
4808 ;;
4809 i[34567]86-*-interix[3-9]*)
4810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4811 # Instead, we relocate shared libraries at runtime.
4812 ;;
4813 i[34567]86-*-nto-qnx*)
4814 # QNX uses GNU C++, but need to define -shared option too, otherwise
4815 # it will coredump.
4816 PICFLAG_FOR_TARGET='-fPIC -shared'
4817 ;;
4818 i[34567]86-pc-msdosdjgpp*)
4819 # DJGPP does not support shared libraries at all.
4820 ;;
4821 ia64*-*-hpux*)
4822 # On IA64 HP-UX, PIC is the default but the pic flag
4823 # sets the default TLS model and affects inlining.
4824 PICFLAG_FOR_TARGET=-fPIC
4825 ;;
4826 mips-sgi-irix6*)
4827 # PIC is the default.
4828 ;;
4829 rs6000-ibm-aix* | powerpc-ibm-aix*)
4830 # All AIX code is PIC.
4831 ;;
4832
4833 # Some targets support both -fPIC and -fpic, but prefer the latter.
4834 # FIXME: Why?
4835 i[34567]86-*-* | x86_64-*-*)
4836 PICFLAG_FOR_TARGET=-fpic
4837 ;;
4838 # FIXME: Override -fPIC default in libgcc only?
4839 sh-*-linux* | sh[2346lbe]*-*-linux*)
4840 PICFLAG_FOR_TARGET=-fpic
4841 ;;
4842 # FIXME: Simplify to sh*-*-netbsd*?
4843 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4844 sh64-*-netbsd* | sh64l*-*-netbsd*)
4845 PICFLAG_FOR_TARGET=-fpic
4846 ;;
4847 # Default to -fPIC unless specified otherwise.
4848 *)
4849 PICFLAG_FOR_TARGET=-fPIC
4850 ;;
4851 esac
4852
4853 # If the user explicitly uses -fpic/-fPIC, keep that.
4854 case "${CFLAGS_FOR_TARGET}" in
4855 *-fpic*)
4856 PICFLAG_FOR_TARGET=-fpic
4857 ;;
4858 *-fPIC*)
4859 PICFLAG_FOR_TARGET=-fPIC
4860 ;;
4861 esac
4862
4863
4864
4865 # -------------------------
4866 # Check C compiler features
4867 # -------------------------
4868
4869
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4877 # On Suns, sometimes $CPP names a directory.
4878 if test -n "$CPP" && test -d "$CPP"; then
4879 CPP=
4880 fi
4881 if test -z "$CPP"; then
4882 if test "${ac_cv_prog_CPP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 # Double quotes because CPP needs to be expanded
4886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887 do
4888 ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes
4890 do
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #ifdef __STDC__
4900 # include <limits.h>
4901 #else
4902 # include <assert.h>
4903 #endif
4904 Syntax error
4905 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4907
4908 else
4909 # Broken: fails on valid input.
4910 continue
4911 fi
4912 rm -f conftest.err conftest.$ac_ext
4913
4914 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #include <ac_nonexistent.h>
4919 _ACEOF
4920 if ac_fn_c_try_cpp "$LINENO"; then :
4921 # Broken: success on invalid input.
4922 continue
4923 else
4924 # Passes both tests.
4925 ac_preproc_ok=:
4926 break
4927 fi
4928 rm -f conftest.err conftest.$ac_ext
4929
4930 done
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then :
4934 break
4935 fi
4936
4937 done
4938 ac_cv_prog_CPP=$CPP
4939
4940 fi
4941 CPP=$ac_cv_prog_CPP
4942 else
4943 ac_cv_prog_CPP=$CPP
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4946 $as_echo "$CPP" >&6; }
4947 ac_preproc_ok=false
4948 for ac_c_preproc_warn_flag in '' yes
4949 do
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963 Syntax error
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4966
4967 else
4968 # Broken: fails on valid input.
4969 continue
4970 fi
4971 rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: success on invalid input.
4981 continue
4982 else
4983 # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4986 fi
4987 rm -f conftest.err conftest.$ac_ext
4988
4989 done
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
4993
4994 else
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." "$LINENO" 5; }
4999 fi
5000
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5010 if test "${ac_cv_path_GREP+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -z "$GREP"; then
5014 ac_path_GREP_found=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_prog in grep ggrep; do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026 # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in
5028 *GNU*)
5029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030 *)
5031 ac_count=0
5032 $as_echo_n 0123456789 >"conftest.in"
5033 while :
5034 do
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'GREP' >> "conftest.nl"
5039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041 as_fn_arith $ac_count + 1 && ac_count=$as_val
5042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_GREP="$ac_path_GREP"
5045 ac_path_GREP_max=$ac_count
5046 fi
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5049 done
5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5051 esac
5052
5053 $ac_path_GREP_found && break 3
5054 done
5055 done
5056 done
5057 IFS=$as_save_IFS
5058 if test -z "$ac_cv_path_GREP"; then
5059 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5060 fi
5061 else
5062 ac_cv_path_GREP=$GREP
5063 fi
5064
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067 $as_echo "$ac_cv_path_GREP" >&6; }
5068 GREP="$ac_cv_path_GREP"
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072 $as_echo_n "checking for egrep... " >&6; }
5073 if test "${ac_cv_path_EGREP+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5077 then ac_cv_path_EGREP="$GREP -E"
5078 else
5079 if test -z "$EGREP"; then
5080 ac_path_EGREP_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_prog in egrep; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5090 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5091 # Check for GNU ac_path_EGREP and select it if it is found.
5092 # Check for GNU $ac_path_EGREP
5093 case `"$ac_path_EGREP" --version 2>&1` in
5094 *GNU*)
5095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5096 *)
5097 ac_count=0
5098 $as_echo_n 0123456789 >"conftest.in"
5099 while :
5100 do
5101 cat "conftest.in" "conftest.in" >"conftest.tmp"
5102 mv "conftest.tmp" "conftest.in"
5103 cp "conftest.in" "conftest.nl"
5104 $as_echo 'EGREP' >> "conftest.nl"
5105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107 as_fn_arith $ac_count + 1 && ac_count=$as_val
5108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5109 # Best one so far, save it but keep looking for a better one
5110 ac_cv_path_EGREP="$ac_path_EGREP"
5111 ac_path_EGREP_max=$ac_count
5112 fi
5113 # 10*(2^10) chars as input seems more than enough
5114 test $ac_count -gt 10 && break
5115 done
5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5117 esac
5118
5119 $ac_path_EGREP_found && break 3
5120 done
5121 done
5122 done
5123 IFS=$as_save_IFS
5124 if test -z "$ac_cv_path_EGREP"; then
5125 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5126 fi
5127 else
5128 ac_cv_path_EGREP=$EGREP
5129 fi
5130
5131 fi
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5134 $as_echo "$ac_cv_path_EGREP" >&6; }
5135 EGREP="$ac_cv_path_EGREP"
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5139 $as_echo_n "checking for ANSI C header files... " >&6; }
5140 if test "${ac_cv_header_stdc+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #include <stdlib.h>
5146 #include <stdarg.h>
5147 #include <string.h>
5148 #include <float.h>
5149
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_header_stdc=yes
5160 else
5161 ac_cv_header_stdc=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164
5165 if test $ac_cv_header_stdc = yes; then
5166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <string.h>
5170
5171 _ACEOF
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173 $EGREP "memchr" >/dev/null 2>&1; then :
5174
5175 else
5176 ac_cv_header_stdc=no
5177 fi
5178 rm -f conftest*
5179
5180 fi
5181
5182 if test $ac_cv_header_stdc = yes; then
5183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <stdlib.h>
5187
5188 _ACEOF
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "free" >/dev/null 2>&1; then :
5191
5192 else
5193 ac_cv_header_stdc=no
5194 fi
5195 rm -f conftest*
5196
5197 fi
5198
5199 if test $ac_cv_header_stdc = yes; then
5200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5201 if test "$cross_compiling" = yes; then :
5202 :
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <ctype.h>
5207 #include <stdlib.h>
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5211 #else
5212 # define ISLOWER(c) \
5213 (('a' <= (c) && (c) <= 'i') \
5214 || ('j' <= (c) && (c) <= 'r') \
5215 || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5217 #endif
5218
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 int
5221 main ()
5222 {
5223 int i;
5224 for (i = 0; i < 256; i++)
5225 if (XOR (islower (i), ISLOWER (i))
5226 || toupper (i) != TOUPPER (i))
5227 return 2;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_run "$LINENO"; then :
5232
5233 else
5234 ac_cv_header_stdc=no
5235 fi
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5237 conftest.$ac_objext conftest.beam conftest.$ac_ext
5238 fi
5239
5240 fi
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5243 $as_echo "$ac_cv_header_stdc" >&6; }
5244 if test $ac_cv_header_stdc = yes; then
5245
5246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5247
5248 fi
5249
5250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5253 do :
5254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5256 "
5257 eval as_val=\$$as_ac_Header
5258 if test "x$as_val" = x""yes; then :
5259 cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 _ACEOF
5262
5263 fi
5264
5265 done
5266
5267
5268
5269 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5271 MINIX=yes
5272 else
5273 MINIX=
5274 fi
5275
5276
5277 if test "$MINIX" = yes; then
5278
5279 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5280
5281
5282 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5283
5284
5285 $as_echo "#define _MINIX 1" >>confdefs.h
5286
5287 fi
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5291 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5292 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297
5298 # define __EXTENSIONS__ 1
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_safe_to_define___extensions__=yes
5310 else
5311 ac_cv_safe_to_define___extensions__=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5316 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5317 test $ac_cv_safe_to_define___extensions__ = yes &&
5318 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5319
5320 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5321
5322 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5323
5324 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5325
5326 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5327
5328
5329 ac_ext=c
5330 ac_cpp='$CPP $CPPFLAGS'
5331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5335 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5336 # On Suns, sometimes $CPP names a directory.
5337 if test -n "$CPP" && test -d "$CPP"; then
5338 CPP=
5339 fi
5340 if test -z "$CPP"; then
5341 if test "${ac_cv_prog_CPP+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 # Double quotes because CPP needs to be expanded
5345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5346 do
5347 ac_preproc_ok=false
5348 for ac_c_preproc_warn_flag in '' yes
5349 do
5350 # Use a header file that comes with gcc, so configuring glibc
5351 # with a fresh cross-compiler works.
5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 # <limits.h> exists even on freestanding compilers.
5354 # On the NeXT, cc -E runs the code through the compiler's parser,
5355 # not just through cpp. "Syntax error" is here to catch this case.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363 Syntax error
5364 _ACEOF
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5366
5367 else
5368 # Broken: fails on valid input.
5369 continue
5370 fi
5371 rm -f conftest.err conftest.$ac_ext
5372
5373 # OK, works on sane cases. Now check whether nonexistent headers
5374 # can be detected and how.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <ac_nonexistent.h>
5378 _ACEOF
5379 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: success on invalid input.
5381 continue
5382 else
5383 # Passes both tests.
5384 ac_preproc_ok=:
5385 break
5386 fi
5387 rm -f conftest.err conftest.$ac_ext
5388
5389 done
5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391 rm -f conftest.err conftest.$ac_ext
5392 if $ac_preproc_ok; then :
5393 break
5394 fi
5395
5396 done
5397 ac_cv_prog_CPP=$CPP
5398
5399 fi
5400 CPP=$ac_cv_prog_CPP
5401 else
5402 ac_cv_prog_CPP=$CPP
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5405 $as_echo "$CPP" >&6; }
5406 ac_preproc_ok=false
5407 for ac_c_preproc_warn_flag in '' yes
5408 do
5409 # Use a header file that comes with gcc, so configuring glibc
5410 # with a fresh cross-compiler works.
5411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 # <limits.h> exists even on freestanding compilers.
5413 # On the NeXT, cc -E runs the code through the compiler's parser,
5414 # not just through cpp. "Syntax error" is here to catch this case.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #ifdef __STDC__
5418 # include <limits.h>
5419 #else
5420 # include <assert.h>
5421 #endif
5422 Syntax error
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425
5426 else
5427 # Broken: fails on valid input.
5428 continue
5429 fi
5430 rm -f conftest.err conftest.$ac_ext
5431
5432 # OK, works on sane cases. Now check whether nonexistent headers
5433 # can be detected and how.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <ac_nonexistent.h>
5437 _ACEOF
5438 if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: success on invalid input.
5440 continue
5441 else
5442 # Passes both tests.
5443 ac_preproc_ok=:
5444 break
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447
5448 done
5449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5450 rm -f conftest.err conftest.$ac_ext
5451 if $ac_preproc_ok; then :
5452
5453 else
5454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5456 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." "$LINENO" 5; }
5458 fi
5459
5460 ac_ext=c
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5467 $as_echo_n "checking for inline... " >&6; }
5468 if test "${ac_cv_c_inline+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_cv_c_inline=no
5472 for ac_kw in inline __inline__ __inline; do
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #ifndef __cplusplus
5476 typedef int foo_t;
5477 static $ac_kw foo_t static_foo () {return 0; }
5478 $ac_kw foo_t foo () {return 0; }
5479 #endif
5480
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_c_inline=$ac_kw
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 test "$ac_cv_c_inline" != no && break
5487 done
5488
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5491 $as_echo "$ac_cv_c_inline" >&6; }
5492
5493 case $ac_cv_c_inline in
5494 inline | yes) ;;
5495 *)
5496 case $ac_cv_c_inline in
5497 no) ac_val=;;
5498 *) ac_val=$ac_cv_c_inline;;
5499 esac
5500 cat >>confdefs.h <<_ACEOF
5501 #ifndef __cplusplus
5502 #define inline $ac_val
5503 #endif
5504 _ACEOF
5505 ;;
5506 esac
5507
5508
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval=$enable_largefile;
5512 fi
5513
5514 if test "$enable_largefile" != no; then
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 ac_cv_sys_largefile_CC=no
5522 if test "$GCC" != yes; then
5523 ac_save_CC=$CC
5524 while :; do
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5537 ? 1 : -1];
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 break
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext
5550 CC="$CC -n32"
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_largefile_CC=' -n32'; break
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext
5555 break
5556 done
5557 CC=$ac_save_CC
5558 rm -f conftest.$ac_ext
5559 fi
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no; then
5564 CC=$CC$ac_cv_sys_largefile_CC
5565 fi
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 while :; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5584 int
5585 main ()
5586 {
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_sys_file_offset_bits=no; break
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5607 ? 1 : -1];
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_sys_file_offset_bits=64; break
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_sys_file_offset_bits=unknown
5621 break
5622 done
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5627 no | unknown) ;;
5628 *)
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5631 _ACEOF
5632 ;;
5633 esac
5634 rm -rf conftest*
5635 if test $ac_cv_sys_file_offset_bits = unknown; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 while :; do
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5653 int
5654 main ()
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_sys_large_files=no; break
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_large_files=1; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_sys_large_files=unknown
5690 break
5691 done
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5696 no | unknown) ;;
5697 *)
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5700 _ACEOF
5701 ;;
5702 esac
5703 rm -rf conftest*
5704 fi
5705 fi
5706
5707
5708 # sizeof(char) is 1 by definition.
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5714 $as_echo_n "checking size of void *... " >&6; }
5715 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5719
5720 else
5721 if test "$ac_cv_type_void_p" = yes; then
5722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 { as_fn_set_status 77
5725 as_fn_error "cannot compute sizeof (void *)
5726 See \`config.log' for more details." "$LINENO" 5; }; }
5727 else
5728 ac_cv_sizeof_void_p=0
5729 fi
5730 fi
5731
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5734 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5735
5736
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5740 _ACEOF
5741
5742
5743 # The cast to long int works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5748 $as_echo_n "checking size of short... " >&6; }
5749 if test "${ac_cv_sizeof_short+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5753
5754 else
5755 if test "$ac_cv_type_short" = yes; then
5756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 { as_fn_set_status 77
5759 as_fn_error "cannot compute sizeof (short)
5760 See \`config.log' for more details." "$LINENO" 5; }; }
5761 else
5762 ac_cv_sizeof_short=0
5763 fi
5764 fi
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5768 $as_echo "$ac_cv_sizeof_short" >&6; }
5769
5770
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define SIZEOF_SHORT $ac_cv_sizeof_short
5774 _ACEOF
5775
5776
5777 # The cast to long int works around a bug in the HP C Compiler
5778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5780 # This bug is HP SR number 8606223364.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5782 $as_echo_n "checking size of int... " >&6; }
5783 if test "${ac_cv_sizeof_int+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5787
5788 else
5789 if test "$ac_cv_type_int" = yes; then
5790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5792 { as_fn_set_status 77
5793 as_fn_error "cannot compute sizeof (int)
5794 See \`config.log' for more details." "$LINENO" 5; }; }
5795 else
5796 ac_cv_sizeof_int=0
5797 fi
5798 fi
5799
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5802 $as_echo "$ac_cv_sizeof_int" >&6; }
5803
5804
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZEOF_INT $ac_cv_sizeof_int
5808 _ACEOF
5809
5810
5811 # The cast to long int works around a bug in the HP C Compiler
5812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5814 # This bug is HP SR number 8606223364.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5816 $as_echo_n "checking size of long... " >&6; }
5817 if test "${ac_cv_sizeof_long+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5821
5822 else
5823 if test "$ac_cv_type_long" = yes; then
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 { as_fn_set_status 77
5827 as_fn_error "cannot compute sizeof (long)
5828 See \`config.log' for more details." "$LINENO" 5; }; }
5829 else
5830 ac_cv_sizeof_long=0
5831 fi
5832 fi
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5836 $as_echo "$ac_cv_sizeof_long" >&6; }
5837
5838
5839
5840 cat >>confdefs.h <<_ACEOF
5841 #define SIZEOF_LONG $ac_cv_sizeof_long
5842 _ACEOF
5843
5844
5845 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5846 if test "x$ac_cv_type_long_long" = x""yes; then :
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_LONG_LONG 1
5850 _ACEOF
5851
5852 # The cast to long int works around a bug in the HP C Compiler
5853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5855 # This bug is HP SR number 8606223364.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5857 $as_echo_n "checking size of long long... " >&6; }
5858 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5862
5863 else
5864 if test "$ac_cv_type_long_long" = yes; then
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5867 { as_fn_set_status 77
5868 as_fn_error "cannot compute sizeof (long long)
5869 See \`config.log' for more details." "$LINENO" 5; }; }
5870 else
5871 ac_cv_sizeof_long_long=0
5872 fi
5873 fi
5874
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5877 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5878
5879
5880
5881 cat >>confdefs.h <<_ACEOF
5882 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5883 _ACEOF
5884
5885
5886 fi
5887
5888 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5889 case $ac_cv_c_int8_t in #(
5890 no|yes) ;; #(
5891 *)
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define int8_t $ac_cv_c_int8_t
5895 _ACEOF
5896 ;;
5897 esac
5898
5899 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5900 case $ac_cv_c_int16_t in #(
5901 no|yes) ;; #(
5902 *)
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define int16_t $ac_cv_c_int16_t
5906 _ACEOF
5907 ;;
5908 esac
5909
5910 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5911 case $ac_cv_c_int32_t in #(
5912 no|yes) ;; #(
5913 *)
5914
5915 cat >>confdefs.h <<_ACEOF
5916 #define int32_t $ac_cv_c_int32_t
5917 _ACEOF
5918 ;;
5919 esac
5920
5921 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5922 case $ac_cv_c_int64_t in #(
5923 no|yes) ;; #(
5924 *)
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define int64_t $ac_cv_c_int64_t
5928 _ACEOF
5929 ;;
5930 esac
5931
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5934 $as_echo_n "checking for long long int... " >&6; }
5935 if test "${ac_cv_type_long_long_int+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940
5941 /* For now, do not test the preprocessor; as of 2007 there are too many
5942 implementations with broken preprocessors. Perhaps this can
5943 be revisited in 2012. In the meantime, code should not expect
5944 #if to work with literals wider than 32 bits. */
5945 /* Test literals. */
5946 long long int ll = 9223372036854775807ll;
5947 long long int nll = -9223372036854775807LL;
5948 unsigned long long int ull = 18446744073709551615ULL;
5949 /* Test constant expressions. */
5950 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5951 ? 1 : -1)];
5952 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5953 ? 1 : -1)];
5954 int i = 63;
5955 int
5956 main ()
5957 {
5958 /* Test availability of runtime routines for shift and division. */
5959 long long int llmax = 9223372036854775807ll;
5960 unsigned long long int ullmax = 18446744073709551615ull;
5961 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5962 | (llmax / ll) | (llmax % ll)
5963 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5964 | (ullmax / ull) | (ullmax % ull));
5965 ;
5966 return 0;
5967 }
5968
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 if test "$cross_compiling" = yes; then :
5972 ac_cv_type_long_long_int=yes
5973 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <limits.h>
5977 #ifndef LLONG_MAX
5978 # define HALF \
5979 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5980 # define LLONG_MAX (HALF - 1 + HALF)
5981 #endif
5982 int
5983 main ()
5984 {
5985 long long int n = 1;
5986 int i;
5987 for (i = 0; ; i++)
5988 {
5989 long long int m = n << i;
5990 if (m >> i != n)
5991 return 1;
5992 if (LLONG_MAX / 2 < m)
5993 break;
5994 }
5995 return 0;
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_run "$LINENO"; then :
6001 ac_cv_type_long_long_int=yes
6002 else
6003 ac_cv_type_long_long_int=no
6004 fi
6005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6006 conftest.$ac_objext conftest.beam conftest.$ac_ext
6007 fi
6008
6009 else
6010 ac_cv_type_long_long_int=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6014 fi
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6016 $as_echo "$ac_cv_type_long_long_int" >&6; }
6017 if test $ac_cv_type_long_long_int = yes; then
6018
6019 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6020
6021 fi
6022
6023
6024
6025 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6026 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6027
6028 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6029
6030 else
6031 test $ac_cv_type_long_long_int = yes \
6032 && ac_type='long long int' \
6033 || ac_type='long int'
6034
6035 cat >>confdefs.h <<_ACEOF
6036 #define intmax_t $ac_type
6037 _ACEOF
6038
6039 fi
6040
6041
6042
6043 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6044 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6045
6046 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6047
6048 else
6049 for ac_type in 'int' 'long int' 'long long int'; do
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 int
6054 main ()
6055 {
6056 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6057 test_array [0] = 0
6058
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064
6065 cat >>confdefs.h <<_ACEOF
6066 #define intptr_t $ac_type
6067 _ACEOF
6068
6069 ac_type=
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 test -z "$ac_type" && break
6073 done
6074 fi
6075
6076
6077 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6078 case $ac_cv_c_uint8_t in #(
6079 no|yes) ;; #(
6080 *)
6081
6082 $as_echo "#define _UINT8_T 1" >>confdefs.h
6083
6084
6085 cat >>confdefs.h <<_ACEOF
6086 #define uint8_t $ac_cv_c_uint8_t
6087 _ACEOF
6088 ;;
6089 esac
6090
6091 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6092 case $ac_cv_c_uint16_t in #(
6093 no|yes) ;; #(
6094 *)
6095
6096
6097 cat >>confdefs.h <<_ACEOF
6098 #define uint16_t $ac_cv_c_uint16_t
6099 _ACEOF
6100 ;;
6101 esac
6102
6103 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6104 case $ac_cv_c_uint32_t in #(
6105 no|yes) ;; #(
6106 *)
6107
6108 $as_echo "#define _UINT32_T 1" >>confdefs.h
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint32_t $ac_cv_c_uint32_t
6113 _ACEOF
6114 ;;
6115 esac
6116
6117 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6118 case $ac_cv_c_uint64_t in #(
6119 no|yes) ;; #(
6120 *)
6121
6122 $as_echo "#define _UINT64_T 1" >>confdefs.h
6123
6124
6125 cat >>confdefs.h <<_ACEOF
6126 #define uint64_t $ac_cv_c_uint64_t
6127 _ACEOF
6128 ;;
6129 esac
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6133 $as_echo_n "checking for unsigned long long int... " >&6; }
6134 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139
6140 /* For now, do not test the preprocessor; as of 2007 there are too many
6141 implementations with broken preprocessors. Perhaps this can
6142 be revisited in 2012. In the meantime, code should not expect
6143 #if to work with literals wider than 32 bits. */
6144 /* Test literals. */
6145 long long int ll = 9223372036854775807ll;
6146 long long int nll = -9223372036854775807LL;
6147 unsigned long long int ull = 18446744073709551615ULL;
6148 /* Test constant expressions. */
6149 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6150 ? 1 : -1)];
6151 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6152 ? 1 : -1)];
6153 int i = 63;
6154 int
6155 main ()
6156 {
6157 /* Test availability of runtime routines for shift and division. */
6158 long long int llmax = 9223372036854775807ll;
6159 unsigned long long int ullmax = 18446744073709551615ull;
6160 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6161 | (llmax / ll) | (llmax % ll)
6162 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6163 | (ullmax / ull) | (ullmax % ull));
6164 ;
6165 return 0;
6166 }
6167
6168 _ACEOF
6169 if ac_fn_c_try_link "$LINENO"; then :
6170 ac_cv_type_unsigned_long_long_int=yes
6171 else
6172 ac_cv_type_unsigned_long_long_int=no
6173 fi
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6178 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6179 if test $ac_cv_type_unsigned_long_long_int = yes; then
6180
6181 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6182
6183 fi
6184
6185
6186
6187 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6188 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6189
6190 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6191
6192 else
6193 test $ac_cv_type_unsigned_long_long_int = yes \
6194 && ac_type='unsigned long long int' \
6195 || ac_type='unsigned long int'
6196
6197 cat >>confdefs.h <<_ACEOF
6198 #define uintmax_t $ac_type
6199 _ACEOF
6200
6201 fi
6202
6203
6204
6205 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6206 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6207
6208 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6209
6210 else
6211 for ac_type in 'unsigned int' 'unsigned long int' \
6212 'unsigned long long int'; do
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 $ac_includes_default
6216 int
6217 main ()
6218 {
6219 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6220 test_array [0] = 0
6221
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227
6228 cat >>confdefs.h <<_ACEOF
6229 #define uintptr_t $ac_type
6230 _ACEOF
6231
6232 ac_type=
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 test -z "$ac_type" && break
6236 done
6237 fi
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6253 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6254 fi
6255
6256 # check what underlying integer type int64_t uses
6257 ac_ext=cpp
6258 ac_cpp='$CXXCPP $CPPFLAGS'
6259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6265 $as_echo_n "checking for int64_t underlying type... " >&6; }
6266 if test "${ac_cv_int64_t_type+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272
6273 #ifdef HAVE_STDINT_H
6274 #include <stdint.h>
6275 #endif
6276 template <typename T> struct X { };
6277 template <>
6278 struct X<long> { typedef long t; };
6279
6280 int
6281 main ()
6282 {
6283 X<int64_t>::t x;
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_cv_int64_t_type=long
6290 else
6291 ac_cv_int64_t_type="long long"
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6296 $as_echo "$ac_cv_int64_t_type" >&6; }
6297 if test "$ac_cv_int64_t_type" = "long"; then
6298
6299 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6300
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304
6305 #ifdef HAVE_STDINT_H
6306 #include <stdint.h>
6307 #endif
6308 template <typename T> struct X { };
6309 template <>
6310 struct X<long long> { typedef long long t; };
6311
6312 int
6313 main ()
6314 {
6315 X<int64_t>::t x;
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_cxx_try_compile "$LINENO"; then :
6321
6322 else
6323 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 ac_ext=c
6328 ac_cpp='$CPP $CPPFLAGS'
6329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332
6333
6334
6335
6336
6337 # ---------------------
6338 # Warnings and checking
6339 # ---------------------
6340
6341 # Check $CC warning features (if it's GCC).
6342 # We want to use -pedantic, but we don't want warnings about
6343 # * 'long long'
6344 # * variadic macros
6345 # * overlong strings
6346 # * C++11 narrowing conversions in { }
6347 # So, we only use -pedantic if we can disable those warnings.
6348
6349 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6350 # Check whether --enable-build-format-warnings was given.
6351 if test "${enable_build_format_warnings+set}" = set; then :
6352 enableval=$enable_build_format_warnings;
6353 else
6354 enable_build_format_warnings=yes
6355 fi
6356
6357 if test $enable_build_format_warnings = no; then :
6358 wf_opt=-Wno-format
6359 else
6360 wf_opt=
6361 fi
6362 loose_warn=
6363 save_CFLAGS="$CFLAGS"
6364 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6365 # Do the check with the no- prefix removed since gcc silently
6366 # accepts any -Wno-* option on purpose
6367 case $real_option in
6368 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6369 *) option=$real_option ;;
6370 esac
6371 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6374 $as_echo_n "checking whether $CC supports $option... " >&6; }
6375 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 CFLAGS="$option"
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381
6382 int
6383 main ()
6384 {
6385
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 eval "$as_acx_Woption=yes"
6392 else
6393 eval "$as_acx_Woption=no"
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396
6397 fi
6398 eval ac_res=\$$as_acx_Woption
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6400 $as_echo "$ac_res" >&6; }
6401 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6402 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6403 fi
6404 done
6405 CFLAGS="$save_CFLAGS"
6406
6407 c_loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6410 # Do the check with the no- prefix removed since gcc silently
6411 # accepts any -Wno-* option on purpose
6412 case $real_option in
6413 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6414 *) option=$real_option ;;
6415 esac
6416 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6419 $as_echo_n "checking whether $CC supports $option... " >&6; }
6420 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 CFLAGS="$option"
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426
6427 int
6428 main ()
6429 {
6430
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436 eval "$as_acx_Woption=yes"
6437 else
6438 eval "$as_acx_Woption=no"
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
6442 fi
6443 eval ac_res=\$$as_acx_Woption
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6447 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6448 fi
6449 done
6450 CFLAGS="$save_CFLAGS"
6451
6452 strict_warn=
6453 save_CFLAGS="$CFLAGS"
6454 for real_option in -Wmissing-format-attribute; do
6455 # Do the check with the no- prefix removed since gcc silently
6456 # accepts any -Wno-* option on purpose
6457 case $real_option in
6458 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6459 *) option=$real_option ;;
6460 esac
6461 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6464 $as_echo_n "checking whether $CC supports $option... " >&6; }
6465 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 CFLAGS="$option"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 eval "$as_acx_Woption=yes"
6482 else
6483 eval "$as_acx_Woption=no"
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487 fi
6488 eval ac_res=\$$as_acx_Woption
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6490 $as_echo "$ac_res" >&6; }
6491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6492 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6493 fi
6494 done
6495 CFLAGS="$save_CFLAGS"
6496
6497 save_CFLAGS="$CFLAGS"
6498 for real_option in -Woverloaded-virtual; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option=$real_option ;;
6504 esac
6505 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 CFLAGS="$option"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515
6516 int
6517 main ()
6518 {
6519
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6526 else
6527 eval "$as_acx_Woption=no"
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530
6531 fi
6532 eval ac_res=\$$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6537 fi
6538 done
6539 CFLAGS="$save_CFLAGS"
6540
6541 c_strict_warn=
6542 save_CFLAGS="$CFLAGS"
6543 for real_option in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option=$real_option ;;
6549 esac
6550 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 CFLAGS="$option"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560
6561 int
6562 main ()
6563 {
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6571 else
6572 eval "$as_acx_Woption=no"
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575
6576 fi
6577 eval ac_res=\$$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6582 fi
6583 done
6584 CFLAGS="$save_CFLAGS"
6585
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 save_CFLAGS="$CFLAGS"
6595 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 int
6600 main ()
6601 {
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6609 else
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 CFLAGS="$save_CFLAGS"
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6619 fi
6620
6621 fi
6622
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval=$enable_werror_always;
6626 else
6627 enable_werror_always=no
6628 fi
6629
6630 if test $enable_werror_always = yes; then :
6631 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6632 fi
6633
6634
6635
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6639 warn_cflags=
6640 warn_cxxflags=
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6644 fi
6645
6646
6647
6648 # Disable exceptions and RTTI if building with g++
6649 noexception_flags=
6650 save_CFLAGS="$CFLAGS"
6651 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6657 esac
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6659
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 CFLAGS="$option"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668
6669 int
6670 main ()
6671 {
6672
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6679 else
6680 eval "$as_acx_Woption=no"
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683
6684 fi
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6690 fi
6691 done
6692 CFLAGS="$save_CFLAGS"
6693
6694
6695 # Enable expensive internal checks
6696 is_release=
6697 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6698 is_release=yes
6699 fi
6700
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval=$enable_checking; ac_checking_flags="${enableval}"
6704 else
6705
6706 # Determine the default checks.
6707 if test x$is_release = x ; then
6708 ac_checking_flags=yes
6709 else
6710 ac_checking_flags=release
6711 fi
6712 fi
6713
6714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6715 for check in release $ac_checking_flags
6716 do
6717 case $check in
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking=1 ;
6721 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 no|none) ac_assert_checking= ; 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= ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6732 ac_fold_checking=1 ; ac_gc_checking=1 ;
6733 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6734 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6735 ac_tree_checking=1 ; ac_valgrind_checking= ;
6736 ac_types_checking=1 ;;
6737 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6738 ac_fold_checking= ; ac_gc_checking= ;
6739 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6740 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6741 ac_tree_checking= ; ac_valgrind_checking= ;
6742 ac_types_checking= ;;
6743 # these enable particular checks
6744 assert) ac_assert_checking=1 ;;
6745 df) ac_df_checking=1 ;;
6746 fold) ac_fold_checking=1 ;;
6747 gc) ac_gc_checking=1 ;;
6748 gcac) ac_gc_always_collect=1 ;;
6749 gimple) ac_gimple_checking=1 ;;
6750 misc) ac_checking=1 ;;
6751 rtl) ac_rtl_checking=1 ;;
6752 rtlflag) ac_rtlflag_checking=1 ;;
6753 runtime) ac_runtime_checking=1 ;;
6754 tree) ac_tree_checking=1 ;;
6755 types) ac_types_checking=1 ;;
6756 valgrind) ac_valgrind_checking=1 ;;
6757 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6758 esac
6759 done
6760 IFS="$ac_save_IFS"
6761
6762 nocommon_flag=""
6763 if test x$ac_checking != x ; then
6764
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6766
6767 nocommon_flag=-fno-common
6768 fi
6769
6770 if test x$ac_df_checking != x ; then
6771
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6773
6774 fi
6775 if test x$ac_assert_checking != x ; then
6776
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6778
6779 fi
6780 if test x$ac_gimple_checking != x ; then
6781
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6783
6784 fi
6785
6786 if test x$ac_runtime_checking != x ; then
6787
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6789
6790 fi
6791 if test x$ac_tree_checking != x ; then
6792
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6794
6795 TREEBROWSER=tree-browser.o
6796 TREECHECKING=yes
6797 fi
6798 if test x$ac_types_checking != x ; then
6799
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6801
6802 fi
6803
6804
6805 if test x$ac_rtl_checking != x ; then
6806
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6808
6809 fi
6810 if test x$ac_rtlflag_checking != x ; then
6811
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6813
6814 fi
6815 if test x$ac_gc_checking != x ; then
6816
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6818
6819 fi
6820 if test x$ac_gc_always_collect != x ; then
6821
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6823
6824 fi
6825 if test x$ac_fold_checking != x ; then
6826
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6828
6829 fi
6830 valgrind_path_defines=
6831 valgrind_command=
6832
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835 have_valgrind_h=yes
6836 else
6837 have_valgrind_h=no
6838 fi
6839
6840
6841
6842 # It is certainly possible that there's valgrind but no valgrind.h.
6843 # GCC relies on making annotations so we must have both.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6845 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <valgrind/memcheck.h>
6849 #ifndef VALGRIND_DISCARD
6850 #error VALGRIND_DISCARD not defined
6851 #endif
6852 _ACEOF
6853 if ac_fn_c_try_cpp "$LINENO"; then :
6854 gcc_cv_header_valgrind_memcheck_h=yes
6855 else
6856 gcc_cv_header_valgrind_memcheck_h=no
6857 fi
6858 rm -f conftest.err conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6860 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6862 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <memcheck.h>
6866 #ifndef VALGRIND_DISCARD
6867 #error VALGRIND_DISCARD not defined
6868 #endif
6869 _ACEOF
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6871 gcc_cv_header_memcheck_h=yes
6872 else
6873 gcc_cv_header_memcheck_h=no
6874 fi
6875 rm -f conftest.err conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6877 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6878 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879
6880 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6881
6882 fi
6883 if test $gcc_cv_header_memcheck_h = yes; then
6884
6885 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6886
6887 fi
6888
6889 if test x$ac_valgrind_checking != x ; then
6890
6891 # Prepare PATH_SEPARATOR.
6892 # The user is always right.
6893 if test "${PATH_SEPARATOR+set}" != set; then
6894 echo "#! /bin/sh" >conf$$.sh
6895 echo "exit 0" >>conf$$.sh
6896 chmod +x conf$$.sh
6897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6898 PATH_SEPARATOR=';'
6899 else
6900 PATH_SEPARATOR=:
6901 fi
6902 rm -f conf$$.sh
6903 fi
6904
6905 # Find out how to test for executable files. Don't use a zero-byte file,
6906 # as systems may use methods other than mode bits to determine executability.
6907 cat >conf$$.file <<_ASEOF
6908 #! /bin/sh
6909 exit 0
6910 _ASEOF
6911 chmod +x conf$$.file
6912 if test -x conf$$.file >/dev/null 2>&1; then
6913 ac_executable_p="test -x"
6914 else
6915 ac_executable_p="test -f"
6916 fi
6917 rm -f conf$$.file
6918
6919 # Extract the first word of "valgrind", so it can be a program name with args.
6920 set dummy valgrind; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 case "$valgrind_path" in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6929 ;;
6930 *)
6931 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6932 for ac_dir in $PATH; do
6933 IFS="$ac_save_IFS"
6934 test -z "$ac_dir" && ac_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6937 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6938 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6939 break 2
6940 fi
6941 fi
6942 done
6943 done
6944 IFS="$ac_save_IFS"
6945 ;;
6946 esac
6947 fi
6948 valgrind_path="$ac_cv_path_valgrind_path"
6949 if test -n "$valgrind_path"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6951 $as_echo "$valgrind_path" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957 if test "x$valgrind_path" = "x" \
6958 || (test $have_valgrind_h = no \
6959 && test $gcc_cv_header_memcheck_h = no \
6960 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6961 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6962 fi
6963 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6964 valgrind_command="$valgrind_path -q"
6965
6966 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6967
6968 fi
6969
6970
6971
6972 # Enable code coverage collection
6973 # Check whether --enable-coverage was given.
6974 if test "${enable_coverage+set}" = set; then :
6975 enableval=$enable_coverage; case "${enableval}" in
6976 yes|noopt)
6977 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 ;;
6979 opt)
6980 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6981 ;;
6982 no)
6983 # a.k.a. --disable-coverage
6984 coverage_flags=""
6985 ;;
6986 *)
6987 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6988 ;;
6989 esac
6990 else
6991 coverage_flags=""
6992 fi
6993
6994
6995
6996 # Check whether --enable-gather-detailed-mem-stats was given.
6997 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6998 enableval=$enable_gather_detailed_mem_stats;
6999 else
7000 enable_gather_detailed_mem_stats=no
7001 fi
7002
7003 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define GATHER_STATISTICS $gather_stats
7007 _ACEOF
7008
7009
7010 # Check whether --enable-valgrind-annotations was given.
7011 if test "${enable_valgrind_annotations+set}" = set; then :
7012 enableval=$enable_valgrind_annotations;
7013 else
7014 enable_valgrind_annotations=no
7015 fi
7016
7017 if test x$enable_valgrind_annotations != xno \
7018 || test x$ac_valgrind_checking != x; then
7019 if (test $have_valgrind_h = no \
7020 && test $gcc_cv_header_memcheck_h = no \
7021 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7022 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7023 fi
7024
7025 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7026
7027 fi
7028
7029 # -------------------------------
7030 # Miscenalleous configure options
7031 # -------------------------------
7032
7033 # With stabs
7034
7035 # Check whether --with-stabs was given.
7036 if test "${with_stabs+set}" = set; then :
7037 withval=$with_stabs; stabs="$with_stabs"
7038 else
7039 stabs=no
7040 fi
7041
7042
7043 # Determine whether or not multilibs are enabled.
7044 # Check whether --enable-multilib was given.
7045 if test "${enable_multilib+set}" = set; then :
7046 enableval=$enable_multilib;
7047 else
7048 enable_multilib=yes
7049 fi
7050
7051
7052
7053 # Determine whether or not multiarch is enabled.
7054 # Check whether --enable-multiarch was given.
7055 if test "${enable_multiarch+set}" = set; then :
7056 enableval=$enable_multiarch; case "${enableval}" in
7057 yes|no|auto) enable_multiarch=$enableval;;
7058 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7059 esac
7060 else
7061 enable_multiarch=auto
7062 fi
7063
7064 if test x${enable_multiarch} = xauto; then
7065 if test x${with_native_system_header_dir} != x; then
7066 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7067 enable_multiarch=no
7068 fi
7069 if test x$host != x$target && test "x$with_sysroot" = x; then
7070 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7071 enable_multiarch=no
7072 fi
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7075 $as_echo_n "checking for multiarch configuration... " >&6; }
7076
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7078 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7079
7080 # needed for setting the multiarch name for soft-float/hard-float ABIs
7081
7082
7083
7084 # Enable __cxa_atexit for C++.
7085 # Check whether --enable-__cxa_atexit was given.
7086 if test "${enable___cxa_atexit+set}" = set; then :
7087 enableval=$enable___cxa_atexit;
7088 fi
7089
7090
7091 # Enable C extension for decimal float if target supports it.
7092
7093 # Check whether --enable-decimal-float was given.
7094 if test "${enable_decimal_float+set}" = set; then :
7095 enableval=$enable_decimal_float;
7096 case $enable_decimal_float in
7097 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7098 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7099 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7100 esac
7101
7102 else
7103
7104 case $target in
7105 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7106 i?86*-*-gnu* | \
7107 i?86*-*-mingw* | x86_64*-*-mingw* | \
7108 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7109 enable_decimal_float=yes
7110 ;;
7111 *)
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7114 enable_decimal_float=no
7115 ;;
7116 esac
7117
7118 fi
7119
7120
7121 # x86's use BID format instead of DPD
7122 case x$enable_decimal_float in
7123 xyes)
7124 case $target in
7125 i?86*-*-* | x86_64*-*-*)
7126 enable_decimal_float=bid
7127 ;;
7128 *)
7129 enable_decimal_float=dpd
7130 ;;
7131 esac
7132 default_decimal_float=$enable_decimal_float
7133 ;;
7134 xno)
7135 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7136 # dependency on libdecnumber.
7137 default_decimal_float=dpd
7138 ;;
7139 esac
7140
7141
7142
7143
7144 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define ENABLE_DECIMAL_FLOAT $dfp
7148 _ACEOF
7149
7150
7151 # Use default_decimal_float for dependency.
7152 enable_decimal_float=$default_decimal_float
7153
7154 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7155
7156 cat >>confdefs.h <<_ACEOF
7157 #define ENABLE_DECIMAL_BID_FORMAT $bid
7158 _ACEOF
7159
7160
7161 # Enable C extension for fixed-point arithmetic.
7162 # Check whether --enable-fixed-point was given.
7163 if test "${enable_fixed_point+set}" = set; then :
7164 enableval=$enable_fixed_point;
7165 else
7166
7167 case $target in
7168 arm*)
7169 enable_fixed_point=yes
7170 ;;
7171
7172 mips*-*-*)
7173 enable_fixed_point=yes
7174 ;;
7175 *)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7177 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7178 enable_fixed_point=no
7179 ;;
7180 esac
7181
7182 fi
7183
7184
7185
7186 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define ENABLE_FIXED_POINT $fixedpoint
7190 _ACEOF
7191
7192
7193 # Enable threads
7194 # Pass with no value to take the default
7195 # Pass with a value to specify a thread package
7196 # Check whether --enable-threads was given.
7197 if test "${enable_threads+set}" = set; then :
7198 enableval=$enable_threads;
7199 else
7200 enable_threads=''
7201 fi
7202
7203
7204 # Check whether --enable-tls was given.
7205 if test "${enable_tls+set}" = set; then :
7206 enableval=$enable_tls;
7207 case $enable_tls in
7208 yes | no) ;;
7209 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7210 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7211 esac
7212
7213 else
7214 enable_tls=''
7215 fi
7216
7217
7218 # Check whether --enable-objc-gc was given.
7219 if test "${enable_objc_gc+set}" = set; then :
7220 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7221 objc_boehm_gc=''
7222 else
7223 objc_boehm_gc=1
7224 fi
7225 else
7226 objc_boehm_gc=''
7227 fi
7228
7229
7230
7231 # Check whether --with-dwarf2 was given.
7232 if test "${with_dwarf2+set}" = set; then :
7233 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7234 else
7235 dwarf2=no
7236 fi
7237
7238
7239 # Check whether --enable-shared was given.
7240 if test "${enable_shared+set}" = set; then :
7241 enableval=$enable_shared;
7242 case $enable_shared in
7243 yes | no) ;;
7244 *)
7245 enable_shared=no
7246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7247 for pkg in $enableval; do
7248 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7249 enable_shared=yes
7250 fi
7251 done
7252 IFS="$ac_save_ifs"
7253 ;;
7254 esac
7255
7256 else
7257 enable_shared=yes
7258 fi
7259
7260
7261
7262
7263 # Check whether --with-native-system-header-dir was given.
7264 if test "${with_native_system_header_dir+set}" = set; then :
7265 withval=$with_native_system_header_dir;
7266 case ${with_native_system_header_dir} in
7267 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7268 /* | [A-Za-z]:[\\/]*) ;;
7269 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7270 esac
7271 configured_native_system_header_dir="${withval}"
7272
7273 else
7274 configured_native_system_header_dir=
7275 fi
7276
7277
7278
7279 # Check whether --with-build-sysroot was given.
7280 if test "${with_build_sysroot+set}" = set; then :
7281 withval=$with_build_sysroot; if test x"$withval" != x ; then
7282 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7283 fi
7284 else
7285 SYSROOT_CFLAGS_FOR_TARGET=
7286 fi
7287
7288
7289
7290 if test "x$prefix" = xNONE; then
7291 test_prefix=/usr/local
7292 else
7293 test_prefix=$prefix
7294 fi
7295 if test "x$exec_prefix" = xNONE; then
7296 test_exec_prefix=$test_prefix
7297 else
7298 test_exec_prefix=$exec_prefix
7299 fi
7300
7301
7302 # Check whether --with-sysroot was given.
7303 if test "${with_sysroot+set}" = set; then :
7304 withval=$with_sysroot;
7305 case ${with_sysroot} in
7306 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7307 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7308 esac
7309
7310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7311 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7312
7313 case ${TARGET_SYSTEM_ROOT} in
7314 "${test_prefix}"|"${test_prefix}/"*|\
7315 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7316 '${prefix}'|'${prefix}/'*|\
7317 '${exec_prefix}'|'${exec_prefix}/'*)
7318 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7319 TARGET_SYSTEM_ROOT_DEFINE="$t"
7320 ;;
7321 esac
7322
7323 else
7324
7325 TARGET_SYSTEM_ROOT=
7326 TARGET_SYSTEM_ROOT_DEFINE=
7327 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7328
7329 fi
7330
7331
7332
7333
7334
7335
7336 # Check whether --with-specs was given.
7337 if test "${with_specs+set}" = set; then :
7338 withval=$with_specs; CONFIGURE_SPECS=$withval
7339 else
7340 CONFIGURE_SPECS=
7341
7342 fi
7343
7344
7345
7346
7347
7348 # Check whether --with-pkgversion was given.
7349 if test "${with_pkgversion+set}" = set; then :
7350 withval=$with_pkgversion; case "$withval" in
7351 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7352 no) PKGVERSION= ;;
7353 *) PKGVERSION="($withval) " ;;
7354 esac
7355 else
7356 PKGVERSION="(GCC) "
7357
7358 fi
7359
7360
7361
7362
7363
7364 # Check whether --with-bugurl was given.
7365 if test "${with_bugurl+set}" = set; then :
7366 withval=$with_bugurl; case "$withval" in
7367 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7368 no) BUGURL=
7369 ;;
7370 *) BUGURL="$withval"
7371 ;;
7372 esac
7373 else
7374 BUGURL="http://gcc.gnu.org/bugs.html"
7375
7376 fi
7377
7378 case ${BUGURL} in
7379 "")
7380 REPORT_BUGS_TO=
7381 REPORT_BUGS_TEXI=
7382 ;;
7383 *)
7384 REPORT_BUGS_TO="<$BUGURL>"
7385 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7386 ;;
7387 esac;
7388
7389
7390
7391
7392 # Sanity check enable_languages in case someone does not run the toplevel
7393 # configure # script.
7394 # Check whether --enable-languages was given.
7395 if test "${enable_languages+set}" = set; then :
7396 enableval=$enable_languages; case ,${enable_languages}, in
7397 ,,|,yes,)
7398 # go safe -- we cannot be much sure without the toplevel
7399 # configure's
7400 # analysis of which target libs are present and usable
7401 enable_languages=c
7402 ;;
7403 *,all,*)
7404 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7405 ;;
7406 *,c,*)
7407 ;;
7408 *)
7409 enable_languages=c,${enable_languages}
7410 ;;
7411 esac
7412 else
7413 enable_languages=c
7414 fi
7415
7416
7417 if test x"$enable_as_accelerator_for" != x; then
7418
7419 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7420
7421 enable_as_accelerator=yes
7422 case "${target}" in
7423 *-intelmicemul-*)
7424 # In this case we expect offload compiler to be built as native, so we
7425 # need to rename the driver to avoid clashes with host's drivers.
7426 program_transform_name="s&^&${target}-&" ;;
7427 esac
7428 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7429 program_transform_name=`echo $program_transform_name | sed $sedscript`
7430 accel_dir_suffix=/accel/${target_noncanonical}
7431 real_target_noncanonical=${enable_as_accelerator_for}
7432 fi
7433
7434
7435
7436
7437 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7438 tgt=`echo $tgt | sed 's/=.*//'`
7439 if test x"$offload_targets" = x; then
7440 offload_targets=$tgt
7441 else
7442 offload_targets="$offload_targets:$tgt"
7443 fi
7444 done
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define OFFLOAD_TARGETS "$offload_targets"
7448 _ACEOF
7449
7450 if test x"$offload_targets" != x; then
7451
7452 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7453
7454 fi
7455
7456
7457 # Check whether --with-multilib-list was given.
7458 if test "${with_multilib_list+set}" = set; then :
7459 withval=$with_multilib_list; :
7460 else
7461 with_multilib_list=default
7462 fi
7463
7464
7465 # -------------------------
7466 # Checks for other programs
7467 # -------------------------
7468
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7470 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7471 set x ${MAKE-make}
7472 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7473 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 cat >conftest.make <<\_ACEOF
7477 SHELL = /bin/sh
7478 all:
7479 @echo '@@@%%%=$(MAKE)=@@@%%%'
7480 _ACEOF
7481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7482 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7483 *@@@%%%=?*=@@@%%%*)
7484 eval ac_cv_prog_make_${ac_make}_set=yes;;
7485 *)
7486 eval ac_cv_prog_make_${ac_make}_set=no;;
7487 esac
7488 rm -f conftest.make
7489 fi
7490 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492 $as_echo "yes" >&6; }
7493 SET_MAKE=
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 SET_MAKE="MAKE=${MAKE-make}"
7498 fi
7499
7500
7501 # Find some useful tools
7502 for ac_prog in gawk mawk nawk awk
7503 do
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_AWK+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$AWK"; then
7512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_AWK="$ac_prog"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 AWK=$ac_cv_prog_AWK
7532 if test -n "$AWK"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7534 $as_echo "$AWK" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 test -n "$AWK" && break
7542 done
7543
7544 # We need awk to create options.c and options.h.
7545 # Bail out if it's missing.
7546 case ${AWK} in
7547 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7548 esac
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7551 $as_echo_n "checking whether ln -s works... " >&6; }
7552 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 rm -f conftestdata_t
7556 echo >conftestdata_f
7557 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7558 then
7559 gcc_cv_prog_LN_S="ln -s"
7560 else
7561 if ln conftestdata_f conftestdata_t 2>/dev/null
7562 then
7563 gcc_cv_prog_LN_S=ln
7564 else
7565 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7566 then
7567 gcc_cv_prog_LN_S="cp -p"
7568 else
7569 gcc_cv_prog_LN_S=cp
7570 fi
7571 fi
7572 fi
7573 rm -f conftestdata_f conftestdata_t
7574
7575 fi
7576 LN_S="$gcc_cv_prog_LN_S"
7577 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7580 else
7581 if test "$gcc_cv_prog_LN_S" = "ln"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7583 $as_echo "no, using ln" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7586 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7587 fi
7588 fi
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7591 $as_echo_n "checking whether ln works... " >&6; }
7592 if test "${acx_cv_prog_LN+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 rm -f conftestdata_t
7596 echo >conftestdata_f
7597 if ln conftestdata_f conftestdata_t 2>/dev/null
7598 then
7599 acx_cv_prog_LN=ln
7600 else
7601 acx_cv_prog_LN=no
7602 fi
7603 rm -f conftestdata_f conftestdata_t
7604
7605 fi
7606 if test $acx_cv_prog_LN = no; then
7607 LN="$LN_S"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7609 $as_echo "no, using $LN" >&6; }
7610 else
7611 LN="$acx_cv_prog_LN"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7613 $as_echo "yes" >&6; }
7614 fi
7615
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$RANLIB"; then
7625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 RANLIB=$ac_cv_prog_RANLIB
7645 if test -n "$RANLIB"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7647 $as_echo "$RANLIB" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_RANLIB"; then
7656 ac_ct_RANLIB=$RANLIB
7657 # Extract the first word of "ranlib", so it can be a program name with args.
7658 set dummy ranlib; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 if test -n "$ac_ct_RANLIB"; then
7665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_RANLIB="ranlib"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7685 if test -n "$ac_ct_RANLIB"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7687 $as_echo "$ac_ct_RANLIB" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693 if test "x$ac_ct_RANLIB" = x; then
7694 RANLIB=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702 RANLIB=$ac_ct_RANLIB
7703 fi
7704 else
7705 RANLIB="$ac_cv_prog_RANLIB"
7706 fi
7707
7708 ranlib_flags=""
7709
7710
7711 # Find a good install program. We prefer a C program (faster),
7712 # so one script is as good as another. But avoid the broken or
7713 # incompatible versions:
7714 # SysV /etc/install, /usr/sbin/install
7715 # SunOS /usr/etc/install
7716 # IRIX /sbin/install
7717 # AIX /bin/install
7718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7720 # ./install, which can be erroneously created by make from ./install.sh.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7722 $as_echo_n "checking for a BSD compatible install... " >&6; }
7723 if test -z "$INSTALL"; then
7724 if test "${ac_cv_path_install+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7728 for ac_dir in $PATH; do
7729 # Account for people who put trailing slashes in PATH elements.
7730 case "$ac_dir/" in
7731 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7732 *)
7733 # OSF1 and SCO ODT 3.0 have their own names for install.
7734 for ac_prog in ginstall scoinst install; do
7735 if test -f $ac_dir/$ac_prog; then
7736 if test $ac_prog = install &&
7737 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7738 # AIX install. It has an incompatible calling convention.
7739 # OSF/1 installbsd also uses dspmsg, but is usable.
7740 :
7741 else
7742 ac_cv_path_install="$ac_dir/$ac_prog -c"
7743 break 2
7744 fi
7745 fi
7746 done
7747 ;;
7748 esac
7749 done
7750 IFS="$ac_save_IFS"
7751
7752 fi
7753 if test "${ac_cv_path_install+set}" = set; then
7754 INSTALL="$ac_cv_path_install"
7755 else
7756 # As a last resort, use the slow shell script. We don't cache a
7757 # path for INSTALL within a source directory, because that will
7758 # break other packages using the cache if that directory is
7759 # removed, or if the path is relative.
7760 INSTALL="$ac_install_sh"
7761 fi
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7764 $as_echo "$INSTALL" >&6; }
7765
7766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7767 # It thinks the first close brace ends the variable substitution.
7768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7769
7770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7771
7772
7773 # See if cmp has --ignore-initial.
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7775 $as_echo_n "checking for cmp's capabilities... " >&6; }
7776 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 echo abfoo >t1
7780 echo cdfoo >t2
7781 gcc_cv_prog_cmp_skip=slowcompare
7782 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7783 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7784 :
7785 else
7786 gcc_cv_prog_cmp_skip=gnucompare
7787 fi
7788 fi
7789 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7790 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7791 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7792 :
7793 else
7794 gcc_cv_prog_cmp_skip=fastcompare
7795 fi
7796 fi
7797 fi
7798 rm t1 t2
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7802 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7803 make_compare_target=$gcc_cv_prog_cmp_skip
7804
7805
7806
7807 # See if we have the mktemp command.
7808 # Extract the first word of "mktemp", so it can be a program name with args.
7809 set dummy mktemp; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 if test -n "$have_mktemp_command"; then
7816 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_prog_have_mktemp_command="yes"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7834 fi
7835 fi
7836 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7837 if test -n "$have_mktemp_command"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7839 $as_echo "$have_mktemp_command" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846
7847 # See if makeinfo has been installed and is modern enough
7848 # that we can use it.
7849
7850 # Extract the first word of "makeinfo", so it can be a program name with args.
7851 set dummy makeinfo; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -n "$MAKEINFO"; then
7858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_prog_MAKEINFO="makeinfo"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875 fi
7876 fi
7877 MAKEINFO=$ac_cv_prog_MAKEINFO
7878 if test -n "$MAKEINFO"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7880 $as_echo "$MAKEINFO" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885
7886
7887 if test -n "$MAKEINFO"; then
7888 # Found it, now check the version.
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7890 $as_echo_n "checking for modern makeinfo... " >&6; }
7891 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7895 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7896
7897 case $ac_prog_version in
7898 '') gcc_cv_prog_makeinfo_modern=no;;
7899 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7900 *) gcc_cv_prog_makeinfo_modern=no;;
7901 esac
7902
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7905 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7906 else
7907 gcc_cv_prog_makeinfo_modern=no
7908 fi
7909 if test $gcc_cv_prog_makeinfo_modern = no; then
7910 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7911 fi
7912
7913 if test $gcc_cv_prog_makeinfo_modern = no; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7915 *** Makeinfo is missing or too old.
7916 *** Info documentation will not be built." >&5
7917 $as_echo "$as_me: WARNING:
7918 *** Makeinfo is missing or too old.
7919 *** Info documentation will not be built." >&2;}
7920 BUILD_INFO=
7921 else
7922 BUILD_INFO=info
7923 fi
7924
7925
7926 # Is pod2man recent enough to regenerate manpages?
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7928 $as_echo_n "checking for recent Pod::Man... " >&6; }
7929 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7932 GENERATED_MANPAGES=generated-manpages
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 GENERATED_MANPAGES=
7937 fi
7938
7939
7940 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7941
7942 # How about lex?
7943 for ac_prog in flex
7944 do
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946 set dummy $ac_prog; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_FLEX+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$FLEX"; then
7953 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_FLEX="$ac_prog"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 FLEX=$ac_cv_prog_FLEX
7973 if test -n "$FLEX"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7975 $as_echo "$FLEX" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 test -n "$FLEX" && break
7983 done
7984 test -n "$FLEX" || FLEX="$MISSING flex"
7985
7986
7987 # Bison?
7988 for ac_prog in bison
7989 do
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy $ac_prog; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_BISON+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$BISON"; then
7998 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_BISON="$ac_prog"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi
8016 fi
8017 BISON=$ac_cv_prog_BISON
8018 if test -n "$BISON"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8020 $as_echo "$BISON" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026
8027 test -n "$BISON" && break
8028 done
8029 test -n "$BISON" || BISON="$MISSING bison"
8030
8031
8032 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8033 # check for build == host before using them.
8034
8035 # NM
8036 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8037 && test -d ../binutils ; then
8038 NM='${objdir}/../binutils/nm-new'
8039 else
8040 # Extract the first word of "nm", so it can be a program name with args.
8041 set dummy nm; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if test "${ac_cv_prog_NM+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$NM"; then
8048 ac_cv_prog_NM="$NM" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_prog_NM="nm"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8066 fi
8067 fi
8068 NM=$ac_cv_prog_NM
8069 if test -n "$NM"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8071 $as_echo "$NM" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078 fi
8079
8080 # AR
8081 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8082 && test -d ../binutils ; then
8083 AR='${objdir}/../binutils/ar'
8084 else
8085 # Extract the first word of "ar", so it can be a program name with args.
8086 set dummy ar; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="ar"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8111 fi
8112 fi
8113 AR=$ac_cv_prog_AR
8114 if test -n "$AR"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8116 $as_echo "$AR" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124
8125 # The jit documentation looks better if built with sphinx, but can be
8126 # built with texinfo if sphinx is not available.
8127 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8128 # Extract the first word of "sphinx-build", so it can be a program name with args.
8129 set dummy sphinx-build; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$doc_build_sys"; then
8136 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_doc_build_sys="sphinx"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8154 fi
8155 fi
8156 doc_build_sys=$ac_cv_prog_doc_build_sys
8157 if test -n "$doc_build_sys"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8159 $as_echo "$doc_build_sys" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165
8166
8167 # --------------------
8168 # Checks for C headers
8169 # --------------------
8170
8171 # Need to reject headers which give warnings, so that the -Werror bootstrap
8172 # works later. *sigh* This needs to come before all header checks.
8173
8174 ac_c_preproc_warn_flag=yes
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8177 $as_echo_n "checking for ANSI C header files... " >&6; }
8178 if test "${ac_cv_header_stdc+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <stdlib.h>
8184 #include <stdarg.h>
8185 #include <string.h>
8186 #include <float.h>
8187
8188 int
8189 main ()
8190 {
8191
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 ac_cv_header_stdc=yes
8198 else
8199 ac_cv_header_stdc=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202
8203 if test $ac_cv_header_stdc = yes; then
8204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <string.h>
8208
8209 _ACEOF
8210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8211 $EGREP "memchr" >/dev/null 2>&1; then :
8212
8213 else
8214 ac_cv_header_stdc=no
8215 fi
8216 rm -f conftest*
8217
8218 fi
8219
8220 if test $ac_cv_header_stdc = yes; then
8221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <stdlib.h>
8225
8226 _ACEOF
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228 $EGREP "free" >/dev/null 2>&1; then :
8229
8230 else
8231 ac_cv_header_stdc=no
8232 fi
8233 rm -f conftest*
8234
8235 fi
8236
8237 if test $ac_cv_header_stdc = yes; then
8238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8239 if test "$cross_compiling" = yes; then :
8240 :
8241 else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <ctype.h>
8245 #include <stdlib.h>
8246 #if ((' ' & 0x0FF) == 0x020)
8247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8249 #else
8250 # define ISLOWER(c) \
8251 (('a' <= (c) && (c) <= 'i') \
8252 || ('j' <= (c) && (c) <= 'r') \
8253 || ('s' <= (c) && (c) <= 'z'))
8254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8255 #endif
8256
8257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8258 int
8259 main ()
8260 {
8261 int i;
8262 for (i = 0; i < 256; i++)
8263 if (XOR (islower (i), ISLOWER (i))
8264 || toupper (i) != TOUPPER (i))
8265 return 2;
8266 return 0;
8267 }
8268 _ACEOF
8269 if ac_fn_c_try_run "$LINENO"; then :
8270
8271 else
8272 ac_cv_header_stdc=no
8273 fi
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8275 conftest.$ac_objext conftest.beam conftest.$ac_ext
8276 fi
8277
8278 fi
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8281 $as_echo "$ac_cv_header_stdc" >&6; }
8282 if test $ac_cv_header_stdc = yes; then
8283
8284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8285
8286 fi
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8290 if test "${ac_cv_header_time+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <sys/types.h>
8296 #include <sys/time.h>
8297 #include <time.h>
8298
8299 int
8300 main ()
8301 {
8302 if ((struct tm *) 0)
8303 return 0;
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 ac_cv_header_time=yes
8310 else
8311 ac_cv_header_time=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8316 $as_echo "$ac_cv_header_time" >&6; }
8317 if test $ac_cv_header_time = yes; then
8318
8319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8320
8321 fi
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8324 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8325 if test "${gcc_cv_header_string+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <string.h>
8331 #include <strings.h>
8332 int
8333 main ()
8334 {
8335
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 gcc_cv_header_string=yes
8342 else
8343 gcc_cv_header_string=no
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8348 $as_echo "$gcc_cv_header_string" >&6; }
8349 if test $gcc_cv_header_string = yes; then
8350
8351 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8352
8353 fi
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8356 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8357 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8363 #include <sys/wait.h>
8364 #ifndef WEXITSTATUS
8365 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8366 #endif
8367 #ifndef WIFEXITED
8368 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8369 #endif
8370
8371 int
8372 main ()
8373 {
8374 int s;
8375 wait (&s);
8376 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 ac_cv_header_sys_wait_h=yes
8383 else
8384 ac_cv_header_sys_wait_h=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8389 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8390 if test $ac_cv_header_sys_wait_h = yes; then
8391
8392 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8393
8394 fi
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8397 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8398 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <sys/types.h>
8404 #include <termios.h>
8405 #ifdef TIOCGWINSZ
8406 yes
8407 #endif
8408
8409 _ACEOF
8410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411 $EGREP "yes" >/dev/null 2>&1; then :
8412 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8413 else
8414 ac_cv_sys_tiocgwinsz_in_termios_h=no
8415 fi
8416 rm -f conftest*
8417
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8420 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8421
8422 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8424 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8425 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <sys/types.h>
8431 #include <sys/ioctl.h>
8432 #ifdef TIOCGWINSZ
8433 yes
8434 #endif
8435
8436 _ACEOF
8437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8438 $EGREP "yes" >/dev/null 2>&1; then :
8439 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8440 else
8441 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8442 fi
8443 rm -f conftest*
8444
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8447 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8448
8449 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8450
8451 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8452
8453 fi
8454 fi
8455
8456 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8457 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8458 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8459 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8460 do :
8461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8462 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8463 eval as_val=\$$as_ac_Header
8464 if test "x$as_val" = x""yes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 _ACEOF
8468
8469 fi
8470 done
8471
8472
8473 # Check for thread headers.
8474 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8475 if test "x$ac_cv_header_thread_h" = x""yes; then :
8476 have_thread_h=yes
8477 else
8478 have_thread_h=
8479 fi
8480
8481 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8482 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8483 have_pthread_h=yes
8484 else
8485 have_pthread_h=
8486 fi
8487
8488
8489 # These tests can't be done till we know if we have limits.h.
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8491 $as_echo_n "checking for CHAR_BIT... " >&6; }
8492 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #ifdef HAVE_LIMITS_H
8498 #include <limits.h>
8499 #endif
8500 #ifdef CHAR_BIT
8501 found
8502 #endif
8503 _ACEOF
8504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8505 $EGREP "found" >/dev/null 2>&1; then :
8506 gcc_cv_decl_char_bit=yes
8507 else
8508 gcc_cv_decl_char_bit=no
8509 fi
8510 rm -f conftest*
8511
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8515 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8516 if test $gcc_cv_decl_char_bit = no; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8518 $as_echo_n "checking number of bits in a byte... " >&6; }
8519 if test "${gcc_cv_c_nbby+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 i=8
8523 gcc_cv_c_nbby=
8524 while test $i -lt 65; do
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527
8528 int
8529 main ()
8530 {
8531 switch(0) {
8532 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8533 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8534 ; }
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 gcc_cv_c_nbby=$i; break
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 i=`expr $i + 1`
8544 done
8545 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8546
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8549 $as_echo "$gcc_cv_c_nbby" >&6; }
8550 if test $gcc_cv_c_nbby = failed; then
8551 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8552 else
8553
8554 cat >>confdefs.h <<_ACEOF
8555 #define CHAR_BIT $gcc_cv_c_nbby
8556 _ACEOF
8557
8558 fi
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8561 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8562 if test "${ac_cv_c_bigendian+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 ac_cv_c_bigendian=unknown
8566 # See if we're dealing with a universal compiler.
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 #ifndef __APPLE_CC__
8570 not a universal capable compiler
8571 #endif
8572 typedef int dummy;
8573
8574 _ACEOF
8575 if ac_fn_c_try_compile "$LINENO"; then :
8576
8577 # Check for potential -arch flags. It is not universal unless
8578 # there are at least two -arch flags with different values.
8579 ac_arch=
8580 ac_prev=
8581 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8582 if test -n "$ac_prev"; then
8583 case $ac_word in
8584 i?86 | x86_64 | ppc | ppc64)
8585 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8586 ac_arch=$ac_word
8587 else
8588 ac_cv_c_bigendian=universal
8589 break
8590 fi
8591 ;;
8592 esac
8593 ac_prev=
8594 elif test "x$ac_word" = "x-arch"; then
8595 ac_prev=arch
8596 fi
8597 done
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 if test $ac_cv_c_bigendian = unknown; then
8601 # See if sys/param.h defines the BYTE_ORDER macro.
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <sys/types.h>
8605 #include <sys/param.h>
8606
8607 int
8608 main ()
8609 {
8610 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8611 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8612 && LITTLE_ENDIAN)
8613 bogus endian macros
8614 #endif
8615
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/param.h>
8626
8627 int
8628 main ()
8629 {
8630 #if BYTE_ORDER != BIG_ENDIAN
8631 not big endian
8632 #endif
8633
8634 ;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 ac_cv_c_bigendian=yes
8640 else
8641 ac_cv_c_bigendian=no
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 if test $ac_cv_c_bigendian = unknown; then
8648 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <limits.h>
8652
8653 int
8654 main ()
8655 {
8656 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8657 bogus endian macros
8658 #endif
8659
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665 # It does; now see whether it defined to _BIG_ENDIAN or not.
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <limits.h>
8669
8670 int
8671 main ()
8672 {
8673 #ifndef _BIG_ENDIAN
8674 not big endian
8675 #endif
8676
8677 ;
8678 return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_c_try_compile "$LINENO"; then :
8682 ac_cv_c_bigendian=yes
8683 else
8684 ac_cv_c_bigendian=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 if test $ac_cv_c_bigendian = unknown; then
8691 # Compile a test program.
8692 if test "$cross_compiling" = yes; then :
8693 # Try to guess by grepping values from an object file.
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 short int ascii_mm[] =
8697 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8698 short int ascii_ii[] =
8699 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8700 int use_ascii (int i) {
8701 return ascii_mm[i] + ascii_ii[i];
8702 }
8703 short int ebcdic_ii[] =
8704 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8705 short int ebcdic_mm[] =
8706 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8707 int use_ebcdic (int i) {
8708 return ebcdic_mm[i] + ebcdic_ii[i];
8709 }
8710 extern int foo;
8711
8712 int
8713 main ()
8714 {
8715 return use_ascii (foo) == use_ebcdic (foo);
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8722 ac_cv_c_bigendian=yes
8723 fi
8724 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8725 if test "$ac_cv_c_bigendian" = unknown; then
8726 ac_cv_c_bigendian=no
8727 else
8728 # finding both strings is unlikely to happen, but who knows?
8729 ac_cv_c_bigendian=unknown
8730 fi
8731 fi
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 int
8739 main ()
8740 {
8741
8742 /* Are we little or big endian? From Harbison&Steele. */
8743 union
8744 {
8745 long int l;
8746 char c[sizeof (long int)];
8747 } u;
8748 u.l = 1;
8749 return u.c[sizeof (long int) - 1] == 1;
8750
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_run "$LINENO"; then :
8756 ac_cv_c_bigendian=no
8757 else
8758 ac_cv_c_bigendian=yes
8759 fi
8760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8761 conftest.$ac_objext conftest.beam conftest.$ac_ext
8762 fi
8763
8764 fi
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8767 $as_echo "$ac_cv_c_bigendian" >&6; }
8768 case $ac_cv_c_bigendian in #(
8769 yes)
8770 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8771 ;; #(
8772 no)
8773 ;; #(
8774 universal)
8775
8776 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8777
8778 ;; #(
8779 *)
8780 as_fn_error "unknown endianness
8781 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8782 esac
8783
8784
8785 # ----------------------
8786 # Checks for C++ headers
8787 # ----------------------
8788
8789 ac_ext=cpp
8790 ac_cpp='$CXXCPP $CPPFLAGS'
8791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8796 if test -z "$CXXCPP"; then
8797 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 # Double quotes because CXXCPP needs to be expanded
8801 for CXXCPP in "$CXX -E" "/lib/cpp"
8802 do
8803 ac_preproc_ok=false
8804 for ac_cxx_preproc_warn_flag in '' yes
8805 do
8806 # Use a header file that comes with gcc, so configuring glibc
8807 # with a fresh cross-compiler works.
8808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8809 # <limits.h> exists even on freestanding compilers.
8810 # On the NeXT, cc -E runs the code through the compiler's parser,
8811 # not just through cpp. "Syntax error" is here to catch this case.
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819 Syntax error
8820 _ACEOF
8821 if ac_fn_cxx_try_cpp "$LINENO"; then :
8822
8823 else
8824 # Broken: fails on valid input.
8825 continue
8826 fi
8827 rm -f conftest.err conftest.$ac_ext
8828
8829 # OK, works on sane cases. Now check whether nonexistent headers
8830 # can be detected and how.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <ac_nonexistent.h>
8834 _ACEOF
8835 if ac_fn_cxx_try_cpp "$LINENO"; then :
8836 # Broken: success on invalid input.
8837 continue
8838 else
8839 # Passes both tests.
8840 ac_preproc_ok=:
8841 break
8842 fi
8843 rm -f conftest.err conftest.$ac_ext
8844
8845 done
8846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8847 rm -f conftest.err conftest.$ac_ext
8848 if $ac_preproc_ok; then :
8849 break
8850 fi
8851
8852 done
8853 ac_cv_prog_CXXCPP=$CXXCPP
8854
8855 fi
8856 CXXCPP=$ac_cv_prog_CXXCPP
8857 else
8858 ac_cv_prog_CXXCPP=$CXXCPP
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8861 $as_echo "$CXXCPP" >&6; }
8862 ac_preproc_ok=false
8863 for ac_cxx_preproc_warn_flag in '' yes
8864 do
8865 # Use a header file that comes with gcc, so configuring glibc
8866 # with a fresh cross-compiler works.
8867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868 # <limits.h> exists even on freestanding compilers.
8869 # On the NeXT, cc -E runs the code through the compiler's parser,
8870 # not just through cpp. "Syntax error" is here to catch this case.
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #ifdef __STDC__
8874 # include <limits.h>
8875 #else
8876 # include <assert.h>
8877 #endif
8878 Syntax error
8879 _ACEOF
8880 if ac_fn_cxx_try_cpp "$LINENO"; then :
8881
8882 else
8883 # Broken: fails on valid input.
8884 continue
8885 fi
8886 rm -f conftest.err conftest.$ac_ext
8887
8888 # OK, works on sane cases. Now check whether nonexistent headers
8889 # can be detected and how.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #include <ac_nonexistent.h>
8893 _ACEOF
8894 if ac_fn_cxx_try_cpp "$LINENO"; then :
8895 # Broken: success on invalid input.
8896 continue
8897 else
8898 # Passes both tests.
8899 ac_preproc_ok=:
8900 break
8901 fi
8902 rm -f conftest.err conftest.$ac_ext
8903
8904 done
8905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8906 rm -f conftest.err conftest.$ac_ext
8907 if $ac_preproc_ok; then :
8908
8909 else
8910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8913 See \`config.log' for more details." >&5
8914 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8915 See \`config.log' for more details." >&2;}; }
8916 fi
8917
8918 ac_ext=c
8919 ac_cpp='$CPP $CPPFLAGS'
8920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923
8924
8925 ac_ext=cpp
8926 ac_cpp='$CXXCPP $CPPFLAGS'
8927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8930
8931
8932
8933 for ac_header in unordered_map
8934 do :
8935 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8936 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8937 cat >>confdefs.h <<_ACEOF
8938 #define HAVE_UNORDERED_MAP 1
8939 _ACEOF
8940
8941 fi
8942 done
8943
8944 for ac_header in tr1/unordered_map
8945 do :
8946 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8947 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8948 cat >>confdefs.h <<_ACEOF
8949 #define HAVE_TR1_UNORDERED_MAP 1
8950 _ACEOF
8951
8952 fi
8953 done
8954
8955 for ac_header in ext/hash_map
8956 do :
8957 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8958 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_EXT_HASH_MAP 1
8961 _ACEOF
8962
8963 fi
8964 done
8965
8966
8967 ac_ext=c
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8972
8973
8974 # --------
8975 # Dependency checking.
8976 # --------
8977
8978 ac_ext=cpp
8979 ac_cpp='$CXXCPP $CPPFLAGS'
8980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8983
8984 rm -rf .tst 2>/dev/null
8985 mkdir .tst 2>/dev/null
8986 if test -d .tst; then
8987 am__leading_dot=.
8988 else
8989 am__leading_dot=_
8990 fi
8991 rmdir .tst 2>/dev/null
8992
8993 DEPDIR="${am__leading_dot}deps"
8994
8995 ac_config_commands="$ac_config_commands depdir"
8996
8997
8998 ac_config_commands="$ac_config_commands gccdepdir"
8999
9000
9001 depcc="$CXX" am_compiler_list=
9002
9003 am_depcomp=$ac_aux_dir/depcomp
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9005 $as_echo_n "checking dependency style of $depcc... " >&6; }
9006 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 if test -f "$am_depcomp"; then
9010 # We make a subdir and do the tests there. Otherwise we can end up
9011 # making bogus files that we don't know about and never remove. For
9012 # instance it was reported that on HP-UX the gcc test will end up
9013 # making a dummy file named `D' -- because `-MD' means `put the output
9014 # in D'.
9015 mkdir conftest.dir
9016 # Copy depcomp to subdir because otherwise we won't find it if we're
9017 # using a relative directory.
9018 cp "$am_depcomp" conftest.dir
9019 cd conftest.dir
9020 # We will build objects and dependencies in a subdirectory because
9021 # it helps to detect inapplicable dependency modes. For instance
9022 # both Tru64's cc and ICC support -MD to output dependencies as a
9023 # side effect of compilation, but ICC will put the dependencies in
9024 # the current directory while Tru64 will put them in the object
9025 # directory.
9026 mkdir sub
9027
9028 am_cv_CXX_dependencies_compiler_type=none
9029 if test "$am_compiler_list" = ""; then
9030 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9031 fi
9032 for depmode in $am_compiler_list; do
9033 if test $depmode = none; then break; fi
9034
9035 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9036 # Setup a source with many dependencies, because some compilers
9037 # like to wrap large dependency lists on column 80 (with \), and
9038 # we should not choose a depcomp mode which is confused by this.
9039 #
9040 # We need to recreate these files for each test, as the compiler may
9041 # overwrite some of them when testing with obscure command lines.
9042 # This happens at least with the AIX C compiler.
9043 : > sub/conftest.c
9044 for i in 1 2 3 4 5 6; do
9045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9047 # Solaris 8's {/usr,}/bin/sh.
9048 touch sub/conftst$i.h
9049 done
9050 echo "include sub/conftest.Po" > confmf
9051
9052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9053 # mode. It turns out that the SunPro C++ compiler does not properly
9054 # handle `-M -o', and we need to detect this.
9055 depcmd="depmode=$depmode \
9056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9059 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9060 if env $depcmd > conftest.err 2>&1 &&
9061 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9062 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9063 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9064 # icc doesn't choke on unknown options, it will just issue warnings
9065 # or remarks (even with -Werror). So we grep stderr for any message
9066 # that says an option was ignored or not supported.
9067 # When given -MP, icc 7.0 and 7.1 complain thusly:
9068 # icc: Command line warning: ignoring option '-M'; no argument required
9069 # The diagnosis changed in icc 8.0:
9070 # icc: Command line remark: option '-MP' not supported
9071 if (grep 'ignoring option' conftest.err ||
9072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9073 am_cv_CXX_dependencies_compiler_type=$depmode
9074 $as_echo "$as_me:$LINENO: success" >&5
9075 break
9076 fi
9077 fi
9078 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9079 sed -e 's/^/| /' < conftest.err >&5
9080 done
9081
9082 cd ..
9083 rm -rf conftest.dir
9084 else
9085 am_cv_CXX_dependencies_compiler_type=none
9086 fi
9087
9088 fi
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9090 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9091 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9092 then as_fn_error "no usable dependency style found" "$LINENO" 5
9093 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9094
9095 fi
9096
9097 ac_ext=c
9098 ac_cpp='$CPP $CPPFLAGS'
9099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9102
9103
9104 # --------
9105 # UNSORTED
9106 # --------
9107
9108
9109 # These libraries may be used by collect2.
9110 # We may need a special search path to get them linked.
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9112 $as_echo_n "checking for collect2 libraries... " >&6; }
9113 if test "${gcc_cv_collect2_libs+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 save_LIBS="$LIBS"
9117 for libs in '' -lld -lmld \
9118 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9119 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9120 do
9121 LIBS="$libs"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 char ldopen ();
9132 int
9133 main ()
9134 {
9135 return ldopen ();
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 gcc_cv_collect2_libs="$libs"; break
9142 fi
9143 rm -f core conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 done
9146 LIBS="$save_LIBS"
9147 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9150 $as_echo "$gcc_cv_collect2_libs" >&6; }
9151 case $gcc_cv_collect2_libs in
9152 "none required") ;;
9153 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9154 esac
9155
9156
9157 # When building Ada code on Alpha, we need exc_resume which is usually in
9158 # -lexc. So test for it.
9159 save_LIBS="$LIBS"
9160 LIBS=
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9162 $as_echo_n "checking for library containing exc_resume... " >&6; }
9163 if test "${ac_cv_search_exc_resume+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 ac_func_search_save_LIBS=$LIBS
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 char exc_resume ();
9177 int
9178 main ()
9179 {
9180 return exc_resume ();
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 for ac_lib in '' exc; do
9186 if test -z "$ac_lib"; then
9187 ac_res="none required"
9188 else
9189 ac_res=-l$ac_lib
9190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9191 fi
9192 if ac_fn_c_try_link "$LINENO"; then :
9193 ac_cv_search_exc_resume=$ac_res
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext
9197 if test "${ac_cv_search_exc_resume+set}" = set; then :
9198 break
9199 fi
9200 done
9201 if test "${ac_cv_search_exc_resume+set}" = set; then :
9202
9203 else
9204 ac_cv_search_exc_resume=no
9205 fi
9206 rm conftest.$ac_ext
9207 LIBS=$ac_func_search_save_LIBS
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9210 $as_echo "$ac_cv_search_exc_resume" >&6; }
9211 ac_res=$ac_cv_search_exc_resume
9212 if test "$ac_res" != no; then :
9213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9214
9215 fi
9216
9217 GNAT_LIBEXC="$LIBS"
9218 LIBS="$save_LIBS"
9219
9220
9221 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9222 save_LIBS="$LIBS"
9223 LIBS=
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9225 $as_echo_n "checking for library containing kstat_open... " >&6; }
9226 if test "${ac_cv_search_kstat_open+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_func_search_save_LIBS=$LIBS
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char kstat_open ();
9240 int
9241 main ()
9242 {
9243 return kstat_open ();
9244 ;
9245 return 0;
9246 }
9247 _ACEOF
9248 for ac_lib in '' kstat; do
9249 if test -z "$ac_lib"; then
9250 ac_res="none required"
9251 else
9252 ac_res=-l$ac_lib
9253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9254 fi
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 ac_cv_search_kstat_open=$ac_res
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext
9260 if test "${ac_cv_search_kstat_open+set}" = set; then :
9261 break
9262 fi
9263 done
9264 if test "${ac_cv_search_kstat_open+set}" = set; then :
9265
9266 else
9267 ac_cv_search_kstat_open=no
9268 fi
9269 rm conftest.$ac_ext
9270 LIBS=$ac_func_search_save_LIBS
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9273 $as_echo "$ac_cv_search_kstat_open" >&6; }
9274 ac_res=$ac_cv_search_kstat_open
9275 if test "$ac_res" != no; then :
9276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9277
9278 fi
9279
9280 EXTRA_GCC_LIBS="$LIBS"
9281 LIBS="$save_LIBS"
9282
9283
9284 # Some systems put ldexp and frexp in libm instead of libc; assume
9285 # they're both in the same place. jcf-dump needs them.
9286 save_LIBS="$LIBS"
9287 LIBS=
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9289 $as_echo_n "checking for library containing ldexp... " >&6; }
9290 if test "${ac_cv_search_ldexp+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 ac_func_search_save_LIBS=$LIBS
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296
9297 /* Override any GCC internal prototype to avoid an error.
9298 Use char because int might match the return type of a GCC
9299 builtin and then its argument prototype would still apply. */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 char ldexp ();
9304 int
9305 main ()
9306 {
9307 return ldexp ();
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 for ac_lib in '' m; do
9313 if test -z "$ac_lib"; then
9314 ac_res="none required"
9315 else
9316 ac_res=-l$ac_lib
9317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9318 fi
9319 if ac_fn_c_try_link "$LINENO"; then :
9320 ac_cv_search_ldexp=$ac_res
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext
9324 if test "${ac_cv_search_ldexp+set}" = set; then :
9325 break
9326 fi
9327 done
9328 if test "${ac_cv_search_ldexp+set}" = set; then :
9329
9330 else
9331 ac_cv_search_ldexp=no
9332 fi
9333 rm conftest.$ac_ext
9334 LIBS=$ac_func_search_save_LIBS
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9337 $as_echo "$ac_cv_search_ldexp" >&6; }
9338 ac_res=$ac_cv_search_ldexp
9339 if test "$ac_res" != no; then :
9340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9341
9342 fi
9343
9344 LDEXP_LIB="$LIBS"
9345 LIBS="$save_LIBS"
9346
9347
9348 # Use <inttypes.h> only if it exists,
9349 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9350 # PRId64
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9352 $as_echo_n "checking for inttypes.h... " >&6; }
9353 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #define __STDC_FORMAT_MACROS
9359 #include <sys/types.h>
9360 #include <inttypes.h>
9361 int
9362 main ()
9363 {
9364 intmax_t i = -1;
9365 #ifndef PRId64
9366 choke me
9367 #endif
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"; then :
9373 gcc_cv_header_inttypes_h=yes
9374 else
9375 gcc_cv_header_inttypes_h=no
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 fi
9379
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9381 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9382 if test $gcc_cv_header_inttypes_h = yes; then
9383
9384 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9385
9386 fi
9387
9388
9389
9390 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9391 popen sysconf strsignal getrusage nl_langinfo \
9392 gettimeofday mbstowcs wcswidth mmap setlocale \
9393 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
9394 do :
9395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9397 eval as_val=\$$as_ac_var
9398 if test "x$as_val" = x""yes; then :
9399 cat >>confdefs.h <<_ACEOF
9400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9401 _ACEOF
9402
9403 fi
9404 done
9405
9406
9407 if test x$ac_cv_func_mbstowcs = xyes; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9409 $as_echo_n "checking whether mbstowcs works... " >&6; }
9410 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 if test "$cross_compiling" = yes; then :
9414 gcc_cv_func_mbstowcs_works=yes
9415 else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418 #include <stdlib.h>
9419 int main()
9420 {
9421 mbstowcs(0, "", 0);
9422 return 0;
9423 }
9424 _ACEOF
9425 if ac_fn_c_try_run "$LINENO"; then :
9426 gcc_cv_func_mbstowcs_works=yes
9427 else
9428 gcc_cv_func_mbstowcs_works=no
9429 fi
9430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9432 fi
9433
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9436 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9437 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9438
9439 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9440
9441 fi
9442 fi
9443
9444 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9445 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9446
9447 else
9448
9449 cat >>confdefs.h <<_ACEOF
9450 #define ssize_t int
9451 _ACEOF
9452
9453 fi
9454
9455 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9456 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9457
9458 else
9459
9460 cat >>confdefs.h <<_ACEOF
9461 #define caddr_t char *
9462 _ACEOF
9463
9464 fi
9465
9466
9467
9468 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9469 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9470 gcc_header_sys_mman_h=yes
9471 else
9472 gcc_header_sys_mman_h=no
9473 fi
9474
9475 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9476 if test "x$ac_cv_func_mmap" = x""yes; then :
9477 gcc_func_mmap=yes
9478 else
9479 gcc_func_mmap=no
9480 fi
9481
9482 if test "$gcc_header_sys_mman_h" != yes \
9483 || test "$gcc_func_mmap" != yes; then
9484 gcc_cv_func_mmap_file=no
9485 gcc_cv_func_mmap_dev_zero=no
9486 gcc_cv_func_mmap_anon=no
9487 else
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9489 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9490 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 # Add a system to this blacklist if
9494 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9495 # memory area containing the same data that you'd get if you applied
9496 # read() to the same fd. The only system known to have a problem here
9497 # is VMS, where text files have record structure.
9498 case "$host_os" in
9499 *vms* | ultrix*)
9500 gcc_cv_func_mmap_file=no ;;
9501 *)
9502 gcc_cv_func_mmap_file=yes;;
9503 esac
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9506 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9508 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9509 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 # Add a system to this blacklist if it has mmap() but /dev/zero
9513 # does not exist, or if mmapping /dev/zero does not give anonymous
9514 # zeroed pages with both the following properties:
9515 # 1. If you map N consecutive pages in with one call, and then
9516 # unmap any subset of those pages, the pages that were not
9517 # explicitly unmapped remain accessible.
9518 # 2. If you map two adjacent blocks of memory and then unmap them
9519 # both at once, they must both go away.
9520 # Systems known to be in this category are Windows (all variants),
9521 # VMS, and Darwin.
9522 case "$host_os" in
9523 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9524 gcc_cv_func_mmap_dev_zero=no ;;
9525 *)
9526 gcc_cv_func_mmap_dev_zero=yes;;
9527 esac
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9530 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9531
9532 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9534 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9535 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 #include <sys/types.h>
9541 #include <sys/mman.h>
9542 #include <unistd.h>
9543
9544 #ifndef MAP_ANONYMOUS
9545 #define MAP_ANONYMOUS MAP_ANON
9546 #endif
9547
9548 int
9549 main ()
9550 {
9551 int n = MAP_ANONYMOUS;
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 gcc_cv_decl_map_anon=yes
9558 else
9559 gcc_cv_decl_map_anon=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9564 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9565
9566 if test $gcc_cv_decl_map_anon = no; then
9567 gcc_cv_func_mmap_anon=no
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9570 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9571 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9575 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9576 # doesn't give anonymous zeroed pages with the same properties listed
9577 # above for use of /dev/zero.
9578 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9579 case "$host_os" in
9580 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9581 gcc_cv_func_mmap_anon=no ;;
9582 *)
9583 gcc_cv_func_mmap_anon=yes;;
9584 esac
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9587 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9588 fi
9589 fi
9590
9591 if test $gcc_cv_func_mmap_file = yes; then
9592
9593 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9594
9595 fi
9596 if test $gcc_cv_func_mmap_dev_zero = yes; then
9597
9598 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9599
9600 fi
9601 if test $gcc_cv_func_mmap_anon = yes; then
9602
9603 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9604
9605 fi
9606
9607
9608 case "${host}" in
9609 *-*-*vms*)
9610 # Under VMS, vfork works very differently than on Unix. The standard test
9611 # won't work, and it isn't easily adaptable. It makes more sense to
9612 # just force it.
9613 ac_cv_func_vfork_works=yes
9614 ;;
9615 esac
9616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9617 if test "x$ac_cv_type_pid_t" = x""yes; then :
9618
9619 else
9620
9621 cat >>confdefs.h <<_ACEOF
9622 #define pid_t int
9623 _ACEOF
9624
9625 fi
9626
9627 for ac_header in vfork.h
9628 do :
9629 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9630 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9631 cat >>confdefs.h <<_ACEOF
9632 #define HAVE_VFORK_H 1
9633 _ACEOF
9634
9635 fi
9636 done
9637
9638 for ac_func in fork vfork
9639 do :
9640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9642 eval as_val=\$$as_ac_var
9643 if test "x$as_val" = x""yes; then :
9644 cat >>confdefs.h <<_ACEOF
9645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9646 _ACEOF
9647
9648 fi
9649 done
9650
9651 if test "x$ac_cv_func_fork" = xyes; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9653 $as_echo_n "checking for working fork... " >&6; }
9654 if test "${ac_cv_func_fork_works+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test "$cross_compiling" = yes; then :
9658 ac_cv_func_fork_works=cross
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 int
9664 main ()
9665 {
9666
9667 /* By Ruediger Kuhlmann. */
9668 return fork () < 0;
9669
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 if ac_fn_c_try_run "$LINENO"; then :
9675 ac_cv_func_fork_works=yes
9676 else
9677 ac_cv_func_fork_works=no
9678 fi
9679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9680 conftest.$ac_objext conftest.beam conftest.$ac_ext
9681 fi
9682
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9685 $as_echo "$ac_cv_func_fork_works" >&6; }
9686
9687 else
9688 ac_cv_func_fork_works=$ac_cv_func_fork
9689 fi
9690 if test "x$ac_cv_func_fork_works" = xcross; then
9691 case $host in
9692 *-*-amigaos* | *-*-msdosdjgpp*)
9693 # Override, as these systems have only a dummy fork() stub
9694 ac_cv_func_fork_works=no
9695 ;;
9696 *)
9697 ac_cv_func_fork_works=yes
9698 ;;
9699 esac
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9701 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9702 fi
9703 ac_cv_func_vfork_works=$ac_cv_func_vfork
9704 if test "x$ac_cv_func_vfork" = xyes; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9706 $as_echo_n "checking for working vfork... " >&6; }
9707 if test "${ac_cv_func_vfork_works+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test "$cross_compiling" = yes; then :
9711 ac_cv_func_vfork_works=cross
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 /* Thanks to Paul Eggert for this test. */
9716 $ac_includes_default
9717 #include <sys/wait.h>
9718 #ifdef HAVE_VFORK_H
9719 # include <vfork.h>
9720 #endif
9721 /* On some sparc systems, changes by the child to local and incoming
9722 argument registers are propagated back to the parent. The compiler
9723 is told about this with #include <vfork.h>, but some compilers
9724 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9725 static variable whose address is put into a register that is
9726 clobbered by the vfork. */
9727 static void
9728 #ifdef __cplusplus
9729 sparc_address_test (int arg)
9730 # else
9731 sparc_address_test (arg) int arg;
9732 #endif
9733 {
9734 static pid_t child;
9735 if (!child) {
9736 child = vfork ();
9737 if (child < 0) {
9738 perror ("vfork");
9739 _exit(2);
9740 }
9741 if (!child) {
9742 arg = getpid();
9743 write(-1, "", 0);
9744 _exit (arg);
9745 }
9746 }
9747 }
9748
9749 int
9750 main ()
9751 {
9752 pid_t parent = getpid ();
9753 pid_t child;
9754
9755 sparc_address_test (0);
9756
9757 child = vfork ();
9758
9759 if (child == 0) {
9760 /* Here is another test for sparc vfork register problems. This
9761 test uses lots of local variables, at least as many local
9762 variables as main has allocated so far including compiler
9763 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9764 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9765 reuse the register of parent for one of the local variables,
9766 since it will think that parent can't possibly be used any more
9767 in this routine. Assigning to the local variable will thus
9768 munge parent in the parent process. */
9769 pid_t
9770 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9771 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9772 /* Convince the compiler that p..p7 are live; otherwise, it might
9773 use the same hardware register for all 8 local variables. */
9774 if (p != p1 || p != p2 || p != p3 || p != p4
9775 || p != p5 || p != p6 || p != p7)
9776 _exit(1);
9777
9778 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9779 from child file descriptors. If the child closes a descriptor
9780 before it execs or exits, this munges the parent's descriptor
9781 as well. Test for this by closing stdout in the child. */
9782 _exit(close(fileno(stdout)) != 0);
9783 } else {
9784 int status;
9785 struct stat st;
9786
9787 while (wait(&status) != child)
9788 ;
9789 return (
9790 /* Was there some problem with vforking? */
9791 child < 0
9792
9793 /* Did the child fail? (This shouldn't happen.) */
9794 || status
9795
9796 /* Did the vfork/compiler bug occur? */
9797 || parent != getpid()
9798
9799 /* Did the file descriptor bug occur? */
9800 || fstat(fileno(stdout), &st) != 0
9801 );
9802 }
9803 }
9804 _ACEOF
9805 if ac_fn_c_try_run "$LINENO"; then :
9806 ac_cv_func_vfork_works=yes
9807 else
9808 ac_cv_func_vfork_works=no
9809 fi
9810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9811 conftest.$ac_objext conftest.beam conftest.$ac_ext
9812 fi
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9816 $as_echo "$ac_cv_func_vfork_works" >&6; }
9817
9818 fi;
9819 if test "x$ac_cv_func_fork_works" = xcross; then
9820 ac_cv_func_vfork_works=$ac_cv_func_vfork
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9822 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9823 fi
9824
9825 if test "x$ac_cv_func_vfork_works" = xyes; then
9826
9827 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9828
9829 else
9830
9831 $as_echo "#define vfork fork" >>confdefs.h
9832
9833 fi
9834 if test "x$ac_cv_func_fork_works" = xyes; then
9835
9836 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9837
9838 fi
9839
9840
9841 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9842 # iconv() prototype.
9843 ac_ext=cpp
9844 ac_cpp='$CXXCPP $CPPFLAGS'
9845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9848
9849
9850 if test "X$prefix" = "XNONE"; then
9851 acl_final_prefix="$ac_default_prefix"
9852 else
9853 acl_final_prefix="$prefix"
9854 fi
9855 if test "X$exec_prefix" = "XNONE"; then
9856 acl_final_exec_prefix='${prefix}'
9857 else
9858 acl_final_exec_prefix="$exec_prefix"
9859 fi
9860 acl_save_prefix="$prefix"
9861 prefix="$acl_final_prefix"
9862 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9863 prefix="$acl_save_prefix"
9864
9865
9866 # Check whether --with-gnu-ld was given.
9867 if test "${with_gnu_ld+set}" = set; then :
9868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9869 else
9870 with_gnu_ld=no
9871 fi
9872
9873 # Prepare PATH_SEPARATOR.
9874 # The user is always right.
9875 if test "${PATH_SEPARATOR+set}" != set; then
9876 echo "#! /bin/sh" >conf$$.sh
9877 echo "exit 0" >>conf$$.sh
9878 chmod +x conf$$.sh
9879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9880 PATH_SEPARATOR=';'
9881 else
9882 PATH_SEPARATOR=:
9883 fi
9884 rm -f conf$$.sh
9885 fi
9886 ac_prog=ld
9887 if test "$GCC" = yes; then
9888 # Check if gcc -print-prog-name=ld gives a path.
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9890 $as_echo_n "checking for ld used by GCC... " >&6; }
9891 case $host in
9892 *-*-mingw*)
9893 # gcc leaves a trailing carriage return which upsets mingw
9894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9895 *)
9896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9897 esac
9898 case $ac_prog in
9899 # Accept absolute paths.
9900 [\\/]* | [A-Za-z]:[\\/]*)
9901 re_direlt='/[^/][^/]*/\.\./'
9902 # Canonicalize the path of ld
9903 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9906 done
9907 test -z "$LD" && LD="$ac_prog"
9908 ;;
9909 "")
9910 # If it fails, then pretend we aren't using GCC.
9911 ac_prog=ld
9912 ;;
9913 *)
9914 # If it is relative, then search for the first ld in PATH.
9915 with_gnu_ld=unknown
9916 ;;
9917 esac
9918 elif test "$with_gnu_ld" = yes; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9920 $as_echo_n "checking for GNU ld... " >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9923 $as_echo_n "checking for non-GNU ld... " >&6; }
9924 fi
9925 if test "${acl_cv_path_LD+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 if test -z "$LD"; then
9929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9930 for ac_dir in $PATH; do
9931 test -z "$ac_dir" && ac_dir=.
9932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9933 acl_cv_path_LD="$ac_dir/$ac_prog"
9934 # Check to see if the program is GNU ld. I'd rather use --version,
9935 # but apparently some GNU ld's only accept -v.
9936 # Break only if it was the GNU/non-GNU ld that we prefer.
9937 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9938 test "$with_gnu_ld" != no && break
9939 else
9940 test "$with_gnu_ld" != yes && break
9941 fi
9942 fi
9943 done
9944 IFS="$ac_save_ifs"
9945 else
9946 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9947 fi
9948 fi
9949
9950 LD="$acl_cv_path_LD"
9951 if test -n "$LD"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9953 $as_echo "$LD" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9961 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9965 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9966 acl_cv_prog_gnu_ld=yes
9967 else
9968 acl_cv_prog_gnu_ld=no
9969 fi
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9972 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9973 with_gnu_ld=$acl_cv_prog_gnu_ld
9974
9975
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9978 $as_echo_n "checking for shared library run path origin... " >&6; }
9979 if test "${acl_cv_rpath+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982
9983 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9984 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9985 . ./conftest.sh
9986 rm -f ./conftest.sh
9987 acl_cv_rpath=done
9988
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9991 $as_echo "$acl_cv_rpath" >&6; }
9992 wl="$acl_cv_wl"
9993 libext="$acl_cv_libext"
9994 shlibext="$acl_cv_shlibext"
9995 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9996 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9997 hardcode_direct="$acl_cv_hardcode_direct"
9998 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9999 # Check whether --enable-rpath was given.
10000 if test "${enable_rpath+set}" = set; then :
10001 enableval=$enable_rpath; :
10002 else
10003 enable_rpath=yes
10004 fi
10005
10006
10007
10008
10009
10010
10011
10012
10013 use_additional=yes
10014
10015 acl_save_prefix="$prefix"
10016 prefix="$acl_final_prefix"
10017 acl_save_exec_prefix="$exec_prefix"
10018 exec_prefix="$acl_final_exec_prefix"
10019
10020 eval additional_includedir=\"$includedir\"
10021 eval additional_libdir=\"$libdir\"
10022
10023 exec_prefix="$acl_save_exec_prefix"
10024 prefix="$acl_save_prefix"
10025
10026
10027 # Check whether --with-libiconv-prefix was given.
10028 if test "${with_libiconv_prefix+set}" = set; then :
10029 withval=$with_libiconv_prefix;
10030 if test "X$withval" = "Xno"; then
10031 use_additional=no
10032 else
10033 if test "X$withval" = "X"; then
10034
10035 acl_save_prefix="$prefix"
10036 prefix="$acl_final_prefix"
10037 acl_save_exec_prefix="$exec_prefix"
10038 exec_prefix="$acl_final_exec_prefix"
10039
10040 eval additional_includedir=\"$includedir\"
10041 eval additional_libdir=\"$libdir\"
10042
10043 exec_prefix="$acl_save_exec_prefix"
10044 prefix="$acl_save_prefix"
10045
10046 else
10047 additional_includedir="$withval/include"
10048 additional_libdir="$withval/lib"
10049 fi
10050 fi
10051
10052 fi
10053
10054 LIBICONV=
10055 LTLIBICONV=
10056 INCICONV=
10057 rpathdirs=
10058 ltrpathdirs=
10059 names_already_handled=
10060 names_next_round='iconv '
10061 while test -n "$names_next_round"; do
10062 names_this_round="$names_next_round"
10063 names_next_round=
10064 for name in $names_this_round; do
10065 already_handled=
10066 for n in $names_already_handled; do
10067 if test "$n" = "$name"; then
10068 already_handled=yes
10069 break
10070 fi
10071 done
10072 if test -z "$already_handled"; then
10073 names_already_handled="$names_already_handled $name"
10074 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10075 eval value=\"\$HAVE_LIB$uppername\"
10076 if test -n "$value"; then
10077 if test "$value" = yes; then
10078 eval value=\"\$LIB$uppername\"
10079 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10080 eval value=\"\$LTLIB$uppername\"
10081 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10082 else
10083 :
10084 fi
10085 else
10086 found_dir=
10087 found_la=
10088 found_so=
10089 found_a=
10090 if test $use_additional = yes; then
10091 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10092 found_dir="$additional_libdir"
10093 found_so="$additional_libdir/lib$name.$shlibext"
10094 if test -f "$additional_libdir/lib$name.la"; then
10095 found_la="$additional_libdir/lib$name.la"
10096 fi
10097 else
10098 if test -f "$additional_libdir/lib$name.$libext"; then
10099 found_dir="$additional_libdir"
10100 found_a="$additional_libdir/lib$name.$libext"
10101 if test -f "$additional_libdir/lib$name.la"; then
10102 found_la="$additional_libdir/lib$name.la"
10103 fi
10104 fi
10105 fi
10106 fi
10107 if test "X$found_dir" = "X"; then
10108 for x in $LDFLAGS $LTLIBICONV; do
10109
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 acl_save_exec_prefix="$exec_prefix"
10113 exec_prefix="$acl_final_exec_prefix"
10114 eval x=\"$x\"
10115 exec_prefix="$acl_save_exec_prefix"
10116 prefix="$acl_save_prefix"
10117
10118 case "$x" in
10119 -L*)
10120 dir=`echo "X$x" | sed -e 's/^X-L//'`
10121 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10122 found_dir="$dir"
10123 found_so="$dir/lib$name.$shlibext"
10124 if test -f "$dir/lib$name.la"; then
10125 found_la="$dir/lib$name.la"
10126 fi
10127 else
10128 if test -f "$dir/lib$name.$libext"; then
10129 found_dir="$dir"
10130 found_a="$dir/lib$name.$libext"
10131 if test -f "$dir/lib$name.la"; then
10132 found_la="$dir/lib$name.la"
10133 fi
10134 fi
10135 fi
10136 ;;
10137 esac
10138 if test "X$found_dir" != "X"; then
10139 break
10140 fi
10141 done
10142 fi
10143 if test "X$found_dir" != "X"; then
10144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10145 if test "X$found_so" != "X"; then
10146 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10148 else
10149 haveit=
10150 for x in $ltrpathdirs; do
10151 if test "X$x" = "X$found_dir"; then
10152 haveit=yes
10153 break
10154 fi
10155 done
10156 if test -z "$haveit"; then
10157 ltrpathdirs="$ltrpathdirs $found_dir"
10158 fi
10159 if test "$hardcode_direct" = yes; then
10160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10161 else
10162 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10164 haveit=
10165 for x in $rpathdirs; do
10166 if test "X$x" = "X$found_dir"; then
10167 haveit=yes
10168 break
10169 fi
10170 done
10171 if test -z "$haveit"; then
10172 rpathdirs="$rpathdirs $found_dir"
10173 fi
10174 else
10175 haveit=
10176 for x in $LDFLAGS $LIBICONV; do
10177
10178 acl_save_prefix="$prefix"
10179 prefix="$acl_final_prefix"
10180 acl_save_exec_prefix="$exec_prefix"
10181 exec_prefix="$acl_final_exec_prefix"
10182 eval x=\"$x\"
10183 exec_prefix="$acl_save_exec_prefix"
10184 prefix="$acl_save_prefix"
10185
10186 if test "X$x" = "X-L$found_dir"; then
10187 haveit=yes
10188 break
10189 fi
10190 done
10191 if test -z "$haveit"; then
10192 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10193 fi
10194 if test "$hardcode_minus_L" != no; then
10195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10196 else
10197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10198 fi
10199 fi
10200 fi
10201 fi
10202 else
10203 if test "X$found_a" != "X"; then
10204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10205 else
10206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10207 fi
10208 fi
10209 additional_includedir=
10210 case "$found_dir" in
10211 */lib | */lib/)
10212 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10213 additional_includedir="$basedir/include"
10214 ;;
10215 esac
10216 if test "X$additional_includedir" != "X"; then
10217 if test "X$additional_includedir" != "X/usr/include"; then
10218 haveit=
10219 if test "X$additional_includedir" = "X/usr/local/include"; then
10220 if test -n "$GCC"; then
10221 case $host_os in
10222 linux*) haveit=yes;;
10223 esac
10224 fi
10225 fi
10226 if test -z "$haveit"; then
10227 for x in $CPPFLAGS $INCICONV; do
10228
10229 acl_save_prefix="$prefix"
10230 prefix="$acl_final_prefix"
10231 acl_save_exec_prefix="$exec_prefix"
10232 exec_prefix="$acl_final_exec_prefix"
10233 eval x=\"$x\"
10234 exec_prefix="$acl_save_exec_prefix"
10235 prefix="$acl_save_prefix"
10236
10237 if test "X$x" = "X-I$additional_includedir"; then
10238 haveit=yes
10239 break
10240 fi
10241 done
10242 if test -z "$haveit"; then
10243 if test -d "$additional_includedir"; then
10244 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10245 fi
10246 fi
10247 fi
10248 fi
10249 fi
10250 if test -n "$found_la"; then
10251 save_libdir="$libdir"
10252 case "$found_la" in
10253 */* | *\\*) . "$found_la" ;;
10254 *) . "./$found_la" ;;
10255 esac
10256 libdir="$save_libdir"
10257 for dep in $dependency_libs; do
10258 case "$dep" in
10259 -L*)
10260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10261 if test "X$additional_libdir" != "X/usr/lib"; then
10262 haveit=
10263 if test "X$additional_libdir" = "X/usr/local/lib"; then
10264 if test -n "$GCC"; then
10265 case $host_os in
10266 linux*) haveit=yes;;
10267 esac
10268 fi
10269 fi
10270 if test -z "$haveit"; then
10271 haveit=
10272 for x in $LDFLAGS $LIBICONV; do
10273
10274 acl_save_prefix="$prefix"
10275 prefix="$acl_final_prefix"
10276 acl_save_exec_prefix="$exec_prefix"
10277 exec_prefix="$acl_final_exec_prefix"
10278 eval x=\"$x\"
10279 exec_prefix="$acl_save_exec_prefix"
10280 prefix="$acl_save_prefix"
10281
10282 if test "X$x" = "X-L$additional_libdir"; then
10283 haveit=yes
10284 break
10285 fi
10286 done
10287 if test -z "$haveit"; then
10288 if test -d "$additional_libdir"; then
10289 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10290 fi
10291 fi
10292 haveit=
10293 for x in $LDFLAGS $LTLIBICONV; do
10294
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10299 eval x=\"$x\"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10302
10303 if test "X$x" = "X-L$additional_libdir"; then
10304 haveit=yes
10305 break
10306 fi
10307 done
10308 if test -z "$haveit"; then
10309 if test -d "$additional_libdir"; then
10310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10311 fi
10312 fi
10313 fi
10314 fi
10315 ;;
10316 -R*)
10317 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10318 if test "$enable_rpath" != no; then
10319 haveit=
10320 for x in $rpathdirs; do
10321 if test "X$x" = "X$dir"; then
10322 haveit=yes
10323 break
10324 fi
10325 done
10326 if test -z "$haveit"; then
10327 rpathdirs="$rpathdirs $dir"
10328 fi
10329 haveit=
10330 for x in $ltrpathdirs; do
10331 if test "X$x" = "X$dir"; then
10332 haveit=yes
10333 break
10334 fi
10335 done
10336 if test -z "$haveit"; then
10337 ltrpathdirs="$ltrpathdirs $dir"
10338 fi
10339 fi
10340 ;;
10341 -l*)
10342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10343 ;;
10344 *.la)
10345 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10346 ;;
10347 *)
10348 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10350 ;;
10351 esac
10352 done
10353 fi
10354 else
10355 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10357 fi
10358 fi
10359 fi
10360 done
10361 done
10362 if test "X$rpathdirs" != "X"; then
10363 if test -n "$hardcode_libdir_separator"; then
10364 alldirs=
10365 for found_dir in $rpathdirs; do
10366 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10367 done
10368 acl_save_libdir="$libdir"
10369 libdir="$alldirs"
10370 eval flag=\"$hardcode_libdir_flag_spec\"
10371 libdir="$acl_save_libdir"
10372 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10373 else
10374 for found_dir in $rpathdirs; do
10375 acl_save_libdir="$libdir"
10376 libdir="$found_dir"
10377 eval flag=\"$hardcode_libdir_flag_spec\"
10378 libdir="$acl_save_libdir"
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10380 done
10381 fi
10382 fi
10383 if test "X$ltrpathdirs" != "X"; then
10384 for found_dir in $ltrpathdirs; do
10385 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10386 done
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395 am_save_CPPFLAGS="$CPPFLAGS"
10396
10397 for element in $INCICONV; do
10398 haveit=
10399 for x in $CPPFLAGS; do
10400
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10405 eval x=\"$x\"
10406 exec_prefix="$acl_save_exec_prefix"
10407 prefix="$acl_save_prefix"
10408
10409 if test "X$x" = "X$element"; then
10410 haveit=yes
10411 break
10412 fi
10413 done
10414 if test -z "$haveit"; then
10415 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10416 fi
10417 done
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10421 $as_echo_n "checking for iconv... " >&6; }
10422 if test "${am_cv_func_iconv+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425
10426 am_cv_func_iconv="no, consider installing GNU libiconv"
10427 am_cv_lib_iconv=no
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #include <stdlib.h>
10431 #include <iconv.h>
10432 int
10433 main ()
10434 {
10435 iconv_t cd = iconv_open("","");
10436 iconv(cd,NULL,NULL,NULL,NULL);
10437 iconv_close(cd);
10438 ;
10439 return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_cxx_try_link "$LINENO"; then :
10443 am_cv_func_iconv=yes
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 if test "$am_cv_func_iconv" != yes; then
10448 am_save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBICONV"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #include <stdlib.h>
10453 #include <iconv.h>
10454 int
10455 main ()
10456 {
10457 iconv_t cd = iconv_open("","");
10458 iconv(cd,NULL,NULL,NULL,NULL);
10459 iconv_close(cd);
10460 ;
10461 return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_cxx_try_link "$LINENO"; then :
10465 am_cv_lib_iconv=yes
10466 am_cv_func_iconv=yes
10467 fi
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS="$am_save_LIBS"
10471 fi
10472
10473 fi
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10475 $as_echo "$am_cv_func_iconv" >&6; }
10476 if test "$am_cv_func_iconv" = yes; then
10477
10478 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10479
10480 fi
10481 if test "$am_cv_lib_iconv" = yes; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10483 $as_echo_n "checking how to link with libiconv... " >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10485 $as_echo "$LIBICONV" >&6; }
10486 else
10487 CPPFLAGS="$am_save_CPPFLAGS"
10488 LIBICONV=
10489 LTLIBICONV=
10490 fi
10491
10492
10493
10494 if test "$am_cv_func_iconv" = yes; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10496 $as_echo_n "checking for iconv declaration... " >&6; }
10497 if test "${am_cv_proto_iconv+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503
10504 #include <stdlib.h>
10505 #include <iconv.h>
10506 extern
10507 #ifdef __cplusplus
10508 "C"
10509 #endif
10510 #if defined(__STDC__) || defined(__cplusplus)
10511 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10512 #else
10513 size_t iconv();
10514 #endif
10515
10516 int
10517 main ()
10518 {
10519
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_cxx_try_compile "$LINENO"; then :
10525 am_cv_proto_iconv_arg1=""
10526 else
10527 am_cv_proto_iconv_arg1="const"
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 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);"
10531 fi
10532
10533 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10535 }$am_cv_proto_iconv" >&5
10536 $as_echo "${ac_t:-
10537 }$am_cv_proto_iconv" >&6; }
10538
10539 cat >>confdefs.h <<_ACEOF
10540 #define ICONV_CONST $am_cv_proto_iconv_arg1
10541 _ACEOF
10542
10543 fi
10544
10545 ac_ext=c
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10550
10551
10552 # Until we have in-tree GNU iconv:
10553 LIBICONV_DEP=
10554
10555
10556
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10558 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10559 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 #include <locale.h>
10565 int
10566 main ()
10567 {
10568 return LC_MESSAGES
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 am_cv_val_LC_MESSAGES=yes
10575 else
10576 am_cv_val_LC_MESSAGES=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 fi
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10582 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10583 if test $am_cv_val_LC_MESSAGES = yes; then
10584
10585 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10586
10587 fi
10588
10589
10590
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10592 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10593 if test "${am_cv_langinfo_codeset+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598 #include <langinfo.h>
10599 int
10600 main ()
10601 {
10602 char* cs = nl_langinfo(CODESET);
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 if ac_fn_c_try_link "$LINENO"; then :
10608 am_cv_langinfo_codeset=yes
10609 else
10610 am_cv_langinfo_codeset=no
10611 fi
10612 rm -f core conftest.err conftest.$ac_objext \
10613 conftest$ac_exeext conftest.$ac_ext
10614
10615 fi
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10617 $as_echo "$am_cv_langinfo_codeset" >&6; }
10618 if test $am_cv_langinfo_codeset = yes; then
10619
10620 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10621
10622 fi
10623
10624
10625 # We will need to find libiberty.h and ansidecl.h
10626 saved_CFLAGS="$CFLAGS"
10627 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10628 saved_CXXFLAGS="$CXXFLAGS"
10629 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10630 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10631 stpcpy strnlen strsignal strstr strverscmp \
10632 strtol strtoul strtoll strtoull \
10633 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10634 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
10635 do
10636 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10638 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10639 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 #undef $ac_tr_decl
10645 #define $ac_tr_decl 1
10646
10647 #include "ansidecl.h"
10648 #include "system.h"
10649
10650 int
10651 main ()
10652 {
10653 #ifndef $ac_func
10654 char *(*pfn) = (char *(*)) $ac_func ;
10655 #endif
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_compile "$LINENO"; then :
10661 eval "gcc_cv_have_decl_$ac_func=yes"
10662 else
10663 eval "gcc_cv_have_decl_$ac_func=no"
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 fi
10667
10668 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10671 #define $ac_tr_decl 1
10672 _ACEOF
10673
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10677 #define $ac_tr_decl 0
10678 _ACEOF
10679
10680 fi
10681
10682 done
10683
10684
10685 for ac_func in getrlimit setrlimit getrusage
10686 do
10687 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10689 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10690 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #undef $ac_tr_decl
10696 #define $ac_tr_decl 1
10697
10698 #include "ansidecl.h"
10699 #include "system.h"
10700 #ifdef HAVE_SYS_RESOURCE_H
10701 #include <sys/resource.h>
10702 #endif
10703
10704
10705 int
10706 main ()
10707 {
10708 #ifndef $ac_func
10709 char *(*pfn) = (char *(*)) $ac_func ;
10710 #endif
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_c_try_compile "$LINENO"; then :
10716 eval "gcc_cv_have_decl_$ac_func=yes"
10717 else
10718 eval "gcc_cv_have_decl_$ac_func=no"
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10721 fi
10722
10723 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10725 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10726 #define $ac_tr_decl 1
10727 _ACEOF
10728
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10732 #define $ac_tr_decl 0
10733 _ACEOF
10734
10735 fi
10736
10737 done
10738
10739
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742
10743 #include "ansidecl.h"
10744 #include "system.h"
10745 #ifdef HAVE_SYS_RESOURCE_H
10746 #include <sys/resource.h>
10747 #endif
10748
10749 int
10750 main ()
10751 {
10752 rlim_t l = 0;
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_compile "$LINENO"; then :
10758
10759 else
10760
10761 $as_echo "#define rlim_t long" >>confdefs.h
10762
10763 fi
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765
10766 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10767 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10768 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10769 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10770 for ac_func in ldgetname
10771 do
10772 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10774 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10775 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #undef $ac_tr_decl
10781 #define $ac_tr_decl 1
10782
10783 #include "ansidecl.h"
10784 #include "system.h"
10785 #ifdef HAVE_LDFCN_H
10786 #undef FREAD
10787 #undef FWRITE
10788 #include <ldfcn.h>
10789 #endif
10790
10791
10792 int
10793 main ()
10794 {
10795 #ifndef $ac_func
10796 char *(*pfn) = (char *(*)) $ac_func ;
10797 #endif
10798 ;
10799 return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803 eval "gcc_cv_have_decl_$ac_func=yes"
10804 else
10805 eval "gcc_cv_have_decl_$ac_func=no"
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 fi
10809
10810 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10813 #define $ac_tr_decl 1
10814 _ACEOF
10815
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10819 #define $ac_tr_decl 0
10820 _ACEOF
10821
10822 fi
10823
10824 done
10825
10826
10827 for ac_func in times
10828 do
10829 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10831 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10832 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #undef $ac_tr_decl
10838 #define $ac_tr_decl 1
10839
10840 #include "ansidecl.h"
10841 #include "system.h"
10842 #ifdef HAVE_SYS_TIMES_H
10843 #include <sys/times.h>
10844 #endif
10845
10846
10847 int
10848 main ()
10849 {
10850 #ifndef $ac_func
10851 char *(*pfn) = (char *(*)) $ac_func ;
10852 #endif
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_compile "$LINENO"; then :
10858 eval "gcc_cv_have_decl_$ac_func=yes"
10859 else
10860 eval "gcc_cv_have_decl_$ac_func=no"
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 fi
10864
10865 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10867 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10868 #define $ac_tr_decl 1
10869 _ACEOF
10870
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10874 #define $ac_tr_decl 0
10875 _ACEOF
10876
10877 fi
10878
10879 done
10880
10881
10882 for ac_func in sigaltstack
10883 do
10884 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10886 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10887 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #undef $ac_tr_decl
10893 #define $ac_tr_decl 1
10894
10895 #include "ansidecl.h"
10896 #include "system.h"
10897 #include <signal.h>
10898
10899
10900 int
10901 main ()
10902 {
10903 #ifndef $ac_func
10904 char *(*pfn) = (char *(*)) $ac_func ;
10905 #endif
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_compile "$LINENO"; then :
10911 eval "gcc_cv_have_decl_$ac_func=yes"
10912 else
10913 eval "gcc_cv_have_decl_$ac_func=no"
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 fi
10917
10918 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 1
10922 _ACEOF
10923
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10927 #define $ac_tr_decl 0
10928 _ACEOF
10929
10930 fi
10931
10932 done
10933
10934
10935 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10936 # prototype.
10937 ac_ext=cpp
10938 ac_cpp='$CXXCPP $CPPFLAGS'
10939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10942
10943 for ac_func in madvise
10944 do
10945 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10947 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10948 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 #undef $ac_tr_decl
10954 #define $ac_tr_decl 1
10955
10956 #include "ansidecl.h"
10957 #include "system.h"
10958
10959
10960 int
10961 main ()
10962 {
10963 #ifndef $ac_func
10964 char *(*pfn) = (char *(*)) $ac_func ;
10965 #endif
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_cxx_try_compile "$LINENO"; then :
10971 eval "gcc_cv_have_decl_$ac_func=yes"
10972 else
10973 eval "gcc_cv_have_decl_$ac_func=no"
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 fi
10977
10978 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10981 #define $ac_tr_decl 1
10982 _ACEOF
10983
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10987 #define $ac_tr_decl 0
10988 _ACEOF
10989
10990 fi
10991
10992 done
10993
10994 ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001 # More time-related stuff.
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11003 $as_echo_n "checking for struct tms... " >&6; }
11004 if test "${ac_cv_struct_tms+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010
11011 #include "ansidecl.h"
11012 #include "system.h"
11013 #ifdef HAVE_SYS_TIMES_H
11014 #include <sys/times.h>
11015 #endif
11016
11017 int
11018 main ()
11019 {
11020 struct tms tms;
11021 ;
11022 return 0;
11023 }
11024 _ACEOF
11025 if ac_fn_c_try_compile "$LINENO"; then :
11026 ac_cv_struct_tms=yes
11027 else
11028 ac_cv_struct_tms=no
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11033 $as_echo "$ac_cv_struct_tms" >&6; }
11034 if test $ac_cv_struct_tms = yes; then
11035
11036 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11037
11038 fi
11039
11040 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11041 # revisit after autoconf 2.50.
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11043 $as_echo_n "checking for clock_t... " >&6; }
11044 if test "${gcc_cv_type_clock_t+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050
11051 #include "ansidecl.h"
11052 #include "system.h"
11053
11054 int
11055 main ()
11056 {
11057 clock_t x;
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_compile "$LINENO"; then :
11063 gcc_cv_type_clock_t=yes
11064 else
11065 gcc_cv_type_clock_t=no
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11070 $as_echo "$gcc_cv_type_clock_t" >&6; }
11071 if test $gcc_cv_type_clock_t = yes; then
11072
11073 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11074
11075 fi
11076
11077 # Check if F_SETLKW is supported by fcntl.
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11079 $as_echo_n "checking for F_SETLKW... " >&6; }
11080 if test "${ac_cv_f_setlkw+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086
11087 #include <fcntl.h>
11088 int
11089 main ()
11090 {
11091
11092 struct flock fl;
11093 fl.l_whence = 0;
11094 fl.l_start = 0;
11095 fl.l_len = 0;
11096 fl.l_pid = 0;
11097 return fcntl (1, F_SETLKW, &fl);
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_compile "$LINENO"; then :
11103 ac_cv_f_setlkw=yes
11104 else
11105 ac_cv_f_setlkw=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108 fi
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11110 $as_echo "$ac_cv_f_setlkw" >&6; }
11111 if test $ac_cv_f_setlkw = yes; then
11112
11113 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11114
11115 fi
11116
11117 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11118 CFLAGS="$saved_CFLAGS"
11119 CXXFLAGS="$saved_CXXFLAGS"
11120
11121 # mkdir takes a single argument on some systems.
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11123 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11124 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129
11130 #include <sys/types.h>
11131 #ifdef HAVE_SYS_STAT_H
11132 # include <sys/stat.h>
11133 #endif
11134 #ifdef HAVE_UNISTD_H
11135 # include <unistd.h>
11136 #endif
11137 #ifdef HAVE_DIRECT_H
11138 # include <direct.h>
11139 #endif
11140 int
11141 main ()
11142 {
11143 mkdir ("foo", 0);
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_c_try_compile "$LINENO"; then :
11149 gcc_cv_mkdir_takes_one_arg=no
11150 else
11151 gcc_cv_mkdir_takes_one_arg=yes
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 fi
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11156 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11157 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11158
11159 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11160
11161 fi
11162
11163
11164 # File extensions
11165 manext='.1'
11166 objext='.o'
11167
11168
11169
11170 # With Setjmp/Longjmp based exception handling.
11171 # Check whether --enable-sjlj-exceptions was given.
11172 if test "${enable_sjlj_exceptions+set}" = set; then :
11173 enableval=$enable_sjlj_exceptions; case $target in
11174 *-*-hpux10*)
11175 if test $enableval != yes; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11177 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11178 enableval=yes
11179 fi
11180 ;;
11181 esac
11182 force_sjlj_exceptions=yes
11183 else
11184 case $target in
11185 *-*-hpux10*)
11186 force_sjlj_exceptions=yes
11187 enableval=yes
11188 ;;
11189 lm32*-*-*)
11190 force_sjlj_exceptions=yes
11191 enableval=yes
11192 ;;
11193 *)
11194 force_sjlj_exceptions=no
11195 ;;
11196 esac
11197 fi
11198
11199 if test $force_sjlj_exceptions = yes; then
11200 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11204 _ACEOF
11205
11206 fi
11207
11208 # --------------------------------------------------------
11209 # Build, host, and target specific configuration fragments
11210 # --------------------------------------------------------
11211
11212 # Collect build-machine-specific information.
11213 . ${srcdir}/config.build
11214
11215 # Collect host-machine-specific information.
11216 . ${srcdir}/config.host
11217
11218 target_gtfiles=
11219
11220 # Collect target-machine-specific information.
11221 . ${srcdir}/config.gcc
11222
11223 extra_objs="${host_extra_objs} ${extra_objs}"
11224 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11225
11226 # Default the target-machine variables that were not explicitly set.
11227 if test x"$tm_file" = x
11228 then tm_file=$cpu_type/$cpu_type.h; fi
11229
11230 if test x"$extra_headers" = x
11231 then extra_headers=; fi
11232
11233 if test x$md_file = x
11234 then md_file=$cpu_type/$cpu_type.md; fi
11235
11236 if test x$out_file = x
11237 then out_file=$cpu_type/$cpu_type.c; fi
11238
11239 if test x"$tmake_file" = x
11240 then tmake_file=$cpu_type/t-$cpu_type
11241 fi
11242
11243 # Support --enable-initfini-array.
11244 if test x$enable_initfini_array != xno; then
11245 tm_file="${tm_file} initfini-array.h"
11246 fi
11247
11248 if test x"$dwarf2" = xyes
11249 then tm_file="$tm_file tm-dwarf2.h"
11250 fi
11251
11252 # Say what files are being used for the output code and MD file.
11253 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11254 echo "Using \`$srcdir/config/$md_file' as machine description file."
11255
11256 # If any of the xm_file variables contain nonexistent files, warn
11257 # about them and drop them.
11258
11259 bx=
11260 for x in $build_xm_file; do
11261 if test -f $srcdir/config/$x
11262 then bx="$bx $x"
11263 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11264 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11265 fi
11266 done
11267 build_xm_file="$bx"
11268
11269 hx=
11270 for x in $host_xm_file; do
11271 if test -f $srcdir/config/$x
11272 then hx="$hx $x"
11273 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11274 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11275 fi
11276 done
11277 host_xm_file="$hx"
11278
11279 tx=
11280 for x in $xm_file; do
11281 if test -f $srcdir/config/$x
11282 then tx="$tx $x"
11283 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11284 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11285 fi
11286 done
11287 xm_file="$tx"
11288
11289 count=a
11290 for f in $tm_file; do
11291 count=${count}x
11292 done
11293 if test $count = ax; then
11294 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11295 else
11296 echo "Using the following target machine macro files:"
11297 for f in $tm_file; do
11298 echo " $srcdir/config/$f"
11299 done
11300 fi
11301
11302 if test x$use_long_long_for_widest_fast_int = xyes; then
11303
11304 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11305
11306 fi
11307
11308 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11309
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GNU_LD $gnu_ld_bool
11312 _ACEOF
11313
11314
11315 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11316
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_GNU_AS $gnu_as_bool
11319 _ACEOF
11320
11321
11322 count=a
11323 for f in $host_xm_file; do
11324 count=${count}x
11325 done
11326 if test $count = a; then
11327 :
11328 elif test $count = ax; then
11329 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11330 else
11331 echo "Using the following host machine macro files:"
11332 for f in $host_xm_file; do
11333 echo " $srcdir/config/$f"
11334 done
11335 fi
11336 echo "Using ${out_host_hook_obj} for host machine hooks."
11337
11338 if test "$host_xm_file" != "$build_xm_file"; then
11339 count=a
11340 for f in $build_xm_file; do
11341 count=${count}x
11342 done
11343 if test $count = a; then
11344 :
11345 elif test $count = ax; then
11346 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11347 else
11348 echo "Using the following build machine macro files:"
11349 for f in $build_xm_file; do
11350 echo " $srcdir/config/$f"
11351 done
11352 fi
11353 fi
11354
11355 if test -n "$configured_native_system_header_dir"; then
11356 native_system_header_dir=$configured_native_system_header_dir
11357 fi
11358 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11359
11360
11361 case ${host} in
11362 powerpc*-*-darwin*)
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11364 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11365 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370
11371 #include <sys/cdefs.h>
11372 #include <sys/signal.h>
11373 #include <ucontext.h>
11374 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11375
11376 _ACEOF
11377 if ac_fn_c_try_compile "$LINENO"; then :
11378 gcc_cv_mcontext_underscores=no
11379 else
11380 gcc_cv_mcontext_underscores=yes
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11385 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11386 if test $gcc_cv_mcontext_underscores = yes; then
11387
11388 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11389
11390 fi
11391 ;;
11392 esac
11393
11394 # ---------
11395 # Threading
11396 # ---------
11397
11398 # Check if a valid thread package
11399 case ${enable_threads} in
11400 "" | no)
11401 # No threads
11402 target_thread_file='single'
11403 ;;
11404 yes)
11405 # default
11406 target_thread_file='single'
11407 ;;
11408 aix | dce | lynx | mipssde | posix | rtems | \
11409 single | tpf | vxworks | win32)
11410 target_thread_file=${enable_threads}
11411 ;;
11412 *)
11413 echo "${enable_threads} is an unknown thread package" 1>&2
11414 exit 1
11415 ;;
11416 esac
11417
11418 if test x${thread_file} = x; then
11419 # No thread file set by target-specific clauses in config.gcc,
11420 # so use file chosen by default logic above
11421 thread_file=${target_thread_file}
11422 fi
11423
11424 # --------
11425 # UNSORTED
11426 # --------
11427
11428 use_cxa_atexit=no
11429 if test x$enable___cxa_atexit = xyes || \
11430 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11431 if test x$host = x$target; then
11432 case $host in
11433 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11434 # keyed to flag_use_cxa_atexit
11435 *-*-mingw32*)
11436 use_cxa_atexit=yes
11437 ;;
11438 powerpc-ibm-aix*)
11439 use_cxa_atexit=yes
11440 ;;
11441 *)
11442 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11443 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11444 use_cxa_atexit=yes
11445 else
11446 echo "__cxa_atexit can't be enabled on this target"
11447 fi
11448
11449 ;;
11450 esac
11451 else
11452 # We can't check for __cxa_atexit when building a cross, so assume
11453 # it is available
11454 use_cxa_atexit=yes
11455 fi
11456 if test x$use_cxa_atexit = xyes; then
11457
11458 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11459
11460 fi
11461 fi
11462
11463 # Look for a file containing extra machine modes.
11464 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11465 extra_modes_file='$(srcdir)'/config/${extra_modes}
11466
11467
11468 cat >>confdefs.h <<_ACEOF
11469 #define EXTRA_MODES_FILE "config/$extra_modes"
11470 _ACEOF
11471
11472 fi
11473
11474 # Convert extra_options into a form suitable for Makefile use.
11475 extra_opt_files=
11476 all_opt_files=
11477 for f in $extra_options; do
11478 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11479 all_opt_files="$all_opt_files $srcdir/config/$f"
11480 done
11481
11482
11483 # auto-host.h is the file containing items generated by autoconf and is
11484 # the first file included by config.h.
11485 # If host=build, it is correct to have bconfig include auto-host.h
11486 # as well. If host!=build, we are in error and need to do more
11487 # work to find out the build config parameters.
11488 if test x$host = x$build
11489 then
11490 build_auto=auto-host.h
11491 else
11492 # We create a subdir, then run autoconf in the subdir.
11493 # To prevent recursion we set host and build for the new
11494 # invocation of configure to the build for this invocation
11495 # of configure.
11496 tempdir=build.$$
11497 rm -rf $tempdir
11498 mkdir $tempdir
11499 cd $tempdir
11500 case ${srcdir} in
11501 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11502 *) realsrcdir=../${srcdir};;
11503 esac
11504 # Clearing GMPINC is necessary to prevent host headers being
11505 # used by the build compiler. Defining GENERATOR_FILE stops
11506 # system.h from including gmp.h.
11507 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11508 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11509 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11510 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11511 ${realsrcdir}/configure \
11512 --enable-languages=${enable_languages-all} \
11513 --target=$target_alias --host=$build_alias --build=$build_alias
11514
11515 # We just finished tests for the build machine, so rename
11516 # the file auto-build.h in the gcc directory.
11517 mv auto-host.h ../auto-build.h
11518 cd ..
11519 rm -rf $tempdir
11520 build_auto=auto-build.h
11521 fi
11522
11523
11524 tm_file="${tm_file} defaults.h"
11525 tm_p_file="${tm_p_file} tm-preds.h"
11526 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11527 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11528 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11529 # put this back in temporarily.
11530 xm_file="auto-host.h ansidecl.h ${xm_file}"
11531
11532 # --------
11533 # UNSORTED
11534 # --------
11535
11536 # Compile in configure arguments.
11537 if test -f configargs.h ; then
11538 # Being re-configured.
11539 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11540 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11541 else
11542 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11543 fi
11544
11545 # Double all backslashes and backslash all quotes to turn
11546 # gcc_config_arguments into a C string.
11547 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11548 $gcc_config_arguments
11549 EOF
11550 gcc_config_arguments_str=`cat conftest.out`
11551 rm -f conftest.out
11552
11553 cat > configargs.h <<EOF
11554 /* Generated automatically. */
11555 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11556 static const char thread_model[] = "$thread_file";
11557
11558 static const struct {
11559 const char *name, *value;
11560 } configure_default_options[] = $configure_default_options;
11561 EOF
11562
11563 gcc_BASEVER=`cat $srcdir/BASE-VER`
11564 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11565 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11566 if test -f $srcdir/REVISION ; then
11567 gcc_REVISION=`cat $srcdir/REVISION`
11568 else
11569 gcc_REVISION=""
11570 fi
11571 cat > plugin-version.h <<EOF
11572 #include "configargs.h"
11573
11574 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11575 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11576 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11577 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11578
11579 static char basever[] = "$gcc_BASEVER";
11580 static char datestamp[] = "$gcc_DATESTAMP";
11581 static char devphase[] = "$gcc_DEVPHASE";
11582 static char revision[] = "$gcc_REVISION";
11583
11584 /* FIXME plugins: We should make the version information more precise.
11585 One way to do is to add a checksum. */
11586
11587 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11588 devphase, revision,
11589 configuration_arguments};
11590 EOF
11591
11592 # Internationalization
11593 # If we haven't got the data from the intl directory,
11594 # assume NLS is disabled.
11595 USE_NLS=no
11596 LIBINTL=
11597 LIBINTL_DEP=
11598 INCINTL=
11599 XGETTEXT=
11600 GMSGFMT=
11601 POSUB=
11602
11603 if test -f ../intl/config.intl; then
11604 . ../intl/config.intl
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11607 $as_echo_n "checking whether NLS is requested... " >&6; }
11608 if test x"$USE_NLS" != xyes; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613 $as_echo "yes" >&6; }
11614
11615 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11616
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11619 $as_echo_n "checking for catalogs to be installed... " >&6; }
11620 # Look for .po and .gmo files in the source directory.
11621 CATALOGS=
11622 XLINGUAS=
11623 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11624 # If there aren't any .gmo files the shell will give us the
11625 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11626 # weeded out.
11627 case "$cat" in *\**)
11628 continue;;
11629 esac
11630 # The quadruple backslash is collapsed to a double backslash
11631 # by the backticks, then collapsed again by the double quotes,
11632 # leaving us with one backslash in the sed expression (right
11633 # before the dot that mustn't act as a wildcard).
11634 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11635 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11636 # The user is allowed to set LINGUAS to a list of languages to
11637 # install catalogs for. If it's empty that means "all of them."
11638 if test "x$LINGUAS" = x; then
11639 CATALOGS="$CATALOGS $cat"
11640 XLINGUAS="$XLINGUAS $lang"
11641 else
11642 case "$LINGUAS" in *$lang*)
11643 CATALOGS="$CATALOGS $cat"
11644 XLINGUAS="$XLINGUAS $lang"
11645 ;;
11646 esac
11647 fi
11648 done
11649 LINGUAS="$XLINGUAS"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11651 $as_echo "$LINGUAS" >&6; }
11652
11653
11654 DATADIRNAME=share
11655
11656 INSTOBJEXT=.mo
11657
11658 GENCAT=gencat
11659
11660 CATOBJEXT=.gmo
11661
11662 fi
11663
11664 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11665 # -liconv on the link line twice.
11666 case "$LIBINTL" in *$LIBICONV*)
11667 LIBICONV= ;;
11668 esac
11669
11670 # Check whether --enable-secureplt was given.
11671 if test "${enable_secureplt+set}" = set; then :
11672 enableval=$enable_secureplt;
11673 fi
11674
11675
11676 # Check whether --enable-leading-mingw64-underscores was given.
11677 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11678 enableval=$enable_leading_mingw64_underscores;
11679 fi
11680
11681 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11682
11683 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11684
11685 fi
11686
11687 # Check whether --enable-cld was given.
11688 if test "${enable_cld+set}" = set; then :
11689 enableval=$enable_cld;
11690 else
11691 enable_cld=no
11692 fi
11693
11694
11695 # Check whether --enable-frame-pointer was given.
11696 if test "${enable_frame_pointer+set}" = set; then :
11697 enableval=$enable_frame_pointer;
11698 else
11699
11700 case $target_os in
11701 linux* | darwin[8912]*)
11702 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11703 # DWARF2.
11704 enable_frame_pointer=no
11705 ;;
11706 *)
11707 enable_frame_pointer=yes
11708 ;;
11709 esac
11710
11711 fi
11712
11713
11714 # Windows32 Registry support for specifying GCC installation paths.
11715 # Check whether --enable-win32-registry was given.
11716 if test "${enable_win32_registry+set}" = set; then :
11717 enableval=$enable_win32_registry;
11718 fi
11719
11720
11721 case $host_os in
11722 win32 | pe | cygwin* | mingw32* | uwin*)
11723 if test "x$enable_win32_registry" != xno; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11725 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11726 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 ac_func_search_save_LIBS=$LIBS
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char RegOpenKeyExA ();
11740 int
11741 main ()
11742 {
11743 return RegOpenKeyExA ();
11744 ;
11745 return 0;
11746 }
11747 _ACEOF
11748 for ac_lib in '' advapi32; do
11749 if test -z "$ac_lib"; then
11750 ac_res="none required"
11751 else
11752 ac_res=-l$ac_lib
11753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11754 fi
11755 if ac_fn_c_try_link "$LINENO"; then :
11756 ac_cv_search_RegOpenKeyExA=$ac_res
11757 fi
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext
11760 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11761 break
11762 fi
11763 done
11764 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11765
11766 else
11767 ac_cv_search_RegOpenKeyExA=no
11768 fi
11769 rm conftest.$ac_ext
11770 LIBS=$ac_func_search_save_LIBS
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11773 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11774 ac_res=$ac_cv_search_RegOpenKeyExA
11775 if test "$ac_res" != no; then :
11776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11777
11778 else
11779 enable_win32_registry=no
11780 fi
11781
11782 fi
11783
11784 if test "x$enable_win32_registry" != xno; then
11785
11786 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11787
11788
11789 if test "x$enable_win32_registry" != xyes \
11790 && test "x$enable_win32_registry" != x; then
11791
11792 cat >>confdefs.h <<_ACEOF
11793 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11794 _ACEOF
11795
11796 fi
11797 fi
11798 ;;
11799 esac
11800
11801 # Get an absolute path to the GCC top-level source directory
11802 holddir=`${PWDCMD-pwd}`
11803 cd $srcdir
11804 topdir=`${PWDCMD-pwd}`
11805 cd $holddir
11806
11807 # Conditionalize the makefile for this host machine.
11808 xmake_file=
11809 for f in ${host_xmake_file}
11810 do
11811 if test -f ${srcdir}/config/$f
11812 then
11813 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11814 fi
11815 done
11816
11817 # Conditionalize the makefile for this target machine.
11818 tmake_file_=
11819 for f in ${tmake_file}
11820 do
11821 if test -f ${srcdir}/config/$f
11822 then
11823 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11824 fi
11825 done
11826 tmake_file="${tmake_file_}"
11827
11828 out_object_file=`basename $out_file .c`.o
11829 common_out_object_file=`basename $common_out_file .c`.o
11830
11831 tm_file_list="options.h"
11832 tm_include_list="options.h insn-constants.h"
11833 for f in $tm_file; do
11834 case $f in
11835 ./* )
11836 f=`echo $f | sed 's/^..//'`
11837 tm_file_list="${tm_file_list} $f"
11838 tm_include_list="${tm_include_list} $f"
11839 ;;
11840 defaults.h )
11841 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11842 tm_include_list="${tm_include_list} $f"
11843 ;;
11844 * )
11845 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11846 tm_include_list="${tm_include_list} config/$f"
11847 ;;
11848 esac
11849 done
11850
11851 tm_p_file_list=
11852 tm_p_include_list=
11853 for f in $tm_p_file; do
11854 case $f in
11855 tm-preds.h )
11856 tm_p_file_list="${tm_p_file_list} $f"
11857 tm_p_include_list="${tm_p_include_list} $f"
11858 ;;
11859 * )
11860 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11861 tm_p_include_list="${tm_p_include_list} config/$f"
11862 esac
11863 done
11864
11865 xm_file_list=
11866 xm_include_list=
11867 for f in $xm_file; do
11868 case $f in
11869 ansidecl.h )
11870 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11871 xm_include_list="${xm_include_list} $f"
11872 ;;
11873 auto-host.h )
11874 xm_file_list="${xm_file_list} $f"
11875 xm_include_list="${xm_include_list} $f"
11876 ;;
11877 * )
11878 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11879 xm_include_list="${xm_include_list} config/$f"
11880 ;;
11881 esac
11882 done
11883
11884 host_xm_file_list=
11885 host_xm_include_list=
11886 for f in $host_xm_file; do
11887 case $f in
11888 ansidecl.h )
11889 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11890 host_xm_include_list="${host_xm_include_list} $f"
11891 ;;
11892 auto-host.h )
11893 host_xm_file_list="${host_xm_file_list} $f"
11894 host_xm_include_list="${host_xm_include_list} $f"
11895 ;;
11896 * )
11897 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11898 host_xm_include_list="${host_xm_include_list} config/$f"
11899 ;;
11900 esac
11901 done
11902
11903 build_xm_file_list=
11904 for f in $build_xm_file; do
11905 case $f in
11906 ansidecl.h )
11907 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11908 build_xm_include_list="${build_xm_include_list} $f"
11909 ;;
11910 auto-build.h | auto-host.h )
11911 build_xm_file_list="${build_xm_file_list} $f"
11912 build_xm_include_list="${build_xm_include_list} $f"
11913 ;;
11914 * )
11915 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11916 build_xm_include_list="${build_xm_include_list} config/$f"
11917 ;;
11918 esac
11919 done
11920
11921 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11922 # cross-compiler which does not use the native headers and libraries.
11923 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11924 CROSS=
11925 ALL=all.internal
11926 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11927
11928 if test "x$with_build_sysroot" != x; then
11929 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11930 else
11931 # This value is used, even on a native system, because
11932 # CROSS_SYSTEM_HEADER_DIR is just
11933 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11934 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11935 fi
11936
11937 if test x$host != x$target
11938 then
11939 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11940 ALL=all.cross
11941 SYSTEM_HEADER_DIR=$build_system_header_dir
11942 case "$host","$target" in
11943 # Darwin crosses can use the host system's libraries and headers,
11944 # because of the fat library support. Of course, it must be the
11945 # same version of Darwin on both sides. Allow the user to
11946 # just say --target=foo-darwin without a version number to mean
11947 # "the version on this system".
11948 *-*-darwin*,*-*-darwin*)
11949 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11950 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11951 if test $hostos = $targetos -o $targetos = darwin ; then
11952 CROSS=
11953 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11954 with_headers=yes
11955 fi
11956 ;;
11957
11958 i?86-*-*,x86_64-*-* \
11959 | powerpc*-*-*,powerpc64*-*-*)
11960 CROSS="$CROSS -DNATIVE_CROSS" ;;
11961 esac
11962
11963 case $target in
11964 *-*-mingw*)
11965 if test "x$with_headers" = x; then
11966 with_headers=yes
11967 fi
11968 ;;
11969 *)
11970 ;;
11971 esac
11972 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11973 SYSTEM_HEADER_DIR=$build_system_header_dir
11974 fi
11975
11976 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11977 if test "x$with_headers" != x; then
11978 target_header_dir=$with_headers
11979 elif test "x$with_sysroot" = x; then
11980 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11981 elif test "x$with_build_sysroot" != "x"; then
11982 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11983 elif test "x$with_sysroot" = xyes; then
11984 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11985 else
11986 target_header_dir="${with_sysroot}${native_system_header_dir}"
11987 fi
11988 else
11989 target_header_dir=${native_system_header_dir}
11990 fi
11991
11992 # If this is a cross-compiler that does not
11993 # have its own set of headers then define
11994 # inhibit_libc
11995
11996 # If this is using newlib, without having the headers available now,
11997 # then define inhibit_libc in LIBGCC2_CFLAGS.
11998 # This prevents libgcc2 from containing any code which requires libc
11999 # support.
12000 : ${inhibit_libc=false}
12001 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12002 test x$with_newlib = xyes ; } &&
12003 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12004 inhibit_libc=true
12005 fi
12006
12007
12008 # When building gcc with a cross-compiler, we need to adjust things so
12009 # that the generator programs are still built with the native compiler.
12010 # Also, we cannot run fixincludes.
12011
12012 # These are the normal (build=host) settings:
12013 CC_FOR_BUILD='$(CC)'
12014 CXX_FOR_BUILD='$(CXX)'
12015 BUILD_CFLAGS='$(ALL_CFLAGS)'
12016 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12017 BUILD_LDFLAGS='$(LDFLAGS)'
12018 STMP_FIXINC=stmp-fixinc
12019
12020 # And these apply if build != host, or we are generating coverage data
12021 if test x$build != x$host || test "x$coverage_flags" != x
12022 then
12023 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12024 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12025 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12026 fi
12027
12028 # Expand extra_headers to include complete path.
12029 # This substitutes for lots of t-* files.
12030 extra_headers_list=
12031 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12032 for file in ${extra_headers} ; do
12033 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12034 done
12035
12036 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12037 if test x"$use_gcc_tgmath" = xyes
12038 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12039 fi
12040
12041 # Define collect2 in Makefile.
12042 case $host_can_use_collect2 in
12043 no) collect2= ;;
12044 *) collect2='collect2$(exeext)' ;;
12045 esac
12046
12047
12048 # Add a definition of USE_COLLECT2 if system wants one.
12049 case $use_collect2 in
12050 no) use_collect2= ;;
12051 "") ;;
12052 *)
12053 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12054 xm_defines="${xm_defines} USE_COLLECT2"
12055 case $host_can_use_collect2 in
12056 no)
12057 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12058 ;;
12059 esac
12060 ;;
12061 esac
12062
12063
12064 cat >>confdefs.h <<_ACEOF
12065 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12066 _ACEOF
12067
12068
12069 # ---------------------------
12070 # Assembler & linker features
12071 # ---------------------------
12072
12073 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12074 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12075 # However when ld-new is first executed from the build tree, libtool will
12076 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12077 # to the build tree. While doing this we need to use the previous-stage
12078 # linker, or we have an infinite loop. The presence of a shell script as
12079 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12080 # the gcc/collect-ld script. So we need to know how libtool works, or
12081 # exec-tool will fail.
12082
12083
12084 case `pwd` in
12085 *\ * | *\ *)
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12087 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12088 esac
12089
12090
12091
12092 macro_version='2.2.7a'
12093 macro_revision='1.3134'
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107 ltmain="$ac_aux_dir/ltmain.sh"
12108
12109 # Backslashify metacharacters that are still active within
12110 # double-quoted strings.
12111 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12112
12113 # Same as above, but do not quote variable references.
12114 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12115
12116 # Sed substitution to delay expansion of an escaped shell variable in a
12117 # double_quote_subst'ed string.
12118 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12119
12120 # Sed substitution to delay expansion of an escaped single quote.
12121 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12122
12123 # Sed substitution to avoid accidental globbing in evaled expressions
12124 no_glob_subst='s/\*/\\\*/g'
12125
12126 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12127 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12129
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12131 $as_echo_n "checking how to print strings... " >&6; }
12132 # Test print first, because it will be a builtin if present.
12133 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12134 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12135 ECHO='print -r --'
12136 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12137 ECHO='printf %s\n'
12138 else
12139 # Use this function as a fallback that always works.
12140 func_fallback_echo ()
12141 {
12142 eval 'cat <<_LTECHO_EOF
12143 $1
12144 _LTECHO_EOF'
12145 }
12146 ECHO='func_fallback_echo'
12147 fi
12148
12149 # func_echo_all arg...
12150 # Invoke $ECHO with all args, space-separated.
12151 func_echo_all ()
12152 {
12153 $ECHO ""
12154 }
12155
12156 case "$ECHO" in
12157 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12158 $as_echo "printf" >&6; } ;;
12159 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12160 $as_echo "print -r" >&6; } ;;
12161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12162 $as_echo "cat" >&6; } ;;
12163 esac
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12179 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12180 if test "${ac_cv_path_SED+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12184 for ac_i in 1 2 3 4 5 6 7; do
12185 ac_script="$ac_script$as_nl$ac_script"
12186 done
12187 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12188 { ac_script=; unset ac_script;}
12189 if test -z "$SED"; then
12190 ac_path_SED_found=false
12191 # Loop through the user's path and test for each of PROGNAME-LIST
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_prog in sed gsed; do
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12200 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12201 # Check for GNU ac_path_SED and select it if it is found.
12202 # Check for GNU $ac_path_SED
12203 case `"$ac_path_SED" --version 2>&1` in
12204 *GNU*)
12205 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12206 *)
12207 ac_count=0
12208 $as_echo_n 0123456789 >"conftest.in"
12209 while :
12210 do
12211 cat "conftest.in" "conftest.in" >"conftest.tmp"
12212 mv "conftest.tmp" "conftest.in"
12213 cp "conftest.in" "conftest.nl"
12214 $as_echo '' >> "conftest.nl"
12215 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12217 as_fn_arith $ac_count + 1 && ac_count=$as_val
12218 if test $ac_count -gt ${ac_path_SED_max-0}; then
12219 # Best one so far, save it but keep looking for a better one
12220 ac_cv_path_SED="$ac_path_SED"
12221 ac_path_SED_max=$ac_count
12222 fi
12223 # 10*(2^10) chars as input seems more than enough
12224 test $ac_count -gt 10 && break
12225 done
12226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12227 esac
12228
12229 $ac_path_SED_found && break 3
12230 done
12231 done
12232 done
12233 IFS=$as_save_IFS
12234 if test -z "$ac_cv_path_SED"; then
12235 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12236 fi
12237 else
12238 ac_cv_path_SED=$SED
12239 fi
12240
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12243 $as_echo "$ac_cv_path_SED" >&6; }
12244 SED="$ac_cv_path_SED"
12245 rm -f conftest.sed
12246
12247 test -z "$SED" && SED=sed
12248 Xsed="$SED -e 1s/^X//"
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12261 $as_echo_n "checking for fgrep... " >&6; }
12262 if test "${ac_cv_path_FGREP+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12266 then ac_cv_path_FGREP="$GREP -F"
12267 else
12268 if test -z "$FGREP"; then
12269 ac_path_FGREP_found=false
12270 # Loop through the user's path and test for each of PROGNAME-LIST
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12273 do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_prog in fgrep; do
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12279 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12280 # Check for GNU ac_path_FGREP and select it if it is found.
12281 # Check for GNU $ac_path_FGREP
12282 case `"$ac_path_FGREP" --version 2>&1` in
12283 *GNU*)
12284 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12285 *)
12286 ac_count=0
12287 $as_echo_n 0123456789 >"conftest.in"
12288 while :
12289 do
12290 cat "conftest.in" "conftest.in" >"conftest.tmp"
12291 mv "conftest.tmp" "conftest.in"
12292 cp "conftest.in" "conftest.nl"
12293 $as_echo 'FGREP' >> "conftest.nl"
12294 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12296 as_fn_arith $ac_count + 1 && ac_count=$as_val
12297 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12298 # Best one so far, save it but keep looking for a better one
12299 ac_cv_path_FGREP="$ac_path_FGREP"
12300 ac_path_FGREP_max=$ac_count
12301 fi
12302 # 10*(2^10) chars as input seems more than enough
12303 test $ac_count -gt 10 && break
12304 done
12305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12306 esac
12307
12308 $ac_path_FGREP_found && break 3
12309 done
12310 done
12311 done
12312 IFS=$as_save_IFS
12313 if test -z "$ac_cv_path_FGREP"; then
12314 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12315 fi
12316 else
12317 ac_cv_path_FGREP=$FGREP
12318 fi
12319
12320 fi
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12323 $as_echo "$ac_cv_path_FGREP" >&6; }
12324 FGREP="$ac_cv_path_FGREP"
12325
12326
12327 test -z "$GREP" && GREP=grep
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 # Check whether --with-gnu-ld was given.
12348 if test "${with_gnu_ld+set}" = set; then :
12349 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12350 else
12351 with_gnu_ld=no
12352 fi
12353
12354 ac_prog=ld
12355 if test "$GCC" = yes; then
12356 # Check if gcc -print-prog-name=ld gives a path.
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12358 $as_echo_n "checking for ld used by $CC... " >&6; }
12359 case $host in
12360 *-*-mingw*)
12361 # gcc leaves a trailing carriage return which upsets mingw
12362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12363 *)
12364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12365 esac
12366 case $ac_prog in
12367 # Accept absolute paths.
12368 [\\/]* | ?:[\\/]*)
12369 re_direlt='/[^/][^/]*/\.\./'
12370 # Canonicalize the pathname of ld
12371 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12372 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12373 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12374 done
12375 test -z "$LD" && LD="$ac_prog"
12376 ;;
12377 "")
12378 # If it fails, then pretend we aren't using GCC.
12379 ac_prog=ld
12380 ;;
12381 *)
12382 # If it is relative, then search for the first ld in PATH.
12383 with_gnu_ld=unknown
12384 ;;
12385 esac
12386 elif test "$with_gnu_ld" = yes; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12388 $as_echo_n "checking for GNU ld... " >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12391 $as_echo_n "checking for non-GNU ld... " >&6; }
12392 fi
12393 if test "${lt_cv_path_LD+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -z "$LD"; then
12397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12398 for ac_dir in $PATH; do
12399 IFS="$lt_save_ifs"
12400 test -z "$ac_dir" && ac_dir=.
12401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12402 lt_cv_path_LD="$ac_dir/$ac_prog"
12403 # Check to see if the program is GNU ld. I'd rather use --version,
12404 # but apparently some variants of GNU ld only accept -v.
12405 # Break only if it was the GNU/non-GNU ld that we prefer.
12406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12407 *GNU* | *'with BFD'*)
12408 test "$with_gnu_ld" != no && break
12409 ;;
12410 *)
12411 test "$with_gnu_ld" != yes && break
12412 ;;
12413 esac
12414 fi
12415 done
12416 IFS="$lt_save_ifs"
12417 else
12418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12419 fi
12420 fi
12421
12422 LD="$lt_cv_path_LD"
12423 if test -n "$LD"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12425 $as_echo "$LD" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 fi
12430 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12433 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12437 case `$LD -v 2>&1 </dev/null` in
12438 *GNU* | *'with BFD'*)
12439 lt_cv_prog_gnu_ld=yes
12440 ;;
12441 *)
12442 lt_cv_prog_gnu_ld=no
12443 ;;
12444 esac
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12448 with_gnu_ld=$lt_cv_prog_gnu_ld
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12459 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12460 if test "${lt_cv_path_NM+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 if test -n "$NM"; then
12464 # Let the user override the test.
12465 lt_cv_path_NM="$NM"
12466 else
12467 lt_nm_to_check="${ac_tool_prefix}nm"
12468 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12469 lt_nm_to_check="$lt_nm_to_check nm"
12470 fi
12471 for lt_tmp_nm in $lt_nm_to_check; do
12472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12474 IFS="$lt_save_ifs"
12475 test -z "$ac_dir" && ac_dir=.
12476 tmp_nm="$ac_dir/$lt_tmp_nm"
12477 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12478 # Check to see if the nm accepts a BSD-compat flag.
12479 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12480 # nm: unknown option "B" ignored
12481 # Tru64's nm complains that /dev/null is an invalid object file
12482 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12483 */dev/null* | *'Invalid file or object type'*)
12484 lt_cv_path_NM="$tmp_nm -B"
12485 break
12486 ;;
12487 *)
12488 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12489 */dev/null*)
12490 lt_cv_path_NM="$tmp_nm -p"
12491 break
12492 ;;
12493 *)
12494 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12495 continue # so that we can try to find one that supports BSD flags
12496 ;;
12497 esac
12498 ;;
12499 esac
12500 fi
12501 done
12502 IFS="$lt_save_ifs"
12503 done
12504 : ${lt_cv_path_NM=no}
12505 fi
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12508 $as_echo "$lt_cv_path_NM" >&6; }
12509 if test "$lt_cv_path_NM" != "no"; then
12510 NM="$lt_cv_path_NM"
12511 else
12512 # Didn't find any BSD compatible name lister, look for dumpbin.
12513 if test -n "$DUMPBIN"; then :
12514 # Let the user override the test.
12515 else
12516 if test -n "$ac_tool_prefix"; then
12517 for ac_prog in dumpbin "link -dump"
12518 do
12519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522 $as_echo_n "checking for $ac_word... " >&6; }
12523 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 if test -n "$DUMPBIN"; then
12527 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12528 else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540 done
12541 done
12542 IFS=$as_save_IFS
12543
12544 fi
12545 fi
12546 DUMPBIN=$ac_cv_prog_DUMPBIN
12547 if test -n "$DUMPBIN"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12549 $as_echo "$DUMPBIN" >&6; }
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554
12555
12556 test -n "$DUMPBIN" && break
12557 done
12558 fi
12559 if test -z "$DUMPBIN"; then
12560 ac_ct_DUMPBIN=$DUMPBIN
12561 for ac_prog in dumpbin "link -dump"
12562 do
12563 # Extract the first word of "$ac_prog", so it can be a program name with args.
12564 set dummy $ac_prog; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if test -n "$ac_ct_DUMPBIN"; then
12571 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12583 fi
12584 done
12585 done
12586 IFS=$as_save_IFS
12587
12588 fi
12589 fi
12590 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12591 if test -n "$ac_ct_DUMPBIN"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12593 $as_echo "$ac_ct_DUMPBIN" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598
12599
12600 test -n "$ac_ct_DUMPBIN" && break
12601 done
12602
12603 if test "x$ac_ct_DUMPBIN" = x; then
12604 DUMPBIN=":"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607 yes:)
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610 ac_tool_warned=yes ;;
12611 esac
12612 DUMPBIN=$ac_ct_DUMPBIN
12613 fi
12614 fi
12615
12616 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12617 *COFF*)
12618 DUMPBIN="$DUMPBIN -symbols"
12619 ;;
12620 *)
12621 DUMPBIN=:
12622 ;;
12623 esac
12624 fi
12625
12626 if test "$DUMPBIN" != ":"; then
12627 NM="$DUMPBIN"
12628 fi
12629 fi
12630 test -z "$NM" && NM=nm
12631
12632
12633
12634
12635
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12638 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12639 if test "${lt_cv_nm_interface+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 lt_cv_nm_interface="BSD nm"
12643 echo "int some_variable = 0;" > conftest.$ac_ext
12644 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12645 (eval "$ac_compile" 2>conftest.err)
12646 cat conftest.err >&5
12647 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12648 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12649 cat conftest.err >&5
12650 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12651 cat conftest.out >&5
12652 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12653 lt_cv_nm_interface="MS dumpbin"
12654 fi
12655 rm -f conftest*
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12658 $as_echo "$lt_cv_nm_interface" >&6; }
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12661 $as_echo_n "checking whether ln -s works... " >&6; }
12662 LN_S=$as_ln_s
12663 if test "$LN_S" = "ln -s"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12668 $as_echo "no, using $LN_S" >&6; }
12669 fi
12670
12671 # find the maximum length of command line arguments
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12673 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12674 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 i=0
12678 teststring="ABCD"
12679
12680 case $build_os in
12681 msdosdjgpp*)
12682 # On DJGPP, this test can blow up pretty badly due to problems in libc
12683 # (any single argument exceeding 2000 bytes causes a buffer overrun
12684 # during glob expansion). Even if it were fixed, the result of this
12685 # check would be larger than it should be.
12686 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12687 ;;
12688
12689 gnu*)
12690 # Under GNU Hurd, this test is not required because there is
12691 # no limit to the length of command line arguments.
12692 # Libtool will interpret -1 as no limit whatsoever
12693 lt_cv_sys_max_cmd_len=-1;
12694 ;;
12695
12696 cygwin* | mingw* | cegcc*)
12697 # On Win9x/ME, this test blows up -- it succeeds, but takes
12698 # about 5 minutes as the teststring grows exponentially.
12699 # Worse, since 9x/ME are not pre-emptively multitasking,
12700 # you end up with a "frozen" computer, even though with patience
12701 # the test eventually succeeds (with a max line length of 256k).
12702 # Instead, let's just punt: use the minimum linelength reported by
12703 # all of the supported platforms: 8192 (on NT/2K/XP).
12704 lt_cv_sys_max_cmd_len=8192;
12705 ;;
12706
12707 mint*)
12708 # On MiNT this can take a long time and run out of memory.
12709 lt_cv_sys_max_cmd_len=8192;
12710 ;;
12711
12712 amigaos*)
12713 # On AmigaOS with pdksh, this test takes hours, literally.
12714 # So we just punt and use a minimum line length of 8192.
12715 lt_cv_sys_max_cmd_len=8192;
12716 ;;
12717
12718 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12719 # This has been around since 386BSD, at least. Likely further.
12720 if test -x /sbin/sysctl; then
12721 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12722 elif test -x /usr/sbin/sysctl; then
12723 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12724 else
12725 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12726 fi
12727 # And add a safety zone
12728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12730 ;;
12731
12732 interix*)
12733 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12734 lt_cv_sys_max_cmd_len=196608
12735 ;;
12736
12737 osf*)
12738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12740 # nice to cause kernel panics so lets avoid the loop below.
12741 # First set a reasonable default.
12742 lt_cv_sys_max_cmd_len=16384
12743 #
12744 if test -x /sbin/sysconfig; then
12745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12747 esac
12748 fi
12749 ;;
12750 sco3.2v5*)
12751 lt_cv_sys_max_cmd_len=102400
12752 ;;
12753 sysv5* | sco5v6* | sysv4.2uw2*)
12754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12755 if test -n "$kargmax"; then
12756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12757 else
12758 lt_cv_sys_max_cmd_len=32768
12759 fi
12760 ;;
12761 *)
12762 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12763 if test -n "$lt_cv_sys_max_cmd_len"; then
12764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12766 else
12767 # Make teststring a little bigger before we do anything with it.
12768 # a 1K string should be a reasonable start.
12769 for i in 1 2 3 4 5 6 7 8 ; do
12770 teststring=$teststring$teststring
12771 done
12772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12773 # If test is not a shell built-in, we'll probably end up computing a
12774 # maximum length that is only half of the actual maximum length, but
12775 # we can't tell.
12776 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12777 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12778 test $i != 17 # 1/2 MB should be enough
12779 do
12780 i=`expr $i + 1`
12781 teststring=$teststring$teststring
12782 done
12783 # Only check the string length outside the loop.
12784 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12785 teststring=
12786 # Add a significant safety factor because C++ compilers can tack on
12787 # massive amounts of additional arguments before passing them to the
12788 # linker. It appears as though 1/2 is a usable value.
12789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12790 fi
12791 ;;
12792 esac
12793
12794 fi
12795
12796 if test -n $lt_cv_sys_max_cmd_len ; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12798 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12801 $as_echo "none" >&6; }
12802 fi
12803 max_cmd_len=$lt_cv_sys_max_cmd_len
12804
12805
12806
12807
12808
12809
12810 : ${CP="cp -f"}
12811 : ${MV="mv -f"}
12812 : ${RM="rm -f"}
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12815 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12816 # Try some XSI features
12817 xsi_shell=no
12818 ( _lt_dummy="a/b/c"
12819 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12820 = c,a/b,, \
12821 && eval 'test $(( 1 + 1 )) -eq 2 \
12822 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12823 && xsi_shell=yes
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12825 $as_echo "$xsi_shell" >&6; }
12826
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12829 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12830 lt_shell_append=no
12831 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12832 >/dev/null 2>&1 \
12833 && lt_shell_append=yes
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12835 $as_echo "$lt_shell_append" >&6; }
12836
12837
12838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12839 lt_unset=unset
12840 else
12841 lt_unset=false
12842 fi
12843
12844
12845
12846
12847
12848 # test EBCDIC or ASCII
12849 case `echo X|tr X '\101'` in
12850 A) # ASCII based system
12851 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12852 lt_SP2NL='tr \040 \012'
12853 lt_NL2SP='tr \015\012 \040\040'
12854 ;;
12855 *) # EBCDIC based system
12856 lt_SP2NL='tr \100 \n'
12857 lt_NL2SP='tr \r\n \100\100'
12858 ;;
12859 esac
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12870 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12871 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 lt_cv_ld_reload_flag='-r'
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12877 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12878 reload_flag=$lt_cv_ld_reload_flag
12879 case $reload_flag in
12880 "" | " "*) ;;
12881 *) reload_flag=" $reload_flag" ;;
12882 esac
12883 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12884 case $host_os in
12885 darwin*)
12886 if test "$GCC" = yes; then
12887 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12888 else
12889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12890 fi
12891 ;;
12892 esac
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12904 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 if test -n "$OBJDUMP"; then
12911 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12912 else
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12915 do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924 done
12925 done
12926 IFS=$as_save_IFS
12927
12928 fi
12929 fi
12930 OBJDUMP=$ac_cv_prog_OBJDUMP
12931 if test -n "$OBJDUMP"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12933 $as_echo "$OBJDUMP" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938
12939
12940 fi
12941 if test -z "$ac_cv_prog_OBJDUMP"; then
12942 ac_ct_OBJDUMP=$OBJDUMP
12943 # Extract the first word of "objdump", so it can be a program name with args.
12944 set dummy objdump; ac_word=$2
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 $as_echo_n "checking for $ac_word... " >&6; }
12947 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 if test -n "$ac_ct_OBJDUMP"; then
12951 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12952 else
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH
12955 do
12956 IFS=$as_save_IFS
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12960 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 break 2
12963 fi
12964 done
12965 done
12966 IFS=$as_save_IFS
12967
12968 fi
12969 fi
12970 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12971 if test -n "$ac_ct_OBJDUMP"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12973 $as_echo "$ac_ct_OBJDUMP" >&6; }
12974 else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977 fi
12978
12979 if test "x$ac_ct_OBJDUMP" = x; then
12980 OBJDUMP="false"
12981 else
12982 case $cross_compiling:$ac_tool_warned in
12983 yes:)
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12986 ac_tool_warned=yes ;;
12987 esac
12988 OBJDUMP=$ac_ct_OBJDUMP
12989 fi
12990 else
12991 OBJDUMP="$ac_cv_prog_OBJDUMP"
12992 fi
12993
12994 test -z "$OBJDUMP" && OBJDUMP=objdump
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13005 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13006 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 lt_cv_file_magic_cmd='$MAGIC_CMD'
13010 lt_cv_file_magic_test_file=
13011 lt_cv_deplibs_check_method='unknown'
13012 # Need to set the preceding variable on all platforms that support
13013 # interlibrary dependencies.
13014 # 'none' -- dependencies not supported.
13015 # `unknown' -- same as none, but documents that we really don't know.
13016 # 'pass_all' -- all dependencies passed with no checks.
13017 # 'test_compile' -- check by making test program.
13018 # 'file_magic [[regex]]' -- check by looking for files in library path
13019 # which responds to the $file_magic_cmd with a given extended regex.
13020 # If you have `file' or equivalent on your system and you're not sure
13021 # whether `pass_all' will *always* work, you probably want this one.
13022
13023 case $host_os in
13024 aix[4-9]*)
13025 lt_cv_deplibs_check_method=pass_all
13026 ;;
13027
13028 beos*)
13029 lt_cv_deplibs_check_method=pass_all
13030 ;;
13031
13032 bsdi[45]*)
13033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13034 lt_cv_file_magic_cmd='/usr/bin/file -L'
13035 lt_cv_file_magic_test_file=/shlib/libc.so
13036 ;;
13037
13038 cygwin*)
13039 # func_win32_libid is a shell function defined in ltmain.sh
13040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13041 lt_cv_file_magic_cmd='func_win32_libid'
13042 ;;
13043
13044 mingw* | pw32*)
13045 # Base MSYS/MinGW do not provide the 'file' command needed by
13046 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13047 # unless we find 'file', for example because we are cross-compiling.
13048 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13049 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13051 lt_cv_file_magic_cmd='func_win32_libid'
13052 else
13053 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13054 lt_cv_file_magic_cmd='$OBJDUMP -f'
13055 fi
13056 ;;
13057
13058 cegcc*)
13059 # use the weaker test based on 'objdump'. See mingw*.
13060 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13061 lt_cv_file_magic_cmd='$OBJDUMP -f'
13062 ;;
13063
13064 darwin* | rhapsody*)
13065 lt_cv_deplibs_check_method=pass_all
13066 ;;
13067
13068 freebsd* | dragonfly*)
13069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13070 case $host_cpu in
13071 i*86 )
13072 # Not sure whether the presence of OpenBSD here was a mistake.
13073 # Let's accept both of them until this is cleared up.
13074 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13075 lt_cv_file_magic_cmd=/usr/bin/file
13076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13077 ;;
13078 esac
13079 else
13080 lt_cv_deplibs_check_method=pass_all
13081 fi
13082 ;;
13083
13084 gnu*)
13085 lt_cv_deplibs_check_method=pass_all
13086 ;;
13087
13088 haiku*)
13089 lt_cv_deplibs_check_method=pass_all
13090 ;;
13091
13092 hpux10.20* | hpux11*)
13093 lt_cv_file_magic_cmd=/usr/bin/file
13094 case $host_cpu in
13095 ia64*)
13096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13098 ;;
13099 hppa*64*)
13100 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]'
13101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13102 ;;
13103 *)
13104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13105 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13106 ;;
13107 esac
13108 ;;
13109
13110 interix[3-9]*)
13111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13113 ;;
13114
13115 irix5* | irix6* | nonstopux*)
13116 case $LD in
13117 *-32|*"-32 ") libmagic=32-bit;;
13118 *-n32|*"-n32 ") libmagic=N32;;
13119 *-64|*"-64 ") libmagic=64-bit;;
13120 *) libmagic=never-match;;
13121 esac
13122 lt_cv_deplibs_check_method=pass_all
13123 ;;
13124
13125 # This must be Linux ELF.
13126 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13127 lt_cv_deplibs_check_method=pass_all
13128 ;;
13129
13130 netbsd*)
13131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13133 else
13134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13135 fi
13136 ;;
13137
13138 newos6*)
13139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13140 lt_cv_file_magic_cmd=/usr/bin/file
13141 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13142 ;;
13143
13144 *nto* | *qnx*)
13145 lt_cv_deplibs_check_method=pass_all
13146 ;;
13147
13148 openbsd*)
13149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13151 else
13152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13153 fi
13154 ;;
13155
13156 osf3* | osf4* | osf5*)
13157 lt_cv_deplibs_check_method=pass_all
13158 ;;
13159
13160 rdos*)
13161 lt_cv_deplibs_check_method=pass_all
13162 ;;
13163
13164 solaris*)
13165 lt_cv_deplibs_check_method=pass_all
13166 ;;
13167
13168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13169 lt_cv_deplibs_check_method=pass_all
13170 ;;
13171
13172 sysv4 | sysv4.3*)
13173 case $host_vendor in
13174 motorola)
13175 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]'
13176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13177 ;;
13178 ncr)
13179 lt_cv_deplibs_check_method=pass_all
13180 ;;
13181 sequent)
13182 lt_cv_file_magic_cmd='/bin/file'
13183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13184 ;;
13185 sni)
13186 lt_cv_file_magic_cmd='/bin/file'
13187 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13188 lt_cv_file_magic_test_file=/lib/libc.so
13189 ;;
13190 siemens)
13191 lt_cv_deplibs_check_method=pass_all
13192 ;;
13193 pc)
13194 lt_cv_deplibs_check_method=pass_all
13195 ;;
13196 esac
13197 ;;
13198
13199 tpf*)
13200 lt_cv_deplibs_check_method=pass_all
13201 ;;
13202 esac
13203
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13206 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13207 file_magic_cmd=$lt_cv_file_magic_cmd
13208 deplibs_check_method=$lt_cv_deplibs_check_method
13209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222 if test -n "$ac_tool_prefix"; then
13223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13224 set dummy ${ac_tool_prefix}ar; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if test "${ac_cv_prog_AR+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$AR"; then
13231 ac_cv_prog_AR="$AR" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13235 do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_AR="${ac_tool_prefix}ar"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244 done
13245 done
13246 IFS=$as_save_IFS
13247
13248 fi
13249 fi
13250 AR=$ac_cv_prog_AR
13251 if test -n "$AR"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13253 $as_echo "$AR" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257 fi
13258
13259
13260 fi
13261 if test -z "$ac_cv_prog_AR"; then
13262 ac_ct_AR=$AR
13263 # Extract the first word of "ar", so it can be a program name with args.
13264 set dummy ar; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$ac_ct_AR"; then
13271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_ac_ct_AR="ar"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13291 if test -n "$ac_ct_AR"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13293 $as_echo "$ac_ct_AR" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299 if test "x$ac_ct_AR" = x; then
13300 AR="false"
13301 else
13302 case $cross_compiling:$ac_tool_warned in
13303 yes:)
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13306 ac_tool_warned=yes ;;
13307 esac
13308 AR=$ac_ct_AR
13309 fi
13310 else
13311 AR="$ac_cv_prog_AR"
13312 fi
13313
13314 test -z "$AR" && AR=ar
13315 test -z "$AR_FLAGS" && AR_FLAGS=cru
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327 if test -n "$ac_tool_prefix"; then
13328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13329 set dummy ${ac_tool_prefix}strip; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if test "${ac_cv_prog_STRIP+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 if test -n "$STRIP"; then
13336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13337 else
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13340 do
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13348 fi
13349 done
13350 done
13351 IFS=$as_save_IFS
13352
13353 fi
13354 fi
13355 STRIP=$ac_cv_prog_STRIP
13356 if test -n "$STRIP"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13358 $as_echo "$STRIP" >&6; }
13359 else
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13362 fi
13363
13364
13365 fi
13366 if test -z "$ac_cv_prog_STRIP"; then
13367 ac_ct_STRIP=$STRIP
13368 # Extract the first word of "strip", so it can be a program name with args.
13369 set dummy strip; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test -n "$ac_ct_STRIP"; then
13376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13377 else
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13380 do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13385 ac_cv_prog_ac_ct_STRIP="strip"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13388 fi
13389 done
13390 done
13391 IFS=$as_save_IFS
13392
13393 fi
13394 fi
13395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13396 if test -n "$ac_ct_STRIP"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13398 $as_echo "$ac_ct_STRIP" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13402 fi
13403
13404 if test "x$ac_ct_STRIP" = x; then
13405 STRIP=":"
13406 else
13407 case $cross_compiling:$ac_tool_warned in
13408 yes:)
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13411 ac_tool_warned=yes ;;
13412 esac
13413 STRIP=$ac_ct_STRIP
13414 fi
13415 else
13416 STRIP="$ac_cv_prog_STRIP"
13417 fi
13418
13419 test -z "$STRIP" && STRIP=:
13420
13421
13422
13423
13424
13425
13426 if test -n "$ac_tool_prefix"; then
13427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$RANLIB"; then
13435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13439 do
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13447 fi
13448 done
13449 done
13450 IFS=$as_save_IFS
13451
13452 fi
13453 fi
13454 RANLIB=$ac_cv_prog_RANLIB
13455 if test -n "$RANLIB"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13457 $as_echo "$RANLIB" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13461 fi
13462
13463
13464 fi
13465 if test -z "$ac_cv_prog_RANLIB"; then
13466 ac_ct_RANLIB=$RANLIB
13467 # Extract the first word of "ranlib", so it can be a program name with args.
13468 set dummy ranlib; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 if test -n "$ac_ct_RANLIB"; then
13475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13479 do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_ac_ct_RANLIB="ranlib"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13487 fi
13488 done
13489 done
13490 IFS=$as_save_IFS
13491
13492 fi
13493 fi
13494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13495 if test -n "$ac_ct_RANLIB"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13497 $as_echo "$ac_ct_RANLIB" >&6; }
13498 else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502
13503 if test "x$ac_ct_RANLIB" = x; then
13504 RANLIB=":"
13505 else
13506 case $cross_compiling:$ac_tool_warned in
13507 yes:)
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13511 esac
13512 RANLIB=$ac_ct_RANLIB
13513 fi
13514 else
13515 RANLIB="$ac_cv_prog_RANLIB"
13516 fi
13517
13518 test -z "$RANLIB" && RANLIB=:
13519
13520
13521
13522
13523
13524
13525 # Determine commands to create old-style static archives.
13526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13527 old_postinstall_cmds='chmod 644 $oldlib'
13528 old_postuninstall_cmds=
13529
13530 if test -n "$RANLIB"; then
13531 case $host_os in
13532 openbsd*)
13533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13534 ;;
13535 *)
13536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13537 ;;
13538 esac
13539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13540 fi
13541
13542 case $host_os in
13543 darwin*)
13544 lock_old_archive_extraction=yes ;;
13545 *)
13546 lock_old_archive_extraction=no ;;
13547 esac
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587 # If no C compiler was specified, use CC.
13588 LTCC=${LTCC-"$CC"}
13589
13590 # If no C compiler flags were specified, use CFLAGS.
13591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13592
13593 # Allow CC to be a program name with arguments.
13594 compiler=$CC
13595
13596
13597 # Check for command to grab the raw symbol name followed by C symbol from nm.
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13600 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603
13604 # These are sane defaults that work on at least a few old systems.
13605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13606
13607 # Character class describing NM global symbol codes.
13608 symcode='[BCDEGRST]'
13609
13610 # Regexp to match symbols that can be accessed directly from C.
13611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13612
13613 # Define system-specific variables.
13614 case $host_os in
13615 aix*)
13616 symcode='[BCDT]'
13617 ;;
13618 cygwin* | mingw* | pw32* | cegcc*)
13619 symcode='[ABCDGISTW]'
13620 ;;
13621 hpux*)
13622 if test "$host_cpu" = ia64; then
13623 symcode='[ABCDEGRST]'
13624 fi
13625 ;;
13626 irix* | nonstopux*)
13627 symcode='[BCDEGRST]'
13628 ;;
13629 osf*)
13630 symcode='[BCDEGQRST]'
13631 ;;
13632 solaris*)
13633 symcode='[BDRT]'
13634 ;;
13635 sco3.2v5*)
13636 symcode='[DT]'
13637 ;;
13638 sysv4.2uw2*)
13639 symcode='[DT]'
13640 ;;
13641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13642 symcode='[ABDT]'
13643 ;;
13644 sysv4)
13645 symcode='[DFNSTU]'
13646 ;;
13647 esac
13648
13649 # If we're using GNU nm, then use its standard symbol codes.
13650 case `$NM -V 2>&1` in
13651 *GNU* | *'with BFD'*)
13652 symcode='[ABCDGIRSTW]' ;;
13653 esac
13654
13655 # Transform an extracted symbol line into a proper C declaration.
13656 # Some systems (esp. on ia64) link data and code symbols differently,
13657 # so use this general approach.
13658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13659
13660 # Transform an extracted symbol line into symbol name and symbol address
13661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13662 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'"
13663
13664 # Handle CRLF in mingw tool chain
13665 opt_cr=
13666 case $build_os in
13667 mingw*)
13668 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13669 ;;
13670 esac
13671
13672 # Try without a prefix underscore, then with it.
13673 for ac_symprfx in "" "_"; do
13674
13675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13676 symxfrm="\\1 $ac_symprfx\\2 \\2"
13677
13678 # Write the raw and C identifiers.
13679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13680 # Fake it for dumpbin and say T for any non-static function
13681 # and D for any global variable.
13682 # Also find C++ and __fastcall symbols from MSVC++,
13683 # which start with @ or ?.
13684 lt_cv_sys_global_symbol_pipe="$AWK '"\
13685 " {last_section=section; section=\$ 3};"\
13686 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13687 " \$ 0!~/External *\|/{next};"\
13688 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13689 " {if(hide[section]) next};"\
13690 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13691 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13692 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13693 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13694 " ' prfx=^$ac_symprfx"
13695 else
13696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13697 fi
13698
13699 # Check to see that the pipe works correctly.
13700 pipe_works=no
13701
13702 rm -f conftest*
13703 cat > conftest.$ac_ext <<_LT_EOF
13704 #ifdef __cplusplus
13705 extern "C" {
13706 #endif
13707 char nm_test_var;
13708 void nm_test_func(void);
13709 void nm_test_func(void){}
13710 #ifdef __cplusplus
13711 }
13712 #endif
13713 int main(){nm_test_var='a';nm_test_func();return(0);}
13714 _LT_EOF
13715
13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13717 (eval $ac_compile) 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }; then
13721 # Now try to grab the symbols.
13722 nlist=conftest.nm
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13724 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; } && test -s "$nlist"; then
13728 # Try sorting and uniquifying the output.
13729 if sort "$nlist" | uniq > "$nlist"T; then
13730 mv -f "$nlist"T "$nlist"
13731 else
13732 rm -f "$nlist"T
13733 fi
13734
13735 # Make sure that we snagged all the symbols we need.
13736 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13737 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13738 cat <<_LT_EOF > conftest.$ac_ext
13739 #ifdef __cplusplus
13740 extern "C" {
13741 #endif
13742
13743 _LT_EOF
13744 # Now generate the symbol file.
13745 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13746
13747 cat <<_LT_EOF >> conftest.$ac_ext
13748
13749 /* The mapping between symbol names and symbols. */
13750 const struct {
13751 const char *name;
13752 void *address;
13753 }
13754 lt__PROGRAM__LTX_preloaded_symbols[] =
13755 {
13756 { "@PROGRAM@", (void *) 0 },
13757 _LT_EOF
13758 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13759 cat <<\_LT_EOF >> conftest.$ac_ext
13760 {0, (void *) 0}
13761 };
13762
13763 /* This works around a problem in FreeBSD linker */
13764 #ifdef FREEBSD_WORKAROUND
13765 static const void *lt_preloaded_setup() {
13766 return lt__PROGRAM__LTX_preloaded_symbols;
13767 }
13768 #endif
13769
13770 #ifdef __cplusplus
13771 }
13772 #endif
13773 _LT_EOF
13774 # Now try linking the two files.
13775 mv conftest.$ac_objext conftstm.$ac_objext
13776 lt_save_LIBS="$LIBS"
13777 lt_save_CFLAGS="$CFLAGS"
13778 LIBS="conftstm.$ac_objext"
13779 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13781 (eval $ac_link) 2>&5
13782 ac_status=$?
13783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13785 pipe_works=yes
13786 fi
13787 LIBS="$lt_save_LIBS"
13788 CFLAGS="$lt_save_CFLAGS"
13789 else
13790 echo "cannot find nm_test_func in $nlist" >&5
13791 fi
13792 else
13793 echo "cannot find nm_test_var in $nlist" >&5
13794 fi
13795 else
13796 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13797 fi
13798 else
13799 echo "$progname: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13801 fi
13802 rm -rf conftest* conftst*
13803
13804 # Do not use the global_symbol_pipe unless it works.
13805 if test "$pipe_works" = yes; then
13806 break
13807 else
13808 lt_cv_sys_global_symbol_pipe=
13809 fi
13810 done
13811
13812 fi
13813
13814 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13815 lt_cv_sys_global_symbol_to_cdecl=
13816 fi
13817 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13819 $as_echo "failed" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13822 $as_echo "ok" >&6; }
13823 fi
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846 # Check whether --enable-libtool-lock was given.
13847 if test "${enable_libtool_lock+set}" = set; then :
13848 enableval=$enable_libtool_lock;
13849 fi
13850
13851 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13852
13853 # Some flags need to be propagated to the compiler or linker for good
13854 # libtool support.
13855 case $host in
13856 ia64-*-hpux*)
13857 # Find out which ABI we are using.
13858 echo 'int i;' > conftest.$ac_ext
13859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13860 (eval $ac_compile) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863 test $ac_status = 0; }; then
13864 case `/usr/bin/file conftest.$ac_objext` in
13865 *ELF-32*)
13866 HPUX_IA64_MODE="32"
13867 ;;
13868 *ELF-64*)
13869 HPUX_IA64_MODE="64"
13870 ;;
13871 esac
13872 fi
13873 rm -rf conftest*
13874 ;;
13875 *-*-irix6*)
13876 # Find out which ABI we are using.
13877 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13879 (eval $ac_compile) 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; then
13883 if test "$lt_cv_prog_gnu_ld" = yes; then
13884 case `/usr/bin/file conftest.$ac_objext` in
13885 *32-bit*)
13886 LD="${LD-ld} -melf32bsmip"
13887 ;;
13888 *N32*)
13889 LD="${LD-ld} -melf32bmipn32"
13890 ;;
13891 *64-bit*)
13892 LD="${LD-ld} -melf64bmip"
13893 ;;
13894 esac
13895 else
13896 case `/usr/bin/file conftest.$ac_objext` in
13897 *32-bit*)
13898 LD="${LD-ld} -32"
13899 ;;
13900 *N32*)
13901 LD="${LD-ld} -n32"
13902 ;;
13903 *64-bit*)
13904 LD="${LD-ld} -64"
13905 ;;
13906 esac
13907 fi
13908 fi
13909 rm -rf conftest*
13910 ;;
13911
13912 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13913 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13914 # Find out which ABI we are using.
13915 echo 'int i;' > conftest.$ac_ext
13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13917 (eval $ac_compile) 2>&5
13918 ac_status=$?
13919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920 test $ac_status = 0; }; then
13921 case `/usr/bin/file conftest.o` in
13922 *32-bit*)
13923 case $host in
13924 x86_64-*kfreebsd*-gnu)
13925 LD="${LD-ld} -m elf_i386_fbsd"
13926 ;;
13927 x86_64-*linux*)
13928 case `/usr/bin/file conftest.o` in
13929 *x86-64*)
13930 LD="${LD-ld} -m elf32_x86_64"
13931 ;;
13932 *)
13933 LD="${LD-ld} -m elf_i386"
13934 ;;
13935 esac
13936 ;;
13937 powerpc64le-*linux*)
13938 LD="${LD-ld} -m elf32lppclinux"
13939 ;;
13940 powerpc64-*linux*)
13941 LD="${LD-ld} -m elf32ppclinux"
13942 ;;
13943 s390x-*linux*)
13944 LD="${LD-ld} -m elf_s390"
13945 ;;
13946 sparc64-*linux*)
13947 LD="${LD-ld} -m elf32_sparc"
13948 ;;
13949 esac
13950 ;;
13951 *64-bit*)
13952 case $host in
13953 x86_64-*kfreebsd*-gnu)
13954 LD="${LD-ld} -m elf_x86_64_fbsd"
13955 ;;
13956 x86_64-*linux*)
13957 LD="${LD-ld} -m elf_x86_64"
13958 ;;
13959 powerpcle-*linux*)
13960 LD="${LD-ld} -m elf64lppc"
13961 ;;
13962 powerpc-*linux*)
13963 LD="${LD-ld} -m elf64ppc"
13964 ;;
13965 s390*-*linux*|s390*-*tpf*)
13966 LD="${LD-ld} -m elf64_s390"
13967 ;;
13968 sparc*-*linux*)
13969 LD="${LD-ld} -m elf64_sparc"
13970 ;;
13971 esac
13972 ;;
13973 esac
13974 fi
13975 rm -rf conftest*
13976 ;;
13977
13978 *-*-sco3.2v5*)
13979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13980 SAVE_CFLAGS="$CFLAGS"
13981 CFLAGS="$CFLAGS -belf"
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13983 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13984 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 ac_ext=c
13988 ac_cpp='$CPP $CPPFLAGS'
13989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13992
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995
13996 int
13997 main ()
13998 {
13999
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_link "$LINENO"; then :
14005 lt_cv_cc_needs_belf=yes
14006 else
14007 lt_cv_cc_needs_belf=no
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 ac_ext=c
14012 ac_cpp='$CPP $CPPFLAGS'
14013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14016
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14019 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14022 CFLAGS="$SAVE_CFLAGS"
14023 fi
14024 ;;
14025 sparc*-*solaris*)
14026 # Find out which ABI we are using.
14027 echo 'int i;' > conftest.$ac_ext
14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14029 (eval $ac_compile) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; then
14033 case `/usr/bin/file conftest.o` in
14034 *64-bit*)
14035 case $lt_cv_prog_gnu_ld in
14036 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14037 *)
14038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14039 LD="${LD-ld} -64"
14040 fi
14041 ;;
14042 esac
14043 ;;
14044 esac
14045 fi
14046 rm -rf conftest*
14047 ;;
14048 esac
14049
14050 need_locks="$enable_libtool_lock"
14051
14052
14053 case $host_os in
14054 rhapsody* | darwin*)
14055 if test -n "$ac_tool_prefix"; then
14056 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14057 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 if test -n "$DSYMUTIL"; then
14064 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14065 else
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14068 do
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14073 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14075 break 2
14076 fi
14077 done
14078 done
14079 IFS=$as_save_IFS
14080
14081 fi
14082 fi
14083 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14084 if test -n "$DSYMUTIL"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14086 $as_echo "$DSYMUTIL" >&6; }
14087 else
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14090 fi
14091
14092
14093 fi
14094 if test -z "$ac_cv_prog_DSYMUTIL"; then
14095 ac_ct_DSYMUTIL=$DSYMUTIL
14096 # Extract the first word of "dsymutil", so it can be a program name with args.
14097 set dummy dsymutil; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 if test -n "$ac_ct_DSYMUTIL"; then
14104 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14108 do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14113 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14120
14121 fi
14122 fi
14123 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14124 if test -n "$ac_ct_DSYMUTIL"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14126 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132 if test "x$ac_ct_DSYMUTIL" = x; then
14133 DSYMUTIL=":"
14134 else
14135 case $cross_compiling:$ac_tool_warned in
14136 yes:)
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14139 ac_tool_warned=yes ;;
14140 esac
14141 DSYMUTIL=$ac_ct_DSYMUTIL
14142 fi
14143 else
14144 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14145 fi
14146
14147 if test -n "$ac_tool_prefix"; then
14148 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14149 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151 $as_echo_n "checking for $ac_word... " >&6; }
14152 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 if test -n "$NMEDIT"; then
14156 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14157 else
14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 for as_dir in $PATH
14160 do
14161 IFS=$as_save_IFS
14162 test -z "$as_dir" && as_dir=.
14163 for ac_exec_ext in '' $ac_executable_extensions; do
14164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14165 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14167 break 2
14168 fi
14169 done
14170 done
14171 IFS=$as_save_IFS
14172
14173 fi
14174 fi
14175 NMEDIT=$ac_cv_prog_NMEDIT
14176 if test -n "$NMEDIT"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14178 $as_echo "$NMEDIT" >&6; }
14179 else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 fi
14183
14184
14185 fi
14186 if test -z "$ac_cv_prog_NMEDIT"; then
14187 ac_ct_NMEDIT=$NMEDIT
14188 # Extract the first word of "nmedit", so it can be a program name with args.
14189 set dummy nmedit; ac_word=$2
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191 $as_echo_n "checking for $ac_word... " >&6; }
14192 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
14194 else
14195 if test -n "$ac_ct_NMEDIT"; then
14196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14197 else
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $PATH
14200 do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
14204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14205 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14208 fi
14209 done
14210 done
14211 IFS=$as_save_IFS
14212
14213 fi
14214 fi
14215 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14216 if test -n "$ac_ct_NMEDIT"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14218 $as_echo "$ac_ct_NMEDIT" >&6; }
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222 fi
14223
14224 if test "x$ac_ct_NMEDIT" = x; then
14225 NMEDIT=":"
14226 else
14227 case $cross_compiling:$ac_tool_warned in
14228 yes:)
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14231 ac_tool_warned=yes ;;
14232 esac
14233 NMEDIT=$ac_ct_NMEDIT
14234 fi
14235 else
14236 NMEDIT="$ac_cv_prog_NMEDIT"
14237 fi
14238
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if test "${ac_cv_prog_LIPO+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$LIPO"; then
14248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265 fi
14266 fi
14267 LIPO=$ac_cv_prog_LIPO
14268 if test -n "$LIPO"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14270 $as_echo "$LIPO" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277 fi
14278 if test -z "$ac_cv_prog_LIPO"; then
14279 ac_ct_LIPO=$LIPO
14280 # Extract the first word of "lipo", so it can be a program name with args.
14281 set dummy lipo; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$ac_ct_LIPO"; then
14288 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14292 do
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14297 ac_cv_prog_ac_ct_LIPO="lipo"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14300 fi
14301 done
14302 done
14303 IFS=$as_save_IFS
14304
14305 fi
14306 fi
14307 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14308 if test -n "$ac_ct_LIPO"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14310 $as_echo "$ac_ct_LIPO" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314 fi
14315
14316 if test "x$ac_ct_LIPO" = x; then
14317 LIPO=":"
14318 else
14319 case $cross_compiling:$ac_tool_warned in
14320 yes:)
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323 ac_tool_warned=yes ;;
14324 esac
14325 LIPO=$ac_ct_LIPO
14326 fi
14327 else
14328 LIPO="$ac_cv_prog_LIPO"
14329 fi
14330
14331 if test -n "$ac_tool_prefix"; then
14332 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14333 set dummy ${ac_tool_prefix}otool; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$OTOOL"; then
14340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14344 do
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14352 fi
14353 done
14354 done
14355 IFS=$as_save_IFS
14356
14357 fi
14358 fi
14359 OTOOL=$ac_cv_prog_OTOOL
14360 if test -n "$OTOOL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14362 $as_echo "$OTOOL" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14366 fi
14367
14368
14369 fi
14370 if test -z "$ac_cv_prog_OTOOL"; then
14371 ac_ct_OTOOL=$OTOOL
14372 # Extract the first word of "otool", so it can be a program name with args.
14373 set dummy otool; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$ac_ct_OTOOL"; then
14380 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_ac_ct_OTOOL="otool"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14392 fi
14393 done
14394 done
14395 IFS=$as_save_IFS
14396
14397 fi
14398 fi
14399 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14400 if test -n "$ac_ct_OTOOL"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14402 $as_echo "$ac_ct_OTOOL" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14406 fi
14407
14408 if test "x$ac_ct_OTOOL" = x; then
14409 OTOOL=":"
14410 else
14411 case $cross_compiling:$ac_tool_warned in
14412 yes:)
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14415 ac_tool_warned=yes ;;
14416 esac
14417 OTOOL=$ac_ct_OTOOL
14418 fi
14419 else
14420 OTOOL="$ac_cv_prog_OTOOL"
14421 fi
14422
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$OTOOL64"; then
14432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14436 do
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445 done
14446 done
14447 IFS=$as_save_IFS
14448
14449 fi
14450 fi
14451 OTOOL64=$ac_cv_prog_OTOOL64
14452 if test -n "$OTOOL64"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14454 $as_echo "$OTOOL64" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14458 fi
14459
14460
14461 fi
14462 if test -z "$ac_cv_prog_OTOOL64"; then
14463 ac_ct_OTOOL64=$OTOOL64
14464 # Extract the first word of "otool64", so it can be a program name with args.
14465 set dummy otool64; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 if test -n "$ac_ct_OTOOL64"; then
14472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14476 do
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_ac_ct_OTOOL64="otool64"
14482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14484 fi
14485 done
14486 done
14487 IFS=$as_save_IFS
14488
14489 fi
14490 fi
14491 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14492 if test -n "$ac_ct_OTOOL64"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14494 $as_echo "$ac_ct_OTOOL64" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14498 fi
14499
14500 if test "x$ac_ct_OTOOL64" = x; then
14501 OTOOL64=":"
14502 else
14503 case $cross_compiling:$ac_tool_warned in
14504 yes:)
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 OTOOL64=$ac_ct_OTOOL64
14510 fi
14511 else
14512 OTOOL64="$ac_cv_prog_OTOOL64"
14513 fi
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14542 $as_echo_n "checking for -single_module linker flag... " >&6; }
14543 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_apple_cc_single_mod=no
14547 if test -z "${LT_MULTI_MODULE}"; then
14548 # By default we will add the -single_module flag. You can override
14549 # by either setting the environment variable LT_MULTI_MODULE
14550 # non-empty at configure time, or by adding -multi_module to the
14551 # link flags.
14552 rm -rf libconftest.dylib*
14553 echo "int foo(void){return 1;}" > conftest.c
14554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14555 -dynamiclib -Wl,-single_module conftest.c" >&5
14556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14558 _lt_result=$?
14559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14560 lt_cv_apple_cc_single_mod=yes
14561 else
14562 cat conftest.err >&5
14563 fi
14564 rm -rf libconftest.dylib*
14565 rm -f conftest.*
14566 fi
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14569 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14572 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 lt_cv_ld_exported_symbols_list=no
14576 save_LDFLAGS=$LDFLAGS
14577 echo "_main" > conftest.sym
14578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581
14582 int
14583 main ()
14584 {
14585
14586 ;
14587 return 0;
14588 }
14589 _ACEOF
14590 if ac_fn_c_try_link "$LINENO"; then :
14591 lt_cv_ld_exported_symbols_list=yes
14592 else
14593 lt_cv_ld_exported_symbols_list=no
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LDFLAGS="$save_LDFLAGS"
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14603 $as_echo_n "checking for -force_load linker flag... " >&6; }
14604 if test "${lt_cv_ld_force_load+set}" = set; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 lt_cv_ld_force_load=no
14608 cat > conftest.c << _LT_EOF
14609 int forced_loaded() { return 2;}
14610 _LT_EOF
14611 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14612 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14613 echo "$AR cru libconftest.a conftest.o" >&5
14614 $AR cru libconftest.a conftest.o 2>&5
14615 cat > conftest.c << _LT_EOF
14616 int main() { return 0;}
14617 _LT_EOF
14618 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14619 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14620 _lt_result=$?
14621 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14622 lt_cv_ld_force_load=yes
14623 else
14624 cat conftest.err >&5
14625 fi
14626 rm -f conftest.err libconftest.a conftest conftest.c
14627 rm -rf conftest.dSYM
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14631 $as_echo "$lt_cv_ld_force_load" >&6; }
14632 case $host_os in
14633 rhapsody* | darwin1.[012])
14634 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14635 darwin1.*)
14636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14637 darwin*) # darwin 5.x on
14638 # if running on 10.5 or later, the deployment target defaults
14639 # to the OS version, if on x86, and 10.4, the deployment
14640 # target defaults to 10.4. Don't you love it?
14641 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14642 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14644 10.[012][,.]*)
14645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14646 10.*)
14647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14648 esac
14649 ;;
14650 esac
14651 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14652 _lt_dar_single_mod='$single_module'
14653 fi
14654 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14655 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14656 else
14657 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14658 fi
14659 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14660 _lt_dsymutil='~$DSYMUTIL $lib || :'
14661 else
14662 _lt_dsymutil=
14663 fi
14664 ;;
14665 esac
14666
14667 for ac_header in dlfcn.h
14668 do :
14669 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14670 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DLFCN_H 1
14673 _ACEOF
14674
14675 fi
14676 done
14677
14678
14679
14680
14681
14682 # Set options
14683
14684
14685
14686 enable_dlopen=no
14687
14688
14689 enable_win32_dll=no
14690
14691
14692 # Check whether --enable-shared was given.
14693 if test "${enable_shared+set}" = set; then :
14694 enableval=$enable_shared; p=${PACKAGE-default}
14695 case $enableval in
14696 yes) enable_shared=yes ;;
14697 no) enable_shared=no ;;
14698 *)
14699 enable_shared=no
14700 # Look at the argument we got. We use all the common list separators.
14701 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14702 for pkg in $enableval; do
14703 IFS="$lt_save_ifs"
14704 if test "X$pkg" = "X$p"; then
14705 enable_shared=yes
14706 fi
14707 done
14708 IFS="$lt_save_ifs"
14709 ;;
14710 esac
14711 else
14712 enable_shared=yes
14713 fi
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723 # Check whether --enable-static was given.
14724 if test "${enable_static+set}" = set; then :
14725 enableval=$enable_static; p=${PACKAGE-default}
14726 case $enableval in
14727 yes) enable_static=yes ;;
14728 no) enable_static=no ;;
14729 *)
14730 enable_static=no
14731 # Look at the argument we got. We use all the common list separators.
14732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14733 for pkg in $enableval; do
14734 IFS="$lt_save_ifs"
14735 if test "X$pkg" = "X$p"; then
14736 enable_static=yes
14737 fi
14738 done
14739 IFS="$lt_save_ifs"
14740 ;;
14741 esac
14742 else
14743 enable_static=yes
14744 fi
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 # Check whether --with-pic was given.
14756 if test "${with_pic+set}" = set; then :
14757 withval=$with_pic; pic_mode="$withval"
14758 else
14759 pic_mode=default
14760 fi
14761
14762
14763 test -z "$pic_mode" && pic_mode=default
14764
14765
14766
14767
14768
14769
14770
14771 # Check whether --enable-fast-install was given.
14772 if test "${enable_fast_install+set}" = set; then :
14773 enableval=$enable_fast_install; p=${PACKAGE-default}
14774 case $enableval in
14775 yes) enable_fast_install=yes ;;
14776 no) enable_fast_install=no ;;
14777 *)
14778 enable_fast_install=no
14779 # Look at the argument we got. We use all the common list separators.
14780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14781 for pkg in $enableval; do
14782 IFS="$lt_save_ifs"
14783 if test "X$pkg" = "X$p"; then
14784 enable_fast_install=yes
14785 fi
14786 done
14787 IFS="$lt_save_ifs"
14788 ;;
14789 esac
14790 else
14791 enable_fast_install=yes
14792 fi
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804 # This can be used to rebuild libtool when needed
14805 LIBTOOL_DEPS="$ltmain"
14806
14807 # Always use our own libtool.
14808 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835 test -z "$LN_S" && LN_S="ln -s"
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 if test -n "${ZSH_VERSION+set}" ; then
14851 setopt NO_GLOB_SUBST
14852 fi
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14855 $as_echo_n "checking for objdir... " >&6; }
14856 if test "${lt_cv_objdir+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 rm -f .libs 2>/dev/null
14860 mkdir .libs 2>/dev/null
14861 if test -d .libs; then
14862 lt_cv_objdir=.libs
14863 else
14864 # MS-DOS does not allow filenames that begin with a dot.
14865 lt_cv_objdir=_libs
14866 fi
14867 rmdir .libs 2>/dev/null
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14870 $as_echo "$lt_cv_objdir" >&6; }
14871 objdir=$lt_cv_objdir
14872
14873
14874
14875
14876
14877 cat >>confdefs.h <<_ACEOF
14878 #define LT_OBJDIR "$lt_cv_objdir/"
14879 _ACEOF
14880
14881
14882
14883
14884 case $host_os in
14885 aix3*)
14886 # AIX sometimes has problems with the GCC collect2 program. For some
14887 # reason, if we set the COLLECT_NAMES environment variable, the problems
14888 # vanish in a puff of smoke.
14889 if test "X${COLLECT_NAMES+set}" != Xset; then
14890 COLLECT_NAMES=
14891 export COLLECT_NAMES
14892 fi
14893 ;;
14894 esac
14895
14896 # Global variables:
14897 ofile=libtool
14898 can_build_shared=yes
14899
14900 # All known linkers require a `.a' archive for static linking (except MSVC,
14901 # which needs '.lib').
14902 libext=a
14903
14904 with_gnu_ld="$lt_cv_prog_gnu_ld"
14905
14906 old_CC="$CC"
14907 old_CFLAGS="$CFLAGS"
14908
14909 # Set sane defaults for various variables
14910 test -z "$CC" && CC=cc
14911 test -z "$LTCC" && LTCC=$CC
14912 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14913 test -z "$LD" && LD=ld
14914 test -z "$ac_objext" && ac_objext=o
14915
14916 for cc_temp in $compiler""; do
14917 case $cc_temp in
14918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14920 \-*) ;;
14921 *) break;;
14922 esac
14923 done
14924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14925
14926
14927 # Only perform the check for file, if the check method requires it
14928 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14929 case $deplibs_check_method in
14930 file_magic*)
14931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14933 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 case $MAGIC_CMD in
14938 [\\/*] | ?:[\\/]*)
14939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14940 ;;
14941 *)
14942 lt_save_MAGIC_CMD="$MAGIC_CMD"
14943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14945 for ac_dir in $ac_dummy; do
14946 IFS="$lt_save_ifs"
14947 test -z "$ac_dir" && ac_dir=.
14948 if test -f $ac_dir/${ac_tool_prefix}file; then
14949 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14950 if test -n "$file_magic_test_file"; then
14951 case $deplibs_check_method in
14952 "file_magic "*)
14953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14956 $EGREP "$file_magic_regex" > /dev/null; then
14957 :
14958 else
14959 cat <<_LT_EOF 1>&2
14960
14961 *** Warning: the command libtool uses to detect shared libraries,
14962 *** $file_magic_cmd, produces output that libtool cannot recognize.
14963 *** The result is that libtool may fail to recognize shared libraries
14964 *** as such. This will affect the creation of libtool libraries that
14965 *** depend on shared libraries, but programs linked with such libtool
14966 *** libraries will work regardless of this problem. Nevertheless, you
14967 *** may want to report the problem to your system manager and/or to
14968 *** bug-libtool@gnu.org
14969
14970 _LT_EOF
14971 fi ;;
14972 esac
14973 fi
14974 break
14975 fi
14976 done
14977 IFS="$lt_save_ifs"
14978 MAGIC_CMD="$lt_save_MAGIC_CMD"
14979 ;;
14980 esac
14981 fi
14982
14983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14984 if test -n "$MAGIC_CMD"; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14986 $as_echo "$MAGIC_CMD" >&6; }
14987 else
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14990 fi
14991
14992
14993
14994
14995
14996 if test -z "$lt_cv_path_MAGIC_CMD"; then
14997 if test -n "$ac_tool_prefix"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14999 $as_echo_n "checking for file... " >&6; }
15000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 case $MAGIC_CMD in
15004 [\\/*] | ?:[\\/]*)
15005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15006 ;;
15007 *)
15008 lt_save_MAGIC_CMD="$MAGIC_CMD"
15009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15011 for ac_dir in $ac_dummy; do
15012 IFS="$lt_save_ifs"
15013 test -z "$ac_dir" && ac_dir=.
15014 if test -f $ac_dir/file; then
15015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15016 if test -n "$file_magic_test_file"; then
15017 case $deplibs_check_method in
15018 "file_magic "*)
15019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15022 $EGREP "$file_magic_regex" > /dev/null; then
15023 :
15024 else
15025 cat <<_LT_EOF 1>&2
15026
15027 *** Warning: the command libtool uses to detect shared libraries,
15028 *** $file_magic_cmd, produces output that libtool cannot recognize.
15029 *** The result is that libtool may fail to recognize shared libraries
15030 *** as such. This will affect the creation of libtool libraries that
15031 *** depend on shared libraries, but programs linked with such libtool
15032 *** libraries will work regardless of this problem. Nevertheless, you
15033 *** may want to report the problem to your system manager and/or to
15034 *** bug-libtool@gnu.org
15035
15036 _LT_EOF
15037 fi ;;
15038 esac
15039 fi
15040 break
15041 fi
15042 done
15043 IFS="$lt_save_ifs"
15044 MAGIC_CMD="$lt_save_MAGIC_CMD"
15045 ;;
15046 esac
15047 fi
15048
15049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15050 if test -n "$MAGIC_CMD"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15052 $as_echo "$MAGIC_CMD" >&6; }
15053 else
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15056 fi
15057
15058
15059 else
15060 MAGIC_CMD=:
15061 fi
15062 fi
15063
15064 fi
15065 ;;
15066 esac
15067
15068 # Use C for the default configuration in the libtool script
15069
15070 lt_save_CC="$CC"
15071 ac_ext=c
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076
15077
15078 # Source file extension for C test sources.
15079 ac_ext=c
15080
15081 # Object file extension for compiled C test sources.
15082 objext=o
15083 objext=$objext
15084
15085 # Code to be used in simple compile tests
15086 lt_simple_compile_test_code="int some_variable = 0;"
15087
15088 # Code to be used in simple link tests
15089 lt_simple_link_test_code='int main(){return(0);}'
15090
15091
15092
15093
15094
15095
15096
15097 # If no C compiler was specified, use CC.
15098 LTCC=${LTCC-"$CC"}
15099
15100 # If no C compiler flags were specified, use CFLAGS.
15101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15102
15103 # Allow CC to be a program name with arguments.
15104 compiler=$CC
15105
15106 # Save the default compiler, since it gets overwritten when the other
15107 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15108 compiler_DEFAULT=$CC
15109
15110 # save warnings/boilerplate of simple test code
15111 ac_outfile=conftest.$ac_objext
15112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15114 _lt_compiler_boilerplate=`cat conftest.err`
15115 $RM conftest*
15116
15117 ac_outfile=conftest.$ac_objext
15118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15120 _lt_linker_boilerplate=`cat conftest.err`
15121 $RM -r conftest*
15122
15123
15124 ## CAVEAT EMPTOR:
15125 ## There is no encapsulation within the following macros, do not change
15126 ## the running order or otherwise move them around unless you know exactly
15127 ## what you are doing...
15128 if test -n "$compiler"; then
15129
15130 lt_prog_compiler_no_builtin_flag=
15131
15132 if test "$GCC" = yes; then
15133 case $cc_basename in
15134 nvcc*)
15135 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15136 *)
15137 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15138 esac
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15141 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 lt_cv_prog_compiler_rtti_exceptions=no
15146 ac_outfile=conftest.$ac_objext
15147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15148 lt_compiler_flag="-fno-rtti -fno-exceptions"
15149 # Insert the option either (1) after the last *FLAGS variable, or
15150 # (2) before a word containing "conftest.", or (3) at the end.
15151 # Note that $ac_compile itself does not contain backslashes and begins
15152 # with a dollar sign (not a hyphen), so the echo should work correctly.
15153 # The option is referenced via a variable to avoid confusing sed.
15154 lt_compile=`echo "$ac_compile" | $SED \
15155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15157 -e 's:$: $lt_compiler_flag:'`
15158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15159 (eval "$lt_compile" 2>conftest.err)
15160 ac_status=$?
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 if (exit $ac_status) && test -s "$ac_outfile"; then
15164 # The compiler can only warn and ignore the option if not recognized
15165 # So say no if there are warnings other than the usual output.
15166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15169 lt_cv_prog_compiler_rtti_exceptions=yes
15170 fi
15171 fi
15172 $RM conftest*
15173
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15176 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15177
15178 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15179 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15180 else
15181 :
15182 fi
15183
15184 fi
15185
15186
15187
15188
15189
15190
15191 lt_prog_compiler_wl=
15192 lt_prog_compiler_pic=
15193 lt_prog_compiler_static=
15194
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15197
15198 if test "$GCC" = yes; then
15199 lt_prog_compiler_wl='-Wl,'
15200 lt_prog_compiler_static='-static'
15201
15202 case $host_os in
15203 aix*)
15204 # All AIX code is PIC.
15205 if test "$host_cpu" = ia64; then
15206 # AIX 5 now supports IA64 processor
15207 lt_prog_compiler_static='-Bstatic'
15208 fi
15209 lt_prog_compiler_pic='-fPIC'
15210 ;;
15211
15212 amigaos*)
15213 case $host_cpu in
15214 powerpc)
15215 # see comment about AmigaOS4 .so support
15216 lt_prog_compiler_pic='-fPIC'
15217 ;;
15218 m68k)
15219 # FIXME: we need at least 68020 code to build shared libraries, but
15220 # adding the `-m68020' flag to GCC prevents building anything better,
15221 # like `-m68040'.
15222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15223 ;;
15224 esac
15225 ;;
15226
15227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15228 # PIC is the default for these OSes.
15229 ;;
15230
15231 mingw* | cygwin* | pw32* | os2* | cegcc*)
15232 # This hack is so that the source file can tell whether it is being
15233 # built for inclusion in a dll (and should export symbols for example).
15234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15235 # (--disable-auto-import) libraries
15236 lt_prog_compiler_pic='-DDLL_EXPORT'
15237 ;;
15238
15239 darwin* | rhapsody*)
15240 # PIC is the default on this platform
15241 # Common symbols not allowed in MH_DYLIB files
15242 lt_prog_compiler_pic='-fno-common'
15243 ;;
15244
15245 haiku*)
15246 # PIC is the default for Haiku.
15247 # The "-static" flag exists, but is broken.
15248 lt_prog_compiler_static=
15249 ;;
15250
15251 hpux*)
15252 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15253 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15254 # sets the default TLS model and affects inlining.
15255 case $host_cpu in
15256 hppa*64*)
15257 # +Z the default
15258 ;;
15259 *)
15260 lt_prog_compiler_pic='-fPIC'
15261 ;;
15262 esac
15263 ;;
15264
15265 interix[3-9]*)
15266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15267 # Instead, we relocate shared libraries at runtime.
15268 ;;
15269
15270 msdosdjgpp*)
15271 # Just because we use GCC doesn't mean we suddenly get shared libraries
15272 # on systems that don't support them.
15273 lt_prog_compiler_can_build_shared=no
15274 enable_shared=no
15275 ;;
15276
15277 *nto* | *qnx*)
15278 # QNX uses GNU C++, but need to define -shared option too, otherwise
15279 # it will coredump.
15280 lt_prog_compiler_pic='-fPIC -shared'
15281 ;;
15282
15283 sysv4*MP*)
15284 if test -d /usr/nec; then
15285 lt_prog_compiler_pic=-Kconform_pic
15286 fi
15287 ;;
15288
15289 *)
15290 lt_prog_compiler_pic='-fPIC'
15291 ;;
15292 esac
15293
15294 case $cc_basename in
15295 nvcc*) # Cuda Compiler Driver 2.2
15296 lt_prog_compiler_wl='-Xlinker '
15297 lt_prog_compiler_pic='-Xcompiler -fPIC'
15298 ;;
15299 esac
15300 else
15301 # PORTME Check for flag to pass linker flags through the system compiler.
15302 case $host_os in
15303 aix*)
15304 lt_prog_compiler_wl='-Wl,'
15305 if test "$host_cpu" = ia64; then
15306 # AIX 5 now supports IA64 processor
15307 lt_prog_compiler_static='-Bstatic'
15308 else
15309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15310 fi
15311 ;;
15312
15313 mingw* | cygwin* | pw32* | os2* | cegcc*)
15314 # This hack is so that the source file can tell whether it is being
15315 # built for inclusion in a dll (and should export symbols for example).
15316 lt_prog_compiler_pic='-DDLL_EXPORT'
15317 ;;
15318
15319 hpux9* | hpux10* | hpux11*)
15320 lt_prog_compiler_wl='-Wl,'
15321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15322 # not for PA HP-UX.
15323 case $host_cpu in
15324 hppa*64*|ia64*)
15325 # +Z the default
15326 ;;
15327 *)
15328 lt_prog_compiler_pic='+Z'
15329 ;;
15330 esac
15331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15332 lt_prog_compiler_static='${wl}-a ${wl}archive'
15333 ;;
15334
15335 irix5* | irix6* | nonstopux*)
15336 lt_prog_compiler_wl='-Wl,'
15337 # PIC (with -KPIC) is the default.
15338 lt_prog_compiler_static='-non_shared'
15339 ;;
15340
15341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15342 case $cc_basename in
15343 # old Intel for x86_64 which still supported -KPIC.
15344 ecc*)
15345 lt_prog_compiler_wl='-Wl,'
15346 lt_prog_compiler_pic='-KPIC'
15347 lt_prog_compiler_static='-static'
15348 ;;
15349 # icc used to be incompatible with GCC.
15350 # ICC 10 doesn't accept -KPIC any more.
15351 icc* | ifort*)
15352 lt_prog_compiler_wl='-Wl,'
15353 lt_prog_compiler_pic='-fPIC'
15354 lt_prog_compiler_static='-static'
15355 ;;
15356 # Lahey Fortran 8.1.
15357 lf95*)
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='--shared'
15360 lt_prog_compiler_static='--static'
15361 ;;
15362 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15363 # Portland Group compilers (*not* the Pentium gcc compiler,
15364 # which looks to be a dead project)
15365 lt_prog_compiler_wl='-Wl,'
15366 lt_prog_compiler_pic='-fpic'
15367 lt_prog_compiler_static='-Bstatic'
15368 ;;
15369 ccc*)
15370 lt_prog_compiler_wl='-Wl,'
15371 # All Alpha code is PIC.
15372 lt_prog_compiler_static='-non_shared'
15373 ;;
15374 xl* | bgxl* | bgf* | mpixl*)
15375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15376 lt_prog_compiler_wl='-Wl,'
15377 lt_prog_compiler_pic='-qpic'
15378 lt_prog_compiler_static='-qstaticlink'
15379 ;;
15380 *)
15381 case `$CC -V 2>&1 | sed 5q` in
15382 *Sun\ F* | *Sun*Fortran*)
15383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15384 lt_prog_compiler_pic='-KPIC'
15385 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_wl=''
15387 ;;
15388 *Sun\ C*)
15389 # Sun C 5.9
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_wl='-Wl,'
15393 ;;
15394 esac
15395 ;;
15396 esac
15397 ;;
15398
15399 newsos6)
15400 lt_prog_compiler_pic='-KPIC'
15401 lt_prog_compiler_static='-Bstatic'
15402 ;;
15403
15404 *nto* | *qnx*)
15405 # QNX uses GNU C++, but need to define -shared option too, otherwise
15406 # it will coredump.
15407 lt_prog_compiler_pic='-fPIC -shared'
15408 ;;
15409
15410 osf3* | osf4* | osf5*)
15411 lt_prog_compiler_wl='-Wl,'
15412 # All OSF/1 code is PIC.
15413 lt_prog_compiler_static='-non_shared'
15414 ;;
15415
15416 rdos*)
15417 lt_prog_compiler_static='-non_shared'
15418 ;;
15419
15420 solaris*)
15421 lt_prog_compiler_pic='-KPIC'
15422 lt_prog_compiler_static='-Bstatic'
15423 case $cc_basename in
15424 f77* | f90* | f95*)
15425 lt_prog_compiler_wl='-Qoption ld ';;
15426 *)
15427 lt_prog_compiler_wl='-Wl,';;
15428 esac
15429 ;;
15430
15431 sunos4*)
15432 lt_prog_compiler_wl='-Qoption ld '
15433 lt_prog_compiler_pic='-PIC'
15434 lt_prog_compiler_static='-Bstatic'
15435 ;;
15436
15437 sysv4 | sysv4.2uw2* | sysv4.3*)
15438 lt_prog_compiler_wl='-Wl,'
15439 lt_prog_compiler_pic='-KPIC'
15440 lt_prog_compiler_static='-Bstatic'
15441 ;;
15442
15443 sysv4*MP*)
15444 if test -d /usr/nec ;then
15445 lt_prog_compiler_pic='-Kconform_pic'
15446 lt_prog_compiler_static='-Bstatic'
15447 fi
15448 ;;
15449
15450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_pic='-KPIC'
15453 lt_prog_compiler_static='-Bstatic'
15454 ;;
15455
15456 unicos*)
15457 lt_prog_compiler_wl='-Wl,'
15458 lt_prog_compiler_can_build_shared=no
15459 ;;
15460
15461 uts4*)
15462 lt_prog_compiler_pic='-pic'
15463 lt_prog_compiler_static='-Bstatic'
15464 ;;
15465
15466 *)
15467 lt_prog_compiler_can_build_shared=no
15468 ;;
15469 esac
15470 fi
15471
15472 case $host_os in
15473 # For platforms which do not support PIC, -DPIC is meaningless:
15474 *djgpp*)
15475 lt_prog_compiler_pic=
15476 ;;
15477 *)
15478 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15479 ;;
15480 esac
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15482 $as_echo "$lt_prog_compiler_pic" >&6; }
15483
15484
15485
15486
15487
15488
15489 #
15490 # Check to make sure the PIC flag actually works.
15491 #
15492 if test -n "$lt_prog_compiler_pic"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15495 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 lt_cv_prog_compiler_pic_works=no
15499 ac_outfile=conftest.$ac_objext
15500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15501 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15502 # Insert the option either (1) after the last *FLAGS variable, or
15503 # (2) before a word containing "conftest.", or (3) at the end.
15504 # Note that $ac_compile itself does not contain backslashes and begins
15505 # with a dollar sign (not a hyphen), so the echo should work correctly.
15506 # The option is referenced via a variable to avoid confusing sed.
15507 lt_compile=`echo "$ac_compile" | $SED \
15508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15510 -e 's:$: $lt_compiler_flag:'`
15511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15512 (eval "$lt_compile" 2>conftest.err)
15513 ac_status=$?
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 if (exit $ac_status) && test -s "$ac_outfile"; then
15517 # The compiler can only warn and ignore the option if not recognized
15518 # So say no if there are warnings other than the usual output.
15519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15522 lt_cv_prog_compiler_pic_works=yes
15523 fi
15524 fi
15525 $RM conftest*
15526
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15529 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15530
15531 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15532 case $lt_prog_compiler_pic in
15533 "" | " "*) ;;
15534 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15535 esac
15536 else
15537 lt_prog_compiler_pic=
15538 lt_prog_compiler_can_build_shared=no
15539 fi
15540
15541 fi
15542
15543
15544
15545
15546
15547
15548 #
15549 # Check to make sure the static flag actually works.
15550 #
15551 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15553 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15554 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 lt_cv_prog_compiler_static_works=no
15558 save_LDFLAGS="$LDFLAGS"
15559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15562 # The linker can only warn and ignore the option if not recognized
15563 # So say no if there are warnings
15564 if test -s conftest.err; then
15565 # Append any errors to the config.log.
15566 cat conftest.err 1>&5
15567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15569 if diff conftest.exp conftest.er2 >/dev/null; then
15570 lt_cv_prog_compiler_static_works=yes
15571 fi
15572 else
15573 lt_cv_prog_compiler_static_works=yes
15574 fi
15575 fi
15576 $RM -r conftest*
15577 LDFLAGS="$save_LDFLAGS"
15578
15579 fi
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15581 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15582
15583 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15584 :
15585 else
15586 lt_prog_compiler_static=
15587 fi
15588
15589
15590
15591
15592
15593
15594
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 lt_cv_prog_compiler_c_o=no
15601 $RM -r conftest 2>/dev/null
15602 mkdir conftest
15603 cd conftest
15604 mkdir out
15605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15606
15607 lt_compiler_flag="-o out/conftest2.$ac_objext"
15608 # Insert the option either (1) after the last *FLAGS variable, or
15609 # (2) before a word containing "conftest.", or (3) at the end.
15610 # Note that $ac_compile itself does not contain backslashes and begins
15611 # with a dollar sign (not a hyphen), so the echo should work correctly.
15612 lt_compile=`echo "$ac_compile" | $SED \
15613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15615 -e 's:$: $lt_compiler_flag:'`
15616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15617 (eval "$lt_compile" 2>out/conftest.err)
15618 ac_status=$?
15619 cat out/conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15622 then
15623 # The compiler can only warn and ignore the option if not recognized
15624 # So say no if there are warnings
15625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15628 lt_cv_prog_compiler_c_o=yes
15629 fi
15630 fi
15631 chmod u+w . 2>&5
15632 $RM conftest*
15633 # SGI C++ compiler will create directory out/ii_files/ for
15634 # template instantiation
15635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15636 $RM out/* && rmdir out
15637 cd ..
15638 $RM -r conftest
15639 $RM conftest*
15640
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15644
15645
15646
15647
15648
15649
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15652 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15654 else
15655 lt_cv_prog_compiler_c_o=no
15656 $RM -r conftest 2>/dev/null
15657 mkdir conftest
15658 cd conftest
15659 mkdir out
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15661
15662 lt_compiler_flag="-o out/conftest2.$ac_objext"
15663 # Insert the option either (1) after the last *FLAGS variable, or
15664 # (2) before a word containing "conftest.", or (3) at the end.
15665 # Note that $ac_compile itself does not contain backslashes and begins
15666 # with a dollar sign (not a hyphen), so the echo should work correctly.
15667 lt_compile=`echo "$ac_compile" | $SED \
15668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15670 -e 's:$: $lt_compiler_flag:'`
15671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15672 (eval "$lt_compile" 2>out/conftest.err)
15673 ac_status=$?
15674 cat out/conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15677 then
15678 # The compiler can only warn and ignore the option if not recognized
15679 # So say no if there are warnings
15680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15683 lt_cv_prog_compiler_c_o=yes
15684 fi
15685 fi
15686 chmod u+w . 2>&5
15687 $RM conftest*
15688 # SGI C++ compiler will create directory out/ii_files/ for
15689 # template instantiation
15690 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15691 $RM out/* && rmdir out
15692 cd ..
15693 $RM -r conftest
15694 $RM conftest*
15695
15696 fi
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15699
15700
15701
15702
15703 hard_links="nottested"
15704 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15705 # do not overwrite the value of need_locks provided by the user
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15707 $as_echo_n "checking if we can lock with hard links... " >&6; }
15708 hard_links=yes
15709 $RM conftest*
15710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15711 touch conftest.a
15712 ln conftest.a conftest.b 2>&5 || hard_links=no
15713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15715 $as_echo "$hard_links" >&6; }
15716 if test "$hard_links" = no; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15718 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15719 need_locks=warn
15720 fi
15721 else
15722 need_locks=no
15723 fi
15724
15725
15726
15727
15728
15729
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15732
15733 runpath_var=
15734 allow_undefined_flag=
15735 always_export_symbols=no
15736 archive_cmds=
15737 archive_expsym_cmds=
15738 compiler_needs_object=no
15739 enable_shared_with_static_runtimes=no
15740 export_dynamic_flag_spec=
15741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15742 hardcode_automatic=no
15743 hardcode_direct=no
15744 hardcode_direct_absolute=no
15745 hardcode_libdir_flag_spec=
15746 hardcode_libdir_flag_spec_ld=
15747 hardcode_libdir_separator=
15748 hardcode_minus_L=no
15749 hardcode_shlibpath_var=unsupported
15750 inherit_rpath=no
15751 link_all_deplibs=unknown
15752 module_cmds=
15753 module_expsym_cmds=
15754 old_archive_from_new_cmds=
15755 old_archive_from_expsyms_cmds=
15756 thread_safe_flag_spec=
15757 whole_archive_flag_spec=
15758 # include_expsyms should be a list of space-separated symbols to be *always*
15759 # included in the symbol list
15760 include_expsyms=
15761 # exclude_expsyms can be an extended regexp of symbols to exclude
15762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15764 # as well as any symbol that contains `d'.
15765 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15767 # platforms (ab)use it in PIC code, but their linkers get confused if
15768 # the symbol is explicitly referenced. Since portable code cannot
15769 # rely on this symbol name, it's probably fine to never include it in
15770 # preloaded symbol tables.
15771 # Exclude shared library initialization/finalization symbols.
15772 extract_expsyms_cmds=
15773
15774 case $host_os in
15775 cygwin* | mingw* | pw32* | cegcc*)
15776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15777 # When not using gcc, we currently assume that we are using
15778 # Microsoft Visual C++.
15779 if test "$GCC" != yes; then
15780 with_gnu_ld=no
15781 fi
15782 ;;
15783 interix*)
15784 # we just hope/assume this is gcc and not c89 (= MSVC++)
15785 with_gnu_ld=yes
15786 ;;
15787 openbsd*)
15788 with_gnu_ld=no
15789 ;;
15790 esac
15791
15792 ld_shlibs=yes
15793
15794 # On some targets, GNU ld is compatible enough with the native linker
15795 # that we're better off using the native interface for both.
15796 lt_use_gnu_ld_interface=no
15797 if test "$with_gnu_ld" = yes; then
15798 case $host_os in
15799 aix*)
15800 # The AIX port of GNU ld has always aspired to compatibility
15801 # with the native linker. However, as the warning in the GNU ld
15802 # block says, versions before 2.19.5* couldn't really create working
15803 # shared libraries, regardless of the interface used.
15804 case `$LD -v 2>&1` in
15805 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15806 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15807 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15808 *)
15809 lt_use_gnu_ld_interface=yes
15810 ;;
15811 esac
15812 ;;
15813 *)
15814 lt_use_gnu_ld_interface=yes
15815 ;;
15816 esac
15817 fi
15818
15819 if test "$lt_use_gnu_ld_interface" = yes; then
15820 # If archive_cmds runs LD, not CC, wlarc should be empty
15821 wlarc='${wl}'
15822
15823 # Set some defaults for GNU ld with shared library support. These
15824 # are reset later if shared libraries are not supported. Putting them
15825 # here allows them to be overridden if necessary.
15826 runpath_var=LD_RUN_PATH
15827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15828 export_dynamic_flag_spec='${wl}--export-dynamic'
15829 # ancient GNU ld didn't support --whole-archive et. al.
15830 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15832 else
15833 whole_archive_flag_spec=
15834 fi
15835 supports_anon_versioning=no
15836 case `$LD -v 2>&1` in
15837 *GNU\ gold*) supports_anon_versioning=yes ;;
15838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15841 *\ 2.11.*) ;; # other 2.11 versions
15842 *) supports_anon_versioning=yes ;;
15843 esac
15844
15845 # See if GNU ld supports shared libraries.
15846 case $host_os in
15847 aix[3-9]*)
15848 # On AIX/PPC, the GNU linker is very broken
15849 if test "$host_cpu" != ia64; then
15850 ld_shlibs=no
15851 cat <<_LT_EOF 1>&2
15852
15853 *** Warning: the GNU linker, at least up to release 2.19, is reported
15854 *** to be unable to reliably create shared libraries on AIX.
15855 *** Therefore, libtool is disabling shared libraries support. If you
15856 *** really care for shared libraries, you may want to install binutils
15857 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15858 *** You will then need to restart the configuration process.
15859
15860 _LT_EOF
15861 fi
15862 ;;
15863
15864 amigaos*)
15865 case $host_cpu in
15866 powerpc)
15867 # see comment about AmigaOS4 .so support
15868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869 archive_expsym_cmds=''
15870 ;;
15871 m68k)
15872 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)'
15873 hardcode_libdir_flag_spec='-L$libdir'
15874 hardcode_minus_L=yes
15875 ;;
15876 esac
15877 ;;
15878
15879 beos*)
15880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15881 allow_undefined_flag=unsupported
15882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15883 # support --undefined. This deserves some investigation. FIXME
15884 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 else
15886 ld_shlibs=no
15887 fi
15888 ;;
15889
15890 cygwin* | mingw* | pw32* | cegcc*)
15891 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15892 # as there is no search path for DLLs.
15893 hardcode_libdir_flag_spec='-L$libdir'
15894 export_dynamic_flag_spec='${wl}--export-all-symbols'
15895 allow_undefined_flag=unsupported
15896 always_export_symbols=no
15897 enable_shared_with_static_runtimes=yes
15898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15899
15900 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15902 # If the export-symbols file already is a .def file (1st line
15903 # is EXPORTS), use it as is; otherwise, prepend...
15904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15905 cp $export_symbols $output_objdir/$soname.def;
15906 else
15907 echo EXPORTS > $output_objdir/$soname.def;
15908 cat $export_symbols >> $output_objdir/$soname.def;
15909 fi~
15910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15911 else
15912 ld_shlibs=no
15913 fi
15914 ;;
15915
15916 haiku*)
15917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 link_all_deplibs=yes
15919 ;;
15920
15921 interix[3-9]*)
15922 hardcode_direct=no
15923 hardcode_shlibpath_var=no
15924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15925 export_dynamic_flag_spec='${wl}-E'
15926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15927 # Instead, shared libraries are loaded at an image base (0x10000000 by
15928 # default) and relocated if they conflict, which is a slow very memory
15929 # consuming and fragmenting process. To avoid this, we pick a random,
15930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15933 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'
15934 ;;
15935
15936 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15937 tmp_diet=no
15938 if test "$host_os" = linux-dietlibc; then
15939 case $cc_basename in
15940 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15941 esac
15942 fi
15943 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15944 && test "$tmp_diet" = no
15945 then
15946 tmp_addflag=' $pic_flag'
15947 tmp_sharedflag='-shared'
15948 case $cc_basename,$host_cpu in
15949 pgcc*) # Portland Group C compiler
15950 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'
15951 tmp_addflag=' $pic_flag'
15952 ;;
15953 pgf77* | pgf90* | pgf95* | pgfortran*)
15954 # Portland Group f77 and f90 compilers
15955 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'
15956 tmp_addflag=' $pic_flag -Mnomain' ;;
15957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15958 tmp_addflag=' -i_dynamic' ;;
15959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15960 tmp_addflag=' -i_dynamic -nofor_main' ;;
15961 ifc* | ifort*) # Intel Fortran compiler
15962 tmp_addflag=' -nofor_main' ;;
15963 lf95*) # Lahey Fortran 8.1
15964 whole_archive_flag_spec=
15965 tmp_sharedflag='--shared' ;;
15966 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15967 tmp_sharedflag='-qmkshrobj'
15968 tmp_addflag= ;;
15969 nvcc*) # Cuda Compiler Driver 2.2
15970 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'
15971 compiler_needs_object=yes
15972 ;;
15973 esac
15974 case `$CC -V 2>&1 | sed 5q` in
15975 *Sun\ C*) # Sun C 5.9
15976 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'
15977 compiler_needs_object=yes
15978 tmp_sharedflag='-G' ;;
15979 *Sun\ F*) # Sun Fortran 8.3
15980 tmp_sharedflag='-G' ;;
15981 esac
15982 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15983
15984 if test "x$supports_anon_versioning" = xyes; then
15985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15987 echo "local: *; };" >> $output_objdir/$libname.ver~
15988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15989 fi
15990
15991 case $cc_basename in
15992 xlf* | bgf* | bgxlf* | mpixlf*)
15993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15994 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15995 hardcode_libdir_flag_spec=
15996 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15997 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15998 if test "x$supports_anon_versioning" = xyes; then
15999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16001 echo "local: *; };" >> $output_objdir/$libname.ver~
16002 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16003 fi
16004 ;;
16005 esac
16006 else
16007 ld_shlibs=no
16008 fi
16009 ;;
16010
16011 netbsd*)
16012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16013 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16014 wlarc=
16015 else
16016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16018 fi
16019 ;;
16020
16021 solaris*)
16022 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16023 ld_shlibs=no
16024 cat <<_LT_EOF 1>&2
16025
16026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16027 *** create shared libraries on Solaris systems. Therefore, libtool
16028 *** is disabling shared libraries support. We urge you to upgrade GNU
16029 *** binutils to release 2.9.1 or newer. Another option is to modify
16030 *** your PATH or compiler configuration so that the native linker is
16031 *** used, and then restart.
16032
16033 _LT_EOF
16034 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037 else
16038 ld_shlibs=no
16039 fi
16040 ;;
16041
16042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16043 case `$LD -v 2>&1` in
16044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16045 ld_shlibs=no
16046 cat <<_LT_EOF 1>&2
16047
16048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16049 *** reliably create shared libraries on SCO systems. Therefore, libtool
16050 *** is disabling shared libraries support. We urge you to upgrade GNU
16051 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16052 *** your PATH or compiler configuration so that the native linker is
16053 *** used, and then restart.
16054
16055 _LT_EOF
16056 ;;
16057 *)
16058 # For security reasons, it is highly recommended that you always
16059 # use absolute paths for naming shared libraries, and exclude the
16060 # DT_RUNPATH tag from executables and libraries. But doing so
16061 # requires that you compile everything twice, which is a pain.
16062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16066 else
16067 ld_shlibs=no
16068 fi
16069 ;;
16070 esac
16071 ;;
16072
16073 sunos4*)
16074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16075 wlarc=
16076 hardcode_direct=yes
16077 hardcode_shlibpath_var=no
16078 ;;
16079
16080 *)
16081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 else
16085 ld_shlibs=no
16086 fi
16087 ;;
16088 esac
16089
16090 if test "$ld_shlibs" = no; then
16091 runpath_var=
16092 hardcode_libdir_flag_spec=
16093 export_dynamic_flag_spec=
16094 whole_archive_flag_spec=
16095 fi
16096 else
16097 # PORTME fill in a description of your system's linker (not GNU ld)
16098 case $host_os in
16099 aix3*)
16100 allow_undefined_flag=unsupported
16101 always_export_symbols=yes
16102 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'
16103 # Note: this linker hardcodes the directories in LIBPATH if there
16104 # are no directories specified by -L.
16105 hardcode_minus_L=yes
16106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16107 # Neither direct hardcoding nor static linking is supported with a
16108 # broken collect2.
16109 hardcode_direct=unsupported
16110 fi
16111 ;;
16112
16113 aix[4-9]*)
16114 if test "$host_cpu" = ia64; then
16115 # On IA64, the linker does run time linking by default, so we don't
16116 # have to do anything special.
16117 aix_use_runtimelinking=no
16118 exp_sym_flag='-Bexport'
16119 no_entry_flag=""
16120 else
16121 # If we're using GNU nm, then we don't want the "-C" option.
16122 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16123 # Also, AIX nm treats weak defined symbols like other global
16124 # defined symbols, whereas GNU nm marks them as "W".
16125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16126 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'
16127 else
16128 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'
16129 fi
16130 aix_use_runtimelinking=no
16131
16132 # Test if we are trying to use run time linking or normal
16133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16134 # need to do runtime linking.
16135 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16136 for ld_flag in $LDFLAGS; do
16137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16138 aix_use_runtimelinking=yes
16139 break
16140 fi
16141 done
16142 ;;
16143 esac
16144
16145 exp_sym_flag='-bexport'
16146 no_entry_flag='-bnoentry'
16147 fi
16148
16149 # When large executables or shared objects are built, AIX ld can
16150 # have problems creating the table of contents. If linking a library
16151 # or program results in "error TOC overflow" add -mminimal-toc to
16152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16154
16155 archive_cmds=''
16156 hardcode_direct=yes
16157 hardcode_direct_absolute=yes
16158 hardcode_libdir_separator=':'
16159 link_all_deplibs=yes
16160 file_list_spec='${wl}-f,'
16161
16162 if test "$GCC" = yes; then
16163 case $host_os in aix4.[012]|aix4.[012].*)
16164 # We only want to do this on AIX 4.2 and lower, the check
16165 # below for broken collect2 doesn't work under 4.3+
16166 collect2name=`${CC} -print-prog-name=collect2`
16167 if test -f "$collect2name" &&
16168 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16169 then
16170 # We have reworked collect2
16171 :
16172 else
16173 # We have old collect2
16174 hardcode_direct=unsupported
16175 # It fails to find uninstalled libraries when the uninstalled
16176 # path is not listed in the libpath. Setting hardcode_minus_L
16177 # to unsupported forces relinking
16178 hardcode_minus_L=yes
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_libdir_separator=
16181 fi
16182 ;;
16183 esac
16184 shared_flag='-shared'
16185 if test "$aix_use_runtimelinking" = yes; then
16186 shared_flag="$shared_flag "'${wl}-G'
16187 fi
16188 else
16189 # not using gcc
16190 if test "$host_cpu" = ia64; then
16191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16192 # chokes on -Wl,-G. The following line is correct:
16193 shared_flag='-G'
16194 else
16195 if test "$aix_use_runtimelinking" = yes; then
16196 shared_flag='${wl}-G'
16197 else
16198 shared_flag='${wl}-bM:SRE'
16199 fi
16200 fi
16201 fi
16202
16203 export_dynamic_flag_spec='${wl}-bexpall'
16204 # It seems that -bexpall does not export symbols beginning with
16205 # underscore (_), so it is better to generate a list of symbols to export.
16206 always_export_symbols=yes
16207 if test "$aix_use_runtimelinking" = yes; then
16208 # Warning - without using the other runtime loading flags (-brtl),
16209 # -berok will link without error, but may produce a broken library.
16210 allow_undefined_flag='-berok'
16211 # Determine the default libpath from the value encoded in an
16212 # empty executable.
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215
16216 int
16217 main ()
16218 {
16219
16220 ;
16221 return 0;
16222 }
16223 _ACEOF
16224 if ac_fn_c_try_link "$LINENO"; then :
16225
16226 lt_aix_libpath_sed='
16227 /Import File Strings/,/^$/ {
16228 /^0/ {
16229 s/^0 *\(.*\)$/\1/
16230 p
16231 }
16232 }'
16233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16234 # Check for a 64-bit object if we didn't find anything.
16235 if test -z "$aix_libpath"; then
16236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16237 fi
16238 fi
16239 rm -f core conftest.err conftest.$ac_objext \
16240 conftest$ac_exeext conftest.$ac_ext
16241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16242
16243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16244 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"
16245 else
16246 if test "$host_cpu" = ia64; then
16247 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16248 allow_undefined_flag="-z nodefs"
16249 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"
16250 else
16251 # Determine the default libpath from the value encoded in an
16252 # empty executable.
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255
16256 int
16257 main ()
16258 {
16259
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16265
16266 lt_aix_libpath_sed='
16267 /Import File Strings/,/^$/ {
16268 /^0/ {
16269 s/^0 *\(.*\)$/\1/
16270 p
16271 }
16272 }'
16273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16274 # Check for a 64-bit object if we didn't find anything.
16275 if test -z "$aix_libpath"; then
16276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16277 fi
16278 fi
16279 rm -f core conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16282
16283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16284 # Warning - without using the other run time loading flags,
16285 # -berok will link without error, but may produce a broken library.
16286 no_undefined_flag=' ${wl}-bernotok'
16287 allow_undefined_flag=' ${wl}-berok'
16288 if test "$with_gnu_ld" = yes; then
16289 # We only use this code for GNU lds that support --whole-archive.
16290 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16291 else
16292 # Exported symbols can be pulled into shared objects from archives
16293 whole_archive_flag_spec='$convenience'
16294 fi
16295 archive_cmds_need_lc=yes
16296 # This is similar to how AIX traditionally builds its shared libraries.
16297 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'
16298 fi
16299 fi
16300 ;;
16301
16302 amigaos*)
16303 case $host_cpu in
16304 powerpc)
16305 # see comment about AmigaOS4 .so support
16306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16307 archive_expsym_cmds=''
16308 ;;
16309 m68k)
16310 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)'
16311 hardcode_libdir_flag_spec='-L$libdir'
16312 hardcode_minus_L=yes
16313 ;;
16314 esac
16315 ;;
16316
16317 bsdi[45]*)
16318 export_dynamic_flag_spec=-rdynamic
16319 ;;
16320
16321 cygwin* | mingw* | pw32* | cegcc*)
16322 # When not using gcc, we currently assume that we are using
16323 # Microsoft Visual C++.
16324 # hardcode_libdir_flag_spec is actually meaningless, as there is
16325 # no search path for DLLs.
16326 hardcode_libdir_flag_spec=' '
16327 allow_undefined_flag=unsupported
16328 # Tell ltmain to make .lib files, not .a files.
16329 libext=lib
16330 # Tell ltmain to make .dll files, not .so files.
16331 shrext_cmds=".dll"
16332 # FIXME: Setting linknames here is a bad hack.
16333 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16334 # The linker will automatically build a .lib file if we build a DLL.
16335 old_archive_from_new_cmds='true'
16336 # FIXME: Should let the user specify the lib program.
16337 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16338 fix_srcfile_path='`cygpath -w "$srcfile"`'
16339 enable_shared_with_static_runtimes=yes
16340 ;;
16341
16342 darwin* | rhapsody*)
16343
16344
16345 archive_cmds_need_lc=no
16346 hardcode_direct=no
16347 hardcode_automatic=yes
16348 hardcode_shlibpath_var=unsupported
16349 if test "$lt_cv_ld_force_load" = "yes"; then
16350 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\"`'
16351 else
16352 whole_archive_flag_spec=''
16353 fi
16354 link_all_deplibs=yes
16355 allow_undefined_flag="$_lt_dar_allow_undefined"
16356 case $cc_basename in
16357 ifort*) _lt_dar_can_shared=yes ;;
16358 *) _lt_dar_can_shared=$GCC ;;
16359 esac
16360 if test "$_lt_dar_can_shared" = "yes"; then
16361 output_verbose_link_cmd=func_echo_all
16362 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16363 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16364 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}"
16365 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}"
16366
16367 else
16368 ld_shlibs=no
16369 fi
16370
16371 ;;
16372
16373 dgux*)
16374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_libdir_flag_spec='-L$libdir'
16376 hardcode_shlibpath_var=no
16377 ;;
16378
16379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16380 # support. Future versions do this automatically, but an explicit c++rt0.o
16381 # does not break anything, and helps significantly (at the cost of a little
16382 # extra space).
16383 freebsd2.2*)
16384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16385 hardcode_libdir_flag_spec='-R$libdir'
16386 hardcode_direct=yes
16387 hardcode_shlibpath_var=no
16388 ;;
16389
16390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16391 freebsd2.*)
16392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16393 hardcode_direct=yes
16394 hardcode_minus_L=yes
16395 hardcode_shlibpath_var=no
16396 ;;
16397
16398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16399 freebsd* | dragonfly*)
16400 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16401 hardcode_libdir_flag_spec='-R$libdir'
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16404 ;;
16405
16406 hpux9*)
16407 if test "$GCC" = yes; then
16408 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'
16409 else
16410 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'
16411 fi
16412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414 hardcode_direct=yes
16415
16416 # hardcode_minus_L: Not really in the search PATH,
16417 # but as the default location of the library.
16418 hardcode_minus_L=yes
16419 export_dynamic_flag_spec='${wl}-E'
16420 ;;
16421
16422 hpux10*)
16423 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16425 else
16426 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16427 fi
16428 if test "$with_gnu_ld" = no; then
16429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16430 hardcode_libdir_flag_spec_ld='+b $libdir'
16431 hardcode_libdir_separator=:
16432 hardcode_direct=yes
16433 hardcode_direct_absolute=yes
16434 export_dynamic_flag_spec='${wl}-E'
16435 # hardcode_minus_L: Not really in the search PATH,
16436 # but as the default location of the library.
16437 hardcode_minus_L=yes
16438 fi
16439 ;;
16440
16441 hpux11*)
16442 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16443 case $host_cpu in
16444 hppa*64*)
16445 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446 ;;
16447 ia64*)
16448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16449 ;;
16450 *)
16451 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16452 ;;
16453 esac
16454 else
16455 case $host_cpu in
16456 hppa*64*)
16457 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16458 ;;
16459 ia64*)
16460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16461 ;;
16462 *)
16463
16464 # Older versions of the 11.00 compiler do not understand -b yet
16465 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16467 $as_echo_n "checking if $CC understands -b... " >&6; }
16468 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 lt_cv_prog_compiler__b=no
16472 save_LDFLAGS="$LDFLAGS"
16473 LDFLAGS="$LDFLAGS -b"
16474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16476 # The linker can only warn and ignore the option if not recognized
16477 # So say no if there are warnings
16478 if test -s conftest.err; then
16479 # Append any errors to the config.log.
16480 cat conftest.err 1>&5
16481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16483 if diff conftest.exp conftest.er2 >/dev/null; then
16484 lt_cv_prog_compiler__b=yes
16485 fi
16486 else
16487 lt_cv_prog_compiler__b=yes
16488 fi
16489 fi
16490 $RM -r conftest*
16491 LDFLAGS="$save_LDFLAGS"
16492
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16495 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16496
16497 if test x"$lt_cv_prog_compiler__b" = xyes; then
16498 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16499 else
16500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16501 fi
16502
16503 ;;
16504 esac
16505 fi
16506 if test "$with_gnu_ld" = no; then
16507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16508 hardcode_libdir_separator=:
16509
16510 case $host_cpu in
16511 hppa*64*|ia64*)
16512 hardcode_direct=no
16513 hardcode_shlibpath_var=no
16514 ;;
16515 *)
16516 hardcode_direct=yes
16517 hardcode_direct_absolute=yes
16518 export_dynamic_flag_spec='${wl}-E'
16519
16520 # hardcode_minus_L: Not really in the search PATH,
16521 # but as the default location of the library.
16522 hardcode_minus_L=yes
16523 ;;
16524 esac
16525 fi
16526 ;;
16527
16528 irix5* | irix6* | nonstopux*)
16529 if test "$GCC" = yes; then
16530 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'
16531 # Try to use the -exported_symbol ld option, if it does not
16532 # work, assume that -exports_file does not work either and
16533 # implicitly export all symbols.
16534 save_LDFLAGS="$LDFLAGS"
16535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 int foo(void) {}
16539 _ACEOF
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 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'
16542
16543 fi
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16546 LDFLAGS="$save_LDFLAGS"
16547 else
16548 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'
16549 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'
16550 fi
16551 archive_cmds_need_lc='no'
16552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16553 hardcode_libdir_separator=:
16554 inherit_rpath=yes
16555 link_all_deplibs=yes
16556 ;;
16557
16558 netbsd*)
16559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16561 else
16562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16563 fi
16564 hardcode_libdir_flag_spec='-R$libdir'
16565 hardcode_direct=yes
16566 hardcode_shlibpath_var=no
16567 ;;
16568
16569 newsos6)
16570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_direct=yes
16572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16573 hardcode_libdir_separator=:
16574 hardcode_shlibpath_var=no
16575 ;;
16576
16577 *nto* | *qnx*)
16578 ;;
16579
16580 openbsd*)
16581 if test -f /usr/libexec/ld.so; then
16582 hardcode_direct=yes
16583 hardcode_shlibpath_var=no
16584 hardcode_direct_absolute=yes
16585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16587 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16588 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16589 export_dynamic_flag_spec='${wl}-E'
16590 else
16591 case $host_os in
16592 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_libdir_flag_spec='-R$libdir'
16595 ;;
16596 *)
16597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16599 ;;
16600 esac
16601 fi
16602 else
16603 ld_shlibs=no
16604 fi
16605 ;;
16606
16607 os2*)
16608 hardcode_libdir_flag_spec='-L$libdir'
16609 hardcode_minus_L=yes
16610 allow_undefined_flag=unsupported
16611 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'
16612 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16613 ;;
16614
16615 osf3*)
16616 if test "$GCC" = yes; then
16617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16618 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'
16619 else
16620 allow_undefined_flag=' -expect_unresolved \*'
16621 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'
16622 fi
16623 archive_cmds_need_lc='no'
16624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16625 hardcode_libdir_separator=:
16626 ;;
16627
16628 osf4* | osf5*) # as osf3* with the addition of -msym flag
16629 if test "$GCC" = yes; then
16630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16631 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'
16632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16633 else
16634 allow_undefined_flag=' -expect_unresolved \*'
16635 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'
16636 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~
16637 $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'
16638
16639 # Both c and cxx compiler support -rpath directly
16640 hardcode_libdir_flag_spec='-rpath $libdir'
16641 fi
16642 archive_cmds_need_lc='no'
16643 hardcode_libdir_separator=:
16644 ;;
16645
16646 solaris*)
16647 no_undefined_flag=' -z defs'
16648 if test "$GCC" = yes; then
16649 wlarc='${wl}'
16650 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16652 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16653 else
16654 case `$CC -V 2>&1` in
16655 *"Compilers 5.0"*)
16656 wlarc=''
16657 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16660 ;;
16661 *)
16662 wlarc='${wl}'
16663 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16665 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16666 ;;
16667 esac
16668 fi
16669 hardcode_libdir_flag_spec='-R$libdir'
16670 hardcode_shlibpath_var=no
16671 case $host_os in
16672 solaris2.[0-5] | solaris2.[0-5].*) ;;
16673 *)
16674 # The compiler driver will combine and reorder linker options,
16675 # but understands `-z linker_flag'. GCC discards it without `$wl',
16676 # but is careful enough not to reorder.
16677 # Supported since Solaris 2.6 (maybe 2.5.1?)
16678 if test "$GCC" = yes; then
16679 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16680 else
16681 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16682 fi
16683 ;;
16684 esac
16685 link_all_deplibs=yes
16686 ;;
16687
16688 sunos4*)
16689 if test "x$host_vendor" = xsequent; then
16690 # Use $CC to link under sequent, because it throws in some extra .o
16691 # files that make .init and .fini sections work.
16692 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16693 else
16694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16695 fi
16696 hardcode_libdir_flag_spec='-L$libdir'
16697 hardcode_direct=yes
16698 hardcode_minus_L=yes
16699 hardcode_shlibpath_var=no
16700 ;;
16701
16702 sysv4)
16703 case $host_vendor in
16704 sni)
16705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_direct=yes # is this really true???
16707 ;;
16708 siemens)
16709 ## LD is ld it makes a PLAMLIB
16710 ## CC just makes a GrossModule.
16711 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16712 reload_cmds='$CC -r -o $output$reload_objs'
16713 hardcode_direct=no
16714 ;;
16715 motorola)
16716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16718 ;;
16719 esac
16720 runpath_var='LD_RUN_PATH'
16721 hardcode_shlibpath_var=no
16722 ;;
16723
16724 sysv4.3*)
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var=no
16727 export_dynamic_flag_spec='-Bexport'
16728 ;;
16729
16730 sysv4*MP*)
16731 if test -d /usr/nec; then
16732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16733 hardcode_shlibpath_var=no
16734 runpath_var=LD_RUN_PATH
16735 hardcode_runpath_var=yes
16736 ld_shlibs=yes
16737 fi
16738 ;;
16739
16740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16741 no_undefined_flag='${wl}-z,text'
16742 archive_cmds_need_lc=no
16743 hardcode_shlibpath_var=no
16744 runpath_var='LD_RUN_PATH'
16745
16746 if test "$GCC" = yes; then
16747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 else
16750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 fi
16753 ;;
16754
16755 sysv5* | sco3.2v5* | sco5v6*)
16756 # Note: We can NOT use -z defs as we might desire, because we do not
16757 # link with -lc, and that would cause any symbols used from libc to
16758 # always be unresolved, which means just about no library would
16759 # ever link correctly. If we're not using GNU ld we use -z text
16760 # though, which does catch some bad symbols but isn't as heavy-handed
16761 # as -z defs.
16762 no_undefined_flag='${wl}-z,text'
16763 allow_undefined_flag='${wl}-z,nodefs'
16764 archive_cmds_need_lc=no
16765 hardcode_shlibpath_var=no
16766 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16767 hardcode_libdir_separator=':'
16768 link_all_deplibs=yes
16769 export_dynamic_flag_spec='${wl}-Bexport'
16770 runpath_var='LD_RUN_PATH'
16771
16772 if test "$GCC" = yes; then
16773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 else
16776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 fi
16779 ;;
16780
16781 uts4*)
16782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16783 hardcode_libdir_flag_spec='-L$libdir'
16784 hardcode_shlibpath_var=no
16785 ;;
16786
16787 *)
16788 ld_shlibs=no
16789 ;;
16790 esac
16791
16792 if test x$host_vendor = xsni; then
16793 case $host in
16794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16795 export_dynamic_flag_spec='${wl}-Blargedynsym'
16796 ;;
16797 esac
16798 fi
16799 fi
16800
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16802 $as_echo "$ld_shlibs" >&6; }
16803 test "$ld_shlibs" = no && can_build_shared=no
16804
16805 with_gnu_ld=$with_gnu_ld
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821 #
16822 # Do we need to explicitly link libc?
16823 #
16824 case "x$archive_cmds_need_lc" in
16825 x|xyes)
16826 # Assume -lc should be added
16827 archive_cmds_need_lc=yes
16828
16829 if test "$enable_shared" = yes && test "$GCC" = yes; then
16830 case $archive_cmds in
16831 *'~'*)
16832 # FIXME: we may have to deal with multi-command sequences.
16833 ;;
16834 '$CC '*)
16835 # Test whether the compiler implicitly links with -lc since on some
16836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16837 # to ld, don't add -lc before -lgcc.
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16839 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16840 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 $RM conftest*
16844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16845
16846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16847 (eval $ac_compile) 2>&5
16848 ac_status=$?
16849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16850 test $ac_status = 0; } 2>conftest.err; then
16851 soname=conftest
16852 lib=conftest
16853 libobjs=conftest.$ac_objext
16854 deplibs=
16855 wl=$lt_prog_compiler_wl
16856 pic_flag=$lt_prog_compiler_pic
16857 compiler_flags=-v
16858 linker_flags=-v
16859 verstring=
16860 output_objdir=.
16861 libname=conftest
16862 lt_save_allow_undefined_flag=$allow_undefined_flag
16863 allow_undefined_flag=
16864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16865 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }
16869 then
16870 lt_cv_archive_cmds_need_lc=no
16871 else
16872 lt_cv_archive_cmds_need_lc=yes
16873 fi
16874 allow_undefined_flag=$lt_save_allow_undefined_flag
16875 else
16876 cat conftest.err 1>&5
16877 fi
16878 $RM conftest*
16879
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16882 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16883 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16884 ;;
16885 esac
16886 fi
16887 ;;
16888 esac
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17047 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17048
17049 if test "$GCC" = yes; then
17050 case $host_os in
17051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17052 *) lt_awk_arg="/^libraries:/" ;;
17053 esac
17054 case $host_os in
17055 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17056 *) lt_sed_strip_eq="s,=/,/,g" ;;
17057 esac
17058 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17059 case $lt_search_path_spec in
17060 *\;*)
17061 # if the path contains ";" then we assume it to be the separator
17062 # otherwise default to the standard path separator (i.e. ":") - it is
17063 # assumed that no part of a normal pathname contains ";" but that should
17064 # okay in the real world where ";" in dirpaths is itself problematic.
17065 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17066 ;;
17067 *)
17068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17069 ;;
17070 esac
17071 # Ok, now we have the path, separated by spaces, we can step through it
17072 # and add multilib dir if necessary.
17073 lt_tmp_lt_search_path_spec=
17074 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17075 for lt_sys_path in $lt_search_path_spec; do
17076 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17078 else
17079 test -d "$lt_sys_path" && \
17080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17081 fi
17082 done
17083 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17084 BEGIN {RS=" "; FS="/|\n";} {
17085 lt_foo="";
17086 lt_count=0;
17087 for (lt_i = NF; lt_i > 0; lt_i--) {
17088 if ($lt_i != "" && $lt_i != ".") {
17089 if ($lt_i == "..") {
17090 lt_count++;
17091 } else {
17092 if (lt_count == 0) {
17093 lt_foo="/" $lt_i lt_foo;
17094 } else {
17095 lt_count--;
17096 }
17097 }
17098 }
17099 }
17100 if (lt_foo != "") { lt_freq[lt_foo]++; }
17101 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17102 }'`
17103 # AWK program above erroneously prepends '/' to C:/dos/paths
17104 # for these hosts.
17105 case $host_os in
17106 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17107 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17108 esac
17109 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17110 else
17111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17112 fi
17113 library_names_spec=
17114 libname_spec='lib$name'
17115 soname_spec=
17116 shrext_cmds=".so"
17117 postinstall_cmds=
17118 postuninstall_cmds=
17119 finish_cmds=
17120 finish_eval=
17121 shlibpath_var=
17122 shlibpath_overrides_runpath=unknown
17123 version_type=none
17124 dynamic_linker="$host_os ld.so"
17125 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17126 need_lib_prefix=unknown
17127 hardcode_into_libs=no
17128
17129 # when you set need_version to no, make sure it does not cause -set_version
17130 # flags to be left without arguments
17131 need_version=unknown
17132
17133 case $host_os in
17134 aix3*)
17135 version_type=linux
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17137 shlibpath_var=LIBPATH
17138
17139 # AIX 3 has no versioning support, so we append a major version to the name.
17140 soname_spec='${libname}${release}${shared_ext}$major'
17141 ;;
17142
17143 aix[4-9]*)
17144 version_type=linux
17145 need_lib_prefix=no
17146 need_version=no
17147 hardcode_into_libs=yes
17148 if test "$host_cpu" = ia64; then
17149 # AIX 5 supports IA64
17150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 else
17153 # With GCC up to 2.95.x, collect2 would create an import file
17154 # for dependence libraries. The import file would start with
17155 # the line `#! .'. This would cause the generated library to
17156 # depend on `.', always an invalid library. This was fixed in
17157 # development snapshots of GCC prior to 3.0.
17158 case $host_os in
17159 aix4 | aix4.[01] | aix4.[01].*)
17160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17161 echo ' yes '
17162 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17163 :
17164 else
17165 can_build_shared=no
17166 fi
17167 ;;
17168 esac
17169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17170 # soname into executable. Probably we can add versioning support to
17171 # collect2, so additional links can be useful in future.
17172 if test "$aix_use_runtimelinking" = yes; then
17173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17174 # instead of lib<name>.a to let people know that these are not
17175 # typical AIX shared libraries.
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 else
17178 # We preserve .a as extension for shared libraries through AIX4.2
17179 # and later when we are not doing run time linking.
17180 library_names_spec='${libname}${release}.a $libname.a'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 fi
17183 shlibpath_var=LIBPATH
17184 fi
17185 ;;
17186
17187 amigaos*)
17188 case $host_cpu in
17189 powerpc)
17190 # Since July 2007 AmigaOS4 officially supports .so libraries.
17191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 ;;
17194 m68k)
17195 library_names_spec='$libname.ixlibrary $libname.a'
17196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17197 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'
17198 ;;
17199 esac
17200 ;;
17201
17202 beos*)
17203 library_names_spec='${libname}${shared_ext}'
17204 dynamic_linker="$host_os ld.so"
17205 shlibpath_var=LIBRARY_PATH
17206 ;;
17207
17208 bsdi[45]*)
17209 version_type=linux
17210 need_version=no
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17217 # the default ld.so.conf also contains /usr/contrib/lib and
17218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17219 # libtool to hard-code these into programs
17220 ;;
17221
17222 cygwin* | mingw* | pw32* | cegcc*)
17223 version_type=windows
17224 shrext_cmds=".dll"
17225 need_version=no
17226 need_lib_prefix=no
17227
17228 case $GCC,$host_os in
17229 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17230 library_names_spec='$libname.dll.a'
17231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17232 postinstall_cmds='base_file=`basename \${file}`~
17233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17234 dldir=$destdir/`dirname \$dlpath`~
17235 test -d \$dldir || mkdir -p \$dldir~
17236 $install_prog $dir/$dlname \$dldir/$dlname~
17237 chmod a+x \$dldir/$dlname~
17238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17240 fi'
17241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17242 dlpath=$dir/\$dldll~
17243 $RM \$dlpath'
17244 shlibpath_overrides_runpath=yes
17245
17246 case $host_os in
17247 cygwin*)
17248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17250
17251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17252 ;;
17253 mingw* | cegcc*)
17254 # MinGW DLLs use traditional 'lib' prefix
17255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17256 ;;
17257 pw32*)
17258 # pw32 DLLs use 'pw' prefix rather than 'lib'
17259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17260 ;;
17261 esac
17262 ;;
17263
17264 *)
17265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17266 ;;
17267 esac
17268 dynamic_linker='Win32 ld.exe'
17269 # FIXME: first we should search . and the directory the executable is in
17270 shlibpath_var=PATH
17271 ;;
17272
17273 darwin* | rhapsody*)
17274 dynamic_linker="$host_os dyld"
17275 version_type=darwin
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17279 soname_spec='${libname}${release}${major}$shared_ext'
17280 shlibpath_overrides_runpath=yes
17281 shlibpath_var=DYLD_LIBRARY_PATH
17282 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17283
17284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17286 ;;
17287
17288 dgux*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 ;;
17296
17297 freebsd* | dragonfly*)
17298 # DragonFly does not have aout. When/if they implement a new
17299 # versioning mechanism, adjust this.
17300 if test -x /usr/bin/objformat; then
17301 objformat=`/usr/bin/objformat`
17302 else
17303 case $host_os in
17304 freebsd[23].*) objformat=aout ;;
17305 *) objformat=elf ;;
17306 esac
17307 fi
17308 version_type=freebsd-$objformat
17309 case $version_type in
17310 freebsd-elf*)
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17312 need_version=no
17313 need_lib_prefix=no
17314 ;;
17315 freebsd-*)
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17317 need_version=yes
17318 ;;
17319 esac
17320 shlibpath_var=LD_LIBRARY_PATH
17321 case $host_os in
17322 freebsd2.*)
17323 shlibpath_overrides_runpath=yes
17324 ;;
17325 freebsd3.[01]* | freebsdelf3.[01]*)
17326 shlibpath_overrides_runpath=yes
17327 hardcode_into_libs=yes
17328 ;;
17329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17331 shlibpath_overrides_runpath=no
17332 hardcode_into_libs=yes
17333 ;;
17334 *) # from 4.6 on, and DragonFly
17335 shlibpath_overrides_runpath=yes
17336 hardcode_into_libs=yes
17337 ;;
17338 esac
17339 ;;
17340
17341 gnu*)
17342 version_type=linux
17343 need_lib_prefix=no
17344 need_version=no
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 hardcode_into_libs=yes
17349 ;;
17350
17351 haiku*)
17352 version_type=linux
17353 need_lib_prefix=no
17354 need_version=no
17355 dynamic_linker="$host_os runtime_loader"
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17361 hardcode_into_libs=yes
17362 ;;
17363
17364 hpux9* | hpux10* | hpux11*)
17365 # Give a soname corresponding to the major version so that dld.sl refuses to
17366 # link against other versions.
17367 version_type=sunos
17368 need_lib_prefix=no
17369 need_version=no
17370 case $host_cpu in
17371 ia64*)
17372 shrext_cmds='.so'
17373 hardcode_into_libs=yes
17374 dynamic_linker="$host_os dld.so"
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 if test "X$HPUX_IA64_MODE" = X32; then
17380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17381 else
17382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17383 fi
17384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17385 ;;
17386 hppa*64*)
17387 shrext_cmds='.sl'
17388 hardcode_into_libs=yes
17389 dynamic_linker="$host_os dld.sl"
17390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17396 ;;
17397 *)
17398 shrext_cmds='.sl'
17399 dynamic_linker="$host_os dld.sl"
17400 shlibpath_var=SHLIB_PATH
17401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 ;;
17405 esac
17406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17407 postinstall_cmds='chmod 555 $lib'
17408 # or fails outright, so override atomically:
17409 install_override_mode=555
17410 ;;
17411
17412 interix[3-9]*)
17413 version_type=linux
17414 need_lib_prefix=no
17415 need_version=no
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=no
17421 hardcode_into_libs=yes
17422 ;;
17423
17424 irix5* | irix6* | nonstopux*)
17425 case $host_os in
17426 nonstopux*) version_type=nonstopux ;;
17427 *)
17428 if test "$lt_cv_prog_gnu_ld" = yes; then
17429 version_type=linux
17430 else
17431 version_type=irix
17432 fi ;;
17433 esac
17434 need_lib_prefix=no
17435 need_version=no
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17438 case $host_os in
17439 irix5* | nonstopux*)
17440 libsuff= shlibsuff=
17441 ;;
17442 *)
17443 case $LD in # libtool.m4 will add one of these switches to LD
17444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17445 libsuff= shlibsuff= libmagic=32-bit;;
17446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17447 libsuff=32 shlibsuff=N32 libmagic=N32;;
17448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17450 *) libsuff= shlibsuff= libmagic=never-match;;
17451 esac
17452 ;;
17453 esac
17454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17455 shlibpath_overrides_runpath=no
17456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17458 hardcode_into_libs=yes
17459 ;;
17460
17461 # No shared lib support for Linux oldld, aout, or coff.
17462 linux*oldld* | linux*aout* | linux*coff*)
17463 dynamic_linker=no
17464 ;;
17465
17466 # This must be Linux ELF.
17467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17468 version_type=linux
17469 need_lib_prefix=no
17470 need_version=no
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=no
17476
17477 # Some binutils ld are patched to set DT_RUNPATH
17478 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 lt_cv_shlibpath_overrides_runpath=no
17482 save_LDFLAGS=$LDFLAGS
17483 save_libdir=$libdir
17484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17488
17489 int
17490 main ()
17491 {
17492
17493 ;
17494 return 0;
17495 }
17496 _ACEOF
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17499 lt_cv_shlibpath_overrides_runpath=yes
17500 fi
17501 fi
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 LDFLAGS=$save_LDFLAGS
17505 libdir=$save_libdir
17506
17507 fi
17508
17509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17510
17511 # This implies no fast_install, which is unacceptable.
17512 # Some rework will be needed to allow for fast_install
17513 # before this can be enabled.
17514 hardcode_into_libs=yes
17515
17516 # Append ld.so.conf contents to the search path
17517 if test -f /etc/ld.so.conf; then
17518 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' ' '`
17519 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17520 fi
17521
17522 # We used to test for /lib/ld.so.1 and disable shared libraries on
17523 # powerpc, because MkLinux only supported shared libraries with the
17524 # GNU dynamic linker. Since this was broken with cross compilers,
17525 # most powerpc-linux boxes support dynamic linking these days and
17526 # people can always --disable-shared, the test was removed, and we
17527 # assume the GNU/Linux dynamic linker is in use.
17528 dynamic_linker='GNU/Linux ld.so'
17529 ;;
17530
17531 netbsd*)
17532 version_type=sunos
17533 need_lib_prefix=no
17534 need_version=no
17535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17538 dynamic_linker='NetBSD (a.out) ld.so'
17539 else
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 dynamic_linker='NetBSD ld.elf_so'
17543 fi
17544 shlibpath_var=LD_LIBRARY_PATH
17545 shlibpath_overrides_runpath=yes
17546 hardcode_into_libs=yes
17547 ;;
17548
17549 newsos6)
17550 version_type=linux
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 shlibpath_overrides_runpath=yes
17554 ;;
17555
17556 *nto* | *qnx*)
17557 version_type=qnx
17558 need_lib_prefix=no
17559 need_version=no
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 dynamic_linker='ldqnx.so'
17566 ;;
17567
17568 openbsd*)
17569 version_type=sunos
17570 sys_lib_dlsearch_path_spec="/usr/lib"
17571 need_lib_prefix=no
17572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17573 case $host_os in
17574 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17575 *) need_version=no ;;
17576 esac
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17581 case $host_os in
17582 openbsd2.[89] | openbsd2.[89].*)
17583 shlibpath_overrides_runpath=no
17584 ;;
17585 *)
17586 shlibpath_overrides_runpath=yes
17587 ;;
17588 esac
17589 else
17590 shlibpath_overrides_runpath=yes
17591 fi
17592 ;;
17593
17594 os2*)
17595 libname_spec='$name'
17596 shrext_cmds=".dll"
17597 need_lib_prefix=no
17598 library_names_spec='$libname${shared_ext} $libname.a'
17599 dynamic_linker='OS/2 ld.exe'
17600 shlibpath_var=LIBPATH
17601 ;;
17602
17603 osf3* | osf4* | osf5*)
17604 version_type=osf
17605 need_lib_prefix=no
17606 need_version=no
17607 soname_spec='${libname}${release}${shared_ext}$major'
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17612 ;;
17613
17614 rdos*)
17615 dynamic_linker=no
17616 ;;
17617
17618 solaris*)
17619 version_type=linux
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17627 # ldd complains unless libraries are executable
17628 postinstall_cmds='chmod +x $lib'
17629 ;;
17630
17631 sunos4*)
17632 version_type=sunos
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17637 if test "$with_gnu_ld" = yes; then
17638 need_lib_prefix=no
17639 fi
17640 need_version=yes
17641 ;;
17642
17643 sysv4 | sysv4.3*)
17644 version_type=linux
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 case $host_vendor in
17649 sni)
17650 shlibpath_overrides_runpath=no
17651 need_lib_prefix=no
17652 runpath_var=LD_RUN_PATH
17653 ;;
17654 siemens)
17655 need_lib_prefix=no
17656 ;;
17657 motorola)
17658 need_lib_prefix=no
17659 need_version=no
17660 shlibpath_overrides_runpath=no
17661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17662 ;;
17663 esac
17664 ;;
17665
17666 sysv4*MP*)
17667 if test -d /usr/nec ;then
17668 version_type=linux
17669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17670 soname_spec='$libname${shared_ext}.$major'
17671 shlibpath_var=LD_LIBRARY_PATH
17672 fi
17673 ;;
17674
17675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17676 version_type=freebsd-elf
17677 need_lib_prefix=no
17678 need_version=no
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17683 hardcode_into_libs=yes
17684 if test "$with_gnu_ld" = yes; then
17685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17686 else
17687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17688 case $host_os in
17689 sco3.2v5*)
17690 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17691 ;;
17692 esac
17693 fi
17694 sys_lib_dlsearch_path_spec='/usr/lib'
17695 ;;
17696
17697 tpf*)
17698 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17699 version_type=linux
17700 need_lib_prefix=no
17701 need_version=no
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=no
17705 hardcode_into_libs=yes
17706 ;;
17707
17708 uts4*)
17709 version_type=linux
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 ;;
17714
17715 *)
17716 dynamic_linker=no
17717 ;;
17718 esac
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17720 $as_echo "$dynamic_linker" >&6; }
17721 test "$dynamic_linker" = no && can_build_shared=no
17722
17723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17724 if test "$GCC" = yes; then
17725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17726 fi
17727
17728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17730 fi
17731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17733 fi
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17827 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17828 hardcode_action=
17829 if test -n "$hardcode_libdir_flag_spec" ||
17830 test -n "$runpath_var" ||
17831 test "X$hardcode_automatic" = "Xyes" ; then
17832
17833 # We can hardcode non-existent directories.
17834 if test "$hardcode_direct" != no &&
17835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17836 # have to relink, otherwise we might link with an installed library
17837 # when we should be linking with a yet-to-be-installed one
17838 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17839 test "$hardcode_minus_L" != no; then
17840 # Linking always hardcodes the temporary library directory.
17841 hardcode_action=relink
17842 else
17843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17844 hardcode_action=immediate
17845 fi
17846 else
17847 # We cannot hardcode anything, or else we can only hardcode existing
17848 # directories.
17849 hardcode_action=unsupported
17850 fi
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17852 $as_echo "$hardcode_action" >&6; }
17853
17854 if test "$hardcode_action" = relink ||
17855 test "$inherit_rpath" = yes; then
17856 # Fast installation is not supported
17857 enable_fast_install=no
17858 elif test "$shlibpath_overrides_runpath" = yes ||
17859 test "$enable_shared" = no; then
17860 # Fast installation is not necessary
17861 enable_fast_install=needless
17862 fi
17863
17864
17865
17866
17867
17868
17869 if test "x$enable_dlopen" != xyes; then
17870 enable_dlopen=unknown
17871 enable_dlopen_self=unknown
17872 enable_dlopen_self_static=unknown
17873 else
17874 lt_cv_dlopen=no
17875 lt_cv_dlopen_libs=
17876
17877 case $host_os in
17878 beos*)
17879 lt_cv_dlopen="load_add_on"
17880 lt_cv_dlopen_libs=
17881 lt_cv_dlopen_self=yes
17882 ;;
17883
17884 mingw* | pw32* | cegcc*)
17885 lt_cv_dlopen="LoadLibrary"
17886 lt_cv_dlopen_libs=
17887 ;;
17888
17889 cygwin*)
17890 lt_cv_dlopen="dlopen"
17891 lt_cv_dlopen_libs=
17892 ;;
17893
17894 darwin*)
17895 # if libdl is installed we need to link against it
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17900 else
17901 ac_check_lib_save_LIBS=$LIBS
17902 LIBS="-ldl $LIBS"
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char dlopen ();
17913 int
17914 main ()
17915 {
17916 return dlopen ();
17917 ;
17918 return 0;
17919 }
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"; then :
17922 ac_cv_lib_dl_dlopen=yes
17923 else
17924 ac_cv_lib_dl_dlopen=no
17925 fi
17926 rm -f core conftest.err conftest.$ac_objext \
17927 conftest$ac_exeext conftest.$ac_ext
17928 LIBS=$ac_check_lib_save_LIBS
17929 fi
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17934 else
17935
17936 lt_cv_dlopen="dyld"
17937 lt_cv_dlopen_libs=
17938 lt_cv_dlopen_self=yes
17939
17940 fi
17941
17942 ;;
17943
17944 *)
17945 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17946 if test "x$ac_cv_func_shl_load" = x""yes; then :
17947 lt_cv_dlopen="shl_load"
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17950 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 ac_check_lib_save_LIBS=$LIBS
17955 LIBS="-ldld $LIBS"
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17958
17959 /* Override any GCC internal prototype to avoid an error.
17960 Use char because int might match the return type of a GCC
17961 builtin and then its argument prototype would still apply. */
17962 #ifdef __cplusplus
17963 extern "C"
17964 #endif
17965 char shl_load ();
17966 int
17967 main ()
17968 {
17969 return shl_load ();
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"; then :
17975 ac_cv_lib_dld_shl_load=yes
17976 else
17977 ac_cv_lib_dld_shl_load=no
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext \
17980 conftest$ac_exeext conftest.$ac_ext
17981 LIBS=$ac_check_lib_save_LIBS
17982 fi
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17984 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17985 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17986 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17987 else
17988 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17989 if test "x$ac_cv_func_dlopen" = x""yes; then :
17990 lt_cv_dlopen="dlopen"
17991 else
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17993 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-ldl $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char dlopen ();
18009 int
18010 main ()
18011 {
18012 return dlopen ();
18013 ;
18014 return 0;
18015 }
18016 _ACEOF
18017 if ac_fn_c_try_link "$LINENO"; then :
18018 ac_cv_lib_dl_dlopen=yes
18019 else
18020 ac_cv_lib_dl_dlopen=no
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18025 fi
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18028 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18030 else
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18034 $as_echo_n "(cached) " >&6
18035 else
18036 ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lsvld $LIBS"
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040
18041 /* Override any GCC internal prototype to avoid an error.
18042 Use char because int might match the return type of a GCC
18043 builtin and then its argument prototype would still apply. */
18044 #ifdef __cplusplus
18045 extern "C"
18046 #endif
18047 char dlopen ();
18048 int
18049 main ()
18050 {
18051 return dlopen ();
18052 ;
18053 return 0;
18054 }
18055 _ACEOF
18056 if ac_fn_c_try_link "$LINENO"; then :
18057 ac_cv_lib_svld_dlopen=yes
18058 else
18059 ac_cv_lib_svld_dlopen=no
18060 fi
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18066 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18067 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18069 else
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18071 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18073 $as_echo_n "(cached) " >&6
18074 else
18075 ac_check_lib_save_LIBS=$LIBS
18076 LIBS="-ldld $LIBS"
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18079
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char dld_link ();
18087 int
18088 main ()
18089 {
18090 return dld_link ();
18091 ;
18092 return 0;
18093 }
18094 _ACEOF
18095 if ac_fn_c_try_link "$LINENO"; then :
18096 ac_cv_lib_dld_dld_link=yes
18097 else
18098 ac_cv_lib_dld_dld_link=no
18099 fi
18100 rm -f core conftest.err conftest.$ac_objext \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18103 fi
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18106 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18108 fi
18109
18110
18111 fi
18112
18113
18114 fi
18115
18116
18117 fi
18118
18119
18120 fi
18121
18122
18123 fi
18124
18125 ;;
18126 esac
18127
18128 if test "x$lt_cv_dlopen" != xno; then
18129 enable_dlopen=yes
18130 else
18131 enable_dlopen=no
18132 fi
18133
18134 case $lt_cv_dlopen in
18135 dlopen)
18136 save_CPPFLAGS="$CPPFLAGS"
18137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18138
18139 save_LDFLAGS="$LDFLAGS"
18140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18141
18142 save_LIBS="$LIBS"
18143 LIBS="$lt_cv_dlopen_libs $LIBS"
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18147 if test "${lt_cv_dlopen_self+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150 if test "$cross_compiling" = yes; then :
18151 lt_cv_dlopen_self=cross
18152 else
18153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18154 lt_status=$lt_dlunknown
18155 cat > conftest.$ac_ext <<_LT_EOF
18156 #line 18156 "configure"
18157 #include "confdefs.h"
18158
18159 #if HAVE_DLFCN_H
18160 #include <dlfcn.h>
18161 #endif
18162
18163 #include <stdio.h>
18164
18165 #ifdef RTLD_GLOBAL
18166 # define LT_DLGLOBAL RTLD_GLOBAL
18167 #else
18168 # ifdef DL_GLOBAL
18169 # define LT_DLGLOBAL DL_GLOBAL
18170 # else
18171 # define LT_DLGLOBAL 0
18172 # endif
18173 #endif
18174
18175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18176 find out it does not work in some platform. */
18177 #ifndef LT_DLLAZY_OR_NOW
18178 # ifdef RTLD_LAZY
18179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18180 # else
18181 # ifdef DL_LAZY
18182 # define LT_DLLAZY_OR_NOW DL_LAZY
18183 # else
18184 # ifdef RTLD_NOW
18185 # define LT_DLLAZY_OR_NOW RTLD_NOW
18186 # else
18187 # ifdef DL_NOW
18188 # define LT_DLLAZY_OR_NOW DL_NOW
18189 # else
18190 # define LT_DLLAZY_OR_NOW 0
18191 # endif
18192 # endif
18193 # endif
18194 # endif
18195 #endif
18196
18197 /* When -fvisbility=hidden is used, assume the code has been annotated
18198 correspondingly for the symbols needed. */
18199 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18200 void fnord () __attribute__((visibility("default")));
18201 #endif
18202
18203 void fnord () { int i=42; }
18204 int main ()
18205 {
18206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18207 int status = $lt_dlunknown;
18208
18209 if (self)
18210 {
18211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18212 else
18213 {
18214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18215 else puts (dlerror ());
18216 }
18217 /* dlclose (self); */
18218 }
18219 else
18220 puts (dlerror ());
18221
18222 return status;
18223 }
18224 _LT_EOF
18225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18226 (eval $ac_link) 2>&5
18227 ac_status=$?
18228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18230 (./conftest; exit; ) >&5 2>/dev/null
18231 lt_status=$?
18232 case x$lt_status in
18233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18235 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18236 esac
18237 else :
18238 # compilation failed
18239 lt_cv_dlopen_self=no
18240 fi
18241 fi
18242 rm -fr conftest*
18243
18244
18245 fi
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18247 $as_echo "$lt_cv_dlopen_self" >&6; }
18248
18249 if test "x$lt_cv_dlopen_self" = xyes; then
18250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18252 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18253 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 if test "$cross_compiling" = yes; then :
18257 lt_cv_dlopen_self_static=cross
18258 else
18259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18260 lt_status=$lt_dlunknown
18261 cat > conftest.$ac_ext <<_LT_EOF
18262 #line 18262 "configure"
18263 #include "confdefs.h"
18264
18265 #if HAVE_DLFCN_H
18266 #include <dlfcn.h>
18267 #endif
18268
18269 #include <stdio.h>
18270
18271 #ifdef RTLD_GLOBAL
18272 # define LT_DLGLOBAL RTLD_GLOBAL
18273 #else
18274 # ifdef DL_GLOBAL
18275 # define LT_DLGLOBAL DL_GLOBAL
18276 # else
18277 # define LT_DLGLOBAL 0
18278 # endif
18279 #endif
18280
18281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18282 find out it does not work in some platform. */
18283 #ifndef LT_DLLAZY_OR_NOW
18284 # ifdef RTLD_LAZY
18285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18286 # else
18287 # ifdef DL_LAZY
18288 # define LT_DLLAZY_OR_NOW DL_LAZY
18289 # else
18290 # ifdef RTLD_NOW
18291 # define LT_DLLAZY_OR_NOW RTLD_NOW
18292 # else
18293 # ifdef DL_NOW
18294 # define LT_DLLAZY_OR_NOW DL_NOW
18295 # else
18296 # define LT_DLLAZY_OR_NOW 0
18297 # endif
18298 # endif
18299 # endif
18300 # endif
18301 #endif
18302
18303 /* When -fvisbility=hidden is used, assume the code has been annotated
18304 correspondingly for the symbols needed. */
18305 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18306 void fnord () __attribute__((visibility("default")));
18307 #endif
18308
18309 void fnord () { int i=42; }
18310 int main ()
18311 {
18312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18313 int status = $lt_dlunknown;
18314
18315 if (self)
18316 {
18317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18318 else
18319 {
18320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18321 else puts (dlerror ());
18322 }
18323 /* dlclose (self); */
18324 }
18325 else
18326 puts (dlerror ());
18327
18328 return status;
18329 }
18330 _LT_EOF
18331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18332 (eval $ac_link) 2>&5
18333 ac_status=$?
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18336 (./conftest; exit; ) >&5 2>/dev/null
18337 lt_status=$?
18338 case x$lt_status in
18339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18342 esac
18343 else :
18344 # compilation failed
18345 lt_cv_dlopen_self_static=no
18346 fi
18347 fi
18348 rm -fr conftest*
18349
18350
18351 fi
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18354 fi
18355
18356 CPPFLAGS="$save_CPPFLAGS"
18357 LDFLAGS="$save_LDFLAGS"
18358 LIBS="$save_LIBS"
18359 ;;
18360 esac
18361
18362 case $lt_cv_dlopen_self in
18363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18364 *) enable_dlopen_self=unknown ;;
18365 esac
18366
18367 case $lt_cv_dlopen_self_static in
18368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18369 *) enable_dlopen_self_static=unknown ;;
18370 esac
18371 fi
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389 striplib=
18390 old_striplib=
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18397 $as_echo "yes" >&6; }
18398 else
18399 # FIXME - insert some real tests, host_os isn't really good enough
18400 case $host_os in
18401 darwin*)
18402 if test -n "$STRIP" ; then
18403 striplib="$STRIP -x"
18404 old_striplib="$STRIP -S"
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18410 fi
18411 ;;
18412 *)
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18415 ;;
18416 esac
18417 fi
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430 # Report which library types will actually be built
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18434 $as_echo "$can_build_shared" >&6; }
18435
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18437 $as_echo_n "checking whether to build shared libraries... " >&6; }
18438 test "$can_build_shared" = "no" && enable_shared=no
18439
18440 # On AIX, shared libraries and static libraries use the same namespace, and
18441 # are all built from PIC.
18442 case $host_os in
18443 aix3*)
18444 test "$enable_shared" = yes && enable_static=no
18445 if test -n "$RANLIB"; then
18446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18447 postinstall_cmds='$RANLIB $lib'
18448 fi
18449 ;;
18450
18451 aix[4-9]*)
18452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18453 test "$enable_shared" = yes && enable_static=no
18454 fi
18455 ;;
18456 esac
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18458 $as_echo "$enable_shared" >&6; }
18459
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18461 $as_echo_n "checking whether to build static libraries... " >&6; }
18462 # Make sure either enable_shared or enable_static is yes.
18463 test "$enable_shared" = yes || enable_static=yes
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18465 $as_echo "$enable_static" >&6; }
18466
18467
18468
18469
18470 fi
18471 ac_ext=c
18472 ac_cpp='$CPP $CPPFLAGS'
18473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18476
18477 CC="$lt_save_CC"
18478
18479 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18480 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18481 (test "X$CXX" != "Xg++"))) ; then
18482 ac_ext=cpp
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18488 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18489 if test -z "$CXXCPP"; then
18490 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 # Double quotes because CXXCPP needs to be expanded
18494 for CXXCPP in "$CXX -E" "/lib/cpp"
18495 do
18496 ac_preproc_ok=false
18497 for ac_cxx_preproc_warn_flag in '' yes
18498 do
18499 # Use a header file that comes with gcc, so configuring glibc
18500 # with a fresh cross-compiler works.
18501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 # <limits.h> exists even on freestanding compilers.
18503 # On the NeXT, cc -E runs the code through the compiler's parser,
18504 # not just through cpp. "Syntax error" is here to catch this case.
18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h. */
18507 #ifdef __STDC__
18508 # include <limits.h>
18509 #else
18510 # include <assert.h>
18511 #endif
18512 Syntax error
18513 _ACEOF
18514 if ac_fn_cxx_try_cpp "$LINENO"; then :
18515
18516 else
18517 # Broken: fails on valid input.
18518 continue
18519 fi
18520 rm -f conftest.err conftest.$ac_ext
18521
18522 # OK, works on sane cases. Now check whether nonexistent headers
18523 # can be detected and how.
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18526 #include <ac_nonexistent.h>
18527 _ACEOF
18528 if ac_fn_cxx_try_cpp "$LINENO"; then :
18529 # Broken: success on invalid input.
18530 continue
18531 else
18532 # Passes both tests.
18533 ac_preproc_ok=:
18534 break
18535 fi
18536 rm -f conftest.err conftest.$ac_ext
18537
18538 done
18539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18540 rm -f conftest.err conftest.$ac_ext
18541 if $ac_preproc_ok; then :
18542 break
18543 fi
18544
18545 done
18546 ac_cv_prog_CXXCPP=$CXXCPP
18547
18548 fi
18549 CXXCPP=$ac_cv_prog_CXXCPP
18550 else
18551 ac_cv_prog_CXXCPP=$CXXCPP
18552 fi
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18554 $as_echo "$CXXCPP" >&6; }
18555 ac_preproc_ok=false
18556 for ac_cxx_preproc_warn_flag in '' yes
18557 do
18558 # Use a header file that comes with gcc, so configuring glibc
18559 # with a fresh cross-compiler works.
18560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18561 # <limits.h> exists even on freestanding compilers.
18562 # On the NeXT, cc -E runs the code through the compiler's parser,
18563 # not just through cpp. "Syntax error" is here to catch this case.
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 #ifdef __STDC__
18567 # include <limits.h>
18568 #else
18569 # include <assert.h>
18570 #endif
18571 Syntax error
18572 _ACEOF
18573 if ac_fn_cxx_try_cpp "$LINENO"; then :
18574
18575 else
18576 # Broken: fails on valid input.
18577 continue
18578 fi
18579 rm -f conftest.err conftest.$ac_ext
18580
18581 # OK, works on sane cases. Now check whether nonexistent headers
18582 # can be detected and how.
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18585 #include <ac_nonexistent.h>
18586 _ACEOF
18587 if ac_fn_cxx_try_cpp "$LINENO"; then :
18588 # Broken: success on invalid input.
18589 continue
18590 else
18591 # Passes both tests.
18592 ac_preproc_ok=:
18593 break
18594 fi
18595 rm -f conftest.err conftest.$ac_ext
18596
18597 done
18598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18599 rm -f conftest.err conftest.$ac_ext
18600 if $ac_preproc_ok; then :
18601
18602 else
18603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18605 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18606 See \`config.log' for more details." "$LINENO" 5; }
18607 fi
18608
18609 ac_ext=c
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
18615 else
18616 _lt_caught_CXX_error=yes
18617 fi
18618
18619 ac_ext=cpp
18620 ac_cpp='$CXXCPP $CPPFLAGS'
18621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18624
18625 archive_cmds_need_lc_CXX=no
18626 allow_undefined_flag_CXX=
18627 always_export_symbols_CXX=no
18628 archive_expsym_cmds_CXX=
18629 compiler_needs_object_CXX=no
18630 export_dynamic_flag_spec_CXX=
18631 hardcode_direct_CXX=no
18632 hardcode_direct_absolute_CXX=no
18633 hardcode_libdir_flag_spec_CXX=
18634 hardcode_libdir_flag_spec_ld_CXX=
18635 hardcode_libdir_separator_CXX=
18636 hardcode_minus_L_CXX=no
18637 hardcode_shlibpath_var_CXX=unsupported
18638 hardcode_automatic_CXX=no
18639 inherit_rpath_CXX=no
18640 module_cmds_CXX=
18641 module_expsym_cmds_CXX=
18642 link_all_deplibs_CXX=unknown
18643 old_archive_cmds_CXX=$old_archive_cmds
18644 reload_flag_CXX=$reload_flag
18645 reload_cmds_CXX=$reload_cmds
18646 no_undefined_flag_CXX=
18647 whole_archive_flag_spec_CXX=
18648 enable_shared_with_static_runtimes_CXX=no
18649
18650 # Source file extension for C++ test sources.
18651 ac_ext=cpp
18652
18653 # Object file extension for compiled C++ test sources.
18654 objext=o
18655 objext_CXX=$objext
18656
18657 # No sense in running all these tests if we already determined that
18658 # the CXX compiler isn't working. Some variables (like enable_shared)
18659 # are currently assumed to apply to all compilers on this platform,
18660 # and will be corrupted by setting them based on a non-working compiler.
18661 if test "$_lt_caught_CXX_error" != yes; then
18662 # Code to be used in simple compile tests
18663 lt_simple_compile_test_code="int some_variable = 0;"
18664
18665 # Code to be used in simple link tests
18666 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18667
18668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18669
18670
18671
18672
18673
18674
18675 # If no C compiler was specified, use CC.
18676 LTCC=${LTCC-"$CC"}
18677
18678 # If no C compiler flags were specified, use CFLAGS.
18679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18680
18681 # Allow CC to be a program name with arguments.
18682 compiler=$CC
18683
18684
18685 # save warnings/boilerplate of simple test code
18686 ac_outfile=conftest.$ac_objext
18687 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18689 _lt_compiler_boilerplate=`cat conftest.err`
18690 $RM conftest*
18691
18692 ac_outfile=conftest.$ac_objext
18693 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18695 _lt_linker_boilerplate=`cat conftest.err`
18696 $RM -r conftest*
18697
18698
18699 # Allow CC to be a program name with arguments.
18700 lt_save_CC=$CC
18701 lt_save_LD=$LD
18702 lt_save_GCC=$GCC
18703 GCC=$GXX
18704 lt_save_with_gnu_ld=$with_gnu_ld
18705 lt_save_path_LD=$lt_cv_path_LD
18706 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18707 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18708 else
18709 $as_unset lt_cv_prog_gnu_ld
18710 fi
18711 if test -n "${lt_cv_path_LDCXX+set}"; then
18712 lt_cv_path_LD=$lt_cv_path_LDCXX
18713 else
18714 $as_unset lt_cv_path_LD
18715 fi
18716 test -z "${LDCXX+set}" || LD=$LDCXX
18717 CC=${CXX-"c++"}
18718 compiler=$CC
18719 compiler_CXX=$CC
18720 for cc_temp in $compiler""; do
18721 case $cc_temp in
18722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18724 \-*) ;;
18725 *) break;;
18726 esac
18727 done
18728 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18729
18730
18731 if test -n "$compiler"; then
18732 # We don't want -fno-exception when compiling C++ code, so set the
18733 # no_builtin_flag separately
18734 if test "$GXX" = yes; then
18735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18736 else
18737 lt_prog_compiler_no_builtin_flag_CXX=
18738 fi
18739
18740 if test "$GXX" = yes; then
18741 # Set up default GNU C++ configuration
18742
18743
18744
18745 # Check whether --with-gnu-ld was given.
18746 if test "${with_gnu_ld+set}" = set; then :
18747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18748 else
18749 with_gnu_ld=no
18750 fi
18751
18752 ac_prog=ld
18753 if test "$GCC" = yes; then
18754 # Check if gcc -print-prog-name=ld gives a path.
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18756 $as_echo_n "checking for ld used by $CC... " >&6; }
18757 case $host in
18758 *-*-mingw*)
18759 # gcc leaves a trailing carriage return which upsets mingw
18760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18761 *)
18762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18763 esac
18764 case $ac_prog in
18765 # Accept absolute paths.
18766 [\\/]* | ?:[\\/]*)
18767 re_direlt='/[^/][^/]*/\.\./'
18768 # Canonicalize the pathname of ld
18769 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18770 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18771 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18772 done
18773 test -z "$LD" && LD="$ac_prog"
18774 ;;
18775 "")
18776 # If it fails, then pretend we aren't using GCC.
18777 ac_prog=ld
18778 ;;
18779 *)
18780 # If it is relative, then search for the first ld in PATH.
18781 with_gnu_ld=unknown
18782 ;;
18783 esac
18784 elif test "$with_gnu_ld" = yes; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18786 $as_echo_n "checking for GNU ld... " >&6; }
18787 else
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18789 $as_echo_n "checking for non-GNU ld... " >&6; }
18790 fi
18791 if test "${lt_cv_path_LD+set}" = set; then :
18792 $as_echo_n "(cached) " >&6
18793 else
18794 if test -z "$LD"; then
18795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18796 for ac_dir in $PATH; do
18797 IFS="$lt_save_ifs"
18798 test -z "$ac_dir" && ac_dir=.
18799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18800 lt_cv_path_LD="$ac_dir/$ac_prog"
18801 # Check to see if the program is GNU ld. I'd rather use --version,
18802 # but apparently some variants of GNU ld only accept -v.
18803 # Break only if it was the GNU/non-GNU ld that we prefer.
18804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18805 *GNU* | *'with BFD'*)
18806 test "$with_gnu_ld" != no && break
18807 ;;
18808 *)
18809 test "$with_gnu_ld" != yes && break
18810 ;;
18811 esac
18812 fi
18813 done
18814 IFS="$lt_save_ifs"
18815 else
18816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18817 fi
18818 fi
18819
18820 LD="$lt_cv_path_LD"
18821 if test -n "$LD"; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18823 $as_echo "$LD" >&6; }
18824 else
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18827 fi
18828 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18830 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18831 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18832 $as_echo_n "(cached) " >&6
18833 else
18834 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18835 case `$LD -v 2>&1 </dev/null` in
18836 *GNU* | *'with BFD'*)
18837 lt_cv_prog_gnu_ld=yes
18838 ;;
18839 *)
18840 lt_cv_prog_gnu_ld=no
18841 ;;
18842 esac
18843 fi
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18845 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18846 with_gnu_ld=$lt_cv_prog_gnu_ld
18847
18848
18849
18850
18851
18852
18853
18854 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18855 # archiving commands below assume that GNU ld is being used.
18856 if test "$with_gnu_ld" = yes; then
18857 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18858 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18859
18860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18862
18863 # If archive_cmds runs LD, not CC, wlarc should be empty
18864 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18865 # investigate it a little bit more. (MM)
18866 wlarc='${wl}'
18867
18868 # ancient GNU ld didn't support --whole-archive et. al.
18869 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18870 $GREP 'no-whole-archive' > /dev/null; then
18871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18872 else
18873 whole_archive_flag_spec_CXX=
18874 fi
18875 else
18876 with_gnu_ld=no
18877 wlarc=
18878
18879 # A generic and very simple default shared library creation
18880 # command for GNU C++ for the case where it uses the native
18881 # linker, instead of GNU ld. If possible, this setting should
18882 # overridden to take advantage of the native linker features on
18883 # the platform it is being used on.
18884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18885 fi
18886
18887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
18890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18891
18892 else
18893 GXX=no
18894 with_gnu_ld=no
18895 wlarc=
18896 fi
18897
18898 # PORTME: fill in a description of your system's C++ link characteristics
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18901 ld_shlibs_CXX=yes
18902 case $host_os in
18903 aix3*)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18906 ;;
18907 aix[4-9]*)
18908 if test "$host_cpu" = ia64; then
18909 # On IA64, the linker does run time linking by default, so we don't
18910 # have to do anything special.
18911 aix_use_runtimelinking=no
18912 exp_sym_flag='-Bexport'
18913 no_entry_flag=""
18914 else
18915 aix_use_runtimelinking=no
18916
18917 # Test if we are trying to use run time linking or normal
18918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18919 # need to do runtime linking.
18920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18921 for ld_flag in $LDFLAGS; do
18922 case $ld_flag in
18923 *-brtl*)
18924 aix_use_runtimelinking=yes
18925 break
18926 ;;
18927 esac
18928 done
18929 ;;
18930 esac
18931
18932 exp_sym_flag='-bexport'
18933 no_entry_flag='-bnoentry'
18934 fi
18935
18936 # When large executables or shared objects are built, AIX ld can
18937 # have problems creating the table of contents. If linking a library
18938 # or program results in "error TOC overflow" add -mminimal-toc to
18939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18941
18942 archive_cmds_CXX=''
18943 hardcode_direct_CXX=yes
18944 hardcode_direct_absolute_CXX=yes
18945 hardcode_libdir_separator_CXX=':'
18946 link_all_deplibs_CXX=yes
18947 file_list_spec_CXX='${wl}-f,'
18948
18949 if test "$GXX" = yes; then
18950 case $host_os in aix4.[012]|aix4.[012].*)
18951 # We only want to do this on AIX 4.2 and lower, the check
18952 # below for broken collect2 doesn't work under 4.3+
18953 collect2name=`${CC} -print-prog-name=collect2`
18954 if test -f "$collect2name" &&
18955 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18956 then
18957 # We have reworked collect2
18958 :
18959 else
18960 # We have old collect2
18961 hardcode_direct_CXX=unsupported
18962 # It fails to find uninstalled libraries when the uninstalled
18963 # path is not listed in the libpath. Setting hardcode_minus_L
18964 # to unsupported forces relinking
18965 hardcode_minus_L_CXX=yes
18966 hardcode_libdir_flag_spec_CXX='-L$libdir'
18967 hardcode_libdir_separator_CXX=
18968 fi
18969 esac
18970 shared_flag='-shared'
18971 if test "$aix_use_runtimelinking" = yes; then
18972 shared_flag="$shared_flag "'${wl}-G'
18973 fi
18974 else
18975 # not using gcc
18976 if test "$host_cpu" = ia64; then
18977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18978 # chokes on -Wl,-G. The following line is correct:
18979 shared_flag='-G'
18980 else
18981 if test "$aix_use_runtimelinking" = yes; then
18982 shared_flag='${wl}-G'
18983 else
18984 shared_flag='${wl}-bM:SRE'
18985 fi
18986 fi
18987 fi
18988
18989 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18990 # It seems that -bexpall does not export symbols beginning with
18991 # underscore (_), so it is better to generate a list of symbols to
18992 # export.
18993 always_export_symbols_CXX=yes
18994 if test "$aix_use_runtimelinking" = yes; then
18995 # Warning - without using the other runtime loading flags (-brtl),
18996 # -berok will link without error, but may produce a broken library.
18997 allow_undefined_flag_CXX='-berok'
18998 # Determine the default libpath from the value encoded in an empty
18999 # executable.
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002
19003 int
19004 main ()
19005 {
19006
19007 ;
19008 return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_cxx_try_link "$LINENO"; then :
19012
19013 lt_aix_libpath_sed='
19014 /Import File Strings/,/^$/ {
19015 /^0/ {
19016 s/^0 *\(.*\)$/\1/
19017 p
19018 }
19019 }'
19020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 # Check for a 64-bit object if we didn't find anything.
19022 if test -z "$aix_libpath"; then
19023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19024 fi
19025 fi
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19029
19030 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19031
19032 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"
19033 else
19034 if test "$host_cpu" = ia64; then
19035 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19036 allow_undefined_flag_CXX="-z nodefs"
19037 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"
19038 else
19039 # Determine the default libpath from the value encoded in an
19040 # empty executable.
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043
19044 int
19045 main ()
19046 {
19047
19048 ;
19049 return 0;
19050 }
19051 _ACEOF
19052 if ac_fn_cxx_try_link "$LINENO"; then :
19053
19054 lt_aix_libpath_sed='
19055 /Import File Strings/,/^$/ {
19056 /^0/ {
19057 s/^0 *\(.*\)$/\1/
19058 p
19059 }
19060 }'
19061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19062 # Check for a 64-bit object if we didn't find anything.
19063 if test -z "$aix_libpath"; then
19064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19065 fi
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19070
19071 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19072 # Warning - without using the other run time loading flags,
19073 # -berok will link without error, but may produce a broken library.
19074 no_undefined_flag_CXX=' ${wl}-bernotok'
19075 allow_undefined_flag_CXX=' ${wl}-berok'
19076 if test "$with_gnu_ld" = yes; then
19077 # We only use this code for GNU lds that support --whole-archive.
19078 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19079 else
19080 # Exported symbols can be pulled into shared objects from archives
19081 whole_archive_flag_spec_CXX='$convenience'
19082 fi
19083 archive_cmds_need_lc_CXX=yes
19084 # This is similar to how AIX traditionally builds its shared
19085 # libraries.
19086 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'
19087 fi
19088 fi
19089 ;;
19090
19091 beos*)
19092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19093 allow_undefined_flag_CXX=unsupported
19094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19095 # support --undefined. This deserves some investigation. FIXME
19096 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19097 else
19098 ld_shlibs_CXX=no
19099 fi
19100 ;;
19101
19102 chorus*)
19103 case $cc_basename in
19104 *)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108 esac
19109 ;;
19110
19111 cygwin* | mingw* | pw32* | cegcc*)
19112 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19113 # as there is no search path for DLLs.
19114 hardcode_libdir_flag_spec_CXX='-L$libdir'
19115 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19116 allow_undefined_flag_CXX=unsupported
19117 always_export_symbols_CXX=no
19118 enable_shared_with_static_runtimes_CXX=yes
19119
19120 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19121 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'
19122 # If the export-symbols file already is a .def file (1st line
19123 # is EXPORTS), use it as is; otherwise, prepend...
19124 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19125 cp $export_symbols $output_objdir/$soname.def;
19126 else
19127 echo EXPORTS > $output_objdir/$soname.def;
19128 cat $export_symbols >> $output_objdir/$soname.def;
19129 fi~
19130 $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'
19131 else
19132 ld_shlibs_CXX=no
19133 fi
19134 ;;
19135 darwin* | rhapsody*)
19136
19137
19138 archive_cmds_need_lc_CXX=no
19139 hardcode_direct_CXX=no
19140 hardcode_automatic_CXX=yes
19141 hardcode_shlibpath_var_CXX=unsupported
19142 if test "$lt_cv_ld_force_load" = "yes"; then
19143 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\"`'
19144 else
19145 whole_archive_flag_spec_CXX=''
19146 fi
19147 link_all_deplibs_CXX=yes
19148 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19149 case $cc_basename in
19150 ifort*) _lt_dar_can_shared=yes ;;
19151 *) _lt_dar_can_shared=$GCC ;;
19152 esac
19153 if test "$_lt_dar_can_shared" = "yes"; then
19154 output_verbose_link_cmd=func_echo_all
19155 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}"
19156 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19157 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}"
19158 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}"
19159 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19160 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}"
19161 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}"
19162 fi
19163
19164 else
19165 ld_shlibs_CXX=no
19166 fi
19167
19168 ;;
19169
19170 dgux*)
19171 case $cc_basename in
19172 ec++*)
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19175 ;;
19176 ghcx*)
19177 # Green Hills C++ Compiler
19178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19180 ;;
19181 *)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19184 ;;
19185 esac
19186 ;;
19187
19188 freebsd2.*)
19189 # C++ shared libraries reported to be fairly broken before
19190 # switch to ELF
19191 ld_shlibs_CXX=no
19192 ;;
19193
19194 freebsd-elf*)
19195 archive_cmds_need_lc_CXX=no
19196 ;;
19197
19198 freebsd* | dragonfly*)
19199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19200 # conventions
19201 ld_shlibs_CXX=yes
19202 ;;
19203
19204 gnu*)
19205 ;;
19206
19207 haiku*)
19208 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 link_all_deplibs_CXX=yes
19210 ;;
19211
19212 hpux9*)
19213 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19214 hardcode_libdir_separator_CXX=:
19215 export_dynamic_flag_spec_CXX='${wl}-E'
19216 hardcode_direct_CXX=yes
19217 hardcode_minus_L_CXX=yes # Not in the search PATH,
19218 # but as the default
19219 # location of the library.
19220
19221 case $cc_basename in
19222 CC*)
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19225 ;;
19226 aCC*)
19227 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'
19228 # Commands to make compiler produce verbose output that lists
19229 # what "hidden" libraries, object files and flags are used when
19230 # linking a shared library.
19231 #
19232 # There doesn't appear to be a way to prevent this compiler from
19233 # explicitly linking system object files so we need to strip them
19234 # from the output so that they don't get included in the library
19235 # dependencies.
19236 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"'
19237 ;;
19238 *)
19239 if test "$GXX" = yes; then
19240 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'
19241 else
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 fi
19245 ;;
19246 esac
19247 ;;
19248
19249 hpux10*|hpux11*)
19250 if test $with_gnu_ld = no; then
19251 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19252 hardcode_libdir_separator_CXX=:
19253
19254 case $host_cpu in
19255 hppa*64*|ia64*)
19256 ;;
19257 *)
19258 export_dynamic_flag_spec_CXX='${wl}-E'
19259 ;;
19260 esac
19261 fi
19262 case $host_cpu in
19263 hppa*64*|ia64*)
19264 hardcode_direct_CXX=no
19265 hardcode_shlibpath_var_CXX=no
19266 ;;
19267 *)
19268 hardcode_direct_CXX=yes
19269 hardcode_direct_absolute_CXX=yes
19270 hardcode_minus_L_CXX=yes # Not in the search PATH,
19271 # but as the default
19272 # location of the library.
19273 ;;
19274 esac
19275
19276 case $cc_basename in
19277 CC*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
19281 aCC*)
19282 case $host_cpu in
19283 hppa*64*)
19284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19285 ;;
19286 ia64*)
19287 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19288 ;;
19289 *)
19290 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19291 ;;
19292 esac
19293 # Commands to make compiler produce verbose output that lists
19294 # what "hidden" libraries, object files and flags are used when
19295 # linking a shared library.
19296 #
19297 # There doesn't appear to be a way to prevent this compiler from
19298 # explicitly linking system object files so we need to strip them
19299 # from the output so that they don't get included in the library
19300 # dependencies.
19301 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"'
19302 ;;
19303 *)
19304 if test "$GXX" = yes; then
19305 if test $with_gnu_ld = no; then
19306 case $host_cpu in
19307 hppa*64*)
19308 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19309 ;;
19310 ia64*)
19311 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19312 ;;
19313 *)
19314 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'
19315 ;;
19316 esac
19317 fi
19318 else
19319 # FIXME: insert proper C++ library support
19320 ld_shlibs_CXX=no
19321 fi
19322 ;;
19323 esac
19324 ;;
19325
19326 interix[3-9]*)
19327 hardcode_direct_CXX=no
19328 hardcode_shlibpath_var_CXX=no
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX='${wl}-E'
19331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19332 # Instead, shared libraries are loaded at an image base (0x10000000 by
19333 # default) and relocated if they conflict, which is a slow very memory
19334 # consuming and fragmenting process. To avoid this, we pick a random,
19335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19337 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'
19338 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'
19339 ;;
19340 irix5* | irix6*)
19341 case $cc_basename in
19342 CC*)
19343 # SGI C++
19344 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'
19345
19346 # Archives containing C++ object files must be created using
19347 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19348 # necessary to make sure instantiated templates are included
19349 # in the archive.
19350 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19351 ;;
19352 *)
19353 if test "$GXX" = yes; then
19354 if test "$with_gnu_ld" = no; then
19355 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'
19356 else
19357 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'
19358 fi
19359 fi
19360 link_all_deplibs_CXX=yes
19361 ;;
19362 esac
19363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19364 hardcode_libdir_separator_CXX=:
19365 inherit_rpath_CXX=yes
19366 ;;
19367
19368 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19369 case $cc_basename in
19370 KCC*)
19371 # Kuck and Associates, Inc. (KAI) C++ Compiler
19372
19373 # KCC will only create a shared library if the output file
19374 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19375 # to its proper name (with version) after linking.
19376 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'
19377 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'
19378 # Commands to make compiler produce verbose output that lists
19379 # what "hidden" libraries, object files and flags are used when
19380 # linking a shared library.
19381 #
19382 # There doesn't appear to be a way to prevent this compiler from
19383 # explicitly linking system object files so we need to strip them
19384 # from the output so that they don't get included in the library
19385 # dependencies.
19386 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"'
19387
19388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19390
19391 # Archives containing C++ object files must be created using
19392 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19393 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19394 ;;
19395 icpc* | ecpc* )
19396 # Intel C++
19397 with_gnu_ld=yes
19398 # version 8.0 and above of icpc choke on multiply defined symbols
19399 # if we add $predep_objects and $postdep_objects, however 7.1 and
19400 # earlier do not add the objects themselves.
19401 case `$CC -V 2>&1` in
19402 *"Version 7."*)
19403 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19404 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'
19405 ;;
19406 *) # Version 8.0 or newer
19407 tmp_idyn=
19408 case $host_cpu in
19409 ia64*) tmp_idyn=' -i_dynamic';;
19410 esac
19411 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19412 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'
19413 ;;
19414 esac
19415 archive_cmds_need_lc_CXX=no
19416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19418 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19419 ;;
19420 pgCC* | pgcpp*)
19421 # Portland Group C++ compiler
19422 case `$CC -V` in
19423 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19424 prelink_cmds_CXX='tpldir=Template.dir~
19425 rm -rf $tpldir~
19426 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19427 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19428 old_archive_cmds_CXX='tpldir=Template.dir~
19429 rm -rf $tpldir~
19430 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19431 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19432 $RANLIB $oldlib'
19433 archive_cmds_CXX='tpldir=Template.dir~
19434 rm -rf $tpldir~
19435 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19436 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19437 archive_expsym_cmds_CXX='tpldir=Template.dir~
19438 rm -rf $tpldir~
19439 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19440 $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'
19441 ;;
19442 *) # Version 6 and above use weak symbols
19443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19444 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'
19445 ;;
19446 esac
19447
19448 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19450 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'
19451 ;;
19452 cxx*)
19453 # Compaq C++
19454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19455 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'
19456
19457 runpath_var=LD_RUN_PATH
19458 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19459 hardcode_libdir_separator_CXX=:
19460
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19464 #
19465 # There doesn't appear to be a way to prevent this compiler from
19466 # explicitly linking system object files so we need to strip them
19467 # from the output so that they don't get included in the library
19468 # dependencies.
19469 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'
19470 ;;
19471 xl* | mpixl* | bgxl*)
19472 # IBM XL 8.0 on PPC, with GNU ld
19473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19475 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19476 if test "x$supports_anon_versioning" = xyes; then
19477 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19479 echo "local: *; };" >> $output_objdir/$libname.ver~
19480 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19481 fi
19482 ;;
19483 *)
19484 case `$CC -V 2>&1 | sed 5q` in
19485 *Sun\ C*)
19486 # Sun C++ 5.9
19487 no_undefined_flag_CXX=' -zdefs'
19488 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19489 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'
19490 hardcode_libdir_flag_spec_CXX='-R$libdir'
19491 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'
19492 compiler_needs_object_CXX=yes
19493
19494 # Not sure whether something based on
19495 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19496 # would be better.
19497 output_verbose_link_cmd='func_echo_all'
19498
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19502 # in the archive.
19503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19504 ;;
19505 esac
19506 ;;
19507 esac
19508 ;;
19509
19510 lynxos*)
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19513 ;;
19514
19515 m88k*)
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19518 ;;
19519
19520 mvs*)
19521 case $cc_basename in
19522 cxx*)
19523 # FIXME: insert proper C++ library support
19524 ld_shlibs_CXX=no
19525 ;;
19526 *)
19527 # FIXME: insert proper C++ library support
19528 ld_shlibs_CXX=no
19529 ;;
19530 esac
19531 ;;
19532
19533 netbsd*)
19534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19535 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19536 wlarc=
19537 hardcode_libdir_flag_spec_CXX='-R$libdir'
19538 hardcode_direct_CXX=yes
19539 hardcode_shlibpath_var_CXX=no
19540 fi
19541 # Workaround some broken pre-1.5 toolchains
19542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19543 ;;
19544
19545 *nto* | *qnx*)
19546 ld_shlibs_CXX=yes
19547 ;;
19548
19549 openbsd2*)
19550 # C++ shared libraries are fairly broken
19551 ld_shlibs_CXX=no
19552 ;;
19553
19554 openbsd*)
19555 if test -f /usr/libexec/ld.so; then
19556 hardcode_direct_CXX=yes
19557 hardcode_shlibpath_var_CXX=no
19558 hardcode_direct_absolute_CXX=yes
19559 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19562 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19563 export_dynamic_flag_spec_CXX='${wl}-E'
19564 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19565 fi
19566 output_verbose_link_cmd=func_echo_all
19567 else
19568 ld_shlibs_CXX=no
19569 fi
19570 ;;
19571
19572 osf3* | osf4* | osf5*)
19573 case $cc_basename in
19574 KCC*)
19575 # Kuck and Associates, Inc. (KAI) C++ Compiler
19576
19577 # KCC will only create a shared library if the output file
19578 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19579 # to its proper name (with version) after linking.
19580 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'
19581
19582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19583 hardcode_libdir_separator_CXX=:
19584
19585 # Archives containing C++ object files must be created using
19586 # the KAI C++ compiler.
19587 case $host in
19588 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19589 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19590 esac
19591 ;;
19592 RCC*)
19593 # Rational C++ 2.4.1
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19596 ;;
19597 cxx*)
19598 case $host in
19599 osf3*)
19600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19601 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'
19602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19603 ;;
19604 *)
19605 allow_undefined_flag_CXX=' -expect_unresolved \*'
19606 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'
19607 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19608 echo "-hidden">> $lib.exp~
19609 $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~
19610 $RM $lib.exp'
19611 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19612 ;;
19613 esac
19614
19615 hardcode_libdir_separator_CXX=:
19616
19617 # Commands to make compiler produce verbose output that lists
19618 # what "hidden" libraries, object files and flags are used when
19619 # linking a shared library.
19620 #
19621 # There doesn't appear to be a way to prevent this compiler from
19622 # explicitly linking system object files so we need to strip them
19623 # from the output so that they don't get included in the library
19624 # dependencies.
19625 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"'
19626 ;;
19627 *)
19628 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19630 case $host in
19631 osf3*)
19632 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'
19633 ;;
19634 *)
19635 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'
19636 ;;
19637 esac
19638
19639 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19640 hardcode_libdir_separator_CXX=:
19641
19642 # Commands to make compiler produce verbose output that lists
19643 # what "hidden" libraries, object files and flags are used when
19644 # linking a shared library.
19645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19646
19647 else
19648 # FIXME: insert proper C++ library support
19649 ld_shlibs_CXX=no
19650 fi
19651 ;;
19652 esac
19653 ;;
19654
19655 psos*)
19656 # FIXME: insert proper C++ library support
19657 ld_shlibs_CXX=no
19658 ;;
19659
19660 sunos4*)
19661 case $cc_basename in
19662 CC*)
19663 # Sun C++ 4.x
19664 # FIXME: insert proper C++ library support
19665 ld_shlibs_CXX=no
19666 ;;
19667 lcc*)
19668 # Lucid
19669 # FIXME: insert proper C++ library support
19670 ld_shlibs_CXX=no
19671 ;;
19672 *)
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19675 ;;
19676 esac
19677 ;;
19678
19679 solaris*)
19680 case $cc_basename in
19681 CC*)
19682 # Sun C++ 4.2, 5.x and Centerline C++
19683 archive_cmds_need_lc_CXX=yes
19684 no_undefined_flag_CXX=' -zdefs'
19685 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19686 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19687 $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'
19688
19689 hardcode_libdir_flag_spec_CXX='-R$libdir'
19690 hardcode_shlibpath_var_CXX=no
19691 case $host_os in
19692 solaris2.[0-5] | solaris2.[0-5].*) ;;
19693 *)
19694 # The compiler driver will combine and reorder linker options,
19695 # but understands `-z linker_flag'.
19696 # Supported since Solaris 2.6 (maybe 2.5.1?)
19697 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19698 ;;
19699 esac
19700 link_all_deplibs_CXX=yes
19701
19702 output_verbose_link_cmd='func_echo_all'
19703
19704 # Archives containing C++ object files must be created using
19705 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19706 # necessary to make sure instantiated templates are included
19707 # in the archive.
19708 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19709 ;;
19710 gcx*)
19711 # Green Hills C++ Compiler
19712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19713
19714 # The C++ compiler must be used to create the archive.
19715 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19716 ;;
19717 *)
19718 # GNU C++ compiler with Solaris linker
19719 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19720 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19721 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19722 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19723 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19724 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19725
19726 # Commands to make compiler produce verbose output that lists
19727 # what "hidden" libraries, object files and flags are used when
19728 # linking a shared library.
19729 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19730 else
19731 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19732 # platform.
19733 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19735 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19736
19737 # Commands to make compiler produce verbose output that lists
19738 # what "hidden" libraries, object files and flags are used when
19739 # linking a shared library.
19740 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19741 fi
19742
19743 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19744 case $host_os in
19745 solaris2.[0-5] | solaris2.[0-5].*) ;;
19746 *)
19747 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19748 ;;
19749 esac
19750 fi
19751 ;;
19752 esac
19753 ;;
19754
19755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19756 no_undefined_flag_CXX='${wl}-z,text'
19757 archive_cmds_need_lc_CXX=no
19758 hardcode_shlibpath_var_CXX=no
19759 runpath_var='LD_RUN_PATH'
19760
19761 case $cc_basename in
19762 CC*)
19763 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 ;;
19766 *)
19767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 ;;
19770 esac
19771 ;;
19772
19773 sysv5* | sco3.2v5* | sco5v6*)
19774 # Note: We can NOT use -z defs as we might desire, because we do not
19775 # link with -lc, and that would cause any symbols used from libc to
19776 # always be unresolved, which means just about no library would
19777 # ever link correctly. If we're not using GNU ld we use -z text
19778 # though, which does catch some bad symbols but isn't as heavy-handed
19779 # as -z defs.
19780 no_undefined_flag_CXX='${wl}-z,text'
19781 allow_undefined_flag_CXX='${wl}-z,nodefs'
19782 archive_cmds_need_lc_CXX=no
19783 hardcode_shlibpath_var_CXX=no
19784 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19785 hardcode_libdir_separator_CXX=':'
19786 link_all_deplibs_CXX=yes
19787 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19788 runpath_var='LD_RUN_PATH'
19789
19790 case $cc_basename in
19791 CC*)
19792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19794 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19795 '"$old_archive_cmds_CXX"
19796 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19797 '"$reload_cmds_CXX"
19798 ;;
19799 *)
19800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 ;;
19803 esac
19804 ;;
19805
19806 tandem*)
19807 case $cc_basename in
19808 NCC*)
19809 # NonStop-UX NCC 3.20
19810 # FIXME: insert proper C++ library support
19811 ld_shlibs_CXX=no
19812 ;;
19813 *)
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19816 ;;
19817 esac
19818 ;;
19819
19820 vxworks*)
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19823 ;;
19824
19825 *)
19826 # FIXME: insert proper C++ library support
19827 ld_shlibs_CXX=no
19828 ;;
19829 esac
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19832 $as_echo "$ld_shlibs_CXX" >&6; }
19833 test "$ld_shlibs_CXX" = no && can_build_shared=no
19834
19835 GCC_CXX="$GXX"
19836 LD_CXX="$LD"
19837
19838 ## CAVEAT EMPTOR:
19839 ## There is no encapsulation within the following macros, do not change
19840 ## the running order or otherwise move them around unless you know exactly
19841 ## what you are doing...
19842 # Dependencies to place before and after the object being linked:
19843 predep_objects_CXX=
19844 postdep_objects_CXX=
19845 predeps_CXX=
19846 postdeps_CXX=
19847 compiler_lib_search_path_CXX=
19848
19849 cat > conftest.$ac_ext <<_LT_EOF
19850 class Foo
19851 {
19852 public:
19853 Foo (void) { a = 0; }
19854 private:
19855 int a;
19856 };
19857 _LT_EOF
19858
19859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19860 (eval $ac_compile) 2>&5
19861 ac_status=$?
19862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19863 test $ac_status = 0; }; then
19864 # Parse the compiler output and extract the necessary
19865 # objects, libraries and library flags.
19866
19867 # Sentinel used to keep track of whether or not we are before
19868 # the conftest object file.
19869 pre_test_object_deps_done=no
19870
19871 for p in `eval "$output_verbose_link_cmd"`; do
19872 case $p in
19873
19874 -L* | -R* | -l*)
19875 # Some compilers place space between "-{L,R}" and the path.
19876 # Remove the space.
19877 if test $p = "-L" ||
19878 test $p = "-R"; then
19879 prev=$p
19880 continue
19881 else
19882 prev=
19883 fi
19884
19885 if test "$pre_test_object_deps_done" = no; then
19886 case $p in
19887 -L* | -R*)
19888 # Internal compiler library paths should come after those
19889 # provided the user. The postdeps already come after the
19890 # user supplied libs so there is no need to process them.
19891 if test -z "$compiler_lib_search_path_CXX"; then
19892 compiler_lib_search_path_CXX="${prev}${p}"
19893 else
19894 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19895 fi
19896 ;;
19897 # The "-l" case would never come before the object being
19898 # linked, so don't bother handling this case.
19899 esac
19900 else
19901 if test -z "$postdeps_CXX"; then
19902 postdeps_CXX="${prev}${p}"
19903 else
19904 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19905 fi
19906 fi
19907 ;;
19908
19909 *.$objext)
19910 # This assumes that the test object file only shows up
19911 # once in the compiler output.
19912 if test "$p" = "conftest.$objext"; then
19913 pre_test_object_deps_done=yes
19914 continue
19915 fi
19916
19917 if test "$pre_test_object_deps_done" = no; then
19918 if test -z "$predep_objects_CXX"; then
19919 predep_objects_CXX="$p"
19920 else
19921 predep_objects_CXX="$predep_objects_CXX $p"
19922 fi
19923 else
19924 if test -z "$postdep_objects_CXX"; then
19925 postdep_objects_CXX="$p"
19926 else
19927 postdep_objects_CXX="$postdep_objects_CXX $p"
19928 fi
19929 fi
19930 ;;
19931
19932 *) ;; # Ignore the rest.
19933
19934 esac
19935 done
19936
19937 # Clean up.
19938 rm -f a.out a.exe
19939 else
19940 echo "libtool.m4: error: problem compiling CXX test program"
19941 fi
19942
19943 $RM -f confest.$objext
19944
19945 # PORTME: override above test on systems where it is broken
19946 case $host_os in
19947 interix[3-9]*)
19948 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19949 # hack all around it, let's just trust "g++" to DTRT.
19950 predep_objects_CXX=
19951 postdep_objects_CXX=
19952 postdeps_CXX=
19953 ;;
19954
19955 linux*)
19956 case `$CC -V 2>&1 | sed 5q` in
19957 *Sun\ C*)
19958 # Sun C++ 5.9
19959
19960 # The more standards-conforming stlport4 library is
19961 # incompatible with the Cstd library. Avoid specifying
19962 # it if it's in CXXFLAGS. Ignore libCrun as
19963 # -library=stlport4 depends on it.
19964 case " $CXX $CXXFLAGS " in
19965 *" -library=stlport4 "*)
19966 solaris_use_stlport4=yes
19967 ;;
19968 esac
19969
19970 if test "$solaris_use_stlport4" != yes; then
19971 postdeps_CXX='-library=Cstd -library=Crun'
19972 fi
19973 ;;
19974 esac
19975 ;;
19976
19977 solaris*)
19978 case $cc_basename in
19979 CC*)
19980 # The more standards-conforming stlport4 library is
19981 # incompatible with the Cstd library. Avoid specifying
19982 # it if it's in CXXFLAGS. Ignore libCrun as
19983 # -library=stlport4 depends on it.
19984 case " $CXX $CXXFLAGS " in
19985 *" -library=stlport4 "*)
19986 solaris_use_stlport4=yes
19987 ;;
19988 esac
19989
19990 # Adding this requires a known-good setup of shared libraries for
19991 # Sun compiler versions before 5.6, else PIC objects from an old
19992 # archive will be linked into the output, leading to subtle bugs.
19993 if test "$solaris_use_stlport4" != yes; then
19994 postdeps_CXX='-library=Cstd -library=Crun'
19995 fi
19996 ;;
19997 esac
19998 ;;
19999 esac
20000
20001
20002 case " $postdeps_CXX " in
20003 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20004 esac
20005 compiler_lib_search_dirs_CXX=
20006 if test -n "${compiler_lib_search_path_CXX}"; then
20007 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20008 fi
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040 lt_prog_compiler_wl_CXX=
20041 lt_prog_compiler_pic_CXX=
20042 lt_prog_compiler_static_CXX=
20043
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20045 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20046
20047 # C++ specific cases for pic, static, wl, etc.
20048 if test "$GXX" = yes; then
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 lt_prog_compiler_static_CXX='-static'
20051
20052 case $host_os in
20053 aix*)
20054 # All AIX code is PIC.
20055 if test "$host_cpu" = ia64; then
20056 # AIX 5 now supports IA64 processor
20057 lt_prog_compiler_static_CXX='-Bstatic'
20058 fi
20059 lt_prog_compiler_pic_CXX='-fPIC'
20060 ;;
20061
20062 amigaos*)
20063 case $host_cpu in
20064 powerpc)
20065 # see comment about AmigaOS4 .so support
20066 lt_prog_compiler_pic_CXX='-fPIC'
20067 ;;
20068 m68k)
20069 # FIXME: we need at least 68020 code to build shared libraries, but
20070 # adding the `-m68020' flag to GCC prevents building anything better,
20071 # like `-m68040'.
20072 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20073 ;;
20074 esac
20075 ;;
20076
20077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20078 # PIC is the default for these OSes.
20079 ;;
20080 mingw* | cygwin* | os2* | pw32* | cegcc*)
20081 # This hack is so that the source file can tell whether it is being
20082 # built for inclusion in a dll (and should export symbols for example).
20083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20084 # (--disable-auto-import) libraries
20085 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20086 ;;
20087 darwin* | rhapsody*)
20088 # PIC is the default on this platform
20089 # Common symbols not allowed in MH_DYLIB files
20090 lt_prog_compiler_pic_CXX='-fno-common'
20091 ;;
20092 *djgpp*)
20093 # DJGPP does not support shared libraries at all
20094 lt_prog_compiler_pic_CXX=
20095 ;;
20096 haiku*)
20097 # PIC is the default for Haiku.
20098 # The "-static" flag exists, but is broken.
20099 lt_prog_compiler_static_CXX=
20100 ;;
20101 interix[3-9]*)
20102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20103 # Instead, we relocate shared libraries at runtime.
20104 ;;
20105 sysv4*MP*)
20106 if test -d /usr/nec; then
20107 lt_prog_compiler_pic_CXX=-Kconform_pic
20108 fi
20109 ;;
20110 hpux*)
20111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20113 # sets the default TLS model and affects inlining.
20114 case $host_cpu in
20115 hppa*64*)
20116 ;;
20117 *)
20118 lt_prog_compiler_pic_CXX='-fPIC'
20119 ;;
20120 esac
20121 ;;
20122 *qnx* | *nto*)
20123 # QNX uses GNU C++, but need to define -shared option too, otherwise
20124 # it will coredump.
20125 lt_prog_compiler_pic_CXX='-fPIC -shared'
20126 ;;
20127 *)
20128 lt_prog_compiler_pic_CXX='-fPIC'
20129 ;;
20130 esac
20131 else
20132 case $host_os in
20133 aix[4-9]*)
20134 # All AIX code is PIC.
20135 if test "$host_cpu" = ia64; then
20136 # AIX 5 now supports IA64 processor
20137 lt_prog_compiler_static_CXX='-Bstatic'
20138 else
20139 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20140 fi
20141 ;;
20142 chorus*)
20143 case $cc_basename in
20144 cxch68*)
20145 # Green Hills C++ Compiler
20146 # _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"
20147 ;;
20148 esac
20149 ;;
20150 dgux*)
20151 case $cc_basename in
20152 ec++*)
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 ;;
20155 ghcx*)
20156 # Green Hills C++ Compiler
20157 lt_prog_compiler_pic_CXX='-pic'
20158 ;;
20159 *)
20160 ;;
20161 esac
20162 ;;
20163 freebsd* | dragonfly*)
20164 # FreeBSD uses GNU C++
20165 ;;
20166 hpux9* | hpux10* | hpux11*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20171 if test "$host_cpu" != ia64; then
20172 lt_prog_compiler_pic_CXX='+Z'
20173 fi
20174 ;;
20175 aCC*)
20176 lt_prog_compiler_wl_CXX='-Wl,'
20177 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20178 case $host_cpu in
20179 hppa*64*|ia64*)
20180 # +Z the default
20181 ;;
20182 *)
20183 lt_prog_compiler_pic_CXX='+Z'
20184 ;;
20185 esac
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
20191 interix*)
20192 # This is c89, which is MS Visual C++ (no shared libs)
20193 # Anyone wants to do a port?
20194 ;;
20195 irix5* | irix6* | nonstopux*)
20196 case $cc_basename in
20197 CC*)
20198 lt_prog_compiler_wl_CXX='-Wl,'
20199 lt_prog_compiler_static_CXX='-non_shared'
20200 # CC pic flag -KPIC is the default.
20201 ;;
20202 *)
20203 ;;
20204 esac
20205 ;;
20206 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20207 case $cc_basename in
20208 KCC*)
20209 # KAI C++ Compiler
20210 lt_prog_compiler_wl_CXX='--backend -Wl,'
20211 lt_prog_compiler_pic_CXX='-fPIC'
20212 ;;
20213 ecpc* )
20214 # old Intel C++ for x86_64 which still supported -KPIC.
20215 lt_prog_compiler_wl_CXX='-Wl,'
20216 lt_prog_compiler_pic_CXX='-KPIC'
20217 lt_prog_compiler_static_CXX='-static'
20218 ;;
20219 icpc* )
20220 # Intel C++, used to be incompatible with GCC.
20221 # ICC 10 doesn't accept -KPIC any more.
20222 lt_prog_compiler_wl_CXX='-Wl,'
20223 lt_prog_compiler_pic_CXX='-fPIC'
20224 lt_prog_compiler_static_CXX='-static'
20225 ;;
20226 pgCC* | pgcpp*)
20227 # Portland Group C++ compiler
20228 lt_prog_compiler_wl_CXX='-Wl,'
20229 lt_prog_compiler_pic_CXX='-fpic'
20230 lt_prog_compiler_static_CXX='-Bstatic'
20231 ;;
20232 cxx*)
20233 # Compaq C++
20234 # Make sure the PIC flag is empty. It appears that all Alpha
20235 # Linux and Compaq Tru64 Unix objects are PIC.
20236 lt_prog_compiler_pic_CXX=
20237 lt_prog_compiler_static_CXX='-non_shared'
20238 ;;
20239 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20240 # IBM XL 8.0, 9.0 on PPC and BlueGene
20241 lt_prog_compiler_wl_CXX='-Wl,'
20242 lt_prog_compiler_pic_CXX='-qpic'
20243 lt_prog_compiler_static_CXX='-qstaticlink'
20244 ;;
20245 *)
20246 case `$CC -V 2>&1 | sed 5q` in
20247 *Sun\ C*)
20248 # Sun C++ 5.9
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 lt_prog_compiler_static_CXX='-Bstatic'
20251 lt_prog_compiler_wl_CXX='-Qoption ld '
20252 ;;
20253 esac
20254 ;;
20255 esac
20256 ;;
20257 lynxos*)
20258 ;;
20259 m88k*)
20260 ;;
20261 mvs*)
20262 case $cc_basename in
20263 cxx*)
20264 lt_prog_compiler_pic_CXX='-W c,exportall'
20265 ;;
20266 *)
20267 ;;
20268 esac
20269 ;;
20270 netbsd*)
20271 ;;
20272 *qnx* | *nto*)
20273 # QNX uses GNU C++, but need to define -shared option too, otherwise
20274 # it will coredump.
20275 lt_prog_compiler_pic_CXX='-fPIC -shared'
20276 ;;
20277 osf3* | osf4* | osf5*)
20278 case $cc_basename in
20279 KCC*)
20280 lt_prog_compiler_wl_CXX='--backend -Wl,'
20281 ;;
20282 RCC*)
20283 # Rational C++ 2.4.1
20284 lt_prog_compiler_pic_CXX='-pic'
20285 ;;
20286 cxx*)
20287 # Digital/Compaq C++
20288 lt_prog_compiler_wl_CXX='-Wl,'
20289 # Make sure the PIC flag is empty. It appears that all Alpha
20290 # Linux and Compaq Tru64 Unix objects are PIC.
20291 lt_prog_compiler_pic_CXX=
20292 lt_prog_compiler_static_CXX='-non_shared'
20293 ;;
20294 *)
20295 ;;
20296 esac
20297 ;;
20298 psos*)
20299 ;;
20300 solaris*)
20301 case $cc_basename in
20302 CC*)
20303 # Sun C++ 4.2, 5.x and Centerline C++
20304 lt_prog_compiler_pic_CXX='-KPIC'
20305 lt_prog_compiler_static_CXX='-Bstatic'
20306 lt_prog_compiler_wl_CXX='-Qoption ld '
20307 ;;
20308 gcx*)
20309 # Green Hills C++ Compiler
20310 lt_prog_compiler_pic_CXX='-PIC'
20311 ;;
20312 *)
20313 ;;
20314 esac
20315 ;;
20316 sunos4*)
20317 case $cc_basename in
20318 CC*)
20319 # Sun C++ 4.x
20320 lt_prog_compiler_pic_CXX='-pic'
20321 lt_prog_compiler_static_CXX='-Bstatic'
20322 ;;
20323 lcc*)
20324 # Lucid
20325 lt_prog_compiler_pic_CXX='-pic'
20326 ;;
20327 *)
20328 ;;
20329 esac
20330 ;;
20331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20332 case $cc_basename in
20333 CC*)
20334 lt_prog_compiler_wl_CXX='-Wl,'
20335 lt_prog_compiler_pic_CXX='-KPIC'
20336 lt_prog_compiler_static_CXX='-Bstatic'
20337 ;;
20338 esac
20339 ;;
20340 tandem*)
20341 case $cc_basename in
20342 NCC*)
20343 # NonStop-UX NCC 3.20
20344 lt_prog_compiler_pic_CXX='-KPIC'
20345 ;;
20346 *)
20347 ;;
20348 esac
20349 ;;
20350 vxworks*)
20351 ;;
20352 *)
20353 lt_prog_compiler_can_build_shared_CXX=no
20354 ;;
20355 esac
20356 fi
20357
20358 case $host_os in
20359 # For platforms which do not support PIC, -DPIC is meaningless:
20360 *djgpp*)
20361 lt_prog_compiler_pic_CXX=
20362 ;;
20363 *)
20364 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20365 ;;
20366 esac
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20368 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20369
20370
20371
20372 #
20373 # Check to make sure the PIC flag actually works.
20374 #
20375 if test -n "$lt_prog_compiler_pic_CXX"; then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20378 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20381 lt_cv_prog_compiler_pic_works_CXX=no
20382 ac_outfile=conftest.$ac_objext
20383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20385 # Insert the option either (1) after the last *FLAGS variable, or
20386 # (2) before a word containing "conftest.", or (3) at the end.
20387 # Note that $ac_compile itself does not contain backslashes and begins
20388 # with a dollar sign (not a hyphen), so the echo should work correctly.
20389 # The option is referenced via a variable to avoid confusing sed.
20390 lt_compile=`echo "$ac_compile" | $SED \
20391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20393 -e 's:$: $lt_compiler_flag:'`
20394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20395 (eval "$lt_compile" 2>conftest.err)
20396 ac_status=$?
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 if (exit $ac_status) && test -s "$ac_outfile"; then
20400 # The compiler can only warn and ignore the option if not recognized
20401 # So say no if there are warnings other than the usual output.
20402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20405 lt_cv_prog_compiler_pic_works_CXX=yes
20406 fi
20407 fi
20408 $RM conftest*
20409
20410 fi
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20413
20414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20415 case $lt_prog_compiler_pic_CXX in
20416 "" | " "*) ;;
20417 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20418 esac
20419 else
20420 lt_prog_compiler_pic_CXX=
20421 lt_prog_compiler_can_build_shared_CXX=no
20422 fi
20423
20424 fi
20425
20426
20427
20428 #
20429 # Check to make sure the static flag actually works.
20430 #
20431 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20433 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20434 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20435 $as_echo_n "(cached) " >&6
20436 else
20437 lt_cv_prog_compiler_static_works_CXX=no
20438 save_LDFLAGS="$LDFLAGS"
20439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20440 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20442 # The linker can only warn and ignore the option if not recognized
20443 # So say no if there are warnings
20444 if test -s conftest.err; then
20445 # Append any errors to the config.log.
20446 cat conftest.err 1>&5
20447 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20449 if diff conftest.exp conftest.er2 >/dev/null; then
20450 lt_cv_prog_compiler_static_works_CXX=yes
20451 fi
20452 else
20453 lt_cv_prog_compiler_static_works_CXX=yes
20454 fi
20455 fi
20456 $RM -r conftest*
20457 LDFLAGS="$save_LDFLAGS"
20458
20459 fi
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20461 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20462
20463 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20464 :
20465 else
20466 lt_prog_compiler_static_CXX=
20467 fi
20468
20469
20470
20471
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20473 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20474 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20477 lt_cv_prog_compiler_c_o_CXX=no
20478 $RM -r conftest 2>/dev/null
20479 mkdir conftest
20480 cd conftest
20481 mkdir out
20482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20483
20484 lt_compiler_flag="-o out/conftest2.$ac_objext"
20485 # Insert the option either (1) after the last *FLAGS variable, or
20486 # (2) before a word containing "conftest.", or (3) at the end.
20487 # Note that $ac_compile itself does not contain backslashes and begins
20488 # with a dollar sign (not a hyphen), so the echo should work correctly.
20489 lt_compile=`echo "$ac_compile" | $SED \
20490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20492 -e 's:$: $lt_compiler_flag:'`
20493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20494 (eval "$lt_compile" 2>out/conftest.err)
20495 ac_status=$?
20496 cat out/conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20499 then
20500 # The compiler can only warn and ignore the option if not recognized
20501 # So say no if there are warnings
20502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20505 lt_cv_prog_compiler_c_o_CXX=yes
20506 fi
20507 fi
20508 chmod u+w . 2>&5
20509 $RM conftest*
20510 # SGI C++ compiler will create directory out/ii_files/ for
20511 # template instantiation
20512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20513 $RM out/* && rmdir out
20514 cd ..
20515 $RM -r conftest
20516 $RM conftest*
20517
20518 fi
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20520 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20521
20522
20523
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20525 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20526 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20528 else
20529 lt_cv_prog_compiler_c_o_CXX=no
20530 $RM -r conftest 2>/dev/null
20531 mkdir conftest
20532 cd conftest
20533 mkdir out
20534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20535
20536 lt_compiler_flag="-o out/conftest2.$ac_objext"
20537 # Insert the option either (1) after the last *FLAGS variable, or
20538 # (2) before a word containing "conftest.", or (3) at the end.
20539 # Note that $ac_compile itself does not contain backslashes and begins
20540 # with a dollar sign (not a hyphen), so the echo should work correctly.
20541 lt_compile=`echo "$ac_compile" | $SED \
20542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20544 -e 's:$: $lt_compiler_flag:'`
20545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20546 (eval "$lt_compile" 2>out/conftest.err)
20547 ac_status=$?
20548 cat out/conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20551 then
20552 # The compiler can only warn and ignore the option if not recognized
20553 # So say no if there are warnings
20554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20555 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20556 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20557 lt_cv_prog_compiler_c_o_CXX=yes
20558 fi
20559 fi
20560 chmod u+w . 2>&5
20561 $RM conftest*
20562 # SGI C++ compiler will create directory out/ii_files/ for
20563 # template instantiation
20564 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20565 $RM out/* && rmdir out
20566 cd ..
20567 $RM -r conftest
20568 $RM conftest*
20569
20570 fi
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20572 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20573
20574
20575
20576
20577 hard_links="nottested"
20578 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20579 # do not overwrite the value of need_locks provided by the user
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20581 $as_echo_n "checking if we can lock with hard links... " >&6; }
20582 hard_links=yes
20583 $RM conftest*
20584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20585 touch conftest.a
20586 ln conftest.a conftest.b 2>&5 || hard_links=no
20587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20589 $as_echo "$hard_links" >&6; }
20590 if test "$hard_links" = no; then
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20592 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20593 need_locks=warn
20594 fi
20595 else
20596 need_locks=no
20597 fi
20598
20599
20600
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20602 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20603
20604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20605 case $host_os in
20606 aix[4-9]*)
20607 # If we're using GNU nm, then we don't want the "-C" option.
20608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20609 # Also, AIX nm treats weak defined symbols like other global defined
20610 # symbols, whereas GNU nm marks them as "W".
20611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20612 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'
20613 else
20614 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'
20615 fi
20616 ;;
20617 pw32*)
20618 export_symbols_cmds_CXX="$ltdll_cmds"
20619 ;;
20620 cygwin* | mingw* | cegcc*)
20621 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'
20622 ;;
20623 *)
20624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20625 ;;
20626 esac
20627 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20628
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20630 $as_echo "$ld_shlibs_CXX" >&6; }
20631 test "$ld_shlibs_CXX" = no && can_build_shared=no
20632
20633 with_gnu_ld_CXX=$with_gnu_ld
20634
20635
20636
20637
20638
20639
20640 #
20641 # Do we need to explicitly link libc?
20642 #
20643 case "x$archive_cmds_need_lc_CXX" in
20644 x|xyes)
20645 # Assume -lc should be added
20646 archive_cmds_need_lc_CXX=yes
20647
20648 if test "$enable_shared" = yes && test "$GCC" = yes; then
20649 case $archive_cmds_CXX in
20650 *'~'*)
20651 # FIXME: we may have to deal with multi-command sequences.
20652 ;;
20653 '$CC '*)
20654 # Test whether the compiler implicitly links with -lc since on some
20655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20656 # to ld, don't add -lc before -lgcc.
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20658 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20659 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20660 $as_echo_n "(cached) " >&6
20661 else
20662 $RM conftest*
20663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20664
20665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20666 (eval $ac_compile) 2>&5
20667 ac_status=$?
20668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20669 test $ac_status = 0; } 2>conftest.err; then
20670 soname=conftest
20671 lib=conftest
20672 libobjs=conftest.$ac_objext
20673 deplibs=
20674 wl=$lt_prog_compiler_wl_CXX
20675 pic_flag=$lt_prog_compiler_pic_CXX
20676 compiler_flags=-v
20677 linker_flags=-v
20678 verstring=
20679 output_objdir=.
20680 libname=conftest
20681 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20682 allow_undefined_flag_CXX=
20683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20684 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20685 ac_status=$?
20686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20687 test $ac_status = 0; }
20688 then
20689 lt_cv_archive_cmds_need_lc_CXX=no
20690 else
20691 lt_cv_archive_cmds_need_lc_CXX=yes
20692 fi
20693 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20694 else
20695 cat conftest.err 1>&5
20696 fi
20697 $RM conftest*
20698
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20701 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20702 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20703 ;;
20704 esac
20705 fi
20706 ;;
20707 esac
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20773 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20774
20775 library_names_spec=
20776 libname_spec='lib$name'
20777 soname_spec=
20778 shrext_cmds=".so"
20779 postinstall_cmds=
20780 postuninstall_cmds=
20781 finish_cmds=
20782 finish_eval=
20783 shlibpath_var=
20784 shlibpath_overrides_runpath=unknown
20785 version_type=none
20786 dynamic_linker="$host_os ld.so"
20787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20788 need_lib_prefix=unknown
20789 hardcode_into_libs=no
20790
20791 # when you set need_version to no, make sure it does not cause -set_version
20792 # flags to be left without arguments
20793 need_version=unknown
20794
20795 case $host_os in
20796 aix3*)
20797 version_type=linux
20798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20799 shlibpath_var=LIBPATH
20800
20801 # AIX 3 has no versioning support, so we append a major version to the name.
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 ;;
20804
20805 aix[4-9]*)
20806 version_type=linux
20807 need_lib_prefix=no
20808 need_version=no
20809 hardcode_into_libs=yes
20810 if test "$host_cpu" = ia64; then
20811 # AIX 5 supports IA64
20812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 else
20815 # With GCC up to 2.95.x, collect2 would create an import file
20816 # for dependence libraries. The import file would start with
20817 # the line `#! .'. This would cause the generated library to
20818 # depend on `.', always an invalid library. This was fixed in
20819 # development snapshots of GCC prior to 3.0.
20820 case $host_os in
20821 aix4 | aix4.[01] | aix4.[01].*)
20822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20823 echo ' yes '
20824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20825 :
20826 else
20827 can_build_shared=no
20828 fi
20829 ;;
20830 esac
20831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20832 # soname into executable. Probably we can add versioning support to
20833 # collect2, so additional links can be useful in future.
20834 if test "$aix_use_runtimelinking" = yes; then
20835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20836 # instead of lib<name>.a to let people know that these are not
20837 # typical AIX shared libraries.
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 else
20840 # We preserve .a as extension for shared libraries through AIX4.2
20841 # and later when we are not doing run time linking.
20842 library_names_spec='${libname}${release}.a $libname.a'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 fi
20845 shlibpath_var=LIBPATH
20846 fi
20847 ;;
20848
20849 amigaos*)
20850 case $host_cpu in
20851 powerpc)
20852 # Since July 2007 AmigaOS4 officially supports .so libraries.
20853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20855 ;;
20856 m68k)
20857 library_names_spec='$libname.ixlibrary $libname.a'
20858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20859 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'
20860 ;;
20861 esac
20862 ;;
20863
20864 beos*)
20865 library_names_spec='${libname}${shared_ext}'
20866 dynamic_linker="$host_os ld.so"
20867 shlibpath_var=LIBRARY_PATH
20868 ;;
20869
20870 bsdi[45]*)
20871 version_type=linux
20872 need_version=no
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20874 soname_spec='${libname}${release}${shared_ext}$major'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20879 # the default ld.so.conf also contains /usr/contrib/lib and
20880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20881 # libtool to hard-code these into programs
20882 ;;
20883
20884 cygwin* | mingw* | pw32* | cegcc*)
20885 version_type=windows
20886 shrext_cmds=".dll"
20887 need_version=no
20888 need_lib_prefix=no
20889
20890 case $GCC,$host_os in
20891 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20892 library_names_spec='$libname.dll.a'
20893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20894 postinstall_cmds='base_file=`basename \${file}`~
20895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20896 dldir=$destdir/`dirname \$dlpath`~
20897 test -d \$dldir || mkdir -p \$dldir~
20898 $install_prog $dir/$dlname \$dldir/$dlname~
20899 chmod a+x \$dldir/$dlname~
20900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20902 fi'
20903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20904 dlpath=$dir/\$dldll~
20905 $RM \$dlpath'
20906 shlibpath_overrides_runpath=yes
20907
20908 case $host_os in
20909 cygwin*)
20910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20912
20913 ;;
20914 mingw* | cegcc*)
20915 # MinGW DLLs use traditional 'lib' prefix
20916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20917 ;;
20918 pw32*)
20919 # pw32 DLLs use 'pw' prefix rather than 'lib'
20920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20921 ;;
20922 esac
20923 ;;
20924
20925 *)
20926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20927 ;;
20928 esac
20929 dynamic_linker='Win32 ld.exe'
20930 # FIXME: first we should search . and the directory the executable is in
20931 shlibpath_var=PATH
20932 ;;
20933
20934 darwin* | rhapsody*)
20935 dynamic_linker="$host_os dyld"
20936 version_type=darwin
20937 need_lib_prefix=no
20938 need_version=no
20939 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20940 soname_spec='${libname}${release}${major}$shared_ext'
20941 shlibpath_overrides_runpath=yes
20942 shlibpath_var=DYLD_LIBRARY_PATH
20943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20944
20945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20946 ;;
20947
20948 dgux*)
20949 version_type=linux
20950 need_lib_prefix=no
20951 need_version=no
20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20953 soname_spec='${libname}${release}${shared_ext}$major'
20954 shlibpath_var=LD_LIBRARY_PATH
20955 ;;
20956
20957 freebsd* | dragonfly*)
20958 # DragonFly does not have aout. When/if they implement a new
20959 # versioning mechanism, adjust this.
20960 if test -x /usr/bin/objformat; then
20961 objformat=`/usr/bin/objformat`
20962 else
20963 case $host_os in
20964 freebsd[23].*) objformat=aout ;;
20965 *) objformat=elf ;;
20966 esac
20967 fi
20968 version_type=freebsd-$objformat
20969 case $version_type in
20970 freebsd-elf*)
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20972 need_version=no
20973 need_lib_prefix=no
20974 ;;
20975 freebsd-*)
20976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20977 need_version=yes
20978 ;;
20979 esac
20980 shlibpath_var=LD_LIBRARY_PATH
20981 case $host_os in
20982 freebsd2.*)
20983 shlibpath_overrides_runpath=yes
20984 ;;
20985 freebsd3.[01]* | freebsdelf3.[01]*)
20986 shlibpath_overrides_runpath=yes
20987 hardcode_into_libs=yes
20988 ;;
20989 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20990 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20991 shlibpath_overrides_runpath=no
20992 hardcode_into_libs=yes
20993 ;;
20994 *) # from 4.6 on, and DragonFly
20995 shlibpath_overrides_runpath=yes
20996 hardcode_into_libs=yes
20997 ;;
20998 esac
20999 ;;
21000
21001 gnu*)
21002 version_type=linux
21003 need_lib_prefix=no
21004 need_version=no
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21006 soname_spec='${libname}${release}${shared_ext}$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21008 hardcode_into_libs=yes
21009 ;;
21010
21011 haiku*)
21012 version_type=linux
21013 need_lib_prefix=no
21014 need_version=no
21015 dynamic_linker="$host_os runtime_loader"
21016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21017 soname_spec='${libname}${release}${shared_ext}$major'
21018 shlibpath_var=LIBRARY_PATH
21019 shlibpath_overrides_runpath=yes
21020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21021 hardcode_into_libs=yes
21022 ;;
21023
21024 hpux9* | hpux10* | hpux11*)
21025 # Give a soname corresponding to the major version so that dld.sl refuses to
21026 # link against other versions.
21027 version_type=sunos
21028 need_lib_prefix=no
21029 need_version=no
21030 case $host_cpu in
21031 ia64*)
21032 shrext_cmds='.so'
21033 hardcode_into_libs=yes
21034 dynamic_linker="$host_os dld.so"
21035 shlibpath_var=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21038 soname_spec='${libname}${release}${shared_ext}$major'
21039 if test "X$HPUX_IA64_MODE" = X32; then
21040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21041 else
21042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21043 fi
21044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21045 ;;
21046 hppa*64*)
21047 shrext_cmds='.sl'
21048 hardcode_into_libs=yes
21049 dynamic_linker="$host_os dld.sl"
21050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21056 ;;
21057 *)
21058 shrext_cmds='.sl'
21059 dynamic_linker="$host_os dld.sl"
21060 shlibpath_var=SHLIB_PATH
21061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21063 soname_spec='${libname}${release}${shared_ext}$major'
21064 ;;
21065 esac
21066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21067 postinstall_cmds='chmod 555 $lib'
21068 # or fails outright, so override atomically:
21069 install_override_mode=555
21070 ;;
21071
21072 interix[3-9]*)
21073 version_type=linux
21074 need_lib_prefix=no
21075 need_version=no
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath=no
21081 hardcode_into_libs=yes
21082 ;;
21083
21084 irix5* | irix6* | nonstopux*)
21085 case $host_os in
21086 nonstopux*) version_type=nonstopux ;;
21087 *)
21088 if test "$lt_cv_prog_gnu_ld" = yes; then
21089 version_type=linux
21090 else
21091 version_type=irix
21092 fi ;;
21093 esac
21094 need_lib_prefix=no
21095 need_version=no
21096 soname_spec='${libname}${release}${shared_ext}$major'
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21098 case $host_os in
21099 irix5* | nonstopux*)
21100 libsuff= shlibsuff=
21101 ;;
21102 *)
21103 case $LD in # libtool.m4 will add one of these switches to LD
21104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21105 libsuff= shlibsuff= libmagic=32-bit;;
21106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21107 libsuff=32 shlibsuff=N32 libmagic=N32;;
21108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21110 *) libsuff= shlibsuff= libmagic=never-match;;
21111 esac
21112 ;;
21113 esac
21114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21115 shlibpath_overrides_runpath=no
21116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21118 hardcode_into_libs=yes
21119 ;;
21120
21121 # No shared lib support for Linux oldld, aout, or coff.
21122 linux*oldld* | linux*aout* | linux*coff*)
21123 dynamic_linker=no
21124 ;;
21125
21126 # This must be Linux ELF.
21127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21128 version_type=linux
21129 need_lib_prefix=no
21130 need_version=no
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21134 shlibpath_var=LD_LIBRARY_PATH
21135 shlibpath_overrides_runpath=no
21136
21137 # Some binutils ld are patched to set DT_RUNPATH
21138 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21139 $as_echo_n "(cached) " >&6
21140 else
21141 lt_cv_shlibpath_overrides_runpath=no
21142 save_LDFLAGS=$LDFLAGS
21143 save_libdir=$libdir
21144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21148
21149 int
21150 main ()
21151 {
21152
21153 ;
21154 return 0;
21155 }
21156 _ACEOF
21157 if ac_fn_cxx_try_link "$LINENO"; then :
21158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21159 lt_cv_shlibpath_overrides_runpath=yes
21160 fi
21161 fi
21162 rm -f core conftest.err conftest.$ac_objext \
21163 conftest$ac_exeext conftest.$ac_ext
21164 LDFLAGS=$save_LDFLAGS
21165 libdir=$save_libdir
21166
21167 fi
21168
21169 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21170
21171 # This implies no fast_install, which is unacceptable.
21172 # Some rework will be needed to allow for fast_install
21173 # before this can be enabled.
21174 hardcode_into_libs=yes
21175
21176 # Append ld.so.conf contents to the search path
21177 if test -f /etc/ld.so.conf; then
21178 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' ' '`
21179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21180 fi
21181
21182 # We used to test for /lib/ld.so.1 and disable shared libraries on
21183 # powerpc, because MkLinux only supported shared libraries with the
21184 # GNU dynamic linker. Since this was broken with cross compilers,
21185 # most powerpc-linux boxes support dynamic linking these days and
21186 # people can always --disable-shared, the test was removed, and we
21187 # assume the GNU/Linux dynamic linker is in use.
21188 dynamic_linker='GNU/Linux ld.so'
21189 ;;
21190
21191 netbsd*)
21192 version_type=sunos
21193 need_lib_prefix=no
21194 need_version=no
21195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21198 dynamic_linker='NetBSD (a.out) ld.so'
21199 else
21200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21201 soname_spec='${libname}${release}${shared_ext}$major'
21202 dynamic_linker='NetBSD ld.elf_so'
21203 fi
21204 shlibpath_var=LD_LIBRARY_PATH
21205 shlibpath_overrides_runpath=yes
21206 hardcode_into_libs=yes
21207 ;;
21208
21209 newsos6)
21210 version_type=linux
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 shlibpath_overrides_runpath=yes
21214 ;;
21215
21216 *nto* | *qnx*)
21217 version_type=qnx
21218 need_lib_prefix=no
21219 need_version=no
21220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21221 soname_spec='${libname}${release}${shared_ext}$major'
21222 shlibpath_var=LD_LIBRARY_PATH
21223 shlibpath_overrides_runpath=no
21224 hardcode_into_libs=yes
21225 dynamic_linker='ldqnx.so'
21226 ;;
21227
21228 openbsd*)
21229 version_type=sunos
21230 sys_lib_dlsearch_path_spec="/usr/lib"
21231 need_lib_prefix=no
21232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21233 case $host_os in
21234 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21235 *) need_version=no ;;
21236 esac
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21241 case $host_os in
21242 openbsd2.[89] | openbsd2.[89].*)
21243 shlibpath_overrides_runpath=no
21244 ;;
21245 *)
21246 shlibpath_overrides_runpath=yes
21247 ;;
21248 esac
21249 else
21250 shlibpath_overrides_runpath=yes
21251 fi
21252 ;;
21253
21254 os2*)
21255 libname_spec='$name'
21256 shrext_cmds=".dll"
21257 need_lib_prefix=no
21258 library_names_spec='$libname${shared_ext} $libname.a'
21259 dynamic_linker='OS/2 ld.exe'
21260 shlibpath_var=LIBPATH
21261 ;;
21262
21263 osf3* | osf4* | osf5*)
21264 version_type=osf
21265 need_lib_prefix=no
21266 need_version=no
21267 soname_spec='${libname}${release}${shared_ext}$major'
21268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21269 shlibpath_var=LD_LIBRARY_PATH
21270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21272 ;;
21273
21274 rdos*)
21275 dynamic_linker=no
21276 ;;
21277
21278 solaris*)
21279 version_type=linux
21280 need_lib_prefix=no
21281 need_version=no
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 shlibpath_var=LD_LIBRARY_PATH
21285 shlibpath_overrides_runpath=yes
21286 hardcode_into_libs=yes
21287 # ldd complains unless libraries are executable
21288 postinstall_cmds='chmod +x $lib'
21289 ;;
21290
21291 sunos4*)
21292 version_type=sunos
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21295 shlibpath_var=LD_LIBRARY_PATH
21296 shlibpath_overrides_runpath=yes
21297 if test "$with_gnu_ld" = yes; then
21298 need_lib_prefix=no
21299 fi
21300 need_version=yes
21301 ;;
21302
21303 sysv4 | sysv4.3*)
21304 version_type=linux
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 case $host_vendor in
21309 sni)
21310 shlibpath_overrides_runpath=no
21311 need_lib_prefix=no
21312 runpath_var=LD_RUN_PATH
21313 ;;
21314 siemens)
21315 need_lib_prefix=no
21316 ;;
21317 motorola)
21318 need_lib_prefix=no
21319 need_version=no
21320 shlibpath_overrides_runpath=no
21321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21322 ;;
21323 esac
21324 ;;
21325
21326 sysv4*MP*)
21327 if test -d /usr/nec ;then
21328 version_type=linux
21329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21330 soname_spec='$libname${shared_ext}.$major'
21331 shlibpath_var=LD_LIBRARY_PATH
21332 fi
21333 ;;
21334
21335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21336 version_type=freebsd-elf
21337 need_lib_prefix=no
21338 need_version=no
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21340 soname_spec='${libname}${release}${shared_ext}$major'
21341 shlibpath_var=LD_LIBRARY_PATH
21342 shlibpath_overrides_runpath=yes
21343 hardcode_into_libs=yes
21344 if test "$with_gnu_ld" = yes; then
21345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21346 else
21347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21348 case $host_os in
21349 sco3.2v5*)
21350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21351 ;;
21352 esac
21353 fi
21354 sys_lib_dlsearch_path_spec='/usr/lib'
21355 ;;
21356
21357 tpf*)
21358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21359 version_type=linux
21360 need_lib_prefix=no
21361 need_version=no
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=no
21365 hardcode_into_libs=yes
21366 ;;
21367
21368 uts4*)
21369 version_type=linux
21370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21371 soname_spec='${libname}${release}${shared_ext}$major'
21372 shlibpath_var=LD_LIBRARY_PATH
21373 ;;
21374
21375 *)
21376 dynamic_linker=no
21377 ;;
21378 esac
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21380 $as_echo "$dynamic_linker" >&6; }
21381 test "$dynamic_linker" = no && can_build_shared=no
21382
21383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21384 if test "$GCC" = yes; then
21385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21386 fi
21387
21388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21390 fi
21391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21392 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21393 fi
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21434 hardcode_action_CXX=
21435 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21436 test -n "$runpath_var_CXX" ||
21437 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21438
21439 # We can hardcode non-existent directories.
21440 if test "$hardcode_direct_CXX" != no &&
21441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21442 # have to relink, otherwise we might link with an installed library
21443 # when we should be linking with a yet-to-be-installed one
21444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21445 test "$hardcode_minus_L_CXX" != no; then
21446 # Linking always hardcodes the temporary library directory.
21447 hardcode_action_CXX=relink
21448 else
21449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21450 hardcode_action_CXX=immediate
21451 fi
21452 else
21453 # We cannot hardcode anything, or else we can only hardcode existing
21454 # directories.
21455 hardcode_action_CXX=unsupported
21456 fi
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21458 $as_echo "$hardcode_action_CXX" >&6; }
21459
21460 if test "$hardcode_action_CXX" = relink ||
21461 test "$inherit_rpath_CXX" = yes; then
21462 # Fast installation is not supported
21463 enable_fast_install=no
21464 elif test "$shlibpath_overrides_runpath" = yes ||
21465 test "$enable_shared" = no; then
21466 # Fast installation is not necessary
21467 enable_fast_install=needless
21468 fi
21469
21470
21471
21472
21473
21474
21475
21476 fi # test -n "$compiler"
21477
21478 CC=$lt_save_CC
21479 LDCXX=$LD
21480 LD=$lt_save_LD
21481 GCC=$lt_save_GCC
21482 with_gnu_ld=$lt_save_with_gnu_ld
21483 lt_cv_path_LDCXX=$lt_cv_path_LD
21484 lt_cv_path_LD=$lt_save_path_LD
21485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21487 fi # test "$_lt_caught_CXX_error" != yes
21488
21489 ac_ext=c
21490 ac_cpp='$CPP $CPPFLAGS'
21491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510 # Only expand once:
21511
21512
21513
21514
21515
21516 # Identify the assembler which will work hand-in-glove with the newly
21517 # built GCC, so that we can examine its features. This is the assembler
21518 # which will be driven by the driver program.
21519 #
21520 # If build != host, and we aren't building gas in-tree, we identify a
21521 # build->target assembler and hope that it will have the same features
21522 # as the host->target assembler we'll be using.
21523 gcc_cv_gas_major_version=
21524 gcc_cv_gas_minor_version=
21525 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21526
21527 if test "${gcc_cv_as+set}" = set; then :
21528
21529 else
21530
21531 if test -x "$DEFAULT_ASSEMBLER"; then
21532 gcc_cv_as="$DEFAULT_ASSEMBLER"
21533 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21534 && test -f ../gas/Makefile \
21535 && test x$build = x$host; then
21536 gcc_cv_as=../gas/as-new$build_exeext
21537 elif test -x as$build_exeext; then
21538 # Build using assembler in the current directory.
21539 gcc_cv_as=./as$build_exeext
21540 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21541 gcc_cv_as="$AS_FOR_TARGET"
21542 else
21543 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21544 set dummy $AS_FOR_TARGET; ac_word=$2
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21546 $as_echo_n "checking for $ac_word... " >&6; }
21547 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21549 else
21550 case $gcc_cv_as in
21551 [\\/]* | ?:[\\/]*)
21552 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21553 ;;
21554 *)
21555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21556 for as_dir in $PATH
21557 do
21558 IFS=$as_save_IFS
21559 test -z "$as_dir" && as_dir=.
21560 for ac_exec_ext in '' $ac_executable_extensions; do
21561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21562 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21564 break 2
21565 fi
21566 done
21567 done
21568 IFS=$as_save_IFS
21569
21570 ;;
21571 esac
21572 fi
21573 gcc_cv_as=$ac_cv_path_gcc_cv_as
21574 if test -n "$gcc_cv_as"; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21576 $as_echo "$gcc_cv_as" >&6; }
21577 else
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 $as_echo "no" >&6; }
21580 fi
21581
21582
21583 fi
21584 fi
21585
21586 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21587
21588 case "$ORIGINAL_AS_FOR_TARGET" in
21589 ./as | ./as$build_exeext) ;;
21590 *) ac_config_files="$ac_config_files as:exec-tool.in"
21591 ;;
21592 esac
21593
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21595 $as_echo_n "checking what assembler to use... " >&6; }
21596 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21597 # Single tree build which includes gas. We want to prefer it
21598 # over whatever linker top-level may have detected, since
21599 # we'll use what we're building after installation anyway.
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21601 $as_echo "newly built gas" >&6; }
21602 in_tree_gas=yes
21603 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21604 for f in $gcc_cv_as_bfd_srcdir/configure \
21605 $gcc_cv_as_gas_srcdir/configure \
21606 $gcc_cv_as_gas_srcdir/configure.in \
21607 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21608 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21609 if test x$gcc_cv_gas_version != x; then
21610 break
21611 fi
21612 done
21613 case $gcc_cv_gas_version in
21614 VERSION=[0-9]*) ;;
21615 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21616 esac
21617 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21618 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21619 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21620 case $gcc_cv_gas_patch_version in
21621 "") gcc_cv_gas_patch_version="0" ;;
21622 esac
21623 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21624 + $gcc_cv_gas_minor_version \) \* 1000 \
21625 + $gcc_cv_gas_patch_version`
21626
21627 in_tree_gas_is_elf=no
21628 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21629 || (grep 'obj_format = multi' ../gas/Makefile \
21630 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21631 then
21632 in_tree_gas_is_elf=yes
21633 fi
21634 else
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21636 $as_echo "$gcc_cv_as" >&6; }
21637 in_tree_gas=no
21638 fi
21639
21640 default_ld=
21641 # Check whether --enable-ld was given.
21642 if test "${enable_ld+set}" = set; then :
21643 enableval=$enable_ld; case "${enableval}" in
21644 no)
21645 default_ld=ld.gold
21646 ;;
21647 esac
21648 fi
21649
21650
21651 install_gold_as_default=no
21652 # Check whether --enable-gold was given.
21653 if test "${enable_gold+set}" = set; then :
21654 enableval=$enable_gold; case "${enableval}" in
21655 default)
21656 install_gold_as_default=yes
21657 ;;
21658 yes)
21659 if test x${default_ld} != x; then
21660 install_gold_as_default=yes
21661 fi
21662 ;;
21663 no)
21664 ;;
21665 *)
21666 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21667 ;;
21668 esac
21669 fi
21670
21671
21672 # Identify the linker which will work hand-in-glove with the newly
21673 # built GCC, so that we can examine its features. This is the linker
21674 # which will be driven by the driver program.
21675 #
21676 # If build != host, and we aren't building gas in-tree, we identify a
21677 # build->target linker and hope that it will have the same features
21678 # as the host->target linker we'll be using.
21679 gcc_cv_gld_major_version=
21680 gcc_cv_gld_minor_version=
21681 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21682 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21683 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21684
21685 if test "${gcc_cv_ld+set}" = set; then :
21686
21687 else
21688
21689 if test -x "$DEFAULT_LINKER"; then
21690 gcc_cv_ld="$DEFAULT_LINKER"
21691 elif test $install_gold_as_default = yes \
21692 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21693 && test -f ../gold/Makefile \
21694 && test x$build = x$host; then
21695 gcc_cv_ld=../gold/ld-new$build_exeext
21696 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21697 && test -f ../ld/Makefile \
21698 && test x$build = x$host; then
21699 gcc_cv_ld=../ld/ld-new$build_exeext
21700 elif test -x collect-ld$build_exeext; then
21701 # Build using linker in the current directory.
21702 gcc_cv_ld=./collect-ld$build_exeext
21703 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21704 gcc_cv_ld="$LD_FOR_TARGET"
21705 else
21706 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21707 set dummy $LD_FOR_TARGET; ac_word=$2
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21709 $as_echo_n "checking for $ac_word... " >&6; }
21710 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21711 $as_echo_n "(cached) " >&6
21712 else
21713 case $gcc_cv_ld in
21714 [\\/]* | ?:[\\/]*)
21715 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21716 ;;
21717 *)
21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in $PATH
21720 do
21721 IFS=$as_save_IFS
21722 test -z "$as_dir" && as_dir=.
21723 for ac_exec_ext in '' $ac_executable_extensions; do
21724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21725 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21727 break 2
21728 fi
21729 done
21730 done
21731 IFS=$as_save_IFS
21732
21733 ;;
21734 esac
21735 fi
21736 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21737 if test -n "$gcc_cv_ld"; then
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21739 $as_echo "$gcc_cv_ld" >&6; }
21740 else
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21742 $as_echo "no" >&6; }
21743 fi
21744
21745
21746 fi
21747 fi
21748
21749 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21750 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21751 # if the PLUGIN_LD is set ld-new, just have it as ld
21752 # as that is the installed named.
21753 if test x$PLUGIN_LD_SUFFIX = xld-new \
21754 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21755 PLUGIN_LD_SUFFIX=ld
21756 fi
21757
21758 # Check whether --with-plugin-ld was given.
21759 if test "${with_plugin_ld+set}" = set; then :
21760 withval=$with_plugin_ld; if test x"$withval" != x; then
21761 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21762 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21763 fi
21764 fi
21765
21766
21767
21768 cat >>confdefs.h <<_ACEOF
21769 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21770 _ACEOF
21771
21772
21773 # Check to see if we are using gold instead of ld
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21775 $as_echo_n "checking whether we are using gold... " >&6; }
21776 ld_is_gold=no
21777 if test x$gcc_cv_ld != x; then
21778 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21779 | grep "GNU gold" > /dev/null; then
21780 ld_is_gold=yes
21781 fi
21782 fi
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21784 $as_echo "$ld_is_gold" >&6; }
21785
21786 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21787
21788 case "$ORIGINAL_LD_FOR_TARGET" in
21789 ./collect-ld | ./collect-ld$build_exeext) ;;
21790 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21791 ;;
21792 esac
21793
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21795 $as_echo_n "checking what linker to use... " >&6; }
21796 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21797 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21798 # Single tree build which includes ld. We want to prefer it
21799 # over whatever linker top-level may have detected, since
21800 # we'll use what we're building after installation anyway.
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21802 $as_echo "newly built ld" >&6; }
21803 in_tree_ld=yes
21804 in_tree_ld_is_elf=no
21805 if (grep 'EMUL = .*elf' ../ld/Makefile \
21806 || grep 'EMUL = .*linux' ../ld/Makefile \
21807 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21808 in_tree_ld_is_elf=yes
21809 elif test "$ld_is_gold" = yes; then
21810 in_tree_ld_is_elf=yes
21811 fi
21812 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
21813 do
21814 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21815 if test x$gcc_cv_gld_version != x; then
21816 break
21817 fi
21818 done
21819 case $gcc_cv_gld_version in
21820 VERSION=[0-9]*) ;;
21821 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21822 esac
21823 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21824 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21825 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21826 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21827 else
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21829 $as_echo "$gcc_cv_ld" >&6; }
21830 in_tree_ld=no
21831 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21832 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21833 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21834 fi
21835
21836
21837
21838
21839 # Figure out what nm we will be using.
21840 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21841 if test "${gcc_cv_nm+set}" = set; then :
21842
21843 else
21844
21845 if test -f $gcc_cv_binutils_srcdir/configure.in \
21846 && test -f ../binutils/Makefile \
21847 && test x$build = x$host; then
21848 gcc_cv_nm=../binutils/nm-new$build_exeext
21849 elif test -x nm$build_exeext; then
21850 gcc_cv_nm=./nm$build_exeext
21851 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21852 gcc_cv_nm="$NM_FOR_TARGET"
21853 else
21854 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21855 set dummy $NM_FOR_TARGET; ac_word=$2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21857 $as_echo_n "checking for $ac_word... " >&6; }
21858 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21860 else
21861 case $gcc_cv_nm in
21862 [\\/]* | ?:[\\/]*)
21863 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21864 ;;
21865 *)
21866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21868 do
21869 IFS=$as_save_IFS
21870 test -z "$as_dir" && as_dir=.
21871 for ac_exec_ext in '' $ac_executable_extensions; do
21872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21873 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875 break 2
21876 fi
21877 done
21878 done
21879 IFS=$as_save_IFS
21880
21881 ;;
21882 esac
21883 fi
21884 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21885 if test -n "$gcc_cv_nm"; then
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21887 $as_echo "$gcc_cv_nm" >&6; }
21888 else
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21891 fi
21892
21893
21894 fi
21895 fi
21896
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21898 $as_echo_n "checking what nm to use... " >&6; }
21899 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21900 # Single tree build which includes binutils.
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21902 $as_echo "newly built nm" >&6; }
21903 in_tree_nm=yes
21904 else
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21906 $as_echo "$gcc_cv_nm" >&6; }
21907 in_tree_nm=no
21908 fi
21909
21910 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21911
21912 case "$ORIGINAL_NM_FOR_TARGET" in
21913 ./nm | ./nm$build_exeext) ;;
21914 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21915 ;;
21916 esac
21917
21918
21919 # Figure out what objdump we will be using.
21920 if test "${gcc_cv_objdump+set}" = set; then :
21921
21922 else
21923
21924 if test -f $gcc_cv_binutils_srcdir/configure.in \
21925 && test -f ../binutils/Makefile \
21926 && test x$build = x$host; then
21927 # Single tree build which includes binutils.
21928 gcc_cv_objdump=../binutils/objdump$build_exeext
21929 elif test -x objdump$build_exeext; then
21930 gcc_cv_objdump=./objdump$build_exeext
21931 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21932 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21933 else
21934 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21935 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21937 $as_echo_n "checking for $ac_word... " >&6; }
21938 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 case $gcc_cv_objdump in
21942 [\\/]* | ?:[\\/]*)
21943 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21944 ;;
21945 *)
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21948 do
21949 IFS=$as_save_IFS
21950 test -z "$as_dir" && as_dir=.
21951 for ac_exec_ext in '' $ac_executable_extensions; do
21952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21953 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21955 break 2
21956 fi
21957 done
21958 done
21959 IFS=$as_save_IFS
21960
21961 ;;
21962 esac
21963 fi
21964 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21965 if test -n "$gcc_cv_objdump"; then
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21967 $as_echo "$gcc_cv_objdump" >&6; }
21968 else
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21970 $as_echo "no" >&6; }
21971 fi
21972
21973
21974 fi
21975 fi
21976
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21978 $as_echo_n "checking what objdump to use... " >&6; }
21979 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21980 # Single tree build which includes binutils.
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21982 $as_echo "newly built objdump" >&6; }
21983 elif test x$gcc_cv_objdump = x; then
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21985 $as_echo "not found" >&6; }
21986 else
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21988 $as_echo "$gcc_cv_objdump" >&6; }
21989 fi
21990
21991 # Figure out what readelf we will be using.
21992 if test "${gcc_cv_readelf+set}" = set; then :
21993
21994 else
21995
21996 if test -f $gcc_cv_binutils_srcdir/configure.in \
21997 && test -f ../binutils/Makefile \
21998 && test x$build = x$host; then
21999 # Single tree build which includes binutils.
22000 gcc_cv_readelf=../binutils/readelf$build_exeext
22001 elif test -x readelf$build_exeext; then
22002 gcc_cv_readelf=./readelf$build_exeext
22003 else
22004 # Extract the first word of "readelf", so it can be a program name with args.
22005 set dummy readelf; ac_word=$2
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22007 $as_echo_n "checking for $ac_word... " >&6; }
22008 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 case $gcc_cv_readelf in
22012 [\\/]* | ?:[\\/]*)
22013 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22014 ;;
22015 *)
22016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22017 for as_dir in $PATH
22018 do
22019 IFS=$as_save_IFS
22020 test -z "$as_dir" && as_dir=.
22021 for ac_exec_ext in '' $ac_executable_extensions; do
22022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22023 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22025 break 2
22026 fi
22027 done
22028 done
22029 IFS=$as_save_IFS
22030
22031 ;;
22032 esac
22033 fi
22034 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22035 if test -n "$gcc_cv_readelf"; then
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22037 $as_echo "$gcc_cv_readelf" >&6; }
22038 else
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22040 $as_echo "no" >&6; }
22041 fi
22042
22043
22044 fi
22045 fi
22046
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22048 $as_echo_n "checking what readelf to use... " >&6; }
22049 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22050 # Single tree build which includes binutils.
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22052 $as_echo "newly built readelf" >&6; }
22053 elif test x$gcc_cv_readelf = x; then
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22055 $as_echo "not found" >&6; }
22056 else
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22058 $as_echo "$gcc_cv_readelf" >&6; }
22059 fi
22060
22061 # Figure out what assembler alignment features are present.
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22063 $as_echo_n "checking assembler flags... " >&6; }
22064 if test "${gcc_cv_as_flags+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 case "$target" in
22068 i[34567]86-*-linux*)
22069 gcc_cv_as_flags=--32
22070 ;;
22071 x86_64-*-linux-gnux32)
22072 gcc_cv_as_flags=--x32
22073 ;;
22074 x86_64-*-linux*)
22075 gcc_cv_as_flags=--64
22076 ;;
22077 powerpc*-*-darwin*)
22078 gcc_cv_as_flags="-arch ppc"
22079 ;;
22080 *)
22081 gcc_cv_as_flags=" "
22082 ;;
22083 esac
22084 fi
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22086 $as_echo "$gcc_cv_as_flags" >&6; }
22087
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22089 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22090 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22091 $as_echo_n "(cached) " >&6
22092 else
22093 gcc_cv_as_balign_and_p2align=no
22094 if test $in_tree_gas = yes; then
22095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22096 then gcc_cv_as_balign_and_p2align=yes
22097 fi
22098 elif test x$gcc_cv_as != x; then
22099 $as_echo '.balign 4
22100 .p2align 2' > conftest.s
22101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22106 test $ac_status = 0; }; }
22107 then
22108 gcc_cv_as_balign_and_p2align=yes
22109 else
22110 echo "configure: failed program was" >&5
22111 cat conftest.s >&5
22112 fi
22113 rm -f conftest.o conftest.s
22114 fi
22115 fi
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22117 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22118 if test $gcc_cv_as_balign_and_p2align = yes; then
22119
22120 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22121
22122 fi
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22125 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22126 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 gcc_cv_as_max_skip_p2align=no
22130 if test $in_tree_gas = yes; then
22131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22132 then gcc_cv_as_max_skip_p2align=yes
22133 fi
22134 elif test x$gcc_cv_as != x; then
22135 $as_echo '.p2align 4,,7' > conftest.s
22136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }; }
22142 then
22143 gcc_cv_as_max_skip_p2align=yes
22144 else
22145 echo "configure: failed program was" >&5
22146 cat conftest.s >&5
22147 fi
22148 rm -f conftest.o conftest.s
22149 fi
22150 fi
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22152 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22153 if test $gcc_cv_as_max_skip_p2align = yes; then
22154
22155 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22156
22157 fi
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22160 $as_echo_n "checking assembler for .literal16... " >&6; }
22161 if test "${gcc_cv_as_literal16+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22163 else
22164 gcc_cv_as_literal16=no
22165 if test $in_tree_gas = yes; then
22166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22167 then gcc_cv_as_literal16=yes
22168 fi
22169 elif test x$gcc_cv_as != x; then
22170 $as_echo '.literal16' > conftest.s
22171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22176 test $ac_status = 0; }; }
22177 then
22178 gcc_cv_as_literal16=yes
22179 else
22180 echo "configure: failed program was" >&5
22181 cat conftest.s >&5
22182 fi
22183 rm -f conftest.o conftest.s
22184 fi
22185 fi
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22187 $as_echo "$gcc_cv_as_literal16" >&6; }
22188 if test $gcc_cv_as_literal16 = yes; then
22189
22190 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22191
22192 fi
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22195 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22196 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22197 $as_echo_n "(cached) " >&6
22198 else
22199 gcc_cv_as_subsection_m1=no
22200 if test $in_tree_gas = yes; then
22201 if test $in_tree_gas_is_elf = yes \
22202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22203 then gcc_cv_as_subsection_m1=yes
22204 fi
22205 elif test x$gcc_cv_as != x; then
22206 $as_echo 'conftest_label1: .word 0
22207 .subsection -1
22208 conftest_label2: .word 0
22209 .previous' > conftest.s
22210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22215 test $ac_status = 0; }; }
22216 then
22217 if test x$gcc_cv_nm != x; then
22218 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22219 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22220 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22221 then :
22222 else gcc_cv_as_subsection_m1=yes
22223 fi
22224 rm -f conftest.nm1 conftest.nm2
22225 fi
22226 else
22227 echo "configure: failed program was" >&5
22228 cat conftest.s >&5
22229 fi
22230 rm -f conftest.o conftest.s
22231 fi
22232 fi
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22234 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22235 if test $gcc_cv_as_subsection_m1 = yes; then
22236
22237 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22238
22239 fi
22240
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22242 $as_echo_n "checking assembler for .weak... " >&6; }
22243 if test "${gcc_cv_as_weak+set}" = set; then :
22244 $as_echo_n "(cached) " >&6
22245 else
22246 gcc_cv_as_weak=no
22247 if test $in_tree_gas = yes; then
22248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22249 then gcc_cv_as_weak=yes
22250 fi
22251 elif test x$gcc_cv_as != x; then
22252 $as_echo ' .weak foobar' > conftest.s
22253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22258 test $ac_status = 0; }; }
22259 then
22260 gcc_cv_as_weak=yes
22261 else
22262 echo "configure: failed program was" >&5
22263 cat conftest.s >&5
22264 fi
22265 rm -f conftest.o conftest.s
22266 fi
22267 fi
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22269 $as_echo "$gcc_cv_as_weak" >&6; }
22270 if test $gcc_cv_as_weak = yes; then
22271
22272 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22273
22274 fi
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22277 $as_echo_n "checking assembler for .weakref... " >&6; }
22278 if test "${gcc_cv_as_weakref+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 gcc_cv_as_weakref=no
22282 if test $in_tree_gas = yes; then
22283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22284 then gcc_cv_as_weakref=yes
22285 fi
22286 elif test x$gcc_cv_as != x; then
22287 $as_echo ' .weakref foobar, barfnot' > conftest.s
22288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22293 test $ac_status = 0; }; }
22294 then
22295 gcc_cv_as_weakref=yes
22296 else
22297 echo "configure: failed program was" >&5
22298 cat conftest.s >&5
22299 fi
22300 rm -f conftest.o conftest.s
22301 fi
22302 fi
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22304 $as_echo "$gcc_cv_as_weakref" >&6; }
22305 if test $gcc_cv_as_weakref = yes; then
22306
22307 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22308
22309 fi
22310
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22312 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22313 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22314 $as_echo_n "(cached) " >&6
22315 else
22316 gcc_cv_as_nsubspa_comdat=no
22317 if test $in_tree_gas = yes; then
22318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22319 then gcc_cv_as_nsubspa_comdat=yes
22320 fi
22321 elif test x$gcc_cv_as != x; then
22322 $as_echo ' .SPACE $TEXT$
22323 .NSUBSPA $CODE$,COMDAT' > conftest.s
22324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; }
22330 then
22331 gcc_cv_as_nsubspa_comdat=yes
22332 else
22333 echo "configure: failed program was" >&5
22334 cat conftest.s >&5
22335 fi
22336 rm -f conftest.o conftest.s
22337 fi
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22340 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22341 if test $gcc_cv_as_nsubspa_comdat = yes; then
22342
22343 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22344
22345 fi
22346
22347 # .hidden needs to be supported in both the assembler and the linker,
22348 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22349 # This is irritatingly difficult to feature test for; we have to check the
22350 # date string after the version number. If we've got an in-tree
22351 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22352 # to be safe.
22353 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22355 $as_echo_n "checking assembler for .hidden... " >&6; }
22356 if test "${gcc_cv_as_hidden+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 gcc_cv_as_hidden=no
22360 if test $in_tree_gas = yes; then
22361 if test $in_tree_gas_is_elf = yes \
22362 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22363 then gcc_cv_as_hidden=yes
22364 fi
22365 elif test x$gcc_cv_as != x; then
22366 $as_echo ' .hidden foobar
22367 foobar:' > conftest.s
22368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22374 then
22375 gcc_cv_as_hidden=yes
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_hidden" >&5
22384 $as_echo "$gcc_cv_as_hidden" >&6; }
22385
22386 case "${target}" in
22387 *-*-darwin*)
22388 # Darwin as has some visibility support, though with a different syntax.
22389 gcc_cv_as_hidden=yes
22390 ;;
22391 esac
22392
22393 # gnu_indirect_function type is an extension proposed at
22394 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22395 # selection of function implementation
22396 # Check whether --enable-gnu-indirect-function was given.
22397 if test "${enable_gnu_indirect_function+set}" = set; then :
22398 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22399 yes | no) ;;
22400 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22401 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22402 esac
22403 else
22404 enable_gnu_indirect_function="$default_gnu_indirect_function"
22405 fi
22406
22407
22408 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22412 _ACEOF
22413
22414
22415
22416 if test $in_tree_ld != yes ; then
22417 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22418 if echo "$ld_ver" | grep GNU > /dev/null; then
22419 if test x"$ld_is_gold" = xyes; then
22420 # GNU gold --version looks like this:
22421 #
22422 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22423 #
22424 # We extract the binutils version which is more familiar and specific
22425 # than the gold version.
22426 ld_vers=`echo $ld_ver | sed -n \
22427 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22428 else
22429 # GNU ld --version looks like this:
22430 #
22431 # GNU ld (GNU Binutils) 2.21.51.20110225
22432 ld_vers=`echo $ld_ver | sed -n \
22433 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22434 fi
22435 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'`
22436 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22437 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22438 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22439 else
22440 case "${target}" in
22441 *-*-solaris2*)
22442 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22443 # format.
22444 #
22445 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22446 # /usr/ccs/bin/ld has been configured.
22447 ld_ver=`$gcc_cv_ld -V 2>&1`
22448 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22449 ld_vers=`echo $ld_ver | sed -n \
22450 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22451 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22452 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22453 fi
22454 ;;
22455 esac
22456 fi
22457 fi
22458
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22460 $as_echo_n "checking linker for .hidden support... " >&6; }
22461 if test "${gcc_cv_ld_hidden+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22463 else
22464 if test $in_tree_ld = yes ; then
22465 gcc_cv_ld_hidden=no
22466 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 \
22467 && test $in_tree_ld_is_elf = yes; then
22468 gcc_cv_ld_hidden=yes
22469 fi
22470 else
22471 gcc_cv_ld_hidden=yes
22472 if test x"$ld_is_gold" = xyes; then
22473 :
22474 elif echo "$ld_ver" | grep GNU > /dev/null; then
22475 case "${target}" in
22476 mmix-knuth-mmixware)
22477 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22478 gcc_cv_ld_hidden=no
22479 ;;
22480 esac
22481 if test 0"$ld_date" -lt 20020404; then
22482 if test -n "$ld_date"; then
22483 # If there was date string, but was earlier than 2002-04-04, fail
22484 gcc_cv_ld_hidden=no
22485 elif test -z "$ld_vers"; then
22486 # If there was no date string nor ld version number, something is wrong
22487 gcc_cv_ld_hidden=no
22488 else
22489 test -z "$ld_vers_patch" && ld_vers_patch=0
22490 if test "$ld_vers_major" -lt 2; then
22491 gcc_cv_ld_hidden=no
22492 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22493 gcc_cv_ld_hidden="no"
22494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22495 gcc_cv_ld_hidden=no
22496 fi
22497 fi
22498 fi
22499 else
22500 case "${target}" in
22501 *-*-darwin*)
22502 # Darwin ld has some visibility support.
22503 gcc_cv_ld_hidden=yes
22504 ;;
22505 hppa64*-*-hpux* | ia64*-*-hpux*)
22506 gcc_cv_ld_hidden=yes
22507 ;;
22508 *-*-solaris2.1[0-9]*)
22509 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22510 # .symbolic was only added in Solaris 9 12/02.
22511 gcc_cv_ld_hidden=yes
22512 ;;
22513 *)
22514 gcc_cv_ld_hidden=no
22515 ;;
22516 esac
22517 fi
22518 fi
22519 fi
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22521 $as_echo "$gcc_cv_ld_hidden" >&6; }
22522 libgcc_visibility=no
22523
22524
22525 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22526 libgcc_visibility=yes
22527
22528 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22529
22530 fi
22531
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22533 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22534 gcc_cv_ld_ro_rw_mix=unknown
22535 if test $in_tree_ld = yes ; then
22536 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 \
22537 && test $in_tree_ld_is_elf = yes; then
22538 gcc_cv_ld_ro_rw_mix=read-write
22539 fi
22540 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22541 echo '.section myfoosect, "a"' > conftest1.s
22542 echo '.section myfoosect, "aw"' > conftest2.s
22543 echo '.byte 1' >> conftest2.s
22544 echo '.section myfoosect, "a"' > conftest3.s
22545 echo '.byte 0' >> conftest3.s
22546 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22547 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22548 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22549 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22550 conftest2.o conftest3.o > /dev/null 2>&1; then
22551 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22552 | sed -e '/myfoosect/!d' -e N`
22553 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22554 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22555 gcc_cv_ld_ro_rw_mix=read-only
22556 else
22557 gcc_cv_ld_ro_rw_mix=read-write
22558 fi
22559 fi
22560 fi
22561 rm -f conftest.* conftest[123].*
22562 fi
22563 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22564
22565 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22566
22567 fi
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22569 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22570
22571 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22572 case "${target}" in
22573 *-*-solaris2*)
22574 #
22575 # Solaris 2 ld -V output looks like this for a regular version:
22576 #
22577 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22578 #
22579 # but test versions add stuff at the end:
22580 #
22581 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22582 #
22583 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22584 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22585 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22586 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22587 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22588 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22589 fi
22590 ;;
22591 esac
22592 fi
22593
22594 # Check whether --enable-initfini-array was given.
22595 if test "${enable_initfini_array+set}" = set; then :
22596 enableval=$enable_initfini_array;
22597 else
22598
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22600 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22601 if test "${gcc_cv_initfini_array+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22605 case "${target}" in
22606 ia64-*)
22607 if test "$cross_compiling" = yes; then :
22608 gcc_cv_initfini_array=no
22609 else
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22612
22613 #ifndef __ELF__
22614 #error Not an ELF OS
22615 #endif
22616 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22617 if it can be used. */
22618 static int x = -1;
22619 int main (void) { return x; }
22620 int foo (void) { x = 0; }
22621 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22622
22623 _ACEOF
22624 if ac_fn_c_try_run "$LINENO"; then :
22625 gcc_cv_initfini_array=yes
22626 else
22627 gcc_cv_initfini_array=no
22628 fi
22629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22630 conftest.$ac_objext conftest.beam conftest.$ac_ext
22631 fi
22632 ;;
22633 *)
22634 gcc_cv_initfini_array=no
22635 if test $in_tree_ld = yes ; then
22636 if test "$gcc_cv_gld_major_version" -eq 2 \
22637 -a "$gcc_cv_gld_minor_version" -ge 22 \
22638 -o "$gcc_cv_gld_major_version" -gt 2 \
22639 && test $in_tree_ld_is_elf = yes; then
22640 gcc_cv_initfini_array=yes
22641 fi
22642 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22643 cat > conftest.s <<\EOF
22644 .section .dtors,"a",%progbits
22645 .balign 4
22646 .byte 'A', 'A', 'A', 'A'
22647 .section .ctors,"a",%progbits
22648 .balign 4
22649 .byte 'B', 'B', 'B', 'B'
22650 .section .fini_array.65530,"a",%progbits
22651 .balign 4
22652 .byte 'C', 'C', 'C', 'C'
22653 .section .init_array.65530,"a",%progbits
22654 .balign 4
22655 .byte 'D', 'D', 'D', 'D'
22656 .section .dtors.64528,"a",%progbits
22657 .balign 4
22658 .byte 'E', 'E', 'E', 'E'
22659 .section .ctors.64528,"a",%progbits
22660 .balign 4
22661 .byte 'F', 'F', 'F', 'F'
22662 .section .fini_array.01005,"a",%progbits
22663 .balign 4
22664 .byte 'G', 'G', 'G', 'G'
22665 .section .init_array.01005,"a",%progbits
22666 .balign 4
22667 .byte 'H', 'H', 'H', 'H'
22668 .text
22669 .globl _start
22670 _start:
22671 EOF
22672 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22673 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22674 && $gcc_cv_objdump -s -j .init_array conftest \
22675 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22676 && $gcc_cv_objdump -s -j .fini_array conftest \
22677 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22678 gcc_cv_initfini_array=yes
22679 fi
22680 rm -f conftest conftest.*
22681 fi
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683 /* end confdefs.h. */
22684
22685 #ifndef __ELF__
22686 # error Not an ELF OS
22687 #endif
22688 #include <stdlib.h>
22689 #if defined __GLIBC_PREREQ
22690 # if __GLIBC_PREREQ (2, 4)
22691 # else
22692 # error GLIBC 2.4 required
22693 # endif
22694 #else
22695 # if defined __sun__ && defined __svr4__
22696 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22697 # else
22698 # error The C library not known to support .init_array/.fini_array
22699 # endif
22700 #endif
22701
22702 _ACEOF
22703 if ac_fn_c_try_cpp "$LINENO"; then :
22704
22705 else
22706 gcc_cv_initfini_array=no
22707 fi
22708 rm -f conftest.err conftest.$ac_ext;;
22709 esac
22710 else
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22712 $as_echo_n "checking cross compile... guessing... " >&6; }
22713 gcc_cv_initfini_array=no
22714 fi
22715 fi
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22717 $as_echo "$gcc_cv_initfini_array" >&6; }
22718 enable_initfini_array=$gcc_cv_initfini_array
22719
22720 fi
22721
22722 if test $enable_initfini_array = yes; then
22723
22724 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22725
22726 fi
22727
22728 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22730 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22731 if test "${gcc_cv_as_leb128+set}" = set; then :
22732 $as_echo_n "(cached) " >&6
22733 else
22734 gcc_cv_as_leb128=no
22735 if test $in_tree_gas = yes; then
22736 if test $in_tree_gas_is_elf = yes \
22737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22738 then gcc_cv_as_leb128=yes
22739 fi
22740 elif test x$gcc_cv_as != x; then
22741 $as_echo ' .data
22742 .uleb128 L2 - L1
22743 L1:
22744 .uleb128 1280
22745 .sleb128 -1010
22746 L2:' > conftest.s
22747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22753 then
22754 # GAS versions before 2.11 do not support uleb128,
22755 # despite appearing to.
22756 # ??? There exists an elf-specific test that will crash
22757 # the assembler. Perhaps it's better to figure out whether
22758 # arbitrary sections are supported and try the test.
22759 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22760 if echo "$as_ver" | grep GNU > /dev/null; then
22761 as_vers=`echo $as_ver | sed -n \
22762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22763 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22764 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22765 if test $as_major -eq 2 && test $as_minor -lt 11
22766 then :
22767 else gcc_cv_as_leb128=yes
22768 fi
22769 fi
22770 else
22771 echo "configure: failed program was" >&5
22772 cat conftest.s >&5
22773 fi
22774 rm -f conftest.o conftest.s
22775 fi
22776 fi
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22778 $as_echo "$gcc_cv_as_leb128" >&6; }
22779 if test $gcc_cv_as_leb128 = yes; then
22780
22781 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22782
22783 fi
22784
22785 # Check if we have assembler support for unwind directives.
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22787 $as_echo_n "checking assembler for cfi directives... " >&6; }
22788 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22789 $as_echo_n "(cached) " >&6
22790 else
22791 gcc_cv_as_cfi_directive=no
22792 if test x$gcc_cv_as != x; then
22793 $as_echo ' .text
22794 .cfi_startproc
22795 .cfi_offset 0, 0
22796 .cfi_same_value 1
22797 .cfi_def_cfa 1, 2
22798 .cfi_escape 1, 2, 3, 4, 5
22799 .cfi_endproc' > conftest.s
22800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22806 then
22807 case "$target" in
22808 *-*-solaris*)
22809 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22810 # read-only and read-write sections, we need to make sure that the
22811 # assembler used emits read-write .eh_frame sections.
22812 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22813 if test "x$gcc_cv_objdump" != x; then
22814 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22815 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22816 gcc_cv_as_cfi_directive=no
22817 else
22818 case "$target" in
22819 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22820 # On Solaris/x86, make sure that GCC and assembler agree on using
22821 # read-only .eh_frame sections for 64-bit.
22822 if test x$gas = xyes; then
22823 as_ix86_64_opt="--64"
22824 else
22825 as_ix86_64_opt="-xarch=amd64"
22826 fi
22827 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22828 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22829 sed -e /.eh_frame/!d -e N | \
22830 grep READONLY > /dev/null; then
22831 gcc_cv_as_cfi_directive=yes
22832 else
22833 gcc_cv_as_cfi_directive=no
22834 fi
22835 ;;
22836 *)
22837 gcc_cv_as_cfi_directive=yes
22838 ;;
22839 esac
22840 fi
22841 else
22842 # no objdump, err on the side of caution
22843 gcc_cv_as_cfi_directive=no
22844 fi
22845 else
22846 gcc_cv_as_cfi_directive=yes
22847 fi
22848 ;;
22849 *-*-*)
22850 gcc_cv_as_cfi_directive=yes
22851 ;;
22852 esac
22853 else
22854 echo "configure: failed program was" >&5
22855 cat conftest.s >&5
22856 fi
22857 rm -f conftest.o conftest.s
22858 fi
22859 fi
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22861 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22862
22863 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22865 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22866 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22867 $as_echo_n "(cached) " >&6
22868 else
22869 gcc_cv_as_cfi_advance_working=no
22870 if test x$gcc_cv_as != x; then
22871 $as_echo ' .text
22872 .cfi_startproc
22873 .cfi_adjust_cfa_offset 64
22874 .skip 75040, 0
22875 .cfi_adjust_cfa_offset 128
22876 .cfi_endproc' > conftest.s
22877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22882 test $ac_status = 0; }; }
22883 then
22884
22885 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22886 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22887 gcc_cv_as_cfi_advance_working=yes
22888 fi
22889
22890 else
22891 echo "configure: failed program was" >&5
22892 cat conftest.s >&5
22893 fi
22894 rm -f conftest.o conftest.s
22895 fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22898 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22899
22900 else
22901 # no objdump, err on the side of caution
22902 gcc_cv_as_cfi_advance_working=no
22903 fi
22904
22905
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22908 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22909 _ACEOF
22910
22911
22912
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22914 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22915 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22917 else
22918 gcc_cv_as_cfi_personality_directive=no
22919 if test x$gcc_cv_as != x; then
22920 $as_echo ' .text
22921 .cfi_startproc
22922 .cfi_personality 0, symbol
22923 .cfi_endproc' > conftest.s
22924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }
22930 then
22931 gcc_cv_as_cfi_personality_directive=yes
22932 else
22933 echo "configure: failed program was" >&5
22934 cat conftest.s >&5
22935 fi
22936 rm -f conftest.o conftest.s
22937 fi
22938 fi
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22940 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22941
22942
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22945 then echo 1; else echo 0; fi`
22946 _ACEOF
22947
22948
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22950 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22951 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 gcc_cv_as_cfi_sections_directive=no
22955 if test x$gcc_cv_as != x; then
22956 $as_echo ' .text
22957 .cfi_sections .debug_frame, .eh_frame
22958 .cfi_startproc
22959 .cfi_endproc' > conftest.s
22960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22965 test $ac_status = 0; }; }
22966 then
22967 case $target_os in
22968 win32 | pe | cygwin* | mingw32* | uwin*)
22969 # Need to check that we generated the correct relocation for the
22970 # .debug_frame section. This was fixed for binutils 2.21.
22971 gcc_cv_as_cfi_sections_directive=no
22972 if test "x$gcc_cv_objdump" != x; then
22973 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22974 grep secrel > /dev/null; then
22975 gcc_cv_as_cfi_sections_directive=yes
22976 fi
22977 fi
22978 ;;
22979 *)
22980 gcc_cv_as_cfi_sections_directive=yes
22981 ;;
22982 esac
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_cfi_sections_directive" >&5
22991 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22992
22993
22994
22995 cat >>confdefs.h <<_ACEOF
22996 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22997 then echo 1; else echo 0; fi`
22998 _ACEOF
22999
23000
23001 # GAS versions up to and including 2.11.0 may mis-optimize
23002 # .eh_frame data.
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23004 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23005 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23007 else
23008 gcc_cv_as_eh_frame=no
23009 if test $in_tree_gas = yes; then
23010 if test $in_tree_gas_is_elf = yes \
23011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23012 then gcc_cv_as_eh_frame=yes
23013 fi
23014 elif test x$gcc_cv_as != x; then
23015 $as_echo ' .text
23016 .LFB1:
23017 .4byte 0
23018 .L1:
23019 .4byte 0
23020 .LFE1:
23021 .section .eh_frame,"aw",@progbits
23022 __FRAME_BEGIN__:
23023 .4byte .LECIE1-.LSCIE1
23024 .LSCIE1:
23025 .4byte 0x0
23026 .byte 0x1
23027 .ascii "z\0"
23028 .byte 0x1
23029 .byte 0x78
23030 .byte 0x1a
23031 .byte 0x0
23032 .byte 0x4
23033 .4byte 1
23034 .p2align 1
23035 .LECIE1:
23036 .LSFDE1:
23037 .4byte .LEFDE1-.LASFDE1
23038 .LASFDE1:
23039 .4byte .LASFDE1-__FRAME_BEGIN__
23040 .4byte .LFB1
23041 .4byte .LFE1-.LFB1
23042 .byte 0x4
23043 .4byte .LFE1-.LFB1
23044 .byte 0x4
23045 .4byte .L1-.LFB1
23046 .LEFDE1:' > conftest.s
23047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23052 test $ac_status = 0; }; }
23053 then
23054 cat > conftest.lit <<EOF
23055 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23056 0010 01000000 12000000 18000000 00000000 ................
23057 0020 08000000 04080000 0044 .........D
23058 EOF
23059 cat > conftest.big <<EOF
23060 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23061 0010 00000001 00000012 00000018 00000000 ................
23062 0020 00000008 04000000 0844 .........D
23063 EOF
23064 # If the assembler didn't choke, and we can objdump,
23065 # and we got the correct data, then succeed.
23066 # The text in the here-document typically retains its unix-style line
23067 # endings, while the output of objdump will use host line endings.
23068 # Therefore, use diff -b for the comparisons.
23069 if test x$gcc_cv_objdump != x \
23070 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23071 | tail -3 > conftest.got \
23072 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23073 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23074 then
23075 gcc_cv_as_eh_frame=yes
23076 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23081 test $ac_status = 0; }; }; then
23082 gcc_cv_as_eh_frame=buggy
23083 else
23084 # Uh oh, what do we do now?
23085 gcc_cv_as_eh_frame=no
23086 fi
23087 else
23088 echo "configure: failed program was" >&5
23089 cat conftest.s >&5
23090 fi
23091 rm -f conftest.o conftest.s
23092 fi
23093 fi
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23095 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23096
23097
23098 if test $gcc_cv_as_eh_frame = buggy; then
23099
23100 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23101
23102 fi
23103
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23105 $as_echo_n "checking assembler for section merging support... " >&6; }
23106 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23108 else
23109 gcc_cv_as_shf_merge=no
23110 if test $in_tree_gas = yes; then
23111 if test $in_tree_gas_is_elf = yes \
23112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23113 then gcc_cv_as_shf_merge=yes
23114 fi
23115 elif test x$gcc_cv_as != x; then
23116 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23123 then
23124 gcc_cv_as_shf_merge=yes
23125 else
23126 echo "configure: failed program was" >&5
23127 cat conftest.s >&5
23128 fi
23129 rm -f conftest.o conftest.s
23130 fi
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23133 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23134
23135 if test $gcc_cv_as_shf_merge = no; then
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23137 $as_echo_n "checking assembler for section merging support... " >&6; }
23138 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23139 $as_echo_n "(cached) " >&6
23140 else
23141 gcc_cv_as_shf_merge=no
23142 if test $in_tree_gas = yes; then
23143 if test $in_tree_gas_is_elf = yes \
23144 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23145 then gcc_cv_as_shf_merge=yes
23146 fi
23147 elif test x$gcc_cv_as != x; then
23148 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23155 then
23156 gcc_cv_as_shf_merge=yes
23157 else
23158 echo "configure: failed program was" >&5
23159 cat conftest.s >&5
23160 fi
23161 rm -f conftest.o conftest.s
23162 fi
23163 fi
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23165 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23166
23167 fi
23168
23169 cat >>confdefs.h <<_ACEOF
23170 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23171 _ACEOF
23172
23173
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23175 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23176 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23178 else
23179 gcc_cv_as_comdat_group=no
23180 if test $in_tree_gas = yes; then
23181 if test $in_tree_gas_is_elf = yes \
23182 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23183 then gcc_cv_as_comdat_group=yes
23184 fi
23185 elif test x$gcc_cv_as != x; then
23186 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23193 then
23194 gcc_cv_as_comdat_group=yes
23195 else
23196 echo "configure: failed program was" >&5
23197 cat conftest.s >&5
23198 fi
23199 rm -f conftest.o conftest.s
23200 fi
23201 fi
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23203 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23204
23205 if test $gcc_cv_as_comdat_group = yes; then
23206 gcc_cv_as_comdat_group_percent=no
23207 gcc_cv_as_comdat_group_group=no
23208 else
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23210 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23211 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23212 $as_echo_n "(cached) " >&6
23213 else
23214 gcc_cv_as_comdat_group_percent=no
23215 if test $in_tree_gas = yes; then
23216 if test $in_tree_gas_is_elf = yes \
23217 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23218 then gcc_cv_as_comdat_group_percent=yes
23219 fi
23220 elif test x$gcc_cv_as != x; then
23221 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }
23228 then
23229 gcc_cv_as_comdat_group_percent=yes
23230 else
23231 echo "configure: failed program was" >&5
23232 cat conftest.s >&5
23233 fi
23234 rm -f conftest.o conftest.s
23235 fi
23236 fi
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23238 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23239
23240 if test $gcc_cv_as_comdat_group_percent = yes; then
23241 gcc_cv_as_comdat_group_group=no
23242 else
23243 case "${target}" in
23244 # Sun as uses a completely different syntax.
23245 *-*-solaris2*)
23246 case "${target}" in
23247 sparc*-*-solaris2*)
23248 conftest_s='
23249 .group foo,".text%foo",#comdat
23250 .section ".text%foo", #alloc,#execinstr,#progbits
23251 .globl foo
23252 foo:
23253 '
23254 ;;
23255 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23256 conftest_s='
23257 .group foo,.text%foo,#comdat
23258 .section .text%foo, "ax", @progbits
23259 .globl foo
23260 foo:
23261 '
23262 ;;
23263 esac
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23265 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23266 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23268 else
23269 gcc_cv_as_comdat_group_group=no
23270 if test x$gcc_cv_as != x; then
23271 $as_echo "$conftest_s" > conftest.s
23272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23278 then
23279 gcc_cv_as_comdat_group_group=yes
23280 else
23281 echo "configure: failed program was" >&5
23282 cat conftest.s >&5
23283 fi
23284 rm -f conftest.o conftest.s
23285 fi
23286 fi
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23288 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23289
23290 ;;
23291 esac
23292 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23293 gcc_cv_as_comdat_group_group=no
23294 fi
23295 fi
23296 fi
23297 if test x"$ld_is_gold" = xyes; then
23298 comdat_group=yes
23299 elif test $in_tree_ld = yes ; then
23300 comdat_group=no
23301 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 \
23302 && test $in_tree_ld_is_elf = yes; then
23303 comdat_group=yes
23304 fi
23305 elif echo "$ld_ver" | grep GNU > /dev/null; then
23306 comdat_group=yes
23307 if test 0"$ld_date" -lt 20050308; then
23308 if test -n "$ld_date"; then
23309 # If there was date string, but was earlier than 2005-03-08, fail
23310 comdat_group=no
23311 elif test "$ld_vers_major" -lt 2; then
23312 comdat_group=no
23313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23314 comdat_group=no
23315 fi
23316 fi
23317 else
23318 case "${target}" in
23319 *-*-solaris2.1[1-9]*)
23320 comdat_group=no
23321 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23322 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23323 # version 1.688.
23324 #
23325 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23326 # least ld version 1.2267.
23327 if test "$ld_vers_major" -gt 1; then
23328 comdat_group=yes
23329 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23330 comdat_group=yes
23331 elif test "$ld_vers_minor" -ge 2267; then
23332 comdat_group=yes
23333 fi
23334 ;;
23335 *)
23336 # Assume linkers other than GNU ld don't support COMDAT group.
23337 comdat_group=no
23338 ;;
23339 esac
23340 fi
23341 # Allow overriding the automatic COMDAT group tests above.
23342 # Check whether --enable-comdat was given.
23343 if test "${enable_comdat+set}" = set; then :
23344 enableval=$enable_comdat; comdat_group="$enable_comdat"
23345 fi
23346
23347 if test $comdat_group = no; then
23348 gcc_cv_as_comdat_group=no
23349 gcc_cv_as_comdat_group_percent=no
23350 gcc_cv_as_comdat_group_group=no
23351 fi
23352
23353 cat >>confdefs.h <<_ACEOF
23354 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23355 || test $gcc_cv_as_comdat_group_percent = yes \
23356 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23357 _ACEOF
23358
23359
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23361 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23362 if test "${gcc_cv_as_discriminator+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 gcc_cv_as_discriminator=no
23366 if test $in_tree_gas = yes; then
23367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23368 then gcc_cv_as_discriminator=yes
23369 fi
23370 elif test x$gcc_cv_as != x; then
23371 $as_echo ' .text
23372 .file 1 "conf.c"
23373 .loc 1 1 0 discriminator 1' > conftest.s
23374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23379 test $ac_status = 0; }; }
23380 then
23381 gcc_cv_as_discriminator=yes
23382 else
23383 echo "configure: failed program was" >&5
23384 cat conftest.s >&5
23385 fi
23386 rm -f conftest.o conftest.s
23387 fi
23388 fi
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23390 $as_echo "$gcc_cv_as_discriminator" >&6; }
23391 if test $gcc_cv_as_discriminator = yes; then
23392
23393 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23394
23395 fi
23396
23397 # Thread-local storage - the check is heavily parameterized.
23398 conftest_s=
23399 tls_first_major=
23400 tls_first_minor=
23401 tls_as_opt=
23402 case "$target" in
23403 alpha*-*-*)
23404 conftest_s='
23405 .section ".tdata","awT",@progbits
23406 foo: .long 25
23407 .text
23408 ldq $27,__tls_get_addr($29) !literal!1
23409 lda $16,foo($29) !tlsgd!1
23410 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23411 ldq $27,__tls_get_addr($29) !literal!2
23412 lda $16,foo($29) !tlsldm!2
23413 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23414 ldq $1,foo($29) !gotdtprel
23415 ldah $2,foo($29) !dtprelhi
23416 lda $3,foo($2) !dtprello
23417 lda $4,foo($29) !dtprel
23418 ldq $1,foo($29) !gottprel
23419 ldah $2,foo($29) !tprelhi
23420 lda $3,foo($2) !tprello
23421 lda $4,foo($29) !tprel'
23422 tls_first_major=2
23423 tls_first_minor=13
23424 tls_as_opt=--fatal-warnings
23425 ;;
23426 cris-*-*|crisv32-*-*)
23427 conftest_s='
23428 .section ".tdata","awT",@progbits
23429 x: .long 25
23430 .text
23431 move.d x:IE,$r10
23432 nop'
23433 tls_first_major=2
23434 tls_first_minor=20
23435 tls_as_opt=--fatal-warnings
23436 ;;
23437 frv*-*-*)
23438 conftest_s='
23439 .section ".tdata","awT",@progbits
23440 x: .long 25
23441 .text
23442 call #gettlsoff(x)'
23443 tls_first_major=2
23444 tls_first_minor=14
23445 ;;
23446 hppa*-*-linux*)
23447 conftest_s='
23448 t1: .reg %r20
23449 t2: .reg %r21
23450 gp: .reg %r19
23451 .section ".tdata","awT",@progbits
23452 foo: .long 25
23453 .text
23454 .align 4
23455 addil LT%foo-$tls_gdidx$,gp
23456 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23457 b __tls_get_addr
23458 nop
23459 addil LT%foo-$tls_ldidx$,gp
23460 b __tls_get_addr
23461 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23462 addil LR%foo-$tls_dtpoff$,%ret0
23463 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23464 mfctl %cr27,%t1
23465 addil LT%foo-$tls_ieoff$,gp
23466 ldw RT%foo-$tls_ieoff$(%r1),%t2
23467 add %t1,%t2,%t3
23468 mfctl %cr27,%t1
23469 addil LR%foo-$tls_leoff$,%t1
23470 ldo RR%foo-$tls_leoff$(%r1),%t2'
23471 tls_first_major=2
23472 tls_first_minor=15
23473 tls_as_opt=--fatal-warnings
23474 ;;
23475 arm*-*-*)
23476 conftest_s='
23477 .section ".tdata","awT",%progbits
23478 foo: .long 25
23479 .text
23480 .word foo(gottpoff)
23481 .word foo(tpoff)
23482 .word foo(tlsgd)
23483 .word foo(tlsldm)
23484 .word foo(tlsldo)'
23485 tls_first_major=2
23486 tls_first_minor=17
23487 ;;
23488 i[34567]86-*-* | x86_64-*-*)
23489 case "$target" in
23490 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23491 on_solaris=yes
23492 ;;
23493 *)
23494 on_solaris=no
23495 ;;
23496 esac
23497 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23498 conftest_s='
23499 .section .tdata,"awt",@progbits'
23500 tls_first_major=0
23501 tls_first_minor=0
23502 tls_section_flag=t
23503
23504 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23505
23506 else
23507 conftest_s='
23508 .section ".tdata","awT",@progbits'
23509 tls_first_major=2
23510 tls_first_minor=14
23511 tls_section_flag=T
23512 tls_as_opt="--fatal-warnings"
23513 fi
23514 case "$target" in
23515 i[34567]86-*-*)
23516 conftest_s="$conftest_s
23517 foo: .long 25
23518 .text
23519 movl %gs:0, %eax
23520 leal foo@tlsgd(,%ebx,1), %eax
23521 leal foo@tlsldm(%ebx), %eax
23522 leal foo@dtpoff(%eax), %edx
23523 movl foo@gottpoff(%ebx), %eax
23524 subl foo@gottpoff(%ebx), %eax
23525 addl foo@gotntpoff(%ebx), %eax
23526 movl foo@indntpoff, %eax
23527 movl \$foo@tpoff, %eax
23528 subl \$foo@tpoff, %eax
23529 leal foo@ntpoff(%ecx), %eax"
23530 ;;
23531 x86_64-*-*)
23532 if test x$on_solaris = xyes; then
23533 case $gas_flag in
23534 yes) tls_as_opt="$tls_as_opt --64" ;;
23535 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23536 esac
23537 fi
23538 conftest_s="$conftest_s
23539 foo: .long 25
23540 .text
23541 movq %fs:0, %rax
23542 leaq foo@tlsgd(%rip), %rdi
23543 leaq foo@tlsld(%rip), %rdi
23544 leaq foo@dtpoff(%rax), %rdx
23545 movq foo@gottpoff(%rip), %rax
23546 movq \$foo@tpoff, %rax"
23547 ;;
23548 esac
23549 ;;
23550 ia64-*-*)
23551 conftest_s='
23552 .section ".tdata","awT",@progbits
23553 foo: data8 25
23554 .text
23555 addl r16 = @ltoff(@dtpmod(foo#)), gp
23556 addl r17 = @ltoff(@dtprel(foo#)), gp
23557 addl r18 = @ltoff(@tprel(foo#)), gp
23558 addl r19 = @dtprel(foo#), gp
23559 adds r21 = @dtprel(foo#), r13
23560 movl r23 = @dtprel(foo#)
23561 addl r20 = @tprel(foo#), gp
23562 adds r22 = @tprel(foo#), r13
23563 movl r24 = @tprel(foo#)'
23564 tls_first_major=2
23565 tls_first_minor=13
23566 tls_as_opt=--fatal-warnings
23567 ;;
23568 microblaze*-*-*)
23569 conftest_s='
23570 .section .tdata,"awT",@progbits
23571 x:
23572 .word 2
23573 .text
23574 addik r5,r20,x@TLSGD
23575 addik r5,r20,x@TLSLDM'
23576 tls_first_major=2
23577 tls_first_minor=20
23578 tls_as_opt='--fatal-warnings'
23579 ;;
23580 mips*-*-*)
23581 conftest_s='
23582 .section .tdata,"awT",@progbits
23583 x:
23584 .word 2
23585 .text
23586 addiu $4, $28, %tlsgd(x)
23587 addiu $4, $28, %tlsldm(x)
23588 lui $4, %dtprel_hi(x)
23589 addiu $4, $4, %dtprel_lo(x)
23590 lw $4, %gottprel(x)($28)
23591 lui $4, %tprel_hi(x)
23592 addiu $4, $4, %tprel_lo(x)'
23593 tls_first_major=2
23594 tls_first_minor=16
23595 tls_as_opt='-32 --fatal-warnings'
23596 ;;
23597 m68k-*-*)
23598 conftest_s='
23599 .section .tdata,"awT",@progbits
23600 x:
23601 .word 2
23602 .text
23603 foo:
23604 move.l x@TLSGD(%a5),%a0
23605 move.l x@TLSLDM(%a5),%a0
23606 move.l x@TLSLDO(%a5),%a0
23607 move.l x@TLSIE(%a5),%a0
23608 move.l x@TLSLE(%a5),%a0'
23609 tls_first_major=2
23610 tls_first_minor=19
23611 tls_as_opt='--fatal-warnings'
23612 ;;
23613 nios2-*-*)
23614 conftest_s='
23615 .section ".tdata","awT",@progbits'
23616 tls_first_major=2
23617 tls_first_minor=23
23618 tls_as_opt="--fatal-warnings"
23619 ;;
23620 aarch64*-*-*)
23621 conftest_s='
23622 .section ".tdata","awT",%progbits
23623 foo: .long 25
23624 .text
23625 adrp x0, :tlsgd:x
23626 add x0, x0, #:tlsgd_lo12:x
23627 bl __tls_get_addr
23628 nop'
23629 tls_first_major=2
23630 tls_first_minor=20
23631 tls_as_opt='--fatal-warnings'
23632 ;;
23633 powerpc-ibm-aix*)
23634 conftest_s='
23635 .extern __get_tpointer
23636 .toc
23637 LC..1:
23638 .tc a[TC],a[TL]@le
23639 .csect .text[PR]
23640 .tlstest:
23641 lwz 9,LC..1(2)
23642 bla __get_tpointer
23643 lwzx 3,9,3
23644 .globl a
23645 .csect a[TL],4
23646 a:
23647 .space 4'
23648 tls_first_major=0
23649 tls_first_minor=0
23650 ;;
23651 powerpc64*-*-*)
23652 conftest_s='
23653 .section ".tdata","awT",@progbits
23654 .align 3
23655 ld0: .space 8
23656 ld1: .space 8
23657 x1: .space 8
23658 x2: .space 8
23659 x3: .space 8
23660 .text
23661 addi 3,2,ld0@got@tlsgd
23662 bl .__tls_get_addr
23663 nop
23664 addi 3,2,ld1@toc
23665 bl .__tls_get_addr
23666 nop
23667 addi 3,2,x1@got@tlsld
23668 bl .__tls_get_addr
23669 nop
23670 addi 9,3,x1@dtprel
23671 bl .__tls_get_addr
23672 nop
23673 addis 9,3,x2@dtprel@ha
23674 addi 9,9,x2@dtprel@l
23675 bl .__tls_get_addr
23676 nop
23677 ld 9,x3@got@dtprel(2)
23678 add 9,9,3
23679 bl .__tls_get_addr
23680 nop'
23681 tls_first_major=2
23682 tls_first_minor=14
23683 tls_as_opt="-a64 --fatal-warnings"
23684 ;;
23685 powerpc*-*-*)
23686 conftest_s='
23687 .section ".tdata","awT",@progbits
23688 .align 2
23689 ld0: .space 4
23690 ld1: .space 4
23691 x1: .space 4
23692 x2: .space 4
23693 x3: .space 4
23694 .text
23695 addi 3,31,ld0@got@tlsgd
23696 bl __tls_get_addr
23697 addi 3,31,x1@got@tlsld
23698 bl __tls_get_addr
23699 addi 9,3,x1@dtprel
23700 addis 9,3,x2@dtprel@ha
23701 addi 9,9,x2@dtprel@l
23702 lwz 9,x3@got@tprel(31)
23703 add 9,9,x@tls
23704 addi 9,2,x1@tprel
23705 addis 9,2,x2@tprel@ha
23706 addi 9,9,x2@tprel@l'
23707 tls_first_major=2
23708 tls_first_minor=14
23709 tls_as_opt="-a32 --fatal-warnings"
23710 ;;
23711 s390-*-*)
23712 conftest_s='
23713 .section ".tdata","awT",@progbits
23714 foo: .long 25
23715 .text
23716 .long foo@TLSGD
23717 .long foo@TLSLDM
23718 .long foo@DTPOFF
23719 .long foo@NTPOFF
23720 .long foo@GOTNTPOFF
23721 .long foo@INDNTPOFF
23722 l %r1,foo@GOTNTPOFF(%r12)
23723 l %r1,0(%r1):tls_load:foo
23724 bas %r14,0(%r1,%r13):tls_gdcall:foo
23725 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23726 tls_first_major=2
23727 tls_first_minor=14
23728 tls_as_opt="-m31 --fatal-warnings"
23729 ;;
23730 s390x-*-*)
23731 conftest_s='
23732 .section ".tdata","awT",@progbits
23733 foo: .long 25
23734 .text
23735 .quad foo@TLSGD
23736 .quad foo@TLSLDM
23737 .quad foo@DTPOFF
23738 .quad foo@NTPOFF
23739 .quad foo@GOTNTPOFF
23740 lg %r1,foo@GOTNTPOFF(%r12)
23741 larl %r1,foo@INDNTPOFF
23742 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23743 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23744 tls_first_major=2
23745 tls_first_minor=14
23746 tls_as_opt="-m64 -Aesame --fatal-warnings"
23747 ;;
23748 sh-*-* | sh[34]-*-*)
23749 conftest_s='
23750 .section ".tdata","awT",@progbits
23751 foo: .long 25
23752 .text
23753 .long foo@TLSGD
23754 .long foo@TLSLDM
23755 .long foo@DTPOFF
23756 .long foo@GOTTPOFF
23757 .long foo@TPOFF'
23758 tls_first_major=2
23759 tls_first_minor=13
23760 tls_as_opt=--fatal-warnings
23761 ;;
23762 sparc*-*-*)
23763 case "$target" in
23764 sparc*-sun-solaris2.*)
23765 on_solaris=yes
23766 ;;
23767 *)
23768 on_solaris=no
23769 ;;
23770 esac
23771 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23772 conftest_s='
23773 .section ".tdata",#alloc,#write,#tls'
23774 tls_first_major=0
23775 tls_first_minor=0
23776 else
23777 conftest_s='
23778 .section ".tdata","awT",@progbits'
23779 tls_first_major=2
23780 tls_first_minor=14
23781 tls_as_opt="-32 --fatal-warnings"
23782 fi
23783 conftest_s="$conftest_s
23784 foo: .long 25
23785 .text
23786 sethi %tgd_hi22(foo), %o0
23787 add %o0, %tgd_lo10(foo), %o1
23788 add %l7, %o1, %o0, %tgd_add(foo)
23789 call __tls_get_addr, %tgd_call(foo)
23790 sethi %tldm_hi22(foo), %l1
23791 add %l1, %tldm_lo10(foo), %l2
23792 add %l7, %l2, %o0, %tldm_add(foo)
23793 call __tls_get_addr, %tldm_call(foo)
23794 sethi %tldo_hix22(foo), %l3
23795 xor %l3, %tldo_lox10(foo), %l4
23796 add %o0, %l4, %l5, %tldo_add(foo)
23797 sethi %tie_hi22(foo), %o3
23798 add %o3, %tie_lo10(foo), %o3
23799 ld [%l7 + %o3], %o2, %tie_ld(foo)
23800 add %g7, %o2, %o4, %tie_add(foo)
23801 sethi %tle_hix22(foo), %l1
23802 xor %l1, %tle_lox10(foo), %o5
23803 ld [%g7 + %o5], %o1"
23804 ;;
23805 tilepro*-*-*)
23806 conftest_s='
23807 .section ".tdata","awT",@progbits
23808 foo: .long 25
23809 .text
23810 addli r0, zero, tls_gd(foo)
23811 auli r0, zero, tls_gd_ha16(foo)
23812 addli r0, r0, tls_gd_lo16(foo)
23813 jal __tls_get_addr
23814 addli r0, zero, tls_ie(foo)
23815 auli r0, r0, tls_ie_ha16(foo)
23816 addli r0, r0, tls_ie_lo16(foo)'
23817 tls_first_major=2
23818 tls_first_minor=22
23819 tls_as_opt="--fatal-warnings"
23820 ;;
23821 tilegx*-*-*)
23822 conftest_s='
23823 .section ".tdata","awT",@progbits
23824 foo: .long 25
23825 .text
23826 shl16insli r0, zero, hw0_last_tls_gd(foo)
23827 shl16insli r0, zero, hw1_last_tls_gd(foo)
23828 shl16insli r0, r0, hw0_tls_gd(foo)
23829 jal __tls_get_addr
23830 shl16insli r0, zero, hw1_last_tls_ie(foo)
23831 shl16insli r0, r0, hw0_tls_ie(foo)'
23832 tls_first_major=2
23833 tls_first_minor=22
23834 tls_as_opt="--fatal-warnings"
23835 ;;
23836 xtensa*-*-*)
23837 conftest_s='
23838 .section ".tdata","awT",@progbits
23839 foo: .long 25
23840 .text
23841 movi a8, foo@TLSFUNC
23842 movi a10, foo@TLSARG
23843 callx8.tls a8, foo@TLSCALL'
23844 tls_first_major=2
23845 tls_first_minor=19
23846 ;;
23847 esac
23848 set_have_as_tls=no
23849 if test "x$enable_tls" = xno ; then
23850 : # TLS explicitly disabled.
23851 elif test "x$enable_tls" = xyes ; then
23852 set_have_as_tls=yes # TLS explicitly enabled.
23853 elif test -z "$tls_first_major"; then
23854 : # If we don't have a check, assume no support.
23855 else
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23857 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23858 if test "${gcc_cv_as_tls+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23860 else
23861 gcc_cv_as_tls=no
23862 if test $in_tree_gas = yes; then
23863 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23864 then gcc_cv_as_tls=yes
23865 fi
23866 elif test x$gcc_cv_as != x; then
23867 $as_echo "$conftest_s" > conftest.s
23868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23873 test $ac_status = 0; }; }
23874 then
23875 gcc_cv_as_tls=yes
23876 else
23877 echo "configure: failed program was" >&5
23878 cat conftest.s >&5
23879 fi
23880 rm -f conftest.o conftest.s
23881 fi
23882 fi
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23884 $as_echo "$gcc_cv_as_tls" >&6; }
23885 if test $gcc_cv_as_tls = yes; then
23886 set_have_as_tls=yes
23887 fi
23888 fi
23889 if test $set_have_as_tls = yes ; then
23890
23891 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23892
23893 fi
23894
23895 # Target-specific assembler checks.
23896
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23898 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23899 gcc_cv_ld_static_dynamic=no
23900 gcc_cv_ld_static_option='-Bstatic'
23901 gcc_cv_ld_dynamic_option='-Bdynamic'
23902 if test $in_tree_ld = yes ; then
23903 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
23904 gcc_cv_ld_static_dynamic=yes
23905 fi
23906 elif test x$gcc_cv_ld != x; then
23907 # Check if linker supports -Bstatic/-Bdynamic option
23908 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23909 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23910 gcc_cv_ld_static_dynamic=yes
23911 else
23912 case "$target" in
23913 # AIX ld uses -b flags
23914 *-*-aix4.[23]* | *-*-aix[5-9]*)
23915 gcc_cv_ld_static_dynamic=yes
23916 gcc_cv_ld_static_option="-bstatic"
23917 gcc_cv_ld_dynamic_option="-bdynamic"
23918 ;;
23919 # HP-UX ld uses -a flags to select between shared and archive.
23920 *-*-hpux*)
23921 if test x"$gnu_ld" = xno; then
23922 gcc_cv_ld_static_dynamic=yes
23923 gcc_cv_ld_static_option="-aarchive_shared"
23924 gcc_cv_ld_dynamic_option="-adefault"
23925 fi
23926 ;;
23927 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23928 *-*-solaris2*)
23929 gcc_cv_ld_static_dynamic=yes
23930 ;;
23931 esac
23932 fi
23933 fi
23934 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23935
23936 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23937
23938
23939 cat >>confdefs.h <<_ACEOF
23940 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23941 _ACEOF
23942
23943
23944 cat >>confdefs.h <<_ACEOF
23945 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23946 _ACEOF
23947
23948 fi
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23950 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23951
23952 if test x"$demangler_in_ld" = xyes; then
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23954 $as_echo_n "checking linker --demangle support... " >&6; }
23955 gcc_cv_ld_demangle=no
23956 if test $in_tree_ld = yes; then
23957 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 \
23958 gcc_cv_ld_demangle=yes
23959 fi
23960 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23961 # Check if the GNU linker supports --demangle option
23962 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23963 gcc_cv_ld_demangle=yes
23964 fi
23965 fi
23966 if test x"$gcc_cv_ld_demangle" = xyes; then
23967
23968 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23969
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23972 $as_echo "$gcc_cv_ld_demangle" >&6; }
23973 fi
23974
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23976 $as_echo_n "checking linker plugin support... " >&6; }
23977 gcc_cv_lto_plugin=0
23978 if test -f liblto_plugin.la; then
23979 save_ld_ver="$ld_ver"
23980 save_ld_vers_major="$ld_vers_major"
23981 save_ld_vers_minor="$ld_vers_minor"
23982 save_ld_is_gold="$ld_is_gold"
23983
23984 ld_is_gold=no
23985
23986 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23987 ld_ver="GNU ld"
23988 # FIXME: ld_is_gold?
23989 ld_vers_major="$gcc_cv_gld_major_version"
23990 ld_vers_minor="$gcc_cv_gld_minor_version"
23991 else
23992 # Determine plugin linker version.
23993 # FIXME: Partial duplicate from above, generalize.
23994 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23995 if echo "$ld_ver" | grep GNU > /dev/null; then
23996 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23997 ld_is_gold=yes
23998 ld_vers=`echo $ld_ver | sed -n \
23999 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24000 else
24001 ld_vers=`echo $ld_ver | sed -n \
24002 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24003 fi
24004 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24005 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24006 fi
24007 fi
24008
24009 # Determine plugin support.
24010 if echo "$ld_ver" | grep GNU > /dev/null; then
24011 # Require GNU ld or gold 2.21+ for plugin support by default.
24012 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24013 gcc_cv_lto_plugin=2
24014 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24015 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24016 gcc_cv_lto_plugin=1
24017 fi
24018 fi
24019
24020 ld_ver="$save_ld_ver"
24021 ld_vers_major="$save_ld_vers_major"
24022 ld_vers_minor="$save_ld_vers_minor"
24023 ld_is_gold="$save_ld_is_gold"
24024 fi
24025
24026 cat >>confdefs.h <<_ACEOF
24027 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24028 _ACEOF
24029
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24031 $as_echo "$gcc_cv_lto_plugin" >&6; }
24032
24033 case "$target" in
24034 aarch64*-*-*)
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24036 $as_echo_n "checking assembler for -mabi option... " >&6; }
24037 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_aarch64_mabi=no
24041 if test x$gcc_cv_as != x; then
24042 $as_echo '.text' > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24049 then
24050 gcc_cv_as_aarch64_mabi=yes
24051 else
24052 echo "configure: failed program was" >&5
24053 cat conftest.s >&5
24054 fi
24055 rm -f conftest.o conftest.s
24056 fi
24057 fi
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24059 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24060
24061 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24062
24063 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24064
24065 else
24066 if test x$with_abi = xilp32; then
24067 as_fn_error "Assembler does not support -mabi=ilp32.\
24068 Upgrade the Assembler." "$LINENO" 5
24069 fi
24070 if test x"$with_multilib_list" = xdefault; then
24071 TM_MULTILIB_CONFIG=lp64
24072 else
24073 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24074 for aarch64_multilib in ${aarch64_multilibs}; do
24075 case ${aarch64_multilib} in
24076 ilp32)
24077 as_fn_error "Assembler does not support -mabi=ilp32.\
24078 Upgrade the Assembler." "$LINENO" 5
24079 ;;
24080 *)
24081 ;;
24082 esac
24083 done
24084 fi
24085 fi
24086 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24087 # Check whether --enable-fix-cortex-a53-835769 was given.
24088 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24089 enableval=$enable_fix_cortex_a53_835769;
24090 case $enableval in
24091 yes)
24092 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24093 ;;
24094 no)
24095 ;;
24096 *)
24097 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24098 Valid choices are 'yes' and 'no'." "$LINENO" 5
24099 ;;
24100
24101 esac
24102
24103 fi
24104
24105 ;;
24106
24107 # All TARGET_ABI_OSF targets.
24108 alpha*-*-linux* | alpha*-*-*bsd*)
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24110 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24111 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_alpha_explicit_relocs=no
24115 if test $in_tree_gas = yes; then
24116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24117 then gcc_cv_as_alpha_explicit_relocs=yes
24118 fi
24119 elif test x$gcc_cv_as != x; then
24120 $as_echo ' .set nomacro
24121 .text
24122 extbl $3, $2, $3 !lituse_bytoff!1
24123 ldq $2, a($29) !literal!1
24124 ldq $4, b($29) !literal!2
24125 ldq_u $3, 0($2) !lituse_base!1
24126 ldq $27, f($29) !literal!5
24127 jsr $26, ($27), f !lituse_jsr!5
24128 ldah $29, 0($26) !gpdisp!3
24129 lda $0, c($29) !gprel
24130 ldah $1, d($29) !gprelhigh
24131 lda $1, d($1) !gprellow
24132 lda $29, 0($29) !gpdisp!3' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_alpha_explicit_relocs=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24144 fi
24145 rm -f conftest.o conftest.s
24146 fi
24147 fi
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24149 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24150 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24151
24152 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24153
24154 fi
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24156 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24157 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24159 else
24160 gcc_cv_as_alpha_jsrdirect_relocs=no
24161 if test $in_tree_gas = yes; then
24162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24163 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24164 fi
24165 elif test x$gcc_cv_as != x; then
24166 $as_echo ' .set nomacro
24167 .text
24168 ldq $27, a($29) !literal!1
24169 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24176 then
24177 gcc_cv_as_alpha_jsrdirect_relocs=yes
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24181 fi
24182 rm -f conftest.o conftest.s
24183 fi
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24186 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24187 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24188
24189 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24190
24191 fi
24192 ;;
24193
24194 avr-*-*)
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24196 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24197 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24199 else
24200 gcc_cv_as_avr_mlink_relax=no
24201 if test x$gcc_cv_as != x; then
24202 $as_echo '.text' > conftest.s
24203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; }
24209 then
24210 gcc_cv_as_avr_mlink_relax=yes
24211 else
24212 echo "configure: failed program was" >&5
24213 cat conftest.s >&5
24214 fi
24215 rm -f conftest.o conftest.s
24216 fi
24217 fi
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24219 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24220 if test $gcc_cv_as_avr_mlink_relax = yes; then
24221
24222 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24223
24224 fi
24225
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24227 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24228 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24230 else
24231 gcc_cv_as_avr_mrmw=no
24232 if test x$gcc_cv_as != x; then
24233 $as_echo '.text' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_avr_mrmw=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24245 fi
24246 rm -f conftest.o conftest.s
24247 fi
24248 fi
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24250 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24251 if test $gcc_cv_as_avr_mrmw = yes; then
24252
24253 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24254
24255 fi
24256 ;;
24257
24258 cris-*-*)
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24260 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24261 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24262 $as_echo_n "(cached) " >&6
24263 else
24264 gcc_cv_as_cris_no_mul_bug=no
24265 if test $in_tree_gas = yes; then
24266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24267 then gcc_cv_as_cris_no_mul_bug=yes
24268 fi
24269 elif test x$gcc_cv_as != x; then
24270 $as_echo '.text' > conftest.s
24271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24276 test $ac_status = 0; }; }
24277 then
24278 gcc_cv_as_cris_no_mul_bug=yes
24279 else
24280 echo "configure: failed program was" >&5
24281 cat conftest.s >&5
24282 fi
24283 rm -f conftest.o conftest.s
24284 fi
24285 fi
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24287 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24288 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24289
24290 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24291
24292 fi
24293 ;;
24294
24295 sparc*-*-*)
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24297 $as_echo_n "checking assembler for .register... " >&6; }
24298 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24299 $as_echo_n "(cached) " >&6
24300 else
24301 gcc_cv_as_sparc_register_op=no
24302 if test x$gcc_cv_as != x; then
24303 $as_echo '.register %g2, #scratch' > conftest.s
24304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24306 (eval $ac_try) 2>&5
24307 ac_status=$?
24308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24309 test $ac_status = 0; }; }
24310 then
24311 gcc_cv_as_sparc_register_op=yes
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24315 fi
24316 rm -f conftest.o conftest.s
24317 fi
24318 fi
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24320 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24321 if test $gcc_cv_as_sparc_register_op = yes; then
24322
24323 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24324
24325 fi
24326
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24328 $as_echo_n "checking assembler for #nobits... " >&6; }
24329 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 gcc_cv_as_sparc_nobits=no
24333 if test x$gcc_cv_as != x; then
24334 $as_echo '.section "nobits",#alloc,#write,#nobits
24335 .section "progbits",#alloc,#write,#progbits' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_sparc_nobits=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24347 fi
24348 rm -f conftest.o conftest.s
24349 fi
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24352 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24353
24354
24355 cat >>confdefs.h <<_ACEOF
24356 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24357 _ACEOF
24358
24359
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24361 $as_echo_n "checking assembler for -relax option... " >&6; }
24362 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_relax=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.text' > conftest.s
24368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373 test $ac_status = 0; }; }
24374 then
24375 gcc_cv_as_sparc_relax=yes
24376 else
24377 echo "configure: failed program was" >&5
24378 cat conftest.s >&5
24379 fi
24380 rm -f conftest.o conftest.s
24381 fi
24382 fi
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24384 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24385 if test $gcc_cv_as_sparc_relax = yes; then
24386
24387 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24388
24389 fi
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24392 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24393 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24394 $as_echo_n "(cached) " >&6
24395 else
24396 gcc_cv_as_sparc_gotdata_op=no
24397 if test x$gcc_cv_as != x; then
24398 $as_echo '.text
24399 .align 4
24400 foo:
24401 nop
24402 bar:
24403 sethi %gdop_hix22(foo), %g1
24404 xor %g1, %gdop_lox10(foo), %g1
24405 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24412 then
24413 if test x$gcc_cv_ld != x \
24414 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24415 if test x$gcc_cv_objdump != x; then
24416 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24417 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24418 gcc_cv_as_sparc_gotdata_op=no
24419 else
24420 gcc_cv_as_sparc_gotdata_op=yes
24421 fi
24422 fi
24423 fi
24424 rm -f conftest
24425 else
24426 echo "configure: failed program was" >&5
24427 cat conftest.s >&5
24428 fi
24429 rm -f conftest.o conftest.s
24430 fi
24431 fi
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24433 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24434 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24435
24436 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24437
24438 fi
24439
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24441 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24442 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_sparc_ua_pcrel=no
24446 if test x$gcc_cv_as != x; then
24447 $as_echo '.text
24448 foo:
24449 nop
24450 .data
24451 .align 4
24452 .byte 0
24453 .uaword %r_disp32(foo)' > conftest.s
24454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24459 test $ac_status = 0; }; }
24460 then
24461 if test x$gcc_cv_ld != x \
24462 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24463 gcc_cv_as_sparc_ua_pcrel=yes
24464 fi
24465 rm -f conftest
24466 else
24467 echo "configure: failed program was" >&5
24468 cat conftest.s >&5
24469 fi
24470 rm -f conftest.o conftest.s
24471 fi
24472 fi
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24474 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24475 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24476
24477 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24478
24479
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24481 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24482 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 gcc_cv_as_sparc_ua_pcrel_hidden=no
24486 if test x$gcc_cv_as != x; then
24487 $as_echo '.data
24488 .align 4
24489 .byte 0x31
24490 .uaword %r_disp32(foo)
24491 .byte 0x32, 0x33, 0x34
24492 .global foo
24493 .hidden foo
24494 foo:
24495 .skip 4' > conftest.s
24496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; }
24502 then
24503 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24504 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24505 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24506 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24507 if $gcc_cv_objdump -R conftest 2> /dev/null \
24508 | grep 'DISP32' > /dev/null 2>&1; then
24509 :
24510 else
24511 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24512 fi
24513 fi
24514 rm -f conftest
24515 else
24516 echo "configure: failed program was" >&5
24517 cat conftest.s >&5
24518 fi
24519 rm -f conftest.o conftest.s
24520 fi
24521 fi
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24523 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24524 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24525
24526 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24527
24528 fi
24529
24530 fi # unaligned pcrel relocs
24531
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24533 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24534 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24536 else
24537 gcc_cv_as_sparc_offsetable_lo10=no
24538 if test x$gcc_cv_as != x; then
24539 $as_echo '.text
24540 or %g1, %lo(ab) + 12, %g1
24541 or %g1, %lo(ab + 12), %g1' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 if test x$gcc_cv_objdump != x \
24550 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24551 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24552 gcc_cv_as_sparc_offsetable_lo10=yes
24553 fi
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24557 fi
24558 rm -f conftest.o conftest.s
24559 fi
24560 fi
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24562 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24563 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24564
24565 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24566
24567 fi
24568
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24570 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24571 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_sparc_fmaf=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo '.text
24577 .register %g2, #scratch
24578 .register %g3, #scratch
24579 .align 4
24580 fmaddd %f0, %f2, %f4, %f6
24581 addxccc %g1, %g2, %g3
24582 fsrl32 %f2, %f4, %f8
24583 fnaddd %f10, %f12, %f14' > conftest.s
24584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24589 test $ac_status = 0; }; }
24590 then
24591 gcc_cv_as_sparc_fmaf=yes
24592 else
24593 echo "configure: failed program was" >&5
24594 cat conftest.s >&5
24595 fi
24596 rm -f conftest.o conftest.s
24597 fi
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24600 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24601 if test $gcc_cv_as_sparc_fmaf = yes; then
24602
24603 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24604
24605 fi
24606
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24608 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24609 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24611 else
24612 gcc_cv_as_sparc_sparc4=no
24613 if test x$gcc_cv_as != x; then
24614 $as_echo '.text
24615 .register %g2, #scratch
24616 .register %g3, #scratch
24617 .align 4
24618 cxbe %g2, %g3, 1f
24619 1: cwbneg %g2, %g3, 1f
24620 1: sha1
24621 md5
24622 aes_kexpand0 %f4, %f6, %f8
24623 des_round %f38, %f40, %f42, %f44
24624 camellia_f %f54, %f56, %f58, %f60
24625 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24628 (eval $ac_try) 2>&5
24629 ac_status=$?
24630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631 test $ac_status = 0; }; }
24632 then
24633 gcc_cv_as_sparc_sparc4=yes
24634 else
24635 echo "configure: failed program was" >&5
24636 cat conftest.s >&5
24637 fi
24638 rm -f conftest.o conftest.s
24639 fi
24640 fi
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24642 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24643 if test $gcc_cv_as_sparc_sparc4 = yes; then
24644
24645 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24646
24647 fi
24648
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24650 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24651 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 gcc_cv_as_sparc_leon=no
24655 if test x$gcc_cv_as != x; then
24656 $as_echo '.text
24657 .register %g2, #scratch
24658 .register %g3, #scratch
24659 .align 4
24660 smac %g2, %g3, %g1
24661 umac %g2, %g3, %g1
24662 casa [%g2] 0xb, %g3, %g1' > conftest.s
24663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }
24669 then
24670 gcc_cv_as_sparc_leon=yes
24671 else
24672 echo "configure: failed program was" >&5
24673 cat conftest.s >&5
24674 fi
24675 rm -f conftest.o conftest.s
24676 fi
24677 fi
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24679 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24680 if test $gcc_cv_as_sparc_leon = yes; then
24681
24682 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24683
24684 fi
24685 ;;
24686
24687 i[34567]86-*-* | x86_64-*-*)
24688 case $target_os in
24689 cygwin*)
24690 # Full C++ conformance when using a shared libstdc++-v3 requires some
24691 # support from the Cygwin DLL, which in more recent versions exports
24692 # wrappers to aid in interposing and redirecting operators new, delete,
24693 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24694 # are configuring for a version of Cygwin that exports the wrappers.
24695 if test x$host = x$target && test x$host_cpu = xi686; then
24696 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24697 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24698 gcc_ac_cygwin_dll_wrappers=yes
24699 else
24700 gcc_ac_cygwin_dll_wrappers=no
24701 fi
24702
24703 else
24704 # Can't check presence of libc functions during cross-compile, so
24705 # we just have to assume we're building for an up-to-date target.
24706 gcc_ac_cygwin_dll_wrappers=yes
24707 fi
24708
24709 cat >>confdefs.h <<_ACEOF
24710 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24711 _ACEOF
24712
24713 esac
24714 case $target_os in
24715 cygwin* | pe | mingw32* | interix*)
24716 # Recent binutils allows the three-operand form of ".comm" on PE. This
24717 # definition is used unconditionally to initialise the default state of
24718 # the target option variable that governs usage of the feature.
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24720 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24721 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 gcc_cv_as_comm_has_align=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24727 then gcc_cv_as_comm_has_align=yes
24728 fi
24729 elif test x$gcc_cv_as != x; then
24730 $as_echo '.comm foo,1,32' > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_comm_has_align=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24742 fi
24743 rm -f conftest.o conftest.s
24744 fi
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24747 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24748
24749
24750 cat >>confdefs.h <<_ACEOF
24751 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24752 _ACEOF
24753
24754 # Used for DWARF 2 in PE
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24756 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24757 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24758 $as_echo_n "(cached) " >&6
24759 else
24760 gcc_cv_as_ix86_pe_secrel32=no
24761 if test $in_tree_gas = yes; then
24762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24763 then gcc_cv_as_ix86_pe_secrel32=yes
24764 fi
24765 elif test x$gcc_cv_as != x; then
24766 $as_echo '.text
24767 foo: nop
24768 .data
24769 .secrel32 foo' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 if test x$gcc_cv_ld != x \
24778 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24779 gcc_cv_as_ix86_pe_secrel32=yes
24780 fi
24781 rm -f conftest
24782 else
24783 echo "configure: failed program was" >&5
24784 cat conftest.s >&5
24785 fi
24786 rm -f conftest.o conftest.s
24787 fi
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24790 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24791 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24792
24793 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24794
24795 fi
24796 # Test if the assembler supports the extended form of the .section
24797 # directive that specifies section alignment. LTO support uses this,
24798 # but normally only after installation, so we warn but don't fail the
24799 # configure if LTO is enabled but the assembler does not support it.
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24801 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24802 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 gcc_cv_as_section_has_align=no
24806 if test $in_tree_gas = yes; then
24807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24808 then gcc_cv_as_section_has_align=yes
24809 fi
24810 elif test x$gcc_cv_as != x; then
24811 $as_echo '.section lto_test,"dr0"' > conftest.s
24812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24818 then
24819 gcc_cv_as_section_has_align=yes
24820 else
24821 echo "configure: failed program was" >&5
24822 cat conftest.s >&5
24823 fi
24824 rm -f conftest.o conftest.s
24825 fi
24826 fi
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24828 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24829
24830 if test x$gcc_cv_as_section_has_align != xyes; then
24831 case ",$enable_languages," in
24832 *,lto,*)
24833 { $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
24834 $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;}
24835 ;;
24836 esac
24837 fi
24838 ;;
24839 esac
24840
24841 # Test if the assembler supports the section flag 'e' for specifying
24842 # an excluded section.
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24844 $as_echo_n "checking assembler for .section with e... " >&6; }
24845 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848 gcc_cv_as_section_has_e=no
24849 if test $in_tree_gas = yes; then
24850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24851 then gcc_cv_as_section_has_e=yes
24852 fi
24853 elif test x$gcc_cv_as != x; then
24854 $as_echo '.section foo1,"e"
24855 .byte 0,0,0,0' > conftest.s
24856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; }
24862 then
24863 gcc_cv_as_section_has_e=yes
24864 else
24865 echo "configure: failed program was" >&5
24866 cat conftest.s >&5
24867 fi
24868 rm -f conftest.o conftest.s
24869 fi
24870 fi
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24872 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24873
24874
24875 cat >>confdefs.h <<_ACEOF
24876 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24877 _ACEOF
24878
24879
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24881 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24882 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24883 $as_echo_n "(cached) " >&6
24884 else
24885 gcc_cv_as_ix86_filds=no
24886 if test x$gcc_cv_as != x; then
24887 $as_echo 'filds mem; fists mem' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 gcc_cv_as_ix86_filds=yes
24896 else
24897 echo "configure: failed program was" >&5
24898 cat conftest.s >&5
24899 fi
24900 rm -f conftest.o conftest.s
24901 fi
24902 fi
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24904 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24905 if test $gcc_cv_as_ix86_filds = yes; then
24906
24907 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24908
24909 fi
24910
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24912 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24913 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24915 else
24916 gcc_cv_as_ix86_fildq=no
24917 if test x$gcc_cv_as != x; then
24918 $as_echo 'fildq mem; fistpq mem' > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24925 then
24926 gcc_cv_as_ix86_fildq=yes
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24930 fi
24931 rm -f conftest.o conftest.s
24932 fi
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24935 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24936 if test $gcc_cv_as_ix86_fildq = yes; then
24937
24938 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24939
24940 fi
24941
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24943 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24944 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24946 else
24947 gcc_cv_as_ix86_cmov_sun_syntax=no
24948 if test x$gcc_cv_as != x; then
24949 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_ix86_cmov_sun_syntax=yes
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24961 fi
24962 rm -f conftest.o conftest.s
24963 fi
24964 fi
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24966 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24967 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24968
24969 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24970
24971 fi
24972
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24974 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24975 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_ffreep=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'ffreep %st(1)' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 gcc_cv_as_ix86_ffreep=yes
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24992 fi
24993 rm -f conftest.o conftest.s
24994 fi
24995 fi
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24997 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24998 if test $gcc_cv_as_ix86_ffreep = yes; then
24999
25000 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25001
25002 fi
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25005 $as_echo_n "checking assembler for .quad directive... " >&6; }
25006 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_ix86_quad=no
25010 if test x$gcc_cv_as != x; then
25011 $as_echo '.quad 0' > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 gcc_cv_as_ix86_quad=yes
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25023 fi
25024 rm -f conftest.o conftest.s
25025 fi
25026 fi
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25028 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25029 if test $gcc_cv_as_ix86_quad = yes; then
25030
25031 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25032
25033 fi
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25036 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25037 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_ix86_sahf=no
25041 if test x$gcc_cv_as != x; then
25042 $as_echo '.code64
25043 sahf' > conftest.s
25044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25047 ac_status=$?
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25050 then
25051 gcc_cv_as_ix86_sahf=yes
25052 else
25053 echo "configure: failed program was" >&5
25054 cat conftest.s >&5
25055 fi
25056 rm -f conftest.o conftest.s
25057 fi
25058 fi
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25060 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25061 if test $gcc_cv_as_ix86_sahf = yes; then
25062
25063 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25064
25065 fi
25066
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25068 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25069 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25070 $as_echo_n "(cached) " >&6
25071 else
25072 gcc_cv_as_ix86_interunit_movq=no
25073 if test x$gcc_cv_as != x; then
25074 $as_echo '.code64
25075 movq %mm0, %rax
25076 movq %rax, %xmm0' > conftest.s
25077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25080 ac_status=$?
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25083 then
25084 gcc_cv_as_ix86_interunit_movq=yes
25085 else
25086 echo "configure: failed program was" >&5
25087 cat conftest.s >&5
25088 fi
25089 rm -f conftest.o conftest.s
25090 fi
25091 fi
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25093 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25094
25095
25096 cat >>confdefs.h <<_ACEOF
25097 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25098 _ACEOF
25099
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25102 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25103 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_ix86_hle=no
25107 if test x$gcc_cv_as != x; then
25108 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25115 then
25116 gcc_cv_as_ix86_hle=yes
25117 else
25118 echo "configure: failed program was" >&5
25119 cat conftest.s >&5
25120 fi
25121 rm -f conftest.o conftest.s
25122 fi
25123 fi
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25125 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25126 if test $gcc_cv_as_ix86_hle = yes; then
25127
25128 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25129
25130 fi
25131
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25133 $as_echo_n "checking assembler for swap suffix... " >&6; }
25134 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25136 else
25137 gcc_cv_as_ix86_swap=no
25138 if test x$gcc_cv_as != x; then
25139 $as_echo 'movl.s %esp, %ebp' > conftest.s
25140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25146 then
25147 gcc_cv_as_ix86_swap=yes
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25151 fi
25152 rm -f conftest.o conftest.s
25153 fi
25154 fi
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25156 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25157 if test $gcc_cv_as_ix86_swap = yes; then
25158
25159 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25160
25161 fi
25162
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25164 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25165 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168 gcc_cv_as_ix86_diff_sect_delta=no
25169 if test x$gcc_cv_as != x; then
25170 $as_echo '.section .rodata
25171 .L1:
25172 .long .L2-.L1
25173 .long .L3-.L1
25174 .text
25175 .L3: nop
25176 .L2: nop' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_ix86_diff_sect_delta=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25188 fi
25189 rm -f conftest.o conftest.s
25190 fi
25191 fi
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25193 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25194 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25195
25196 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25197
25198 fi
25199
25200 # These two are used unconditionally by i386.[ch]; it is to be defined
25201 # to 1 if the feature is present, 0 otherwise.
25202 as_ix86_gotoff_in_data_opt=
25203 if test x$gas = xyes; then
25204 as_ix86_gotoff_in_data_opt="--32"
25205 fi
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25207 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25208 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_ix86_gotoff_in_data=no
25212 if test $in_tree_gas = yes; then
25213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25214 then gcc_cv_as_ix86_gotoff_in_data=yes
25215 fi
25216 elif test x$gcc_cv_as != x; then
25217 $as_echo ' .text
25218 .L0:
25219 nop
25220 .data
25221 .long .L0@GOTOFF' > conftest.s
25222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25228 then
25229 gcc_cv_as_ix86_gotoff_in_data=yes
25230 else
25231 echo "configure: failed program was" >&5
25232 cat conftest.s >&5
25233 fi
25234 rm -f conftest.o conftest.s
25235 fi
25236 fi
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25238 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25239
25240
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25243 _ACEOF
25244
25245
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25247 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25248 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 gcc_cv_as_ix86_rep_lock_prefix=no
25252 if test x$gcc_cv_as != x; then
25253 $as_echo 'rep movsl
25254 rep ret
25255 rep nop
25256 rep bsf %ecx, %eax
25257 rep bsr %ecx, %eax
25258 lock addl %edi, (%eax,%esi)
25259 lock orl $0, (%esp)' > conftest.s
25260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265 test $ac_status = 0; }; }
25266 then
25267 gcc_cv_as_ix86_rep_lock_prefix=yes
25268 else
25269 echo "configure: failed program was" >&5
25270 cat conftest.s >&5
25271 fi
25272 rm -f conftest.o conftest.s
25273 fi
25274 fi
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25276 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25277 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25278
25279 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25280
25281 fi
25282
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25284 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25285 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_ix86_ud2=no
25289 if test x$gcc_cv_as != x; then
25290 $as_echo 'ud2' > conftest.s
25291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25297 then
25298 gcc_cv_as_ix86_ud2=yes
25299 else
25300 echo "configure: failed program was" >&5
25301 cat conftest.s >&5
25302 fi
25303 rm -f conftest.o conftest.s
25304 fi
25305 fi
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25307 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25308 if test $gcc_cv_as_ix86_ud2 = yes; then
25309
25310 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25311
25312 fi
25313
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25315 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25316 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_ix86_tlsgdplt=no
25320 if test x$gcc_cv_as != x; then
25321 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 if test x$gcc_cv_ld != x \
25330 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25331 gcc_cv_as_ix86_tlsgdplt=yes
25332 fi
25333 rm -f conftest
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_ix86_tlsgdplt" >&5
25342 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25343 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25344
25345 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25346
25347 fi
25348
25349 conftest_s='
25350 .section .tdata,"aw'$tls_section_flag'",@progbits
25351 tls_ld:
25352 .section .text,"ax",@progbits
25353 call tls_ld@tlsldmplt'
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25355 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25356 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_ix86_tlsldmplt=no
25360 if test x$gcc_cv_as != x; then
25361 $as_echo "$conftest_s" > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 if test x$gcc_cv_ld != x \
25370 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25371 gcc_cv_as_ix86_tlsldmplt=yes
25372 fi
25373 rm -f conftest
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25377 fi
25378 rm -f conftest.o conftest.s
25379 fi
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25382 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25383
25384
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25387 _ACEOF
25388
25389
25390 # Enforce 32-bit output with gas and gld.
25391 if test x$gas = xyes; then
25392 as_ix86_tls_ldm_opt="--32"
25393 fi
25394 if echo "$ld_ver" | grep GNU > /dev/null; then
25395 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25396 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25397 else
25398 ld_ix86_tls_ldm_opt="-melf_i386"
25399 fi
25400 fi
25401 conftest_s='
25402 .section .text,"ax",@progbits
25403 .globl _start
25404 .type _start, @function
25405 _start:
25406 leal value@tlsldm(%ebx), %eax
25407 call ___tls_get_addr@plt
25408
25409 .section .tdata,"aw'$tls_section_flag'",@progbits
25410 .type value, @object
25411 value:'
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25413 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25414 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25415 $as_echo_n "(cached) " >&6
25416 else
25417 gcc_cv_as_ix86_tlsldm=no
25418 if test x$gcc_cv_as != x; then
25419 $as_echo "$conftest_s" > conftest.s
25420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25423 ac_status=$?
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25426 then
25427 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25428 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25429 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25430 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25431 gcc_cv_as_ix86_tlsldm=yes
25432 fi
25433 fi
25434 rm -f conftest
25435 else
25436 echo "configure: failed program was" >&5
25437 cat conftest.s >&5
25438 fi
25439 rm -f conftest.o conftest.s
25440 fi
25441 fi
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25443 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25444
25445
25446 cat >>confdefs.h <<_ACEOF
25447 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25448 _ACEOF
25449
25450
25451 ;;
25452
25453 ia64*-*-*)
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25455 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25456 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25458 else
25459 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25460 if test $in_tree_gas = yes; then
25461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25462 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25463 fi
25464 elif test x$gcc_cv_as != x; then
25465 $as_echo ' .text
25466 addl r15 = @ltoffx(x#), gp
25467 ;;
25468 ld8.mov r16 = [r15], x#' > conftest.s
25469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25475 then
25476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25477 else
25478 echo "configure: failed program was" >&5
25479 cat conftest.s >&5
25480 fi
25481 rm -f conftest.o conftest.s
25482 fi
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25485 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25486 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25487
25488 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25489
25490 fi
25491
25492 ;;
25493
25494 powerpc*-*-*)
25495 case $target in
25496 *-*-aix*) conftest_s=' .machine "pwr5"
25497 .csect .text[PR]
25498 mfcr 3,128';;
25499 *-*-darwin*)
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25501 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25502 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25503 $as_echo_n "(cached) " >&6
25504 else
25505 gcc_cv_as_machine_directive=no
25506 if test x$gcc_cv_as != x; then
25507 $as_echo ' .machine ppc7400' > conftest.s
25508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25514 then
25515 gcc_cv_as_machine_directive=yes
25516 else
25517 echo "configure: failed program was" >&5
25518 cat conftest.s >&5
25519 fi
25520 rm -f conftest.o conftest.s
25521 fi
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25524 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25525
25526 if test x$gcc_cv_as_machine_directive != xyes; then
25527 echo "*** This target requires an assembler supporting \".machine\"" >&2
25528 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25529 test x$build = x$target && exit 1
25530 fi
25531 conftest_s=' .text
25532 mfcr r3,128';;
25533 *) conftest_s=' .machine power4
25534 .text
25535 mfcr 3,128';;
25536 esac
25537
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25539 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25540 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25541 $as_echo_n "(cached) " >&6
25542 else
25543 gcc_cv_as_powerpc_mfcrf=no
25544 if test $in_tree_gas = yes; then
25545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25546 then gcc_cv_as_powerpc_mfcrf=yes
25547 fi
25548 elif test x$gcc_cv_as != x; then
25549 $as_echo "$conftest_s" > conftest.s
25550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25556 then
25557 gcc_cv_as_powerpc_mfcrf=yes
25558 else
25559 echo "configure: failed program was" >&5
25560 cat conftest.s >&5
25561 fi
25562 rm -f conftest.o conftest.s
25563 fi
25564 fi
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25566 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25567 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25568
25569 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25570
25571 fi
25572
25573 case $target in
25574 *-*-aix*) conftest_s=' .machine "pwr5"
25575 .csect .text[PR]
25576 popcntb 3,3';;
25577 *) conftest_s=' .machine power5
25578 .text
25579 popcntb 3,3';;
25580 esac
25581
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25583 $as_echo_n "checking assembler for popcntb support... " >&6; }
25584 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25586 else
25587 gcc_cv_as_powerpc_popcntb=no
25588 if test $in_tree_gas = yes; then
25589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25590 then gcc_cv_as_powerpc_popcntb=yes
25591 fi
25592 elif test x$gcc_cv_as != x; then
25593 $as_echo "$conftest_s" > conftest.s
25594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25599 test $ac_status = 0; }; }
25600 then
25601 gcc_cv_as_powerpc_popcntb=yes
25602 else
25603 echo "configure: failed program was" >&5
25604 cat conftest.s >&5
25605 fi
25606 rm -f conftest.o conftest.s
25607 fi
25608 fi
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25610 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25611 if test $gcc_cv_as_powerpc_popcntb = yes; then
25612
25613 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25614
25615 fi
25616
25617 case $target in
25618 *-*-aix*) conftest_s=' .machine "pwr5x"
25619 .csect .text[PR]
25620 frin 1,1';;
25621 *) conftest_s=' .machine power5
25622 .text
25623 frin 1,1';;
25624 esac
25625
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25627 $as_echo_n "checking assembler for fp round support... " >&6; }
25628 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 gcc_cv_as_powerpc_fprnd=no
25632 if test $in_tree_gas = yes; then
25633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25634 then gcc_cv_as_powerpc_fprnd=yes
25635 fi
25636 elif test x$gcc_cv_as != x; then
25637 $as_echo "$conftest_s" > conftest.s
25638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25643 test $ac_status = 0; }; }
25644 then
25645 gcc_cv_as_powerpc_fprnd=yes
25646 else
25647 echo "configure: failed program was" >&5
25648 cat conftest.s >&5
25649 fi
25650 rm -f conftest.o conftest.s
25651 fi
25652 fi
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25654 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25655 if test $gcc_cv_as_powerpc_fprnd = yes; then
25656
25657 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25658
25659 fi
25660
25661 case $target in
25662 *-*-aix*) conftest_s=' .machine "pwr6"
25663 .csect .text[PR]
25664 mffgpr 1,3';;
25665 *) conftest_s=' .machine power6
25666 .text
25667 mffgpr 1,3';;
25668 esac
25669
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25671 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25672 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25673 $as_echo_n "(cached) " >&6
25674 else
25675 gcc_cv_as_powerpc_mfpgpr=no
25676 if test $in_tree_gas = yes; then
25677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25678 then gcc_cv_as_powerpc_mfpgpr=yes
25679 fi
25680 elif test x$gcc_cv_as != x; then
25681 $as_echo "$conftest_s" > conftest.s
25682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25688 then
25689 gcc_cv_as_powerpc_mfpgpr=yes
25690 else
25691 echo "configure: failed program was" >&5
25692 cat conftest.s >&5
25693 fi
25694 rm -f conftest.o conftest.s
25695 fi
25696 fi
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25698 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25699 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25700
25701 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25702
25703 fi
25704
25705 case $target in
25706 *-*-aix*) conftest_s=' .csect .text[PR]
25707 LCF..0:
25708 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25709 *-*-darwin*)
25710 conftest_s=' .text
25711 LCF0:
25712 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25713 *) conftest_s=' .text
25714 .LCF0:
25715 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25716 esac
25717
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25719 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25720 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25722 else
25723 gcc_cv_as_powerpc_rel16=no
25724 if test $in_tree_gas = yes; then
25725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25726 then gcc_cv_as_powerpc_rel16=yes
25727 fi
25728 elif test x$gcc_cv_as != x; then
25729 $as_echo "$conftest_s" > conftest.s
25730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25736 then
25737 gcc_cv_as_powerpc_rel16=yes
25738 else
25739 echo "configure: failed program was" >&5
25740 cat conftest.s >&5
25741 fi
25742 rm -f conftest.o conftest.s
25743 fi
25744 fi
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25746 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25747 if test $gcc_cv_as_powerpc_rel16 = yes; then
25748
25749 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25750
25751 fi
25752
25753 case $target in
25754 *-*-aix*) conftest_s=' .machine "pwr6"
25755 .csect .text[PR]
25756 cmpb 3,4,5';;
25757 *) conftest_s=' .machine power6
25758 .text
25759 cmpb 3,4,5';;
25760 esac
25761
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25763 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25764 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25765 $as_echo_n "(cached) " >&6
25766 else
25767 gcc_cv_as_powerpc_cmpb=no
25768 if test $in_tree_gas = yes; then
25769 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25770 then gcc_cv_as_powerpc_cmpb=yes
25771 fi
25772 elif test x$gcc_cv_as != x; then
25773 $as_echo "$conftest_s" > conftest.s
25774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779 test $ac_status = 0; }; }
25780 then
25781 gcc_cv_as_powerpc_cmpb=yes
25782 else
25783 echo "configure: failed program was" >&5
25784 cat conftest.s >&5
25785 fi
25786 rm -f conftest.o conftest.s
25787 fi
25788 fi
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25790 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25791 if test $gcc_cv_as_powerpc_cmpb = yes; then
25792
25793 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25794
25795 fi
25796
25797 case $target in
25798 *-*-aix*) conftest_s=' .machine "pwr6"
25799 .csect .text[PR]
25800 dadd 1,2,3';;
25801 *) conftest_s=' .machine power6
25802 .text
25803 dadd 1,2,3';;
25804 esac
25805
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25807 $as_echo_n "checking assembler for decimal float support... " >&6; }
25808 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_powerpc_dfp=no
25812 if test $in_tree_gas = yes; then
25813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25814 then gcc_cv_as_powerpc_dfp=yes
25815 fi
25816 elif test x$gcc_cv_as != x; then
25817 $as_echo "$conftest_s" > conftest.s
25818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25823 test $ac_status = 0; }; }
25824 then
25825 gcc_cv_as_powerpc_dfp=yes
25826 else
25827 echo "configure: failed program was" >&5
25828 cat conftest.s >&5
25829 fi
25830 rm -f conftest.o conftest.s
25831 fi
25832 fi
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25834 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25835 if test $gcc_cv_as_powerpc_dfp = yes; then
25836
25837 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25838
25839 fi
25840
25841 case $target in
25842 *-*-aix*) conftest_s=' .machine "pwr7"
25843 .csect .text[PR]
25844 lxvd2x 1,2,3';;
25845 *) conftest_s=' .machine power7
25846 .text
25847 lxvd2x 1,2,3';;
25848 esac
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25851 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25852 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_powerpc_vsx=no
25856 if test $in_tree_gas = yes; then
25857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25858 then gcc_cv_as_powerpc_vsx=yes
25859 fi
25860 elif test x$gcc_cv_as != x; then
25861 $as_echo "$conftest_s" > conftest.s
25862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864 (eval $ac_try) 2>&5
25865 ac_status=$?
25866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867 test $ac_status = 0; }; }
25868 then
25869 gcc_cv_as_powerpc_vsx=yes
25870 else
25871 echo "configure: failed program was" >&5
25872 cat conftest.s >&5
25873 fi
25874 rm -f conftest.o conftest.s
25875 fi
25876 fi
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25878 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25879 if test $gcc_cv_as_powerpc_vsx = yes; then
25880
25881 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25882
25883 fi
25884
25885 case $target in
25886 *-*-aix*) conftest_s=' .machine "pwr7"
25887 .csect .text[PR]
25888 popcntd 3,3';;
25889 *) conftest_s=' .machine power7
25890 .text
25891 popcntd 3,3';;
25892 esac
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25895 $as_echo_n "checking assembler for popcntd support... " >&6; }
25896 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_powerpc_popcntd=no
25900 if test $in_tree_gas = yes; then
25901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25902 then gcc_cv_as_powerpc_popcntd=yes
25903 fi
25904 elif test x$gcc_cv_as != x; then
25905 $as_echo "$conftest_s" > conftest.s
25906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25911 test $ac_status = 0; }; }
25912 then
25913 gcc_cv_as_powerpc_popcntd=yes
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25917 fi
25918 rm -f conftest.o conftest.s
25919 fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25922 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25923 if test $gcc_cv_as_powerpc_popcntd = yes; then
25924
25925 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25926
25927 fi
25928
25929 case $target in
25930 *-*-aix*) conftest_s=' .machine "pwr8"
25931 .csect .text[PR]';;
25932 *) conftest_s=' .machine power8
25933 .text';;
25934 esac
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25937 $as_echo_n "checking assembler for power8 support... " >&6; }
25938 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_powerpc_power8=no
25942 if test $in_tree_gas = yes; then
25943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25944 then gcc_cv_as_powerpc_power8=yes
25945 fi
25946 elif test x$gcc_cv_as != x; then
25947 $as_echo "$conftest_s" > conftest.s
25948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953 test $ac_status = 0; }; }
25954 then
25955 gcc_cv_as_powerpc_power8=yes
25956 else
25957 echo "configure: failed program was" >&5
25958 cat conftest.s >&5
25959 fi
25960 rm -f conftest.o conftest.s
25961 fi
25962 fi
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25964 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25965 if test $gcc_cv_as_powerpc_power8 = yes; then
25966
25967 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25968
25969 fi
25970
25971 case $target in
25972 *-*-aix*) conftest_s=' .csect .text[PR]
25973 lwsync';;
25974 *) conftest_s=' .text
25975 lwsync';;
25976 esac
25977
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25979 $as_echo_n "checking assembler for lwsync support... " >&6; }
25980 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_powerpc_lwsync=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25986 then gcc_cv_as_powerpc_lwsync=yes
25987 fi
25988 elif test x$gcc_cv_as != x; then
25989 $as_echo "$conftest_s" > conftest.s
25990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25996 then
25997 gcc_cv_as_powerpc_lwsync=yes
25998 else
25999 echo "configure: failed program was" >&5
26000 cat conftest.s >&5
26001 fi
26002 rm -f conftest.o conftest.s
26003 fi
26004 fi
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26006 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26007 if test $gcc_cv_as_powerpc_lwsync = yes; then
26008
26009 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26010
26011 fi
26012
26013 case $target in
26014 *-*-aix*) conftest_s=' .machine "476"
26015 .csect .text[PR]
26016 dci 0';;
26017 *) conftest_s=' .machine "476"
26018 .text
26019 dci 0';;
26020 esac
26021
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26023 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26024 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26026 else
26027 gcc_cv_as_powerpc_dci=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26030 then gcc_cv_as_powerpc_dci=yes
26031 fi
26032 elif test x$gcc_cv_as != x; then
26033 $as_echo "$conftest_s" > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_powerpc_dci=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26045 fi
26046 rm -f conftest.o conftest.s
26047 fi
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26050 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26051 if test $gcc_cv_as_powerpc_dci = yes; then
26052
26053 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26054
26055 fi
26056
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26059 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 gcc_cv_as_powerpc_gnu_attribute=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26065 then gcc_cv_as_powerpc_gnu_attribute=yes
26066 fi
26067 elif test x$gcc_cv_as != x; then
26068 $as_echo '.gnu_attribute 4,1' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26075 then
26076 gcc_cv_as_powerpc_gnu_attribute=yes
26077 else
26078 echo "configure: failed program was" >&5
26079 cat conftest.s >&5
26080 fi
26081 rm -f conftest.o conftest.s
26082 fi
26083 fi
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26085 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26086 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26087
26088 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26089
26090 fi
26091
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26093 $as_echo_n "checking assembler for tls marker support... " >&6; }
26094 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26096 else
26097 gcc_cv_as_powerpc_tls_markers=no
26098 if test $in_tree_gas = yes; then
26099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26100 then gcc_cv_as_powerpc_tls_markers=yes
26101 fi
26102 elif test x$gcc_cv_as != x; then
26103 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26109 test $ac_status = 0; }; }
26110 then
26111 gcc_cv_as_powerpc_tls_markers=yes
26112 else
26113 echo "configure: failed program was" >&5
26114 cat conftest.s >&5
26115 fi
26116 rm -f conftest.o conftest.s
26117 fi
26118 fi
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26120 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26121 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26122
26123 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26124
26125 fi
26126
26127 case $target in
26128 *-*-aix*)
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26130 $as_echo_n "checking assembler for .ref support... " >&6; }
26131 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26134 gcc_cv_as_aix_ref=no
26135 if test $in_tree_gas = yes; then
26136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26137 then gcc_cv_as_aix_ref=yes
26138 fi
26139 elif test x$gcc_cv_as != x; then
26140 $as_echo ' .csect stuff[rw]
26141 stuff:
26142 .long 1
26143 .extern sym
26144 .ref sym
26145 ' > conftest.s
26146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26151 test $ac_status = 0; }; }
26152 then
26153 gcc_cv_as_aix_ref=yes
26154 else
26155 echo "configure: failed program was" >&5
26156 cat conftest.s >&5
26157 fi
26158 rm -f conftest.o conftest.s
26159 fi
26160 fi
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26162 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26163 if test $gcc_cv_as_aix_ref = yes; then
26164
26165 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26166
26167 fi
26168 ;;
26169 esac
26170 ;;
26171
26172 mips*-*-*)
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26174 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26175 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_mips_explicit_relocs=no
26179 if test $in_tree_gas = yes; then
26180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26181 then gcc_cv_as_mips_explicit_relocs=yes
26182 fi
26183 elif test x$gcc_cv_as != x; then
26184 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26190 test $ac_status = 0; }; }
26191 then
26192 gcc_cv_as_mips_explicit_relocs=yes
26193 else
26194 echo "configure: failed program was" >&5
26195 cat conftest.s >&5
26196 fi
26197 rm -f conftest.o conftest.s
26198 fi
26199 fi
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26201 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26202 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26203 if test x$target_cpu_default = x
26204 then target_cpu_default=MASK_EXPLICIT_RELOCS
26205 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26206 fi
26207 fi
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26209 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26210 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26211 $as_echo_n "(cached) " >&6
26212 else
26213 gcc_cv_as_mips_no_shared=no
26214 if test $in_tree_gas = yes; then
26215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26216 then gcc_cv_as_mips_no_shared=yes
26217 fi
26218 elif test x$gcc_cv_as != x; then
26219 $as_echo 'nop' > conftest.s
26220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; }
26226 then
26227 gcc_cv_as_mips_no_shared=yes
26228 else
26229 echo "configure: failed program was" >&5
26230 cat conftest.s >&5
26231 fi
26232 rm -f conftest.o conftest.s
26233 fi
26234 fi
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26236 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26237 if test $gcc_cv_as_mips_no_shared = yes; then
26238
26239 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26240
26241 fi
26242
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26244 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26245 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 gcc_cv_as_mips_gnu_attribute=no
26249 if test $in_tree_gas = yes; then
26250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26251 then gcc_cv_as_mips_gnu_attribute=yes
26252 fi
26253 elif test x$gcc_cv_as != x; then
26254 $as_echo '.gnu_attribute 4,1' > conftest.s
26255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26260 test $ac_status = 0; }; }
26261 then
26262 gcc_cv_as_mips_gnu_attribute=yes
26263 else
26264 echo "configure: failed program was" >&5
26265 cat conftest.s >&5
26266 fi
26267 rm -f conftest.o conftest.s
26268 fi
26269 fi
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26271 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26272 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26273
26274 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26275
26276 fi
26277
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26279 $as_echo_n "checking assembler for .module support... " >&6; }
26280 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26283 gcc_cv_as_mips_dot_module=no
26284 if test x$gcc_cv_as != x; then
26285 $as_echo '.module mips2
26286 .module fp=xx' > conftest.s
26287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26292 test $ac_status = 0; }; }
26293 then
26294 gcc_cv_as_mips_dot_module=yes
26295 else
26296 echo "configure: failed program was" >&5
26297 cat conftest.s >&5
26298 fi
26299 rm -f conftest.o conftest.s
26300 fi
26301 fi
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26303 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26304 if test $gcc_cv_as_mips_dot_module = yes; then
26305
26306 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26307
26308 fi
26309 if test x$gcc_cv_as_mips_dot_module = xno \
26310 && test x$with_fp_32 != x; then
26311 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26312 fi
26313
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26315 $as_echo_n "checking assembler for .micromips support... " >&6; }
26316 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 gcc_cv_as_micromips_support=no
26320 if test x$gcc_cv_as != x; then
26321 $as_echo '.set micromips' > conftest.s
26322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327 test $ac_status = 0; }; }
26328 then
26329 gcc_cv_as_micromips_support=yes
26330 else
26331 echo "configure: failed program was" >&5
26332 cat conftest.s >&5
26333 fi
26334 rm -f conftest.o conftest.s
26335 fi
26336 fi
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26338 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26339 if test $gcc_cv_as_micromips_support = yes; then
26340
26341 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26342
26343 fi
26344
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26346 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26347 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_mips_dtprelword=no
26351 if test $in_tree_gas = yes; then
26352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26353 then gcc_cv_as_mips_dtprelword=yes
26354 fi
26355 elif test x$gcc_cv_as != x; then
26356 $as_echo '.section .tdata,"awT",@progbits
26357 x:
26358 .word 2
26359 .text
26360 .dtprelword x+0x8000' > conftest.s
26361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; }
26367 then
26368 gcc_cv_as_mips_dtprelword=yes
26369 else
26370 echo "configure: failed program was" >&5
26371 cat conftest.s >&5
26372 fi
26373 rm -f conftest.o conftest.s
26374 fi
26375 fi
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26377 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26378 if test $gcc_cv_as_mips_dtprelword = yes; then
26379
26380 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26381
26382 fi
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26385 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26386 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 gcc_cv_as_mips_dspr1_mult=no
26390 if test x$gcc_cv_as != x; then
26391 $as_echo ' .set mips32r2
26392 .set nodspr2
26393 .set dsp
26394 madd $ac3,$4,$5
26395 maddu $ac3,$4,$5
26396 msub $ac3,$4,$5
26397 msubu $ac3,$4,$5
26398 mult $ac3,$4,$5
26399 multu $ac3,$4,$5' > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }
26406 then
26407 gcc_cv_as_mips_dspr1_mult=yes
26408 else
26409 echo "configure: failed program was" >&5
26410 cat conftest.s >&5
26411 fi
26412 rm -f conftest.o conftest.s
26413 fi
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26416 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26417 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26418
26419 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26420
26421 fi
26422
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26424 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26425 gcc_cv_as_ld_jalr_reloc=no
26426 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26427 if test $in_tree_ld = yes ; then
26428 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 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_as_ld_jalr_reloc=yes
26431 fi
26432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26433 echo ' .ent x' > conftest.s
26434 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26435 echo ' lw $25,%call16(y)($28)' >> conftest.s
26436 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26437 echo '1: jalr $25' >> conftest.s
26438 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26439 echo '1: jalr $25' >> conftest.s
26440 echo ' .end x' >> conftest.s
26441 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26442 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26443 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26444 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26445 gcc_cv_as_ld_jalr_reloc=yes
26446 fi
26447 fi
26448 rm -f conftest.*
26449 fi
26450 fi
26451 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26452 if test x$target_cpu_default = x; then
26453 target_cpu_default=MASK_RELAX_PIC_CALLS
26454 else
26455 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26456 fi
26457 fi
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26459 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26460
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26462 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26463 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26464 $as_echo_n "(cached) " >&6
26465 else
26466 gcc_cv_ld_mips_personality_relaxation=no
26467 if test $in_tree_ld = yes ; then
26468 if test "$gcc_cv_gld_major_version" -eq 2 \
26469 -a "$gcc_cv_gld_minor_version" -ge 21 \
26470 -o "$gcc_cv_gld_major_version" -gt 2; then
26471 gcc_cv_ld_mips_personality_relaxation=yes
26472 fi
26473 elif test x$gcc_cv_as != x \
26474 -a x$gcc_cv_ld != x \
26475 -a x$gcc_cv_readelf != x ; then
26476 cat > conftest.s <<EOF
26477 .cfi_startproc
26478 .cfi_personality 0x80,indirect_ptr
26479 .ent test
26480 test:
26481 nop
26482 .end test
26483 .cfi_endproc
26484
26485 .section .data,"aw",@progbits
26486 indirect_ptr:
26487 .dc.a personality
26488 EOF
26489 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26490 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26491 if $gcc_cv_readelf -d conftest 2>&1 \
26492 | grep TEXTREL > /dev/null 2>&1; then
26493 :
26494 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26495 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26496 :
26497 else
26498 gcc_cv_ld_mips_personality_relaxation=yes
26499 fi
26500 fi
26501 fi
26502 rm -f conftest.s conftest.o conftest
26503 fi
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26505 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26506 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26507
26508 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26509
26510 fi
26511
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26513 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26514 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26517 gcc_cv_as_mips_nan=no
26518 if test x$gcc_cv_as != x; then
26519 $as_echo '' > conftest.s
26520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26522 (eval $ac_try) 2>&5
26523 ac_status=$?
26524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26525 test $ac_status = 0; }; }
26526 then
26527 gcc_cv_as_mips_nan=yes
26528 else
26529 echo "configure: failed program was" >&5
26530 cat conftest.s >&5
26531 fi
26532 rm -f conftest.o conftest.s
26533 fi
26534 fi
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26536 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26537 if test $gcc_cv_as_mips_nan = yes; then
26538
26539 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26540
26541 fi
26542 if test x$gcc_cv_as_mips_nan = xno \
26543 && test x$with_nan != x; then
26544 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26545 fi
26546 ;;
26547 esac
26548
26549 # Mips and HP-UX need the GNU assembler.
26550 # Linux on IA64 might be able to use the Intel assembler.
26551
26552 case "$target" in
26553 mips*-*-* | *-*-hpux* )
26554 if test x$gas_flag = xyes \
26555 || test x"$host" != x"$build" \
26556 || test ! -x "$gcc_cv_as" \
26557 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26558 :
26559 else
26560 echo "*** This configuration requires the GNU assembler" >&2
26561 exit 1
26562 fi
26563 ;;
26564 esac
26565
26566 # ??? Not all targets support dwarf2 debug_line, even within a version
26567 # of gas. Moreover, we need to emit a valid instruction to trigger any
26568 # info to the output file. So, as supported targets are added to gas 2.11,
26569 # add some instruction here to (also) show we expect this might work.
26570 # ??? Once 2.11 is released, probably need to add first known working
26571 # version to the per-target configury.
26572 case "$cpu_type" in
26573 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26574 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26575 | visium | xstormy16 | xtensa)
26576 insn="nop"
26577 ;;
26578 ia64 | s390)
26579 insn="nop 0"
26580 ;;
26581 mmix)
26582 insn="swym 0"
26583 ;;
26584 esac
26585 if test x"$insn" != x; then
26586 conftest_s="\
26587 .file 1 \"conftest.s\"
26588 .loc 1 3 0
26589 $insn"
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26591 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26592 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26593 $as_echo_n "(cached) " >&6
26594 else
26595 gcc_cv_as_dwarf2_debug_line=no
26596 if test $in_tree_gas = yes; then
26597 if test $in_tree_gas_is_elf = yes \
26598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26599 then gcc_cv_as_dwarf2_debug_line=yes
26600 fi
26601 elif test x$gcc_cv_as != x; then
26602 $as_echo "$conftest_s" > conftest.s
26603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608 test $ac_status = 0; }; }
26609 then
26610 if test x$gcc_cv_objdump != x \
26611 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26612 | grep debug_line > /dev/null 2>&1; then
26613 gcc_cv_as_dwarf2_debug_line=yes
26614 fi
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26618 fi
26619 rm -f conftest.o conftest.s
26620 fi
26621 fi
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26623 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26624
26625
26626 # The .debug_line file table must be in the exact order that
26627 # we specified the files, since these indices are also used
26628 # by DW_AT_decl_file. Approximate this test by testing if
26629 # the assembler bitches if the same index is assigned twice.
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26631 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26632 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_dwarf2_file_buggy=no
26636 if test x$gcc_cv_as != x; then
26637 $as_echo ' .file 1 "foo.s"
26638 .file 1 "bar.s"' > conftest.s
26639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26644 test $ac_status = 0; }; }
26645 then
26646 gcc_cv_as_dwarf2_file_buggy=yes
26647 else
26648 echo "configure: failed program was" >&5
26649 cat conftest.s >&5
26650 fi
26651 rm -f conftest.o conftest.s
26652 fi
26653 fi
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26655 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26656
26657
26658 if test $gcc_cv_as_dwarf2_debug_line = yes \
26659 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26660
26661 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26662
26663 fi
26664
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26666 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26667 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26668 $as_echo_n "(cached) " >&6
26669 else
26670 gcc_cv_as_gdwarf2_flag=no
26671 if test $in_tree_gas = yes; then
26672 if test $in_tree_gas_is_elf = yes \
26673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26674 then gcc_cv_as_gdwarf2_flag=yes
26675 fi
26676 elif test x$gcc_cv_as != x; then
26677 $as_echo "$insn" > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_gdwarf2_flag=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26689 fi
26690 rm -f conftest.o conftest.s
26691 fi
26692 fi
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26694 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26695 if test $gcc_cv_as_gdwarf2_flag = yes; then
26696
26697 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26698
26699 fi
26700
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26702 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26703 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26704 $as_echo_n "(cached) " >&6
26705 else
26706 gcc_cv_as_gstabs_flag=no
26707 if test $in_tree_gas = yes; then
26708 if test $in_tree_gas_is_elf = yes \
26709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26710 then gcc_cv_as_gstabs_flag=yes
26711 fi
26712 elif test x$gcc_cv_as != x; then
26713 $as_echo "$insn" > conftest.s
26714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26716 (eval $ac_try) 2>&5
26717 ac_status=$?
26718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26719 test $ac_status = 0; }; }
26720 then
26721 gcc_cv_as_gstabs_flag=yes
26722 else
26723 echo "configure: failed program was" >&5
26724 cat conftest.s >&5
26725 fi
26726 rm -f conftest.o conftest.s
26727 fi
26728 fi
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26730 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26731 if test $gcc_cv_as_gstabs_flag = yes; then
26732
26733 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26734
26735 fi
26736
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26738 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26739 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26740 $as_echo_n "(cached) " >&6
26741 else
26742 gcc_cv_as_debug_prefix_map_flag=no
26743 if test $in_tree_gas = yes; then
26744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26745 then gcc_cv_as_debug_prefix_map_flag=yes
26746 fi
26747 elif test x$gcc_cv_as != x; then
26748 $as_echo "$insn" > conftest.s
26749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26754 test $ac_status = 0; }; }
26755 then
26756 gcc_cv_as_debug_prefix_map_flag=yes
26757 else
26758 echo "configure: failed program was" >&5
26759 cat conftest.s >&5
26760 fi
26761 rm -f conftest.o conftest.s
26762 fi
26763 fi
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26765 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26766 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26767
26768 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26769
26770 fi
26771 fi
26772
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26774 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26775 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26777 else
26778 gcc_cv_as_compress_debug=no
26779 if test x$gcc_cv_as != x; then
26780 $as_echo '' > conftest.s
26781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26787 then
26788 # gas compiled without zlib cannot compress debug sections and warns
26789 # about it, but still exits successfully. So check for this, too.
26790 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26791 then
26792 gcc_cv_as_compress_debug=0
26793 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26794 then
26795 gcc_cv_as_compress_debug=1
26796 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26797 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26798 else
26799 gcc_cv_as_compress_debug=0
26800 # FIXME: Future gas versions will support ELF gABI style via
26801 # --compress-debug-sections[=type].
26802 fi
26803 else
26804 echo "configure: failed program was" >&5
26805 cat conftest.s >&5
26806 fi
26807 rm -f conftest.o conftest.s
26808 fi
26809 fi
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26811 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26812
26813
26814 cat >>confdefs.h <<_ACEOF
26815 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26816 _ACEOF
26817
26818
26819 cat >>confdefs.h <<_ACEOF
26820 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26821 _ACEOF
26822
26823
26824 cat >>confdefs.h <<_ACEOF
26825 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26826 _ACEOF
26827
26828
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26830 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26831 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_as_lcomm_with_alignment=no
26835 if test x$gcc_cv_as != x; then
26836 $as_echo '.lcomm bar,4,16' > conftest.s
26837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26839 (eval $ac_try) 2>&5
26840 ac_status=$?
26841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842 test $ac_status = 0; }; }
26843 then
26844 gcc_cv_as_lcomm_with_alignment=yes
26845 else
26846 echo "configure: failed program was" >&5
26847 cat conftest.s >&5
26848 fi
26849 rm -f conftest.o conftest.s
26850 fi
26851 fi
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26853 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26854 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26855
26856 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26857
26858 fi
26859
26860 if test x$with_sysroot = x && test x$host = x$target \
26861 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26862 && test "$prefix" != "NONE"; then
26863
26864 cat >>confdefs.h <<_ACEOF
26865 #define PREFIX_INCLUDE_DIR "$prefix/include"
26866 _ACEOF
26867
26868 fi
26869
26870 # Determine the version of glibc, if any, used on the target.
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26872 $as_echo_n "checking for target glibc version... " >&6; }
26873
26874 # Check whether --with-glibc-version was given.
26875 if test "${with_glibc_version+set}" = set; then :
26876 withval=$with_glibc_version;
26877 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26878 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26879 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26880 else
26881 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26882 fi
26883 else
26884
26885 glibc_version_major=0
26886 glibc_version_minor=0
26887 if test -f $target_header_dir/features.h \
26888 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26889 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26890 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26891 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26892 fi
26893 fi
26894
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26896 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26897
26898 cat >>confdefs.h <<_ACEOF
26899 #define TARGET_GLIBC_MAJOR $glibc_version_major
26900 _ACEOF
26901
26902
26903 cat >>confdefs.h <<_ACEOF
26904 #define TARGET_GLIBC_MINOR $glibc_version_minor
26905 _ACEOF
26906
26907
26908 # Check whether --enable-gnu-unique-object was given.
26909 if test "${enable_gnu_unique_object+set}" = set; then :
26910 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26911 yes | no) ;;
26912 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26913 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26914 esac
26915 else
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26917 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26918 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26919 $as_echo_n "(cached) " >&6
26920 else
26921 gcc_cv_as_gnu_unique_object=no
26922 if test $in_tree_gas = yes; then
26923 if test $in_tree_gas_is_elf = yes \
26924 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26925 then gcc_cv_as_gnu_unique_object=yes
26926 fi
26927 elif test x$gcc_cv_as != x; then
26928 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26934 test $ac_status = 0; }; }
26935 then
26936 gcc_cv_as_gnu_unique_object=yes
26937 else
26938 echo "configure: failed program was" >&5
26939 cat conftest.s >&5
26940 fi
26941 rm -f conftest.o conftest.s
26942 fi
26943 fi
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26945 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26946 if test $gcc_cv_as_gnu_unique_object = yes; then
26947 # We need to unquote above to to use the definition from config.gcc.
26948 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26949
26950 if test $glibc_version_major -gt 2 \
26951 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26952 enable_gnu_unique_object=yes
26953 fi
26954
26955 fi
26956 fi
26957
26958 if test x$enable_gnu_unique_object = xyes; then
26959
26960 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26961
26962 fi
26963
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26965 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26966 if test "${gcc_cv_as_line_zero+set}" = set; then :
26967 $as_echo_n "(cached) " >&6
26968 else
26969 gcc_cv_as_line_zero=no
26970 if test $in_tree_gas = yes; then
26971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26972 then gcc_cv_as_line_zero=yes
26973 fi
26974 elif test "x$gcc_cv_as" != x; then
26975 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26976 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; } &&
26982 test "x`cat conftest.out`" = x
26983 then
26984 gcc_cv_as_line_zero=yes
26985 else
26986 echo "configure: failed program was" >&5
26987 cat conftest.s >&5
26988 echo "configure: error output was" >&5
26989 cat conftest.out >&5
26990 fi
26991 rm -f conftest.o conftest.s conftest.out
26992 fi
26993 fi
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26995 $as_echo "$gcc_cv_as_line_zero" >&6; }
26996 if test "x$gcc_cv_as_line_zero" = xyes; then
26997
26998 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26999
27000 fi
27001
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27003 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27004 gcc_cv_ld_eh_frame_hdr=no
27005 if test $in_tree_ld = yes ; then
27006 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 \
27007 && test $in_tree_ld_is_elf = yes; then
27008 gcc_cv_ld_eh_frame_hdr=yes
27009 fi
27010 elif test x$gcc_cv_ld != x; then
27011 if echo "$ld_ver" | grep GNU > /dev/null; then
27012 # Check if linker supports --eh-frame-hdr option
27013 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27014 gcc_cv_ld_eh_frame_hdr=yes
27015 fi
27016 else
27017 case "$target" in
27018 *-*-solaris2*)
27019 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27020 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27021 gcc_cv_ld_eh_frame_hdr=yes
27022 fi
27023 ;;
27024 esac
27025 fi
27026 fi
27027
27028 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27029
27030 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27031
27032 fi
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27034 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27035
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27037 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27038 gcc_cv_ld_eh_frame_ciev3=no
27039 if test $in_tree_ld = yes ; then
27040 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 \
27041 && test $in_tree_ld_is_elf = yes; then
27042 gcc_cv_ld_eh_frame_ciev3=yes
27043 fi
27044 elif test x$gcc_cv_ld != x; then
27045 if echo "$ld_ver" | grep GNU > /dev/null; then
27046 gcc_cv_ld_eh_frame_ciev3=yes
27047 if test 0"$ld_date" -lt 20040513; then
27048 if test -n "$ld_date"; then
27049 # If there was date string, but was earlier than 2004-05-13, fail
27050 gcc_cv_ld_eh_frame_ciev3=no
27051 elif test "$ld_vers_major" -lt 2; then
27052 gcc_cv_ld_eh_frame_ciev3=no
27053 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27054 gcc_cv_ld_eh_frame_ciev3=no
27055 fi
27056 fi
27057 else
27058 case "$target" in
27059 *-*-solaris2*)
27060 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27061 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27062 gcc_cv_ld_eh_frame_ciev3=yes
27063 fi
27064 ;;
27065 esac
27066 fi
27067 fi
27068
27069 cat >>confdefs.h <<_ACEOF
27070 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27071 _ACEOF
27072
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27074 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27075
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27077 $as_echo_n "checking linker position independent executable support... " >&6; }
27078 gcc_cv_ld_pie=no
27079 if test $in_tree_ld = yes ; then
27080 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 \
27081 && test $in_tree_ld_is_elf = yes; then
27082 gcc_cv_ld_pie=yes
27083 fi
27084 elif test x$gcc_cv_ld != x; then
27085 # Check if linker supports -pie option
27086 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27087 gcc_cv_ld_pie=yes
27088 fi
27089 fi
27090 if test x"$gcc_cv_ld_pie" = xyes; then
27091
27092 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27093
27094 fi
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27096 $as_echo "$gcc_cv_ld_pie" >&6; }
27097
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27099 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27100 gcc_cv_ld_pie_copyreloc=no
27101 if test $gcc_cv_ld_pie = yes ; then
27102 if test $in_tree_ld = yes ; then
27103 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27104 gcc_cv_ld_pie_copyreloc=yes
27105 fi
27106 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27107 # Check if linker supports -pie option with copy reloc
27108 case "$target" in
27109 i?86-*-linux* | x86_64-*-linux*)
27110 cat > conftest1.s <<EOF
27111 .globl a_glob
27112 .data
27113 .type a_glob, @object
27114 .size a_glob, 4
27115 a_glob:
27116 .long 2
27117 EOF
27118 cat > conftest2.s <<EOF
27119 .text
27120 .globl main
27121 .type main, @function
27122 main:
27123 movl %eax, a_glob(%rip)
27124 .size main, .-main
27125 .globl ptr
27126 .section .data.rel,"aw",@progbits
27127 .type ptr, @object
27128 ptr:
27129 .quad a_glob
27130 EOF
27131 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27132 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27133 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27134 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27135 gcc_cv_ld_pie_copyreloc=yes
27136 fi
27137 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27138 ;;
27139 esac
27140 fi
27141 fi
27142
27143 cat >>confdefs.h <<_ACEOF
27144 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27145 _ACEOF
27146
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27148 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27149
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27151 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27152 gcc_cv_ld_eh_gc_sections=no
27153 if test $in_tree_ld = yes ; then
27154 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 \
27155 && test $in_tree_ld_is_elf = yes; then
27156 gcc_cv_ld_eh_gc_sections=yes
27157 fi
27158 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27159 cat > conftest.s <<EOF
27160 .section .text
27161 .globl _start
27162 .type _start, @function
27163 _start:
27164 .long foo
27165 .size _start, .-_start
27166 .section .text.foo,"ax",@progbits
27167 .type foo, @function
27168 foo:
27169 .long 0
27170 .size foo, .-foo
27171 .section .gcc_except_table.foo,"a",@progbits
27172 .L0:
27173 .long 0
27174 .section .eh_frame,"a",@progbits
27175 .long .L0
27176 EOF
27177 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27178 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27179 | grep "gc-sections option ignored" > /dev/null; then
27180 gcc_cv_ld_eh_gc_sections=no
27181 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27182 | grep gcc_except_table > /dev/null; then
27183 gcc_cv_ld_eh_gc_sections=yes
27184 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27185 if test x$gcc_cv_as_comdat_group != xyes; then
27186 gcc_cv_ld_eh_gc_sections=no
27187 cat > conftest.s <<EOF
27188 .section .text
27189 .globl _start
27190 .type _start, @function
27191 _start:
27192 .long foo
27193 .size _start, .-_start
27194 .section .gnu.linkonce.t.foo,"ax",@progbits
27195 .type foo, @function
27196 foo:
27197 .long 0
27198 .size foo, .-foo
27199 .section .gcc_except_table.foo,"a",@progbits
27200 .L0:
27201 .long 0
27202 .section .eh_frame,"a",@progbits
27203 .long .L0
27204 EOF
27205 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27206 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27207 | grep "gc-sections option ignored" > /dev/null; then
27208 gcc_cv_ld_eh_gc_sections=no
27209 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27210 | grep gcc_except_table > /dev/null; then
27211 gcc_cv_ld_eh_gc_sections=yes
27212 fi
27213 fi
27214 fi
27215 fi
27216 fi
27217 rm -f conftest.s conftest.o conftest
27218 fi
27219 case "$target" in
27220 hppa*-*-linux*)
27221 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27222 gcc_cv_ld_eh_gc_sections=no
27223 ;;
27224 esac
27225 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27226
27227 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27228
27229 fi
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27231 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27232
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27234 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27235 gcc_cv_ld_eh_gc_sections_bug=no
27236 if test $in_tree_ld = yes ; then
27237 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 \
27238 && test $in_tree_ld_is_elf = yes; then
27239 gcc_cv_ld_eh_gc_sections_bug=yes
27240 fi
27241 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
27242 gcc_cv_ld_eh_gc_sections_bug=yes
27243 cat > conftest.s <<EOF
27244 .section .text
27245 .globl _start
27246 .type _start, @function
27247 _start:
27248 .long foo
27249 .size _start, .-_start
27250 .section .text.startup.foo,"ax",@progbits
27251 .type foo, @function
27252 foo:
27253 .long 0
27254 .size foo, .-foo
27255 .section .gcc_except_table.foo,"a",@progbits
27256 .L0:
27257 .long 0
27258 .section .eh_frame,"a",@progbits
27259 .long .L0
27260 EOF
27261 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27262 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27263 | grep "gc-sections option ignored" > /dev/null; then
27264 :
27265 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27266 | grep gcc_except_table > /dev/null; then
27267 gcc_cv_ld_eh_gc_sections_bug=no
27268 fi
27269 fi
27270 rm -f conftest.s conftest.o conftest
27271 fi
27272 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27273
27274 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27275
27276 fi
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27278 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27279
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27281 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27282 # gold/gld support compressed debug sections since binutils 2.19/2.21
27283 if test $in_tree_ld = yes ; then
27284 gcc_cv_ld_compress_debug=0
27285 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27286 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27287 gcc_cv_ld_compress_debug=2
27288 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27289 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27290 && test $in_tree_ld_is_elf = yes; then
27291 gcc_cv_ld_compress_debug=1
27292 fi
27293 elif echo "$ld_ver" | grep GNU > /dev/null; then
27294 gcc_cv_ld_compress_debug=1
27295 if test 0"$ld_date" -lt 20050308; then
27296 if test -n "$ld_date"; then
27297 # If there was date string, but was earlier than 2005-03-08, fail
27298 gcc_cv_ld_compress_debug=0
27299 elif test "$ld_vers_major" -lt 2; then
27300 gcc_cv_ld_compress_debug=0
27301 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27302 gcc_cv_ld_compress_debug=0
27303 fi
27304 fi
27305 if test $ld_is_gold = yes; then
27306 gcc_cv_ld_compress_debug=2
27307 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27308 fi
27309 else
27310 case "${target}" in
27311 *-*-solaris2*)
27312 # Introduced in Solaris 11.2.
27313 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27314 gcc_cv_ld_compress_debug=3
27315 gcc_cv_ld_compress_debug_option="-z compress-sections"
27316 else
27317 gcc_cv_ld_compress_debug=0
27318 fi
27319 ;;
27320 *)
27321 # Assume linkers other than GNU ld don't support compessed debug
27322 # sections.
27323 gcc_cv_ld_compress_debug=0
27324 ;;
27325 esac
27326 fi
27327
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27330 _ACEOF
27331
27332
27333 cat >>confdefs.h <<_ACEOF
27334 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27335 _ACEOF
27336
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27338 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27339
27340 # --------
27341 # UNSORTED
27342 # --------
27343
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27345 $as_echo_n "checking linker --as-needed support... " >&6; }
27346 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27347 $as_echo_n "(cached) " >&6
27348 else
27349 gcc_cv_ld_as_needed=no
27350 gcc_cv_ld_as_needed_option='--as-needed'
27351 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27352 if test $in_tree_ld = yes ; then
27353 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 \
27354 && test $in_tree_ld_is_elf = yes; then
27355 gcc_cv_ld_as_needed=yes
27356 fi
27357 elif test x$gcc_cv_ld != x; then
27358 # Check if linker supports --as-needed and --no-as-needed options
27359 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27360 gcc_cv_ld_as_needed=yes
27361 else
27362 case "$target" in
27363 # Solaris 2 ld always supports -z ignore/-z record.
27364 *-*-solaris2*)
27365 gcc_cv_ld_as_needed=yes
27366 gcc_cv_ld_as_needed_option="-z ignore"
27367 gcc_cv_ld_no_as_needed_option="-z record"
27368 ;;
27369 esac
27370 fi
27371 fi
27372 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27373 # dl_iterate_phdr, i.e. since Solaris 11.
27374 case "$target" in
27375 *-*-solaris2.1[1-9]*)
27376 case "$target" in
27377 i?86-*-* | x86_64-*-*)
27378 if echo "$ld_ver" | grep GNU > /dev/null; then
27379 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27380 gcc_cv_ld_as_needed=no
27381 fi
27382 ;;
27383 esac
27384 ;;
27385 *-*-solaris2*)
27386 gcc_cv_ld_as_needed=no
27387 ;;
27388 esac
27389
27390 fi
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27392 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27393 if test x"$gcc_cv_ld_as_needed" = xyes; then
27394
27395 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27396
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27400 _ACEOF
27401
27402
27403 cat >>confdefs.h <<_ACEOF
27404 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27405 _ACEOF
27406
27407 fi
27408
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27410 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27411 saved_LDFLAGS="$LDFLAGS"
27412 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27413 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27415 /* end confdefs.h. */
27416 int main(void) {return 0;}
27417 _ACEOF
27418 if ac_fn_c_try_link "$LINENO"; then :
27419 gcc_cv_ld_clearcap=yes; break
27420 else
27421 gcc_cv_ld_clearcap=no
27422 fi
27423 rm -f core conftest.err conftest.$ac_objext \
27424 conftest$ac_exeext conftest.$ac_ext
27425 done
27426 LDFLAGS="$saved_LDFLAGS"
27427 if test "x$gcc_cv_ld_clearcap" = xyes; then
27428
27429 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27430
27431 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27432
27433 fi
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27435 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27436
27437 case "$target:$tm_file" in
27438 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27439 case "$target" in
27440 *le-*-linux*)
27441 emul_name="-melf64lppc"
27442 ;;
27443 *-*-linux*)
27444 emul_name="-melf64ppc"
27445 ;;
27446 *-*-freebsd*)
27447 emul_name="-melf64ppc_fbsd"
27448 ;;
27449 esac
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27451 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27452 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27453 $as_echo_n "(cached) " >&6
27454 else
27455 gcc_cv_ld_no_dot_syms=no
27456 if test x"$ld_is_gold" = xyes; then
27457 gcc_cv_ld_no_dot_syms=yes
27458 elif test $in_tree_ld = yes ; then
27459 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
27460 gcc_cv_ld_no_dot_syms=yes
27461 fi
27462 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27463 cat > conftest1.s <<EOF
27464 .text
27465 bl .foo
27466 EOF
27467 cat > conftest2.s <<EOF
27468 .section ".opd","aw"
27469 .align 3
27470 .globl foo
27471 .type foo,@function
27472 foo:
27473 .quad .LEfoo,.TOC.@tocbase,0
27474 .text
27475 .LEfoo:
27476 blr
27477 .size foo,.-.LEfoo
27478 EOF
27479 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27480 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27481 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27482 gcc_cv_ld_no_dot_syms=yes
27483 fi
27484 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27485 fi
27486
27487 fi
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27489 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27490 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27491
27492 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27493
27494 fi
27495
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27497 $as_echo_n "checking linker large toc support... " >&6; }
27498 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27499 $as_echo_n "(cached) " >&6
27500 else
27501 gcc_cv_ld_large_toc=no
27502 if test x"$ld_is_gold" = xyes; then
27503 gcc_cv_ld_large_toc=yes
27504 elif test $in_tree_ld = yes ; then
27505 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
27506 gcc_cv_ld_large_toc=yes
27507 fi
27508 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27509 cat > conftest.s <<EOF
27510 .section ".tbss","awT",@nobits
27511 .align 3
27512 ie0: .space 8
27513 .global _start
27514 .text
27515 _start:
27516 addis 9,13,ie0@got@tprel@ha
27517 ld 9,ie0@got@tprel@l(9)
27518 EOF
27519 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27520 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27521 gcc_cv_ld_large_toc=yes
27522 fi
27523 rm -f conftest conftest.o conftest.s
27524 fi
27525
27526 fi
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27528 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27529 if test x"$gcc_cv_ld_large_toc" = xyes; then
27530
27531 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27532
27533 fi
27534 ;;
27535 esac
27536
27537 case "$target" in
27538 *-*-aix*)
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27540 $as_echo_n "checking linker large toc support... " >&6; }
27541 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27542 $as_echo_n "(cached) " >&6
27543 else
27544 gcc_cv_ld_large_toc=no
27545 if test x$gcc_cv_as != x ; then
27546 cat > conftest.s <<EOF
27547 .toc
27548 LC..1:
27549 .tc a[TC],a[RW]
27550 .extern a[RW]
27551 .csect .text[PR]
27552 .largetoctest:
27553 addis 9,LC..1@u(2)
27554 ld 3,LC..1@l(9)
27555 EOF
27556 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27557 gcc_cv_ld_large_toc=yes
27558 fi
27559 rm -f conftest conftest.o conftest.s
27560 fi
27561
27562 fi
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27564 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27565 if test x"$gcc_cv_ld_large_toc" = xyes; then
27566
27567 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27568
27569 fi
27570 ;;
27571 esac
27572
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27574 $as_echo_n "checking linker --build-id support... " >&6; }
27575 if test "${gcc_cv_ld_buildid+set}" = set; then :
27576 $as_echo_n "(cached) " >&6
27577 else
27578 gcc_cv_ld_buildid=no
27579 if test $in_tree_ld = yes ; then
27580 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27581 "$gcc_cv_gld_minor_version" -ge 18 -o \
27582 "$gcc_cv_gld_major_version" -gt 2 \
27583 && test $in_tree_ld_is_elf = yes; then
27584 gcc_cv_ld_buildid=yes
27585 fi
27586 elif test x$gcc_cv_ld != x; then
27587 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27588 gcc_cv_ld_buildid=yes
27589 fi
27590 fi
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27593 $as_echo "$gcc_cv_ld_buildid" >&6; }
27594 if test x"$gcc_cv_ld_buildid" = xyes; then
27595
27596 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27597
27598 fi
27599
27600 # Check whether --enable-linker-build-id was given.
27601 if test "${enable_linker_build_id+set}" = set; then :
27602 enableval=$enable_linker_build_id;
27603 else
27604 enable_linker_build_id=no
27605 fi
27606
27607
27608 if test x"$enable_linker_build_id" = xyes; then
27609 if test x"$gcc_cv_ld_buildid" = xyes; then
27610
27611 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27612
27613 else
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27615 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27616 fi
27617 fi
27618
27619 # In binutils 2.21, GNU ld gained support for new emulations fully
27620 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27622 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27623 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27624 $as_echo_n "(cached) " >&6
27625 else
27626 gcc_cv_ld_sol2_emulation=no
27627 if test $in_tree_ld = yes ; then
27628 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27629 "$gcc_cv_gld_minor_version" -ge 21 -o \
27630 "$gcc_cv_gld_major_version" -gt 2 \
27631 && test $in_tree_ld_is_elf = yes; then
27632 gcc_cv_ld_sol2_emulation=yes
27633 fi
27634 elif test x$gcc_cv_ld != x; then
27635 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27636 grep _sol2 > /dev/null; then
27637 gcc_cv_ld_sol2_emulation=yes
27638 fi
27639 fi
27640 fi
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27642 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27643 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27644
27645 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27646
27647 fi
27648
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27650 $as_echo_n "checking linker --sysroot support... " >&6; }
27651 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27652 $as_echo_n "(cached) " >&6
27653 else
27654 gcc_cv_ld_sysroot=no
27655 if test $in_tree_ld = yes ; then
27656 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
27657 gcc_cv_ld_sysroot=yes
27658 fi
27659 elif test x$gcc_cv_ld != x; then
27660 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27661 gcc_cv_ld_sysroot=yes
27662 fi
27663 fi
27664 fi
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27666 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27667 if test x"$gcc_cv_ld_sysroot" = xyes; then
27668
27669 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27670
27671 fi
27672
27673 # Test for stack protector support in target C library.
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27675 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27676 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27677 $as_echo_n "(cached) " >&6
27678 else
27679 gcc_cv_libc_provides_ssp=no
27680 case "$target" in
27681 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27682 # glibc 2.4 and later provides __stack_chk_fail and
27683 # either __stack_chk_guard, or TLS access to stack guard canary.
27684
27685 if test $glibc_version_major -gt 2 \
27686 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27687 gcc_cv_libc_provides_ssp=yes
27688 else
27689
27690 if test -f $target_header_dir/features.h \
27691 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27692 $target_header_dir/features.h > /dev/null; then
27693 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27694 $target_header_dir/features.h > /dev/null && \
27695 test -f $target_header_dir/bits/uClibc_config.h && \
27696 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27697 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27698 gcc_cv_libc_provides_ssp=yes
27699 fi
27700 # all versions of Bionic support stack protector
27701 elif test -f $target_header_dir/sys/cdefs.h \
27702 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27703 $target_header_dir/sys/cdefs.h > /dev/null; then
27704 gcc_cv_libc_provides_ssp=yes
27705 fi
27706 fi
27707 ;;
27708 *-*-gnu*)
27709 # Avoid complicated tests (see
27710 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27711 # simply assert that glibc does provide this, which is true for all
27712 # realistically usable GNU/Hurd configurations.
27713 gcc_cv_libc_provides_ssp=yes;;
27714 *-*-darwin* | *-*-freebsd*)
27715 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27716 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27717 gcc_cv_libc_provides_ssp=yes
27718 else
27719 echo "no __stack_chk_fail on this target"
27720 fi
27721
27722 ;;
27723 *) gcc_cv_libc_provides_ssp=no ;;
27724 esac
27725 fi
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27727 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27728
27729 if test x$gcc_cv_libc_provides_ssp = xyes; then
27730
27731 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27732
27733 fi
27734
27735 # Test for <sys/sdt.h> on the target.
27736
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27738 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27739 have_sys_sdt_h=no
27740 if test -f $target_header_dir/sys/sdt.h; then
27741 have_sys_sdt_h=yes
27742
27743 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27744
27745 fi
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27747 $as_echo "$have_sys_sdt_h" >&6; }
27748
27749 # Check if TFmode long double should be used by default or not.
27750 # Some glibc targets used DFmode long double, but with glibc 2.4
27751 # and later they can use TFmode.
27752 case "$target" in
27753 powerpc*-*-linux* | \
27754 sparc*-*-linux* | \
27755 s390*-*-linux* | \
27756 alpha*-*-linux*)
27757
27758 # Check whether --with-long-double-128 was given.
27759 if test "${with_long_double_128+set}" = set; then :
27760 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27761 else
27762
27763 if test $glibc_version_major -gt 2 \
27764 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27765 gcc_cv_target_ldbl128=yes
27766 else
27767
27768 gcc_cv_target_ldbl128=no
27769 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27770 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27771 && gcc_cv_target_ldbl128=yes
27772
27773 fi
27774 fi
27775
27776 ;;
27777 esac
27778 if test x$gcc_cv_target_ldbl128 = xyes; then
27779
27780 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27781
27782 fi
27783
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27785 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27786 gcc_cv_target_dl_iterate_phdr=unknown
27787 case "$target" in
27788 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27789 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27790 # libdl there, both complicating its use and breaking compatibility
27791 # between Solaris 10 updates.
27792 *-*-solaris2.1[1-9]*)
27793 # <link.h> needs both a dl_iterate_phdr declaration and support for
27794 # compilation with largefile support.
27795 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27796 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27797 gcc_cv_target_dl_iterate_phdr=yes
27798 else
27799 gcc_cv_target_dl_iterate_phdr=no
27800 fi
27801 ;;
27802 *-*-dragonfly* | *-*-freebsd*)
27803 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27804 gcc_cv_target_dl_iterate_phdr=yes
27805 else
27806 gcc_cv_target_dl_iterate_phdr=no
27807 fi
27808 ;;
27809 esac
27810
27811 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27812
27813 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27814
27815 fi
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27817 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27818
27819 # We no longer support different GC mechanisms. Emit an error if
27820 # the user configures with --with-gc.
27821
27822 # Check whether --with-gc was given.
27823 if test "${with_gc+set}" = set; then :
27824 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27825 fi
27826
27827
27828 # Libraries to use on the host. This will normally be set by the top
27829 # level Makefile. Here we simply capture the value for our Makefile.
27830 if test -z "${HOST_LIBS+set}"; then
27831 HOST_LIBS=
27832 fi
27833
27834
27835 # Use the system's zlib library.
27836 zlibdir=-L../zlib
27837 zlibinc="-I\$(srcdir)/../zlib"
27838
27839 # Check whether --with-system-zlib was given.
27840 if test "${with_system_zlib+set}" = set; then :
27841 withval=$with_system_zlib; zlibdir=
27842 zlibinc=
27843
27844 fi
27845
27846
27847
27848
27849
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27851 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27852 # Check whether --enable-maintainer-mode was given.
27853 if test "${enable_maintainer_mode+set}" = set; then :
27854 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27855 else
27856 maintainer_mode=no
27857 fi
27858
27859
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27861 $as_echo "$maintainer_mode" >&6; }
27862
27863 if test "$maintainer_mode" = "yes"; then
27864 MAINT=''
27865 else
27866 MAINT='#'
27867 fi
27868
27869
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27871 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27872 # Check whether --enable-link-mutex was given.
27873 if test "${enable_link_mutex+set}" = set; then :
27874 enableval=$enable_link_mutex; do_link_mutex=$enableval
27875 else
27876 do_link_mutex=no
27877 fi
27878
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27880 $as_echo "$do_link_mutex" >&6; }
27881
27882 if test "$do_link_mutex" = "yes"; then
27883 DO_LINK_MUTEX=true
27884 else
27885 DO_LINK_MUTEX=false
27886 fi
27887
27888
27889 # --------------
27890 # Language hooks
27891 # --------------
27892
27893 # Make empty files to contain the specs and options for each language.
27894 # Then add #include lines to for a compiler that has specs and/or options.
27895
27896 subdirs=
27897 lang_opt_files=
27898 lang_specs_files=
27899 lang_tree_files=
27900 # These (without "all_") are set in each config-lang.in.
27901 # `language' must be a single word so is spelled singularly.
27902 all_languages=
27903 all_compilers=
27904 all_outputs='Makefile'
27905 # List of language makefile fragments.
27906 all_lang_makefrags=
27907 # Additional files for gengtype
27908 all_gtfiles="$target_gtfiles"
27909
27910 # These are the languages that are set in --enable-languages,
27911 # and are available in the GCC tree.
27912 all_selected_languages=
27913
27914 # Add the language fragments.
27915 # Languages are added via two mechanisms. Some information must be
27916 # recorded in makefile variables, these are defined in config-lang.in.
27917 # We accumulate them and plug them into the main Makefile.
27918 # The other mechanism is a set of hooks for each of the main targets
27919 # like `clean', `install', etc.
27920
27921 language_hooks="Make-hooks"
27922
27923 for lang in ${srcdir}/*/config-lang.in
27924 do
27925 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27926
27927 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27928 if test "x$lang_alias" = x
27929 then
27930 echo "$lang doesn't set \$language." 1>&2
27931 exit 1
27932 fi
27933 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27934 subdirs="$subdirs $subdir"
27935
27936 # $gcc_subdir is where the gcc integration files are to be found
27937 # for a language, both for internal compiler purposes (compiler
27938 # sources implementing front-end to GCC tree converters), and for
27939 # build infrastructure purposes (Make-lang.in, etc.)
27940 #
27941 # This will be <subdir> (relative to $srcdir) if a line like
27942 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27943 # is found in <langdir>/config-lang.in, and will remain <langdir>
27944 # otherwise.
27945 #
27946 # Except for the language alias (fetched above), the regular
27947 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27948 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27949 # only this and the language alias.
27950
27951 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27952 if [ "$gcc_subdir" = "" ]; then
27953 gcc_subdir="$subdir"
27954 fi
27955
27956 case ",$enable_languages," in
27957 *,$lang_alias,*)
27958 all_selected_languages="$all_selected_languages $lang_alias"
27959 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27960 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27961 fi
27962 ;;
27963 esac
27964
27965 language=
27966 boot_language=
27967 compilers=
27968 outputs=
27969 gtfiles=
27970 subdir_requires=
27971 . ${srcdir}/$gcc_subdir/config-lang.in
27972 if test "x$language" = x
27973 then
27974 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27975 exit 1
27976 fi
27977
27978 ok=:
27979 case ",$enable_languages," in
27980 *,$lang_alias,*) ;;
27981 *)
27982 for i in $subdir_requires; do
27983 test -f "${srcdir}/$i/config-lang.in" && continue
27984 ok=false
27985 break
27986 done
27987 ;;
27988 esac
27989 $ok || continue
27990
27991 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27992 if test -f $srcdir/$gcc_subdir/lang.opt; then
27993 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27994 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27995 fi
27996 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27997 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27998 fi
27999 all_languages="$all_languages $language"
28000 all_compilers="$all_compilers $compilers"
28001 all_outputs="$all_outputs $outputs"
28002 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28003 case ",$enable_languages," in
28004 *,lto,*)
28005
28006 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28007
28008 enable_lto=yes
28009
28010 ;;
28011 *) ;;
28012 esac
28013 done
28014
28015 check_languages=
28016 for language in $all_selected_languages
28017 do
28018 check_languages="$check_languages check-$language"
28019 done
28020
28021 # We link each language in with a set of hooks, reached indirectly via
28022 # lang.${target}. Only do so for selected languages.
28023
28024 rm -f Make-hooks
28025 touch Make-hooks
28026 target_list="all.cross start.encap rest.encap tags \
28027 install-common install-man install-info install-pdf install-html dvi \
28028 pdf html uninstall info man srcextra srcman srcinfo \
28029 mostlyclean clean distclean maintainer-clean install-plugin"
28030
28031 for t in $target_list
28032 do
28033 x=
28034 for lang in $all_selected_languages
28035 do
28036 x="$x $lang.$t"
28037 done
28038 echo "lang.$t: $x" >> Make-hooks
28039 done
28040
28041 # --------
28042 # Option include files
28043 # --------
28044
28045 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28046 option_includes="option-includes.mk"
28047
28048
28049 # --------
28050 # UNSORTED
28051 # --------
28052
28053 # Create .gdbinit.
28054
28055 echo "dir ." > .gdbinit
28056 echo "dir ${srcdir}" >> .gdbinit
28057 if test x$gdb_needs_out_file_path = xyes
28058 then
28059 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28060 fi
28061 if test "x$subdirs" != x; then
28062 for s in $subdirs
28063 do
28064 echo "dir ${srcdir}/$s" >> .gdbinit
28065 done
28066 fi
28067 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28068 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28069
28070 # Put a breakpoint on __asan_report_error to help with debugging buffer
28071 # overflow.
28072 case "$CFLAGS" in
28073 *-fsanitize=address*)
28074 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28075 ;;
28076 esac
28077
28078 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28079
28080
28081
28082 # Find a directory in which to install a shared libgcc.
28083
28084 # Check whether --enable-version-specific-runtime-libs was given.
28085 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28086 enableval=$enable_version_specific_runtime_libs;
28087 fi
28088
28089
28090 # Substitute configuration variables
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153 # Echo link setup.
28154 if test x${build} = x${host} ; then
28155 if test x${host} = x${target} ; then
28156 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28157 else
28158 echo "Links are now set up to build a cross-compiler" 1>&2
28159 echo " from ${host} to ${target}." 1>&2
28160 fi
28161 else
28162 if test x${host} = x${target} ; then
28163 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28164 echo " for ${target}." 1>&2
28165 else
28166 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28167 echo " from ${host} to ${target}." 1>&2
28168 fi
28169 fi
28170
28171
28172
28173
28174
28175
28176 if test "x${ISLLIBS}" != "x" ; then
28177
28178 $as_echo "#define HAVE_isl 1" >>confdefs.h
28179
28180 fi
28181
28182 # Check whether isl_schedule_constraints_compute_schedule is available;
28183 # it's new in ISL-0.13.
28184 if test "x${ISLLIBS}" != "x" ; then
28185 saved_CFLAGS="$CFLAGS"
28186 CFLAGS="$CFLAGS $ISLINC"
28187 saved_LIBS="$LIBS"
28188 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28189
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28191 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h. */
28194 #include <isl/schedule.h>
28195 int
28196 main ()
28197 {
28198 isl_schedule_constraints_compute_schedule (NULL);
28199 ;
28200 return 0;
28201 }
28202 _ACEOF
28203 if ac_fn_c_try_link "$LINENO"; then :
28204 ac_has_isl_schedule_constraints_compute_schedule=yes
28205 else
28206 ac_has_isl_schedule_constraints_compute_schedule=no
28207 fi
28208 rm -f core conftest.err conftest.$ac_objext \
28209 conftest$ac_exeext conftest.$ac_ext
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28211 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28212
28213 LIBS="$saved_LIBS"
28214 CFLAGS="$saved_CFLAGS"
28215
28216 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28217
28218 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28219
28220 fi
28221 fi
28222
28223 # Check for plugin support
28224 # Check whether --enable-plugin was given.
28225 if test "${enable_plugin+set}" = set; then :
28226 enableval=$enable_plugin; enable_plugin=$enableval
28227 else
28228 enable_plugin=yes; default_plugin=yes
28229 fi
28230
28231
28232 pluginlibs=
28233
28234 case "${host}" in
28235 *-*-darwin*)
28236 if test x$build = x$host; then
28237 export_sym_check="nm${exeext} -g"
28238 elif test x$host = x$target; then
28239 export_sym_check="$gcc_cv_nm -g"
28240 else
28241 export_sym_check=
28242 fi
28243 ;;
28244 *)
28245 if test x$build = x$host; then
28246 export_sym_check="objdump${exeext} -T"
28247 elif test x$host = x$target; then
28248 export_sym_check="$gcc_cv_objdump -T"
28249 else
28250 export_sym_check=
28251 fi
28252 ;;
28253 esac
28254
28255 if test x"$enable_plugin" = x"yes"; then
28256
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28258 $as_echo_n "checking for exported symbols... " >&6; }
28259 if test "x$export_sym_check" != x; then
28260 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28261 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28262 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28263 : # No need to use a flag
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28265 $as_echo "yes" >&6; }
28266 else
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28268 $as_echo "yes" >&6; }
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28270 $as_echo_n "checking for -rdynamic... " >&6; }
28271 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28272 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28273 plugin_rdynamic=yes
28274 pluginlibs="-rdynamic"
28275 else
28276 plugin_rdynamic=no
28277 enable_plugin=no
28278 fi
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28280 $as_echo "$plugin_rdynamic" >&6; }
28281 fi
28282 else
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28284 $as_echo "unable to check" >&6; }
28285 fi
28286
28287 # Check -ldl
28288 saved_LIBS="$LIBS"
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28290 $as_echo_n "checking for library containing dlopen... " >&6; }
28291 if test "${ac_cv_search_dlopen+set}" = set; then :
28292 $as_echo_n "(cached) " >&6
28293 else
28294 ac_func_search_save_LIBS=$LIBS
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299 Use char because int might match the return type of a GCC
28300 builtin and then its argument prototype would still apply. */
28301 #ifdef __cplusplus
28302 extern "C"
28303 #endif
28304 char dlopen ();
28305 int
28306 main ()
28307 {
28308 return dlopen ();
28309 ;
28310 return 0;
28311 }
28312 _ACEOF
28313 for ac_lib in '' dl; do
28314 if test -z "$ac_lib"; then
28315 ac_res="none required"
28316 else
28317 ac_res=-l$ac_lib
28318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28319 fi
28320 if ac_fn_c_try_link "$LINENO"; then :
28321 ac_cv_search_dlopen=$ac_res
28322 fi
28323 rm -f core conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext
28325 if test "${ac_cv_search_dlopen+set}" = set; then :
28326 break
28327 fi
28328 done
28329 if test "${ac_cv_search_dlopen+set}" = set; then :
28330
28331 else
28332 ac_cv_search_dlopen=no
28333 fi
28334 rm conftest.$ac_ext
28335 LIBS=$ac_func_search_save_LIBS
28336 fi
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28338 $as_echo "$ac_cv_search_dlopen" >&6; }
28339 ac_res=$ac_cv_search_dlopen
28340 if test "$ac_res" != no; then :
28341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28342
28343 fi
28344
28345 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28346 pluginlibs="$pluginlibs -ldl"
28347 fi
28348 LIBS="$saved_LIBS"
28349
28350 # Check that we can build shared objects with -fPIC -shared
28351 saved_LDFLAGS="$LDFLAGS"
28352 saved_CFLAGS="$CFLAGS"
28353 case "${host}" in
28354 *-*-darwin*)
28355 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28356 CFLAGS="$CFLAGS -fPIC"
28357 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28358 ;;
28359 *)
28360 CFLAGS="$CFLAGS -fPIC"
28361 LDFLAGS="$LDFLAGS -fPIC -shared"
28362 ;;
28363 esac
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28365 $as_echo_n "checking for -fPIC -shared... " >&6; }
28366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28367 /* end confdefs.h. */
28368 extern int X;
28369 int
28370 main ()
28371 {
28372 return X == 0;
28373 ;
28374 return 0;
28375 }
28376 _ACEOF
28377 if ac_fn_c_try_link "$LINENO"; then :
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28379 $as_echo "yes" >&6; }; have_pic_shared=yes
28380 else
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28382 $as_echo "no" >&6; }; have_pic_shared=no
28383 fi
28384 rm -f core conftest.err conftest.$ac_objext \
28385 conftest$ac_exeext conftest.$ac_ext
28386 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28387 pluginlibs=
28388 enable_plugin=no
28389 fi
28390 LDFLAGS="$saved_LDFLAGS"
28391 CFLAGS="$saved_CFLAGS"
28392
28393 # If plugin support had been requested but not available, fail.
28394 if test x"$enable_plugin" = x"no" ; then
28395 if test x"$default_plugin" != x"yes"; then
28396 as_fn_error "
28397 Building GCC with plugin support requires a host that supports
28398 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28399 fi
28400 fi
28401 fi
28402
28403
28404
28405 if test x"$enable_plugin" = x"yes"; then
28406
28407 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28408
28409 fi
28410
28411
28412 # Enable --enable-host-shared
28413 # Check whether --enable-host-shared was given.
28414 if test "${enable_host_shared+set}" = set; then :
28415 enableval=$enable_host_shared; PICFLAG=-fPIC
28416 else
28417 PICFLAG=
28418 fi
28419
28420
28421
28422
28423
28424 # Check whether --enable-libquadmath-support was given.
28425 if test "${enable_libquadmath_support+set}" = set; then :
28426 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28427 else
28428 ENABLE_LIBQUADMATH_SUPPORT=yes
28429 fi
28430
28431 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28432
28433 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28434
28435 fi
28436
28437
28438 # Specify what hash style to use by default.
28439
28440 # Check whether --with-linker-hash-style was given.
28441 if test "${with_linker_hash_style+set}" = set; then :
28442 withval=$with_linker_hash_style; case x"$withval" in
28443 xsysv)
28444 LINKER_HASH_STYLE=sysv
28445 ;;
28446 xgnu)
28447 LINKER_HASH_STYLE=gnu
28448 ;;
28449 xboth)
28450 LINKER_HASH_STYLE=both
28451 ;;
28452 *)
28453 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28454 ;;
28455 esac
28456 else
28457 LINKER_HASH_STYLE=''
28458 fi
28459
28460 if test x"${LINKER_HASH_STYLE}" != x; then
28461
28462 cat >>confdefs.h <<_ACEOF
28463 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28464 _ACEOF
28465
28466 fi
28467
28468 # Specify what should be the default of -fdiagnostics-color option.
28469
28470 # Check whether --with-diagnostics-color was given.
28471 if test "${with_diagnostics_color+set}" = set; then :
28472 withval=$with_diagnostics_color; case x"$withval" in
28473 xnever)
28474 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28475 ;;
28476 xauto)
28477 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28478 ;;
28479 xauto-if-env)
28480 DIAGNOSTICS_COLOR_DEFAULT=-1
28481 ;;
28482 xalways)
28483 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28484 ;;
28485 *)
28486 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28487 ;;
28488 esac
28489 else
28490 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28491 fi
28492
28493
28494 cat >>confdefs.h <<_ACEOF
28495 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28496 _ACEOF
28497
28498
28499 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28500 # of jit/jit-playback.c.
28501 cat > gcc-driver-name.h <<EOF
28502 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28503 EOF
28504
28505 # Configure the subdirectories
28506 # AC_CONFIG_SUBDIRS($subdirs)
28507
28508 # Create the Makefile
28509 # and configure language subdirectories
28510 ac_config_files="$ac_config_files $all_outputs"
28511
28512
28513 ac_config_commands="$ac_config_commands default"
28514
28515 cat >confcache <<\_ACEOF
28516 # This file is a shell script that caches the results of configure
28517 # tests run on this system so they can be shared between configure
28518 # scripts and configure runs, see configure's option --config-cache.
28519 # It is not useful on other systems. If it contains results you don't
28520 # want to keep, you may remove or edit it.
28521 #
28522 # config.status only pays attention to the cache file if you give it
28523 # the --recheck option to rerun configure.
28524 #
28525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28527 # following values.
28528
28529 _ACEOF
28530
28531 # The following way of writing the cache mishandles newlines in values,
28532 # but we know of no workaround that is simple, portable, and efficient.
28533 # So, we kill variables containing newlines.
28534 # Ultrix sh set writes to stderr and can't be redirected directly,
28535 # and sets the high bit in the cache file unless we assign to the vars.
28536 (
28537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28538 eval ac_val=\$$ac_var
28539 case $ac_val in #(
28540 *${as_nl}*)
28541 case $ac_var in #(
28542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28544 esac
28545 case $ac_var in #(
28546 _ | IFS | as_nl) ;; #(
28547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28548 *) { eval $ac_var=; unset $ac_var;} ;;
28549 esac ;;
28550 esac
28551 done
28552
28553 (set) 2>&1 |
28554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28555 *${as_nl}ac_space=\ *)
28556 # `set' does not quote correctly, so add quotes: double-quote
28557 # substitution turns \\\\ into \\, and sed turns \\ into \.
28558 sed -n \
28559 "s/'/'\\\\''/g;
28560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28561 ;; #(
28562 *)
28563 # `set' quotes correctly as required by POSIX, so do not add quotes.
28564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28565 ;;
28566 esac |
28567 sort
28568 ) |
28569 sed '
28570 /^ac_cv_env_/b end
28571 t clear
28572 :clear
28573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28574 t end
28575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28576 :end' >>confcache
28577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28578 if test -w "$cache_file"; then
28579 test "x$cache_file" != "x/dev/null" &&
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28581 $as_echo "$as_me: updating cache $cache_file" >&6;}
28582 cat confcache >$cache_file
28583 else
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28585 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28586 fi
28587 fi
28588 rm -f confcache
28589
28590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28591 # Let make expand exec_prefix.
28592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28593
28594 DEFS=-DHAVE_CONFIG_H
28595
28596 ac_libobjs=
28597 ac_ltlibobjs=
28598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28599 # 1. Remove the extension, and $U if already installed.
28600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28603 # will be set to the directory where LIBOBJS objects are built.
28604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28606 done
28607 LIBOBJS=$ac_libobjs
28608
28609 LTLIBOBJS=$ac_ltlibobjs
28610
28611
28612
28613
28614 : ${CONFIG_STATUS=./config.status}
28615 ac_write_fail=0
28616 ac_clean_files_save=$ac_clean_files
28617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28619 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28620 as_write_fail=0
28621 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28622 #! $SHELL
28623 # Generated by $as_me.
28624 # Run this file to recreate the current configuration.
28625 # Compiler output produced by configure, useful for debugging
28626 # configure, is in config.log if it exists.
28627
28628 debug=false
28629 ac_cs_recheck=false
28630 ac_cs_silent=false
28631
28632 SHELL=\${CONFIG_SHELL-$SHELL}
28633 export SHELL
28634 _ASEOF
28635 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28636 ## -------------------- ##
28637 ## M4sh Initialization. ##
28638 ## -------------------- ##
28639
28640 # Be more Bourne compatible
28641 DUALCASE=1; export DUALCASE # for MKS sh
28642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28643 emulate sh
28644 NULLCMD=:
28645 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28646 # is contrary to our usage. Disable this feature.
28647 alias -g '${1+"$@"}'='"$@"'
28648 setopt NO_GLOB_SUBST
28649 else
28650 case `(set -o) 2>/dev/null` in #(
28651 *posix*) :
28652 set -o posix ;; #(
28653 *) :
28654 ;;
28655 esac
28656 fi
28657
28658
28659 as_nl='
28660 '
28661 export as_nl
28662 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28663 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28666 # Prefer a ksh shell builtin over an external printf program on Solaris,
28667 # but without wasting forks for bash or zsh.
28668 if test -z "$BASH_VERSION$ZSH_VERSION" \
28669 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28670 as_echo='print -r --'
28671 as_echo_n='print -rn --'
28672 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28673 as_echo='printf %s\n'
28674 as_echo_n='printf %s'
28675 else
28676 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28677 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28678 as_echo_n='/usr/ucb/echo -n'
28679 else
28680 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28681 as_echo_n_body='eval
28682 arg=$1;
28683 case $arg in #(
28684 *"$as_nl"*)
28685 expr "X$arg" : "X\\(.*\\)$as_nl";
28686 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28687 esac;
28688 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28689 '
28690 export as_echo_n_body
28691 as_echo_n='sh -c $as_echo_n_body as_echo'
28692 fi
28693 export as_echo_body
28694 as_echo='sh -c $as_echo_body as_echo'
28695 fi
28696
28697 # The user is always right.
28698 if test "${PATH_SEPARATOR+set}" != set; then
28699 PATH_SEPARATOR=:
28700 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28701 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28702 PATH_SEPARATOR=';'
28703 }
28704 fi
28705
28706
28707 # IFS
28708 # We need space, tab and new line, in precisely that order. Quoting is
28709 # there to prevent editors from complaining about space-tab.
28710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28711 # splitting by setting IFS to empty value.)
28712 IFS=" "" $as_nl"
28713
28714 # Find who we are. Look in the path if we contain no directory separator.
28715 case $0 in #((
28716 *[\\/]* ) as_myself=$0 ;;
28717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28718 for as_dir in $PATH
28719 do
28720 IFS=$as_save_IFS
28721 test -z "$as_dir" && as_dir=.
28722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28723 done
28724 IFS=$as_save_IFS
28725
28726 ;;
28727 esac
28728 # We did not find ourselves, most probably we were run as `sh COMMAND'
28729 # in which case we are not to be found in the path.
28730 if test "x$as_myself" = x; then
28731 as_myself=$0
28732 fi
28733 if test ! -f "$as_myself"; then
28734 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28735 exit 1
28736 fi
28737
28738 # Unset variables that we do not need and which cause bugs (e.g. in
28739 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28740 # suppresses any "Segmentation fault" message there. '((' could
28741 # trigger a bug in pdksh 5.2.14.
28742 for as_var in BASH_ENV ENV MAIL MAILPATH
28743 do eval test x\${$as_var+set} = xset \
28744 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28745 done
28746 PS1='$ '
28747 PS2='> '
28748 PS4='+ '
28749
28750 # NLS nuisances.
28751 LC_ALL=C
28752 export LC_ALL
28753 LANGUAGE=C
28754 export LANGUAGE
28755
28756 # CDPATH.
28757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28758
28759
28760 # as_fn_error ERROR [LINENO LOG_FD]
28761 # ---------------------------------
28762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28764 # script with status $?, using 1 if that was 0.
28765 as_fn_error ()
28766 {
28767 as_status=$?; test $as_status -eq 0 && as_status=1
28768 if test "$3"; then
28769 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28770 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28771 fi
28772 $as_echo "$as_me: error: $1" >&2
28773 as_fn_exit $as_status
28774 } # as_fn_error
28775
28776
28777 # as_fn_set_status STATUS
28778 # -----------------------
28779 # Set $? to STATUS, without forking.
28780 as_fn_set_status ()
28781 {
28782 return $1
28783 } # as_fn_set_status
28784
28785 # as_fn_exit STATUS
28786 # -----------------
28787 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28788 as_fn_exit ()
28789 {
28790 set +e
28791 as_fn_set_status $1
28792 exit $1
28793 } # as_fn_exit
28794
28795 # as_fn_unset VAR
28796 # ---------------
28797 # Portably unset VAR.
28798 as_fn_unset ()
28799 {
28800 { eval $1=; unset $1;}
28801 }
28802 as_unset=as_fn_unset
28803 # as_fn_append VAR VALUE
28804 # ----------------------
28805 # Append the text in VALUE to the end of the definition contained in VAR. Take
28806 # advantage of any shell optimizations that allow amortized linear growth over
28807 # repeated appends, instead of the typical quadratic growth present in naive
28808 # implementations.
28809 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28810 eval 'as_fn_append ()
28811 {
28812 eval $1+=\$2
28813 }'
28814 else
28815 as_fn_append ()
28816 {
28817 eval $1=\$$1\$2
28818 }
28819 fi # as_fn_append
28820
28821 # as_fn_arith ARG...
28822 # ------------------
28823 # Perform arithmetic evaluation on the ARGs, and store the result in the
28824 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28825 # must be portable across $(()) and expr.
28826 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28827 eval 'as_fn_arith ()
28828 {
28829 as_val=$(( $* ))
28830 }'
28831 else
28832 as_fn_arith ()
28833 {
28834 as_val=`expr "$@" || test $? -eq 1`
28835 }
28836 fi # as_fn_arith
28837
28838
28839 if expr a : '\(a\)' >/dev/null 2>&1 &&
28840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28841 as_expr=expr
28842 else
28843 as_expr=false
28844 fi
28845
28846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28847 as_basename=basename
28848 else
28849 as_basename=false
28850 fi
28851
28852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28853 as_dirname=dirname
28854 else
28855 as_dirname=false
28856 fi
28857
28858 as_me=`$as_basename -- "$0" ||
28859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28860 X"$0" : 'X\(//\)$' \| \
28861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28862 $as_echo X/"$0" |
28863 sed '/^.*\/\([^/][^/]*\)\/*$/{
28864 s//\1/
28865 q
28866 }
28867 /^X\/\(\/\/\)$/{
28868 s//\1/
28869 q
28870 }
28871 /^X\/\(\/\).*/{
28872 s//\1/
28873 q
28874 }
28875 s/.*/./; q'`
28876
28877 # Avoid depending upon Character Ranges.
28878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28881 as_cr_digits='0123456789'
28882 as_cr_alnum=$as_cr_Letters$as_cr_digits
28883
28884 ECHO_C= ECHO_N= ECHO_T=
28885 case `echo -n x` in #(((((
28886 -n*)
28887 case `echo 'xy\c'` in
28888 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28889 xy) ECHO_C='\c';;
28890 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28891 ECHO_T=' ';;
28892 esac;;
28893 *)
28894 ECHO_N='-n';;
28895 esac
28896
28897 rm -f conf$$ conf$$.exe conf$$.file
28898 if test -d conf$$.dir; then
28899 rm -f conf$$.dir/conf$$.file
28900 else
28901 rm -f conf$$.dir
28902 mkdir conf$$.dir 2>/dev/null
28903 fi
28904 if (echo >conf$$.file) 2>/dev/null; then
28905 if ln -s conf$$.file conf$$ 2>/dev/null; then
28906 as_ln_s='ln -s'
28907 # ... but there are two gotchas:
28908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28910 # In both cases, we have to default to `cp -p'.
28911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28912 as_ln_s='cp -p'
28913 elif ln conf$$.file conf$$ 2>/dev/null; then
28914 as_ln_s=ln
28915 else
28916 as_ln_s='cp -p'
28917 fi
28918 else
28919 as_ln_s='cp -p'
28920 fi
28921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28922 rmdir conf$$.dir 2>/dev/null
28923
28924
28925 # as_fn_mkdir_p
28926 # -------------
28927 # Create "$as_dir" as a directory, including parents if necessary.
28928 as_fn_mkdir_p ()
28929 {
28930
28931 case $as_dir in #(
28932 -*) as_dir=./$as_dir;;
28933 esac
28934 test -d "$as_dir" || eval $as_mkdir_p || {
28935 as_dirs=
28936 while :; do
28937 case $as_dir in #(
28938 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28939 *) as_qdir=$as_dir;;
28940 esac
28941 as_dirs="'$as_qdir' $as_dirs"
28942 as_dir=`$as_dirname -- "$as_dir" ||
28943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28944 X"$as_dir" : 'X\(//\)[^/]' \| \
28945 X"$as_dir" : 'X\(//\)$' \| \
28946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28947 $as_echo X"$as_dir" |
28948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28949 s//\1/
28950 q
28951 }
28952 /^X\(\/\/\)[^/].*/{
28953 s//\1/
28954 q
28955 }
28956 /^X\(\/\/\)$/{
28957 s//\1/
28958 q
28959 }
28960 /^X\(\/\).*/{
28961 s//\1/
28962 q
28963 }
28964 s/.*/./; q'`
28965 test -d "$as_dir" && break
28966 done
28967 test -z "$as_dirs" || eval "mkdir $as_dirs"
28968 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28969
28970
28971 } # as_fn_mkdir_p
28972 if mkdir -p . 2>/dev/null; then
28973 as_mkdir_p='mkdir -p "$as_dir"'
28974 else
28975 test -d ./-p && rmdir ./-p
28976 as_mkdir_p=false
28977 fi
28978
28979 if test -x / >/dev/null 2>&1; then
28980 as_test_x='test -x'
28981 else
28982 if ls -dL / >/dev/null 2>&1; then
28983 as_ls_L_option=L
28984 else
28985 as_ls_L_option=
28986 fi
28987 as_test_x='
28988 eval sh -c '\''
28989 if test -d "$1"; then
28990 test -d "$1/.";
28991 else
28992 case $1 in #(
28993 -*)set "./$1";;
28994 esac;
28995 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28996 ???[sx]*):;;*)false;;esac;fi
28997 '\'' sh
28998 '
28999 fi
29000 as_executable_p=$as_test_x
29001
29002 # Sed expression to map a string onto a valid CPP name.
29003 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29004
29005 # Sed expression to map a string onto a valid variable name.
29006 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29007
29008
29009 exec 6>&1
29010 ## ----------------------------------- ##
29011 ## Main body of $CONFIG_STATUS script. ##
29012 ## ----------------------------------- ##
29013 _ASEOF
29014 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29015
29016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29017 # Save the log message, to keep $0 and so on meaningful, and to
29018 # report actual input values of CONFIG_FILES etc. instead of their
29019 # values after options handling.
29020 ac_log="
29021 This file was extended by $as_me, which was
29022 generated by GNU Autoconf 2.64. Invocation command line was
29023
29024 CONFIG_FILES = $CONFIG_FILES
29025 CONFIG_HEADERS = $CONFIG_HEADERS
29026 CONFIG_LINKS = $CONFIG_LINKS
29027 CONFIG_COMMANDS = $CONFIG_COMMANDS
29028 $ $0 $@
29029
29030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29031 "
29032
29033 _ACEOF
29034
29035 case $ac_config_files in *"
29036 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29037 esac
29038
29039 case $ac_config_headers in *"
29040 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29041 esac
29042
29043
29044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29045 # Files that config.status was made for.
29046 config_files="$ac_config_files"
29047 config_headers="$ac_config_headers"
29048 config_links="$ac_config_links"
29049 config_commands="$ac_config_commands"
29050
29051 _ACEOF
29052
29053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29054 ac_cs_usage="\
29055 \`$as_me' instantiates files and other configuration actions
29056 from templates according to the current configuration. Unless the files
29057 and actions are specified as TAGs, all are instantiated by default.
29058
29059 Usage: $0 [OPTION]... [TAG]...
29060
29061 -h, --help print this help, then exit
29062 -V, --version print version number and configuration settings, then exit
29063 -q, --quiet, --silent
29064 do not print progress messages
29065 -d, --debug don't remove temporary files
29066 --recheck update $as_me by reconfiguring in the same conditions
29067 --file=FILE[:TEMPLATE]
29068 instantiate the configuration file FILE
29069 --header=FILE[:TEMPLATE]
29070 instantiate the configuration header FILE
29071
29072 Configuration files:
29073 $config_files
29074
29075 Configuration headers:
29076 $config_headers
29077
29078 Configuration links:
29079 $config_links
29080
29081 Configuration commands:
29082 $config_commands
29083
29084 Report bugs to the package provider."
29085
29086 _ACEOF
29087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29088 ac_cs_version="\\
29089 config.status
29090 configured by $0, generated by GNU Autoconf 2.64,
29091 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29092
29093 Copyright (C) 2009 Free Software Foundation, Inc.
29094 This config.status script is free software; the Free Software Foundation
29095 gives unlimited permission to copy, distribute and modify it."
29096
29097 ac_pwd='$ac_pwd'
29098 srcdir='$srcdir'
29099 AWK='$AWK'
29100 test -n "\$AWK" || AWK=awk
29101 _ACEOF
29102
29103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29104 # The default lists apply if the user does not specify any file.
29105 ac_need_defaults=:
29106 while test $# != 0
29107 do
29108 case $1 in
29109 --*=*)
29110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29112 ac_shift=:
29113 ;;
29114 *)
29115 ac_option=$1
29116 ac_optarg=$2
29117 ac_shift=shift
29118 ;;
29119 esac
29120
29121 case $ac_option in
29122 # Handling of the options.
29123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29124 ac_cs_recheck=: ;;
29125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29126 $as_echo "$ac_cs_version"; exit ;;
29127 --debug | --debu | --deb | --de | --d | -d )
29128 debug=: ;;
29129 --file | --fil | --fi | --f )
29130 $ac_shift
29131 case $ac_optarg in
29132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29133 esac
29134 as_fn_append CONFIG_FILES " '$ac_optarg'"
29135 ac_need_defaults=false;;
29136 --header | --heade | --head | --hea )
29137 $ac_shift
29138 case $ac_optarg in
29139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29140 esac
29141 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29142 ac_need_defaults=false;;
29143 --he | --h)
29144 # Conflict between --help and --header
29145 as_fn_error "ambiguous option: \`$1'
29146 Try \`$0 --help' for more information.";;
29147 --help | --hel | -h )
29148 $as_echo "$ac_cs_usage"; exit ;;
29149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29151 ac_cs_silent=: ;;
29152
29153 # This is an error.
29154 -*) as_fn_error "unrecognized option: \`$1'
29155 Try \`$0 --help' for more information." ;;
29156
29157 *) as_fn_append ac_config_targets " $1"
29158 ac_need_defaults=false ;;
29159
29160 esac
29161 shift
29162 done
29163
29164 ac_configure_extra_args=
29165
29166 if $ac_cs_silent; then
29167 exec 6>/dev/null
29168 ac_configure_extra_args="$ac_configure_extra_args --silent"
29169 fi
29170
29171 _ACEOF
29172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29173 if \$ac_cs_recheck; then
29174 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29175 shift
29176 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29177 CONFIG_SHELL='$SHELL'
29178 export CONFIG_SHELL
29179 exec "\$@"
29180 fi
29181
29182 _ACEOF
29183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29184 exec 5>>config.log
29185 {
29186 echo
29187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29188 ## Running $as_me. ##
29189 _ASBOX
29190 $as_echo "$ac_log"
29191 } >&5
29192
29193 _ACEOF
29194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29195 #
29196 # INIT-COMMANDS
29197 #
29198 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29199 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29200 subdirs='$subdirs'
29201
29202 _ACEOF
29203
29204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29205
29206 # Handling of arguments.
29207 for ac_config_target in $ac_config_targets
29208 do
29209 case $ac_config_target in
29210 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29211 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29212 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29213 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29214 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29215 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29216 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29217 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29218 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29219
29220 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29221 esac
29222 done
29223
29224
29225 # If the user did not use the arguments to specify the items to instantiate,
29226 # then the envvar interface is used. Set only those that are not.
29227 # We use the long form for the default assignment because of an extremely
29228 # bizarre bug on SunOS 4.1.3.
29229 if $ac_need_defaults; then
29230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29232 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29234 fi
29235
29236 # Have a temporary directory for convenience. Make it in the build tree
29237 # simply because there is no reason against having it here, and in addition,
29238 # creating and moving files from /tmp can sometimes cause problems.
29239 # Hook for its removal unless debugging.
29240 # Note that there is a small window in which the directory will not be cleaned:
29241 # after its creation but before its name has been assigned to `$tmp'.
29242 $debug ||
29243 {
29244 tmp=
29245 trap 'exit_status=$?
29246 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29247 ' 0
29248 trap 'as_fn_exit 1' 1 2 13 15
29249 }
29250 # Create a (secure) tmp directory for tmp files.
29251
29252 {
29253 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29254 test -n "$tmp" && test -d "$tmp"
29255 } ||
29256 {
29257 tmp=./conf$$-$RANDOM
29258 (umask 077 && mkdir "$tmp")
29259 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29260
29261 # Set up the scripts for CONFIG_FILES section.
29262 # No need to generate them if there are no CONFIG_FILES.
29263 # This happens for instance with `./config.status config.h'.
29264 if test -n "$CONFIG_FILES"; then
29265
29266 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29267 ac_cs_awk_getline=:
29268 ac_cs_awk_pipe_init=
29269 ac_cs_awk_read_file='
29270 while ((getline aline < (F[key])) > 0)
29271 print(aline)
29272 close(F[key])'
29273 ac_cs_awk_pipe_fini=
29274 else
29275 ac_cs_awk_getline=false
29276 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29277 ac_cs_awk_read_file='
29278 print "|#_!!_#|"
29279 print "cat " F[key] " &&"
29280 '$ac_cs_awk_pipe_init
29281 # The final `:' finishes the AND list.
29282 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29283 fi
29284 ac_cr=`echo X | tr X '\015'`
29285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29286 # But we know of no other shell where ac_cr would be empty at this
29287 # point, so we can use a bashism as a fallback.
29288 if test "x$ac_cr" = x; then
29289 eval ac_cr=\$\'\\r\'
29290 fi
29291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29293 ac_cs_awk_cr='\r'
29294 else
29295 ac_cs_awk_cr=$ac_cr
29296 fi
29297
29298 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29299 _ACEOF
29300
29301 # Create commands to substitute file output variables.
29302 {
29303 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29304 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29305 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29306 echo "_ACAWK" &&
29307 echo "_ACEOF"
29308 } >conf$$files.sh &&
29309 . ./conf$$files.sh ||
29310 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29311 rm -f conf$$files.sh
29312
29313 {
29314 echo "cat >conf$$subs.awk <<_ACEOF" &&
29315 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29316 echo "_ACEOF"
29317 } >conf$$subs.sh ||
29318 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29320 ac_delim='%!_!# '
29321 for ac_last_try in false false false false false :; do
29322 . ./conf$$subs.sh ||
29323 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29324
29325 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29326 if test $ac_delim_n = $ac_delim_num; then
29327 break
29328 elif $ac_last_try; then
29329 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29330 else
29331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29332 fi
29333 done
29334 rm -f conf$$subs.sh
29335
29336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29337 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29338 _ACEOF
29339 sed -n '
29340 h
29341 s/^/S["/; s/!.*/"]=/
29342 p
29343 g
29344 s/^[^!]*!//
29345 :repl
29346 t repl
29347 s/'"$ac_delim"'$//
29348 t delim
29349 :nl
29350 h
29351 s/\(.\{148\}\).*/\1/
29352 t more1
29353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29354 p
29355 n
29356 b repl
29357 :more1
29358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29359 p
29360 g
29361 s/.\{148\}//
29362 t nl
29363 :delim
29364 h
29365 s/\(.\{148\}\).*/\1/
29366 t more2
29367 s/["\\]/\\&/g; s/^/"/; s/$/"/
29368 p
29369 b
29370 :more2
29371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29372 p
29373 g
29374 s/.\{148\}//
29375 t delim
29376 ' <conf$$subs.awk | sed '
29377 /^[^""]/{
29378 N
29379 s/\n//
29380 }
29381 ' >>$CONFIG_STATUS || ac_write_fail=1
29382 rm -f conf$$subs.awk
29383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29384 _ACAWK
29385 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29386 for (key in S) S_is_set[key] = 1
29387 FS = "\a"
29388 \$ac_cs_awk_pipe_init
29389 }
29390 {
29391 line = $ 0
29392 nfields = split(line, field, "@")
29393 substed = 0
29394 len = length(field[1])
29395 for (i = 2; i < nfields; i++) {
29396 key = field[i]
29397 keylen = length(key)
29398 if (S_is_set[key]) {
29399 value = S[key]
29400 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29401 len += length(value) + length(field[++i])
29402 substed = 1
29403 } else
29404 len += 1 + keylen
29405 }
29406 if (nfields == 3 && !substed) {
29407 key = field[2]
29408 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29409 \$ac_cs_awk_read_file
29410 next
29411 }
29412 }
29413 print line
29414 }
29415 \$ac_cs_awk_pipe_fini
29416 _ACAWK
29417 _ACEOF
29418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29419 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29421 else
29422 cat
29423 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29424 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29425 _ACEOF
29426
29427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29429 # trailing colons and then remove the whole line if VPATH becomes empty
29430 # (actually we leave an empty line to preserve line numbers).
29431 if test "x$srcdir" = x.; then
29432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29433 s/:*\$(srcdir):*/:/
29434 s/:*\${srcdir}:*/:/
29435 s/:*@srcdir@:*/:/
29436 s/^\([^=]*=[ ]*\):*/\1/
29437 s/:*$//
29438 s/^[^=]*=[ ]*$//
29439 }'
29440 fi
29441
29442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29443 fi # test -n "$CONFIG_FILES"
29444
29445 # Set up the scripts for CONFIG_HEADERS section.
29446 # No need to generate them if there are no CONFIG_HEADERS.
29447 # This happens for instance with `./config.status Makefile'.
29448 if test -n "$CONFIG_HEADERS"; then
29449 cat >"$tmp/defines.awk" <<\_ACAWK ||
29450 BEGIN {
29451 _ACEOF
29452
29453 # Transform confdefs.h into an awk script `defines.awk', embedded as
29454 # here-document in config.status, that substitutes the proper values into
29455 # config.h.in to produce config.h.
29456
29457 # Create a delimiter string that does not exist in confdefs.h, to ease
29458 # handling of long lines.
29459 ac_delim='%!_!# '
29460 for ac_last_try in false false :; do
29461 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29462 if test -z "$ac_t"; then
29463 break
29464 elif $ac_last_try; then
29465 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29466 else
29467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29468 fi
29469 done
29470
29471 # For the awk script, D is an array of macro values keyed by name,
29472 # likewise P contains macro parameters if any. Preserve backslash
29473 # newline sequences.
29474
29475 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29476 sed -n '
29477 s/.\{148\}/&'"$ac_delim"'/g
29478 t rset
29479 :rset
29480 s/^[ ]*#[ ]*define[ ][ ]*/ /
29481 t def
29482 d
29483 :def
29484 s/\\$//
29485 t bsnl
29486 s/["\\]/\\&/g
29487 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29488 D["\1"]=" \3"/p
29489 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29490 d
29491 :bsnl
29492 s/["\\]/\\&/g
29493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29494 D["\1"]=" \3\\\\\\n"\\/p
29495 t cont
29496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29497 t cont
29498 d
29499 :cont
29500 n
29501 s/.\{148\}/&'"$ac_delim"'/g
29502 t clear
29503 :clear
29504 s/\\$//
29505 t bsnlc
29506 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29507 d
29508 :bsnlc
29509 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29510 b cont
29511 ' <confdefs.h | sed '
29512 s/'"$ac_delim"'/"\\\
29513 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29514
29515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29516 for (key in D) D_is_set[key] = 1
29517 FS = "\a"
29518 }
29519 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29520 line = \$ 0
29521 split(line, arg, " ")
29522 if (arg[1] == "#") {
29523 defundef = arg[2]
29524 mac1 = arg[3]
29525 } else {
29526 defundef = substr(arg[1], 2)
29527 mac1 = arg[2]
29528 }
29529 split(mac1, mac2, "(") #)
29530 macro = mac2[1]
29531 prefix = substr(line, 1, index(line, defundef) - 1)
29532 if (D_is_set[macro]) {
29533 # Preserve the white space surrounding the "#".
29534 print prefix "define", macro P[macro] D[macro]
29535 next
29536 } else {
29537 # Replace #undef with comments. This is necessary, for example,
29538 # in the case of _POSIX_SOURCE, which is predefined and required
29539 # on some systems where configure will not decide to define it.
29540 if (defundef == "undef") {
29541 print "/*", prefix defundef, macro, "*/"
29542 next
29543 }
29544 }
29545 }
29546 { print }
29547 _ACAWK
29548 _ACEOF
29549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29550 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29551 fi # test -n "$CONFIG_HEADERS"
29552
29553
29554 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29555 shift
29556 for ac_tag
29557 do
29558 case $ac_tag in
29559 :[FHLC]) ac_mode=$ac_tag; continue;;
29560 esac
29561 case $ac_mode$ac_tag in
29562 :[FHL]*:*);;
29563 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29564 :[FH]-) ac_tag=-:-;;
29565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29566 esac
29567 ac_save_IFS=$IFS
29568 IFS=:
29569 set x $ac_tag
29570 IFS=$ac_save_IFS
29571 shift
29572 ac_file=$1
29573 shift
29574
29575 case $ac_mode in
29576 :L) ac_source=$1;;
29577 :[FH])
29578 ac_file_inputs=
29579 for ac_f
29580 do
29581 case $ac_f in
29582 -) ac_f="$tmp/stdin";;
29583 *) # Look for the file first in the build tree, then in the source tree
29584 # (if the path is not absolute). The absolute path cannot be DOS-style,
29585 # because $ac_f cannot contain `:'.
29586 test -f "$ac_f" ||
29587 case $ac_f in
29588 [\\/$]*) false;;
29589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29590 esac ||
29591 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29592 esac
29593 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29594 as_fn_append ac_file_inputs " '$ac_f'"
29595 done
29596
29597 # Let's still pretend it is `configure' which instantiates (i.e., don't
29598 # use $as_me), people would be surprised to read:
29599 # /* config.h. Generated by config.status. */
29600 configure_input='Generated from '`
29601 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29602 `' by configure.'
29603 if test x"$ac_file" != x-; then
29604 configure_input="$ac_file. $configure_input"
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29606 $as_echo "$as_me: creating $ac_file" >&6;}
29607 fi
29608 # Neutralize special characters interpreted by sed in replacement strings.
29609 case $configure_input in #(
29610 *\&* | *\|* | *\\* )
29611 ac_sed_conf_input=`$as_echo "$configure_input" |
29612 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29613 *) ac_sed_conf_input=$configure_input;;
29614 esac
29615
29616 case $ac_tag in
29617 *:-:* | *:-) cat >"$tmp/stdin" \
29618 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29619 esac
29620 ;;
29621 esac
29622
29623 ac_dir=`$as_dirname -- "$ac_file" ||
29624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29625 X"$ac_file" : 'X\(//\)[^/]' \| \
29626 X"$ac_file" : 'X\(//\)$' \| \
29627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29628 $as_echo X"$ac_file" |
29629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29630 s//\1/
29631 q
29632 }
29633 /^X\(\/\/\)[^/].*/{
29634 s//\1/
29635 q
29636 }
29637 /^X\(\/\/\)$/{
29638 s//\1/
29639 q
29640 }
29641 /^X\(\/\).*/{
29642 s//\1/
29643 q
29644 }
29645 s/.*/./; q'`
29646 as_dir="$ac_dir"; as_fn_mkdir_p
29647 ac_builddir=.
29648
29649 case "$ac_dir" in
29650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29651 *)
29652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29653 # A ".." for each directory in $ac_dir_suffix.
29654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29655 case $ac_top_builddir_sub in
29656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29658 esac ;;
29659 esac
29660 ac_abs_top_builddir=$ac_pwd
29661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29662 # for backward compatibility:
29663 ac_top_builddir=$ac_top_build_prefix
29664
29665 case $srcdir in
29666 .) # We are building in place.
29667 ac_srcdir=.
29668 ac_top_srcdir=$ac_top_builddir_sub
29669 ac_abs_top_srcdir=$ac_pwd ;;
29670 [\\/]* | ?:[\\/]* ) # Absolute name.
29671 ac_srcdir=$srcdir$ac_dir_suffix;
29672 ac_top_srcdir=$srcdir
29673 ac_abs_top_srcdir=$srcdir ;;
29674 *) # Relative name.
29675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29676 ac_top_srcdir=$ac_top_build_prefix$srcdir
29677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29678 esac
29679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29680
29681
29682 case $ac_mode in
29683 :F)
29684 #
29685 # CONFIG_FILE
29686 #
29687
29688 _ACEOF
29689
29690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29691 # If the template does not know about datarootdir, expand it.
29692 # FIXME: This hack should be removed a few years after 2.60.
29693 ac_datarootdir_hack=; ac_datarootdir_seen=
29694 ac_sed_dataroot='
29695 /datarootdir/ {
29696 p
29697 q
29698 }
29699 /@datadir@/p
29700 /@docdir@/p
29701 /@infodir@/p
29702 /@localedir@/p
29703 /@mandir@/p'
29704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29705 *datarootdir*) ac_datarootdir_seen=yes;;
29706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29709 _ACEOF
29710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29711 ac_datarootdir_hack='
29712 s&@datadir@&$datadir&g
29713 s&@docdir@&$docdir&g
29714 s&@infodir@&$infodir&g
29715 s&@localedir@&$localedir&g
29716 s&@mandir@&$mandir&g
29717 s&\\\${datarootdir}&$datarootdir&g' ;;
29718 esac
29719 _ACEOF
29720
29721 # Neutralize VPATH when `$srcdir' = `.'.
29722 # Shell code in configure.ac might set extrasub.
29723 # FIXME: do we really want to maintain this feature?
29724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29725 ac_sed_extra="$ac_vpsub
29726 $extrasub
29727 _ACEOF
29728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29729 :t
29730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29731 s|@configure_input@|$ac_sed_conf_input|;t t
29732 s&@top_builddir@&$ac_top_builddir_sub&;t t
29733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29734 s&@srcdir@&$ac_srcdir&;t t
29735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29736 s&@top_srcdir@&$ac_top_srcdir&;t t
29737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29738 s&@builddir@&$ac_builddir&;t t
29739 s&@abs_builddir@&$ac_abs_builddir&;t t
29740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29741 $ac_datarootdir_hack
29742 "
29743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29744 if $ac_cs_awk_getline; then
29745 $AWK -f "$tmp/subs.awk"
29746 else
29747 $AWK -f "$tmp/subs.awk" | $SHELL
29748 fi >$tmp/out \
29749 || as_fn_error "could not create $ac_file" "$LINENO" 5
29750
29751 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29752 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29755 which seems to be undefined. Please make sure it is defined." >&5
29756 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29757 which seems to be undefined. Please make sure it is defined." >&2;}
29758
29759 rm -f "$tmp/stdin"
29760 case $ac_file in
29761 -) cat "$tmp/out" && rm -f "$tmp/out";;
29762 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29763 esac \
29764 || as_fn_error "could not create $ac_file" "$LINENO" 5
29765 ;;
29766 :H)
29767 #
29768 # CONFIG_HEADER
29769 #
29770 if test x"$ac_file" != x-; then
29771 {
29772 $as_echo "/* $configure_input */" \
29773 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29774 } >"$tmp/config.h" \
29775 || as_fn_error "could not create $ac_file" "$LINENO" 5
29776 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29778 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29779 else
29780 rm -f "$ac_file"
29781 mv "$tmp/config.h" "$ac_file" \
29782 || as_fn_error "could not create $ac_file" "$LINENO" 5
29783 fi
29784 else
29785 $as_echo "/* $configure_input */" \
29786 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29787 || as_fn_error "could not create -" "$LINENO" 5
29788 fi
29789 ;;
29790 :L)
29791 #
29792 # CONFIG_LINK
29793 #
29794
29795 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29796 :
29797 else
29798 # Prefer the file from the source tree if names are identical.
29799 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29800 ac_source=$srcdir/$ac_source
29801 fi
29802
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29804 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29805
29806 if test ! -r "$ac_source"; then
29807 as_fn_error "$ac_source: file not found" "$LINENO" 5
29808 fi
29809 rm -f "$ac_file"
29810
29811 # Try a relative symlink, then a hard link, then a copy.
29812 case $srcdir in
29813 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29814 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29815 esac
29816 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29817 ln "$ac_source" "$ac_file" 2>/dev/null ||
29818 cp -p "$ac_source" "$ac_file" ||
29819 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29820 fi
29821 ;;
29822 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29823 $as_echo "$as_me: executing $ac_file commands" >&6;}
29824 ;;
29825 esac
29826
29827
29828 case $ac_file$ac_mode in
29829 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29830 "gccdepdir":C)
29831 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29832 for lang in $subdirs c-family common
29833 do
29834 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29835 done ;;
29836 "as":F) chmod +x as ;;
29837 "collect-ld":F) chmod +x collect-ld ;;
29838 "nm":F) chmod +x nm ;;
29839 "default":C)
29840 case ${CONFIG_HEADERS} in
29841 *auto-host.h:config.in*)
29842 echo > cstamp-h ;;
29843 esac
29844 # Make sure all the subdirs exist.
29845 for d in $subdirs doc build common c-family
29846 do
29847 test -d $d || mkdir $d
29848 done
29849 ;;
29850
29851 esac
29852 done # for ac_tag
29853
29854
29855 as_fn_exit 0
29856 _ACEOF
29857 ac_clean_files=$ac_clean_files_save
29858
29859 test $ac_write_fail = 0 ||
29860 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29861
29862
29863 # configure is writing to config.log, and then calls config.status.
29864 # config.status does its own redirection, appending to config.log.
29865 # Unfortunately, on DOS this fails, as config.log is still kept open
29866 # by configure, so config.status won't be able to write to it; its
29867 # output is simply discarded. So we exec the FD to /dev/null,
29868 # effectively closing config.log, so it can be properly (re)opened and
29869 # appended to by config.status. When coming back to configure, we
29870 # need to make the FD available again.
29871 if test "$no_create" != yes; then
29872 ac_cs_success=:
29873 ac_config_status_args=
29874 test "$silent" = yes &&
29875 ac_config_status_args="$ac_config_status_args --quiet"
29876 exec 5>/dev/null
29877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29878 exec 5>>config.log
29879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29880 # would make configure fail if this is the last instruction.
29881 $ac_cs_success || as_fn_exit $?
29882 fi
29883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29886 fi
29887
29888