]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
C-SKY port: Configury
[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 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 ld_soname_option
684 ld_version_script_option
685 libgcc_visibility
686 gcc_cv_readelf
687 gcc_cv_objdump
688 ORIGINAL_NM_FOR_TARGET
689 gcc_cv_nm
690 ORIGINAL_LD_GOLD_FOR_TARGET
691 ORIGINAL_LD_BFD_FOR_TARGET
692 ORIGINAL_LD_FOR_TARGET
693 ORIGINAL_PLUGIN_LD_FOR_TARGET
694 gcc_cv_ld
695 ORIGINAL_AS_FOR_TARGET
696 gcc_cv_as
697 enable_fast_install
698 objdir
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 STRIP
705 OBJDUMP
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 SED
711 LIBTOOL
712 collect2
713 NO_PIE_FLAG_FOR_BUILD
714 NO_PIE_CFLAGS_FOR_BUILD
715 BUILD_NO_PIE_FLAG
716 BUILD_NO_PIE_CFLAGS
717 STMP_FIXINC
718 BUILD_LDFLAGS
719 BUILD_CXXFLAGS
720 BUILD_CFLAGS
721 CXX_FOR_BUILD
722 CC_FOR_BUILD
723 inhibit_libc
724 BUILD_SYSTEM_HEADER_DIR
725 SYSTEM_HEADER_DIR
726 ALL
727 CROSS
728 CATOBJEXT
729 GENCAT
730 INSTOBJEXT
731 DATADIRNAME
732 CATALOGS
733 POSUB
734 GMSGFMT
735 XGETTEXT
736 INCINTL
737 LIBINTL_DEP
738 LIBINTL
739 USE_NLS
740 get_gcc_base_ver
741 extra_opt_files
742 extra_modes_file
743 NATIVE_SYSTEM_HEADER_DIR
744 objext
745 manext
746 LIBICONV_DEP
747 LTLIBICONV
748 LIBICONV
749 LDEXP_LIB
750 EXTRA_GCC_LIBS
751 GNAT_LIBEXC
752 COLLECT2_LIBS
753 CXXDEPMODE
754 DEPDIR
755 am__leading_dot
756 doc_build_sys
757 AR
758 NM
759 BISON
760 FLEX
761 GENERATED_MANPAGES
762 BUILD_INFO
763 MAKEINFO
764 have_mktemp_command
765 make_compare_target
766 INSTALL_DATA
767 INSTALL_PROGRAM
768 INSTALL
769 ranlib_flags
770 RANLIB
771 LN
772 LN_S
773 AWK
774 SET_MAKE
775 accel_dir_suffix
776 real_target_noncanonical
777 enable_as_accelerator
778 REPORT_BUGS_TEXI
779 REPORT_BUGS_TO
780 PKGVERSION
781 CONFIGURE_SPECS
782 enable_gcov
783 enable_shared
784 enable_fixed_point
785 enable_decimal_float
786 with_float
787 with_cpu
788 enable_multiarch
789 enable_multilib
790 coverage_flags
791 valgrind_command
792 valgrind_path_defines
793 valgrind_path
794 TREECHECKING
795 nocommon_flag
796 noexception_flags
797 warn_cxxflags
798 warn_cflags
799 c_strict_warn
800 strict_warn
801 c_loose_warn
802 loose_warn
803 aliasing_flags
804 CPP
805 EGREP
806 GREP
807 CXXCPP
808 PICFLAG_FOR_TARGET
809 GNATMAKE
810 GNATBIND
811 ac_ct_CXX
812 CXXFLAGS
813 CXX
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 GENINSRC
822 CROSS_SYSTEM_HEADER_DIR
823 TARGET_SYSTEM_ROOT_DEFINE
824 TARGET_SYSTEM_ROOT
825 SYSROOT_CFLAGS_FOR_TARGET
826 target_subdir
827 host_subdir
828 build_subdir
829 build_libsubdir
830 target_noncanonical
831 host_noncanonical
832 target_os
833 target_vendor
834 target_cpu
835 target
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files='option_includes
883 language_hooks'
884 ac_user_opts='
885 enable_option_checking
886 with_build_libsubdir
887 with_local_prefix
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_gxx_include_dir
892 with_cpp_install_dir
893 enable_generated_files_in_srcdir
894 with_gnu_ld
895 with_ld
896 with_demangler_in_ld
897 with_gnu_as
898 with_as
899 enable_largefile
900 enable_build_format_warnings
901 enable_werror_always
902 enable_checking
903 enable_coverage
904 enable_gather_detailed_mem_stats
905 enable_valgrind_annotations
906 with_stabs
907 enable_multilib
908 enable_multiarch
909 enable___cxa_atexit
910 enable_decimal_float
911 enable_fixed_point
912 enable_threads
913 enable_tls
914 enable_vtable_verify
915 enable_objc_gc
916 with_dwarf2
917 enable_shared
918 enable_gcov
919 with_specs
920 with_pkgversion
921 with_bugurl
922 enable_languages
923 with_multilib_list
924 enable_rpath
925 with_libiconv_prefix
926 enable_sjlj_exceptions
927 with_gcc_major_version_only
928 enable_secureplt
929 enable_mingw_wildcard
930 enable_leading_mingw64_underscores
931 enable_cld
932 enable_frame_pointer
933 enable_win32_registry
934 enable_static
935 with_pic
936 enable_fast_install
937 enable_libtool_lock
938 enable_ld
939 enable_gold
940 with_plugin_ld
941 enable_gnu_indirect_function
942 enable_initfini_array
943 enable_comdat
944 enable_fix_cortex_a53_835769
945 enable_fix_cortex_a53_843419
946 with_glibc_version
947 enable_gnu_unique_object
948 enable_linker_build_id
949 enable_libssp
950 enable_default_ssp
951 with_long_double_128
952 with_long_double_format
953 with_gc
954 with_system_zlib
955 enable_maintainer_mode
956 enable_link_mutex
957 enable_version_specific_runtime_libs
958 enable_plugin
959 enable_host_shared
960 enable_libquadmath_support
961 with_linker_hash_style
962 with_diagnostics_color
963 enable_default_pie
964 '
965 ac_precious_vars='build_alias
966 host_alias
967 target_alias
968 CC
969 CFLAGS
970 LDFLAGS
971 LIBS
972 CPPFLAGS
973 CXX
974 CXXFLAGS
975 CCC
976 CXXCPP
977 CPP
978 GMPLIBS
979 GMPINC
980 ISLLIBS
981 ISLINC'
982
983
984 # Initialize some variables set by options.
985 ac_init_help=
986 ac_init_version=false
987 ac_unrecognized_opts=
988 ac_unrecognized_sep=
989 # The variables have the same names as the options, with
990 # dashes changed to underlines.
991 cache_file=/dev/null
992 exec_prefix=NONE
993 no_create=
994 no_recursion=
995 prefix=NONE
996 program_prefix=NONE
997 program_suffix=NONE
998 program_transform_name=s,x,x,
999 silent=
1000 site=
1001 srcdir=
1002 verbose=
1003 x_includes=NONE
1004 x_libraries=NONE
1005
1006 # Installation directory options.
1007 # These are left unexpanded so users can "make install exec_prefix=/foo"
1008 # and all the variables that are supposed to be based on exec_prefix
1009 # by default will actually change.
1010 # Use braces instead of parens because sh, perl, etc. also accept them.
1011 # (The list follows the same order as the GNU Coding Standards.)
1012 bindir='${exec_prefix}/bin'
1013 sbindir='${exec_prefix}/sbin'
1014 libexecdir='${exec_prefix}/libexec'
1015 datarootdir='${prefix}/share'
1016 datadir='${datarootdir}'
1017 sysconfdir='${prefix}/etc'
1018 sharedstatedir='${prefix}/com'
1019 localstatedir='${prefix}/var'
1020 includedir='${prefix}/include'
1021 oldincludedir='/usr/include'
1022 docdir='${datarootdir}/doc/${PACKAGE}'
1023 infodir='${datarootdir}/info'
1024 htmldir='${docdir}'
1025 dvidir='${docdir}'
1026 pdfdir='${docdir}'
1027 psdir='${docdir}'
1028 libdir='${exec_prefix}/lib'
1029 localedir='${datarootdir}/locale'
1030 mandir='${datarootdir}/man'
1031
1032 ac_prev=
1033 ac_dashdash=
1034 for ac_option
1035 do
1036 # If the previous option needs an argument, assign it.
1037 if test -n "$ac_prev"; then
1038 eval $ac_prev=\$ac_option
1039 ac_prev=
1040 continue
1041 fi
1042
1043 case $ac_option in
1044 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 *) ac_optarg=yes ;;
1046 esac
1047
1048 # Accept the important Cygnus configure options, so we can diagnose typos.
1049
1050 case $ac_dashdash$ac_option in
1051 --)
1052 ac_dashdash=yes ;;
1053
1054 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055 ac_prev=bindir ;;
1056 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057 bindir=$ac_optarg ;;
1058
1059 -build | --build | --buil | --bui | --bu)
1060 ac_prev=build_alias ;;
1061 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062 build_alias=$ac_optarg ;;
1063
1064 -cache-file | --cache-file | --cache-fil | --cache-fi \
1065 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066 ac_prev=cache_file ;;
1067 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069 cache_file=$ac_optarg ;;
1070
1071 --config-cache | -C)
1072 cache_file=config.cache ;;
1073
1074 -datadir | --datadir | --datadi | --datad)
1075 ac_prev=datadir ;;
1076 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077 datadir=$ac_optarg ;;
1078
1079 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080 | --dataroo | --dataro | --datar)
1081 ac_prev=datarootdir ;;
1082 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084 datarootdir=$ac_optarg ;;
1085
1086 -disable-* | --disable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=no ;;
1101
1102 -docdir | --docdir | --docdi | --doc | --do)
1103 ac_prev=docdir ;;
1104 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105 docdir=$ac_optarg ;;
1106
1107 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108 ac_prev=dvidir ;;
1109 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110 dvidir=$ac_optarg ;;
1111
1112 -enable-* | --enable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid feature name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval enable_$ac_useropt=\$ac_optarg ;;
1127
1128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130 | --exec | --exe | --ex)
1131 ac_prev=exec_prefix ;;
1132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134 | --exec=* | --exe=* | --ex=*)
1135 exec_prefix=$ac_optarg ;;
1136
1137 -gas | --gas | --ga | --g)
1138 # Obsolete; use --with-gas.
1139 with_gas=yes ;;
1140
1141 -help | --help | --hel | --he | -h)
1142 ac_init_help=long ;;
1143 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144 ac_init_help=recursive ;;
1145 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146 ac_init_help=short ;;
1147
1148 -host | --host | --hos | --ho)
1149 ac_prev=host_alias ;;
1150 -host=* | --host=* | --hos=* | --ho=*)
1151 host_alias=$ac_optarg ;;
1152
1153 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154 ac_prev=htmldir ;;
1155 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156 | --ht=*)
1157 htmldir=$ac_optarg ;;
1158
1159 -includedir | --includedir | --includedi | --included | --include \
1160 | --includ | --inclu | --incl | --inc)
1161 ac_prev=includedir ;;
1162 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163 | --includ=* | --inclu=* | --incl=* | --inc=*)
1164 includedir=$ac_optarg ;;
1165
1166 -infodir | --infodir | --infodi | --infod | --info | --inf)
1167 ac_prev=infodir ;;
1168 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169 infodir=$ac_optarg ;;
1170
1171 -libdir | --libdir | --libdi | --libd)
1172 ac_prev=libdir ;;
1173 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174 libdir=$ac_optarg ;;
1175
1176 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177 | --libexe | --libex | --libe)
1178 ac_prev=libexecdir ;;
1179 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180 | --libexe=* | --libex=* | --libe=*)
1181 libexecdir=$ac_optarg ;;
1182
1183 -localedir | --localedir | --localedi | --localed | --locale)
1184 ac_prev=localedir ;;
1185 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186 localedir=$ac_optarg ;;
1187
1188 -localstatedir | --localstatedir | --localstatedi | --localstated \
1189 | --localstate | --localstat | --localsta | --localst | --locals)
1190 ac_prev=localstatedir ;;
1191 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193 localstatedir=$ac_optarg ;;
1194
1195 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196 ac_prev=mandir ;;
1197 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198 mandir=$ac_optarg ;;
1199
1200 -nfp | --nfp | --nf)
1201 # Obsolete; use --without-fp.
1202 with_fp=no ;;
1203
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n)
1206 no_create=yes ;;
1207
1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 no_recursion=yes ;;
1211
1212 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214 | --oldin | --oldi | --old | --ol | --o)
1215 ac_prev=oldincludedir ;;
1216 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219 oldincludedir=$ac_optarg ;;
1220
1221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222 ac_prev=prefix ;;
1223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224 prefix=$ac_optarg ;;
1225
1226 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227 | --program-pre | --program-pr | --program-p)
1228 ac_prev=program_prefix ;;
1229 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231 program_prefix=$ac_optarg ;;
1232
1233 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234 | --program-suf | --program-su | --program-s)
1235 ac_prev=program_suffix ;;
1236 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238 program_suffix=$ac_optarg ;;
1239
1240 -program-transform-name | --program-transform-name \
1241 | --program-transform-nam | --program-transform-na \
1242 | --program-transform-n | --program-transform- \
1243 | --program-transform | --program-transfor \
1244 | --program-transfo | --program-transf \
1245 | --program-trans | --program-tran \
1246 | --progr-tra | --program-tr | --program-t)
1247 ac_prev=program_transform_name ;;
1248 -program-transform-name=* | --program-transform-name=* \
1249 | --program-transform-nam=* | --program-transform-na=* \
1250 | --program-transform-n=* | --program-transform-=* \
1251 | --program-transform=* | --program-transfor=* \
1252 | --program-transfo=* | --program-transf=* \
1253 | --program-trans=* | --program-tran=* \
1254 | --progr-tra=* | --program-tr=* | --program-t=*)
1255 program_transform_name=$ac_optarg ;;
1256
1257 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258 ac_prev=pdfdir ;;
1259 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260 pdfdir=$ac_optarg ;;
1261
1262 -psdir | --psdir | --psdi | --psd | --ps)
1263 ac_prev=psdir ;;
1264 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 psdir=$ac_optarg ;;
1266
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 silent=yes ;;
1270
1271 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272 ac_prev=sbindir ;;
1273 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274 | --sbi=* | --sb=*)
1275 sbindir=$ac_optarg ;;
1276
1277 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279 | --sharedst | --shareds | --shared | --share | --shar \
1280 | --sha | --sh)
1281 ac_prev=sharedstatedir ;;
1282 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285 | --sha=* | --sh=*)
1286 sharedstatedir=$ac_optarg ;;
1287
1288 -site | --site | --sit)
1289 ac_prev=site ;;
1290 -site=* | --site=* | --sit=*)
1291 site=$ac_optarg ;;
1292
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294 ac_prev=srcdir ;;
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 srcdir=$ac_optarg ;;
1297
1298 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299 | --syscon | --sysco | --sysc | --sys | --sy)
1300 ac_prev=sysconfdir ;;
1301 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303 sysconfdir=$ac_optarg ;;
1304
1305 -target | --target | --targe | --targ | --tar | --ta | --t)
1306 ac_prev=target_alias ;;
1307 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308 target_alias=$ac_optarg ;;
1309
1310 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 verbose=yes ;;
1312
1313 -version | --version | --versio | --versi | --vers | -V)
1314 ac_init_version=: ;;
1315
1316 -with-* | --with-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error "invalid package name: $ac_useropt"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1324 *"
1325 "with_$ac_useropt"
1326 "*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=\$ac_optarg ;;
1331
1332 -without-* | --without-*)
1333 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error "invalid package name: $ac_useropt"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1340 *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
1347
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1351
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1358
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1365
1366 -*) as_fn_error "unrecognized option: \`$ac_option'
1367 Try \`$0 --help' for more information."
1368 ;;
1369
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 case $ac_envvar in #(
1374 '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1376 esac
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1379
1380 *)
1381 # FIXME: should be removed in autoconf 3.0.
1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1386 ;;
1387
1388 esac
1389 done
1390
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 as_fn_error "missing argument to $ac_option"
1394 fi
1395
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1400 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 esac
1402 fi
1403
1404 # Check all directory arguments for consistency.
1405 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406 datadir sysconfdir sharedstatedir localstatedir includedir \
1407 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408 libdir localedir mandir
1409 do
1410 eval ac_val=\$$ac_var
1411 # Remove trailing slashes.
1412 case $ac_val in
1413 */ )
1414 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415 eval $ac_var=\$ac_val;;
1416 esac
1417 # Be sure to have absolute directory names.
1418 case $ac_val in
1419 [\\/$]* | ?:[\\/]* ) continue;;
1420 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421 esac
1422 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1423 done
1424
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1431
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434 if test "x$build_alias" = x; then
1435 cross_compiling=maybe
1436 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437 If a cross compiler is detected then cross compile mode will be used." >&2
1438 elif test "x$build_alias" != "x$host_alias"; then
1439 cross_compiling=yes
1440 fi
1441 fi
1442
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446 test "$silent" = yes && exec 6>/dev/null
1447
1448
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452 as_fn_error "working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454 as_fn_error "pwd does not report name of working directory"
1455
1456
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 s//\1/
1469 q
1470 }
1471 /^X\(\/\/\)[^/].*/{
1472 s//\1/
1473 q
1474 }
1475 /^X\(\/\/\)$/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\).*/{
1480 s//\1/
1481 q
1482 }
1483 s/.*/./; q'`
1484 srcdir=$ac_confdir
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 srcdir=..
1487 fi
1488 else
1489 ac_srcdir_defaulted=no
1490 fi
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1494 fi
1495 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 ac_abs_confdir=`(
1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1502 fi
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1515
1516 #
1517 # Report the --help message.
1518 #
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures this package to adapt to many kinds of systems.
1524
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1529
1530 Defaults for the options are specified in brackets.
1531
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1542
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1548
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1553
1554 For better control, use the options below.
1555
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
1576 _ACEOF
1577
1578 cat <<\_ACEOF
1579
1580 Program names:
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1584
1585 System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1589 _ACEOF
1590 fi
1591
1592 if test -n "$ac_init_help"; then
1593
1594 cat <<\_ACEOF
1595
1596 Optional Features:
1597 --disable-option-checking ignore unrecognized --enable/--with options
1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1600 --enable-generated-files-in-srcdir
1601 put copies of generated files in source dir intended
1602 for creating source tarballs for users without
1603 texinfo bison or flex
1604 --disable-largefile omit support for large files
1605 --disable-build-format-warnings
1606 don't use -Wformat while building GCC
1607 --enable-werror-always enable -Werror despite compiler version
1608 --enable-checking[=LIST]
1609 enable expensive run-time checks. With LIST, enable
1610 only specific categories of checks. Categories are:
1611 yes,no,all,none,release. Flags are:
1612 assert,df,extra,fold,gc,gcac,gimple,misc,
1613 rtlflag,rtl,runtime,tree,valgrind,types
1614 --enable-coverage[=LEVEL]
1615 enable compiler's code coverage collection. Use to
1616 measure compiler performance and locate unused parts
1617 of the compiler. With LEVEL, specify optimization.
1618 Values are opt, noopt, default is noopt
1619 --enable-gather-detailed-mem-stats
1620 enable detailed memory allocation stats gathering
1621 --enable-valgrind-annotations
1622 enable valgrind runtime interaction
1623 --enable-multilib enable library support for multiple ABIs
1624 --enable-multiarch enable support for multiarch paths
1625 --enable-__cxa_atexit enable __cxa_atexit for C++
1626 --enable-decimal-float={no,yes,bid,dpd}
1627 enable decimal float extension to C. Selecting 'bid'
1628 or 'dpd' choses which decimal floating point format
1629 to use
1630 --enable-fixed-point enable fixed-point arithmetic extension to C
1631 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1632 package
1633 --enable-tls enable or disable generation of tls code overriding
1634 the assembler check for tls support
1635 --enable-vtable-verify enable vtable verification feature
1636 --enable-objc-gc enable the use of Boehm's garbage collector with the
1637 GNU Objective-C runtime
1638 --disable-shared don't provide a shared libgcc
1639 --disable-gcov don't provide libgcov and related host tools
1640 --enable-languages=LIST specify which front-ends to build
1641 --disable-rpath do not hardcode runtime library paths
1642 --enable-sjlj-exceptions
1643 arrange to use setjmp/longjmp exception handling
1644 --enable-secureplt enable -msecure-plt by default for PowerPC
1645 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1646 Default to platform configuration
1647 --enable-leading-mingw64-underscores
1648 enable leading underscores on 64 bit mingw targets
1649 --enable-cld enable -mcld by default for 32bit x86
1650 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1651 x86
1652 --disable-win32-registry
1653 disable lookup of installation paths in the Registry
1654 on Windows hosts
1655 --enable-win32-registry enable registry lookup (default)
1656 --enable-win32-registry=KEY
1657 use KEY instead of GCC version as the last portion
1658 of the registry key
1659 --enable-shared[=PKGS] build shared libraries [default=yes]
1660 --enable-static[=PKGS] build static libraries [default=yes]
1661 --enable-fast-install[=PKGS]
1662 optimize for fast installation [default=yes]
1663 --disable-libtool-lock avoid locking (might break parallel builds)
1664 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1665 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1666 --enable-gnu-indirect-function
1667 enable the use of the @gnu_indirect_function to
1668 glibc systems
1669 --enable-initfini-array use .init_array/.fini_array sections
1670 --enable-comdat enable COMDAT group support
1671
1672 --enable-fix-cortex-a53-835769
1673 enable workaround for AArch64 Cortex-A53 erratum
1674 835769 by default
1675 --disable-fix-cortex-a53-835769
1676 disable workaround for AArch64 Cortex-A53 erratum
1677 835769 by default
1678
1679
1680 --enable-fix-cortex-a53-843419
1681 enable workaround for AArch64 Cortex-A53 erratum
1682 843419 by default
1683 --disable-fix-cortex-a53-843419
1684 disable workaround for AArch64 Cortex-A53 erratum
1685 843419 by default
1686
1687 --enable-gnu-unique-object
1688 enable the use of the @gnu_unique_object ELF
1689 extension on glibc systems
1690 --enable-linker-build-id
1691 compiler will always pass --build-id to linker
1692 --enable-libssp enable linking against libssp
1693 --enable-default-ssp enable Stack Smashing Protection as default
1694 --enable-maintainer-mode
1695 enable make rules and dependencies not useful (and
1696 sometimes confusing) to the casual installer
1697 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1698 thrashing on the build machine
1699 --enable-version-specific-runtime-libs
1700 specify that runtime libraries should be installed
1701 in a compiler-specific directory
1702 --enable-plugin enable plugin support
1703 --enable-host-shared build host code as shared libraries
1704 --disable-libquadmath-support
1705 disable libquadmath support for Fortran
1706 --enable-default-pie enable Position Independent Executable as default
1707
1708 Optional Packages:
1709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1711 --with-build-libsubdir=DIR Directory where to find libraries for build system
1712 --with-local-prefix=DIR specifies directory to put local include
1713 --with-native-system-header-dir=dir
1714 use dir as the directory to look for standard
1715 system header files in. Defaults to /usr/include.
1716 --with-build-sysroot=sysroot
1717 use sysroot as the system root during the build
1718 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1719 --with-gxx-include-dir=DIR
1720 specifies directory to put g++ header files
1721 --with-cpp-install-dir=DIR
1722 install the user visible C preprocessor in DIR
1723 (relative to PREFIX) as well as PREFIX/bin
1724 --with-gnu-ld arrange to work with GNU ld
1725 --with-ld arrange to use the specified ld (full pathname)
1726 --with-demangler-in-ld try to use demangler in GNU ld
1727 --with-gnu-as arrange to work with GNU as
1728 --with-as arrange to use the specified as (full pathname)
1729 --with-stabs arrange to use stabs instead of host debug format
1730 --with-dwarf2 force the default debug format to be DWARF 2
1731 --with-specs=SPECS add SPECS to driver command-line processing
1732 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1733 --with-bugurl=URL Direct users to URL to report a bug
1734 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1735 --with-gnu-ld assume the C compiler uses GNU ld default=no
1736 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1737 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1738 --with-gcc-major-version-only
1739 use only GCC major number in filesystem paths
1740 --with-pic try to use only PIC/non-PIC objects [default=use
1741 both]
1742 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1743 --with-plugin-ld=[ARG] specify the plugin linker
1744 --with-glibc-version=M.N
1745 assume GCC used with glibc version M.N or later
1746 --with-long-double-128 use 128-bit long double by default
1747 --with-long-double-format={ieee,ibm}
1748 Specify whether PowerPC long double uses IEEE or IBM format
1749
1750 --with-gc={page,zone} this option is not supported anymore. It used to
1751 choose the garbage collection mechanism to use with
1752 the compiler
1753 --with-system-zlib use installed libz
1754 --with-linker-hash-style={sysv,gnu,both}
1755 specify the linker hash style
1756 --with-diagnostics-color={never,auto,auto-if-env,always}
1757 specify the default of -fdiagnostics-color option
1758 auto-if-env stands for -fdiagnostics-color=auto if
1759 GCC_COLOR environment variable is present and
1760 -fdiagnostics-color=never otherwise
1761
1762 Some influential environment variables:
1763 CC C compiler command
1764 CFLAGS C compiler flags
1765 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1766 nonstandard directory <lib dir>
1767 LIBS libraries to pass to the linker, e.g. -l<library>
1768 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1769 you have headers in a nonstandard directory <include dir>
1770 CXX C++ compiler command
1771 CXXFLAGS C++ compiler flags
1772 CXXCPP C++ preprocessor
1773 CPP C preprocessor
1774 GMPLIBS How to link GMP
1775 GMPINC How to find GMP include files
1776 ISLLIBS How to link isl
1777 ISLINC How to find isl include files
1778
1779 Use these variables to override the choices made by `configure' or to help
1780 it to find libraries and programs with nonstandard names/locations.
1781
1782 Report bugs to the package provider.
1783 _ACEOF
1784 ac_status=$?
1785 fi
1786
1787 if test "$ac_init_help" = "recursive"; then
1788 # If there are subdirs, report their specific --help.
1789 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1790 test -d "$ac_dir" ||
1791 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1792 continue
1793 ac_builddir=.
1794
1795 case "$ac_dir" in
1796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 *)
1798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1799 # A ".." for each directory in $ac_dir_suffix.
1800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1801 case $ac_top_builddir_sub in
1802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1804 esac ;;
1805 esac
1806 ac_abs_top_builddir=$ac_pwd
1807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1808 # for backward compatibility:
1809 ac_top_builddir=$ac_top_build_prefix
1810
1811 case $srcdir in
1812 .) # We are building in place.
1813 ac_srcdir=.
1814 ac_top_srcdir=$ac_top_builddir_sub
1815 ac_abs_top_srcdir=$ac_pwd ;;
1816 [\\/]* | ?:[\\/]* ) # Absolute name.
1817 ac_srcdir=$srcdir$ac_dir_suffix;
1818 ac_top_srcdir=$srcdir
1819 ac_abs_top_srcdir=$srcdir ;;
1820 *) # Relative name.
1821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1822 ac_top_srcdir=$ac_top_build_prefix$srcdir
1823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1824 esac
1825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1826
1827 cd "$ac_dir" || { ac_status=$?; continue; }
1828 # Check for guested configure.
1829 if test -f "$ac_srcdir/configure.gnu"; then
1830 echo &&
1831 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1832 elif test -f "$ac_srcdir/configure"; then
1833 echo &&
1834 $SHELL "$ac_srcdir/configure" --help=recursive
1835 else
1836 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1837 fi || ac_status=$?
1838 cd "$ac_pwd" || { ac_status=$?; break; }
1839 done
1840 fi
1841
1842 test -n "$ac_init_help" && exit $ac_status
1843 if $ac_init_version; then
1844 cat <<\_ACEOF
1845 configure
1846 generated by GNU Autoconf 2.64
1847
1848 Copyright (C) 2009 Free Software Foundation, Inc.
1849 This configure script is free software; the Free Software Foundation
1850 gives unlimited permission to copy, distribute and modify it.
1851 _ACEOF
1852 exit
1853 fi
1854
1855 ## ------------------------ ##
1856 ## Autoconf initialization. ##
1857 ## ------------------------ ##
1858
1859 # ac_fn_c_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_compile ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=1
1891 fi
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 return $ac_retval
1894
1895 } # ac_fn_c_try_compile
1896
1897 # ac_fn_cxx_try_compile LINENO
1898 # ----------------------------
1899 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_compile ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext
1904 if { { ac_try="$ac_compile"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_compile") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest.$ac_objext; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=1
1929 fi
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 return $ac_retval
1932
1933 } # ac_fn_cxx_try_compile
1934
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 return $ac_retval
1969
1970 } # ac_fn_cxx_try_cpp
1971
1972 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # ---------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1976 # accordingly.
1977 ac_fn_cxx_check_header_mongrel ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 else
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_cxx_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2000 else
2001 ac_header_compiler=no
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2006
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_cxx_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2016 else
2017 ac_header_preproc=no
2018 fi
2019 rm -f conftest.err conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2022
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2025 yes:no: )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 ;;
2031 no:yes:* )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 ;;
2043 esac
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 eval "$3=\$ac_header_compiler"
2050 fi
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056
2057 } # ac_fn_cxx_check_header_mongrel
2058
2059 # ac_fn_cxx_try_run LINENO
2060 # ------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_cxx_try_run ()
2064 {
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2074 ac_status=$?
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 ac_retval=$ac_status
2094 fi
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 return $ac_retval
2098
2099 } # ac_fn_cxx_try_run
2100
2101 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists and can be compiled using the include files in
2104 # INCLUDES, setting the cache variable VAR accordingly.
2105 ac_fn_cxx_check_header_compile ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_cxx_try_compile "$LINENO"; then :
2119 eval "$3=yes"
2120 else
2121 eval "$3=no"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129
2130 } # ac_fn_cxx_check_header_compile
2131
2132 # ac_fn_c_try_cpp LINENO
2133 # ----------------------
2134 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_c_try_cpp ()
2136 {
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 if { { ac_try="$ac_cpp conftest.$ac_ext"
2139 case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2146 ac_status=$?
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2151 fi
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } >/dev/null && {
2154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2155 test ! -s conftest.err
2156 }; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2166
2167 } # ac_fn_c_try_cpp
2168
2169 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2170 # ----------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2173 # computed
2174 ac_fn_cxx_compute_int ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2186 test_array [0] = 0
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_cxx_try_compile "$LINENO"; then :
2193 ac_lo=0 ac_mid=0
2194 while :; do
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $4
2198 int
2199 main ()
2200 {
2201 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 test_array [0] = 0
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_cxx_try_compile "$LINENO"; then :
2209 ac_hi=$ac_mid; break
2210 else
2211 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2212 if test $ac_lo -le $ac_mid; then
2213 ac_lo= ac_hi=
2214 break
2215 fi
2216 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $4
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) < 0)];
2228 test_array [0] = 0
2229
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_hi=-1 ac_mid=-1
2236 while :; do
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2244 test_array [0] = 0
2245
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251 ac_lo=$ac_mid; break
2252 else
2253 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2254 if test $ac_mid -le $ac_hi; then
2255 ac_lo= ac_hi=
2256 break
2257 fi
2258 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 done
2262 else
2263 ac_lo= ac_hi=
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 # Binary search between lo and hi bounds.
2269 while test "x$ac_lo" != "x$ac_hi"; do
2270 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 int
2275 main ()
2276 {
2277 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 test_array [0] = 0
2279
2280 ;
2281 return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 ac_hi=$ac_mid
2286 else
2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 case $ac_lo in #((
2292 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 '') ac_retval=1 ;;
2294 esac
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $4
2299 static long int longval () { return $2; }
2300 static unsigned long int ulongval () { return $2; }
2301 #include <stdio.h>
2302 #include <stdlib.h>
2303 int
2304 main ()
2305 {
2306
2307 FILE *f = fopen ("conftest.val", "w");
2308 if (! f)
2309 return 1;
2310 if (($2) < 0)
2311 {
2312 long int i = longval ();
2313 if (i != ($2))
2314 return 1;
2315 fprintf (f, "%ld", i);
2316 }
2317 else
2318 {
2319 unsigned long int i = ulongval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%lu", i);
2323 }
2324 /* Do not output a trailing newline, as this causes \r\n confusion
2325 on some platforms. */
2326 return ferror (f) || fclose (f) != 0;
2327
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_cxx_try_run "$LINENO"; then :
2333 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 else
2335 ac_retval=1
2336 fi
2337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 rm -f conftest.val
2340
2341 fi
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 return $ac_retval
2344
2345 } # ac_fn_cxx_compute_int
2346
2347 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2348 # ---------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_cxx_check_type ()
2352 {
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 eval "$3=no"
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof ($2))
2367 return 0;
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2375 $4
2376 int
2377 main ()
2378 {
2379 if (sizeof (($2)))
2380 return 0;
2381 ;
2382 return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_cxx_try_compile "$LINENO"; then :
2386
2387 else
2388 eval "$3=yes"
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 fi
2394 eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398
2399 } # ac_fn_cxx_check_type
2400
2401 # ac_fn_c_find_intX_t LINENO BITS VAR
2402 # -----------------------------------
2403 # Finds a signed integer type with width BITS, setting cache variable VAR
2404 # accordingly.
2405 ac_fn_c_find_intX_t ()
2406 {
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2409 $as_echo_n "checking for int$2_t... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 eval "$3=no"
2414 for ac_type in int$2_t 'int' 'long int' \
2415 'long long int' 'short int' 'signed char'; do
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2419 int
2420 main ()
2421 {
2422 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2423 test_array [0] = 0
2424
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $ac_includes_default
2433 int
2434 main ()
2435 {
2436 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2437 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2438 test_array [0] = 0
2439
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 if ac_fn_cxx_try_compile "$LINENO"; then :
2445
2446 else
2447 case $ac_type in #(
2448 int$2_t) :
2449 eval "$3=yes" ;; #(
2450 *) :
2451 eval "$3=\$ac_type" ;;
2452 esac
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 eval as_val=\$$3
2458 if test "x$as_val" = x""no; then :
2459
2460 else
2461 break
2462 fi
2463 done
2464 fi
2465 eval ac_res=\$$3
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469
2470 } # ac_fn_c_find_intX_t
2471
2472 # ac_fn_cxx_try_link LINENO
2473 # -------------------------
2474 # Try to link conftest.$ac_ext, and return whether this succeeded.
2475 ac_fn_cxx_try_link ()
2476 {
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { { ac_try="$ac_link"
2480 case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483 esac
2484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485 $as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; } && {
2495 test -z "$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest$ac_exeext && {
2498 test "$cross_compiling" = yes ||
2499 $as_test_x conftest$ac_exeext
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 ac_retval=1
2507 fi
2508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510 # interfere with the next link command; also delete a directory that is
2511 # left behind by Apple's compiler. We do this before executing the actions.
2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 return $ac_retval
2515
2516 } # ac_fn_cxx_try_link
2517
2518 # ac_fn_c_find_uintX_t LINENO BITS VAR
2519 # ------------------------------------
2520 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2521 # accordingly.
2522 ac_fn_c_find_uintX_t ()
2523 {
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2526 $as_echo_n "checking for uint$2_t... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 eval "$3=no"
2531 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2532 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 int
2537 main ()
2538 {
2539 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2540 test_array [0] = 0
2541
2542 ;
2543 return 0;
2544 }
2545 _ACEOF
2546 if ac_fn_cxx_try_compile "$LINENO"; then :
2547 case $ac_type in #(
2548 uint$2_t) :
2549 eval "$3=yes" ;; #(
2550 *) :
2551 eval "$3=\$ac_type" ;;
2552 esac
2553 fi
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 eval as_val=\$$3
2556 if test "x$as_val" = x""no; then :
2557
2558 else
2559 break
2560 fi
2561 done
2562 fi
2563 eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567
2568 } # ac_fn_c_find_uintX_t
2569
2570 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2571 # ------------------------------------------------
2572 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2573 ac_fn_cxx_check_header_preproc ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2577 $as_echo_n "checking for $2... " >&6; }
2578 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 #include <$2>
2584 _ACEOF
2585 if ac_fn_cxx_try_cpp "$LINENO"; then :
2586 eval "$3=yes"
2587 else
2588 eval "$3=no"
2589 fi
2590 rm -f conftest.err conftest.$ac_ext
2591 fi
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596
2597 } # ac_fn_cxx_check_header_preproc
2598
2599 # ac_fn_cxx_check_func LINENO FUNC VAR
2600 # ------------------------------------
2601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2602 ac_fn_cxx_check_func ()
2603 {
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2614 #define $2 innocuous_$2
2615
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $2 (); below.
2618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619 <limits.h> exists even on freestanding compilers. */
2620
2621 #ifdef __STDC__
2622 # include <limits.h>
2623 #else
2624 # include <assert.h>
2625 #endif
2626
2627 #undef $2
2628
2629 /* Override any GCC internal prototype to avoid an error.
2630 Use char because int might match the return type of a GCC
2631 builtin and then its argument prototype would still apply. */
2632 #ifdef __cplusplus
2633 extern "C"
2634 #endif
2635 char $2 ();
2636 /* The GNU C library defines this for functions which it implements
2637 to always fail with ENOSYS. Some functions are actually named
2638 something starting with __ and the normal name is an alias. */
2639 #if defined __stub_$2 || defined __stub___$2
2640 choke me
2641 #endif
2642
2643 int
2644 main ()
2645 {
2646 return $2 ();
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_cxx_try_link "$LINENO"; then :
2652 eval "$3=yes"
2653 else
2654 eval "$3=no"
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2658 fi
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2663
2664 } # ac_fn_cxx_check_func
2665
2666 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2667 # --------------------------------------
2668 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2669 ac_fn_cxx_check_decl ()
2670 {
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 as_decl_name=`echo $2|sed 's/ *(.*//'`
2673 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2675 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2681 $4
2682 int
2683 main ()
2684 {
2685 #ifndef $as_decl_name
2686 #ifdef __cplusplus
2687 (void) $as_decl_use;
2688 #else
2689 (void) $as_decl_name;
2690 #endif
2691 #endif
2692
2693 ;
2694 return 0;
2695 }
2696 _ACEOF
2697 if ac_fn_cxx_try_compile "$LINENO"; then :
2698 eval "$3=yes"
2699 else
2700 eval "$3=no"
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2708
2709 } # ac_fn_cxx_check_decl
2710
2711 # ac_fn_c_try_link LINENO
2712 # -----------------------
2713 # Try to link conftest.$ac_ext, and return whether this succeeded.
2714 ac_fn_c_try_link ()
2715 {
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 rm -f conftest.$ac_objext conftest$ac_exeext
2718 if { { ac_try="$ac_link"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2724 $as_echo "$ac_try_echo"; } >&5
2725 (eval "$ac_link") 2>conftest.err
2726 ac_status=$?
2727 if test -s conftest.err; then
2728 grep -v '^ *+' conftest.err >conftest.er1
2729 cat conftest.er1 >&5
2730 mv -f conftest.er1 conftest.err
2731 fi
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; } && {
2734 test -z "$ac_c_werror_flag" ||
2735 test ! -s conftest.err
2736 } && test -s conftest$ac_exeext && {
2737 test "$cross_compiling" = yes ||
2738 $as_test_x conftest$ac_exeext
2739 }; then :
2740 ac_retval=0
2741 else
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_retval=1
2746 fi
2747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2749 # interfere with the next link command; also delete a directory that is
2750 # left behind by Apple's compiler. We do this before executing the actions.
2751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2753 return $ac_retval
2754
2755 } # ac_fn_c_try_link
2756
2757 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2758 # ----------------------------------------------
2759 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2760 ac_fn_c_check_header_preproc ()
2761 {
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2764 $as_echo_n "checking for $2... " >&6; }
2765 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2770 #include <$2>
2771 _ACEOF
2772 if ac_fn_c_try_cpp "$LINENO"; then :
2773 eval "$3=yes"
2774 else
2775 eval "$3=no"
2776 fi
2777 rm -f conftest.err conftest.$ac_ext
2778 fi
2779 eval ac_res=\$$3
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781 $as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2783
2784 } # ac_fn_c_check_header_preproc
2785
2786 # ac_fn_c_check_func LINENO FUNC VAR
2787 # ----------------------------------
2788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2789 ac_fn_c_check_func ()
2790 {
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2793 $as_echo_n "checking for $2... " >&6; }
2794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2801 #define $2 innocuous_$2
2802
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $2 (); below.
2805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 <limits.h> exists even on freestanding compilers. */
2807
2808 #ifdef __STDC__
2809 # include <limits.h>
2810 #else
2811 # include <assert.h>
2812 #endif
2813
2814 #undef $2
2815
2816 /* Override any GCC internal prototype to avoid an error.
2817 Use char because int might match the return type of a GCC
2818 builtin and then its argument prototype would still apply. */
2819 #ifdef __cplusplus
2820 extern "C"
2821 #endif
2822 char $2 ();
2823 /* The GNU C library defines this for functions which it implements
2824 to always fail with ENOSYS. Some functions are actually named
2825 something starting with __ and the normal name is an alias. */
2826 #if defined __stub_$2 || defined __stub___$2
2827 choke me
2828 #endif
2829
2830 int
2831 main ()
2832 {
2833 return $2 ();
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_c_try_link "$LINENO"; then :
2839 eval "$3=yes"
2840 else
2841 eval "$3=no"
2842 fi
2843 rm -f core conftest.err conftest.$ac_objext \
2844 conftest$ac_exeext conftest.$ac_ext
2845 fi
2846 eval ac_res=\$$3
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2850
2851 } # ac_fn_c_check_func
2852 cat >config.log <<_ACEOF
2853 This file contains any messages produced by compilers while
2854 running configure, to aid debugging if configure makes a mistake.
2855
2856 It was created by $as_me, which was
2857 generated by GNU Autoconf 2.64. Invocation command line was
2858
2859 $ $0 $@
2860
2861 _ACEOF
2862 exec 5>>config.log
2863 {
2864 cat <<_ASUNAME
2865 ## --------- ##
2866 ## Platform. ##
2867 ## --------- ##
2868
2869 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2870 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2871 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2872 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2873 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2874
2875 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2876 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2877
2878 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2879 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2880 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2881 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2882 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2883 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2884 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2885
2886 _ASUNAME
2887
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 $as_echo "PATH: $as_dir"
2894 done
2895 IFS=$as_save_IFS
2896
2897 } >&5
2898
2899 cat >&5 <<_ACEOF
2900
2901
2902 ## ----------- ##
2903 ## Core tests. ##
2904 ## ----------- ##
2905
2906 _ACEOF
2907
2908
2909 # Keep a trace of the command line.
2910 # Strip out --no-create and --no-recursion so they do not pile up.
2911 # Strip out --silent because we don't want to record it for future runs.
2912 # Also quote any args containing shell meta-characters.
2913 # Make two passes to allow for proper duplicate-argument suppression.
2914 ac_configure_args=
2915 ac_configure_args0=
2916 ac_configure_args1=
2917 ac_must_keep_next=false
2918 for ac_pass in 1 2
2919 do
2920 for ac_arg
2921 do
2922 case $ac_arg in
2923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2925 | -silent | --silent | --silen | --sile | --sil)
2926 continue ;;
2927 *\'*)
2928 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2929 esac
2930 case $ac_pass in
2931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2932 2)
2933 as_fn_append ac_configure_args1 " '$ac_arg'"
2934 if test $ac_must_keep_next = true; then
2935 ac_must_keep_next=false # Got value, back to normal.
2936 else
2937 case $ac_arg in
2938 *=* | --config-cache | -C | -disable-* | --disable-* \
2939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2941 | -with-* | --with-* | -without-* | --without-* | --x)
2942 case "$ac_configure_args0 " in
2943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2944 esac
2945 ;;
2946 -* ) ac_must_keep_next=true ;;
2947 esac
2948 fi
2949 as_fn_append ac_configure_args " '$ac_arg'"
2950 ;;
2951 esac
2952 done
2953 done
2954 { ac_configure_args0=; unset ac_configure_args0;}
2955 { ac_configure_args1=; unset ac_configure_args1;}
2956
2957 # When interrupted or exit'd, cleanup temporary files, and complete
2958 # config.log. We remove comments because anyway the quotes in there
2959 # would cause problems or look ugly.
2960 # WARNING: Use '\'' to represent an apostrophe within the trap.
2961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2962 trap 'exit_status=$?
2963 # Save into config.log some information that might help in debugging.
2964 {
2965 echo
2966
2967 cat <<\_ASBOX
2968 ## ---------------- ##
2969 ## Cache variables. ##
2970 ## ---------------- ##
2971 _ASBOX
2972 echo
2973 # The following way of writing the cache mishandles newlines in values,
2974 (
2975 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2976 eval ac_val=\$$ac_var
2977 case $ac_val in #(
2978 *${as_nl}*)
2979 case $ac_var in #(
2980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2982 esac
2983 case $ac_var in #(
2984 _ | IFS | as_nl) ;; #(
2985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2986 *) { eval $ac_var=; unset $ac_var;} ;;
2987 esac ;;
2988 esac
2989 done
2990 (set) 2>&1 |
2991 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2992 *${as_nl}ac_space=\ *)
2993 sed -n \
2994 "s/'\''/'\''\\\\'\'''\''/g;
2995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2996 ;; #(
2997 *)
2998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2999 ;;
3000 esac |
3001 sort
3002 )
3003 echo
3004
3005 cat <<\_ASBOX
3006 ## ----------------- ##
3007 ## Output variables. ##
3008 ## ----------------- ##
3009 _ASBOX
3010 echo
3011 for ac_var in $ac_subst_vars
3012 do
3013 eval ac_val=\$$ac_var
3014 case $ac_val in
3015 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3016 esac
3017 $as_echo "$ac_var='\''$ac_val'\''"
3018 done | sort
3019 echo
3020
3021 if test -n "$ac_subst_files"; then
3022 cat <<\_ASBOX
3023 ## ------------------- ##
3024 ## File substitutions. ##
3025 ## ------------------- ##
3026 _ASBOX
3027 echo
3028 for ac_var in $ac_subst_files
3029 do
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3037 fi
3038
3039 if test -s confdefs.h; then
3040 cat <<\_ASBOX
3041 ## ----------- ##
3042 ## confdefs.h. ##
3043 ## ----------- ##
3044 _ASBOX
3045 echo
3046 cat confdefs.h
3047 echo
3048 fi
3049 test "$ac_signal" != 0 &&
3050 $as_echo "$as_me: caught signal $ac_signal"
3051 $as_echo "$as_me: exit $exit_status"
3052 } >&5
3053 rm -f core *.core core.conftest.* &&
3054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3055 exit $exit_status
3056 ' 0
3057 for ac_signal in 1 2 13 15; do
3058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3059 done
3060 ac_signal=0
3061
3062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3063 rm -f -r conftest* confdefs.h
3064
3065 $as_echo "/* confdefs.h */" > confdefs.h
3066
3067 # Predefined preprocessor variables.
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_NAME "$PACKAGE_NAME"
3071 _ACEOF
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3075 _ACEOF
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3079 _ACEOF
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_STRING "$PACKAGE_STRING"
3083 _ACEOF
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3087 _ACEOF
3088
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_URL "$PACKAGE_URL"
3091 _ACEOF
3092
3093
3094 # Let the site file select an alternate cache file if it wants to.
3095 # Prefer an explicitly selected file to automatically selected ones.
3096 ac_site_file1=NONE
3097 ac_site_file2=NONE
3098 if test -n "$CONFIG_SITE"; then
3099 ac_site_file1=$CONFIG_SITE
3100 elif test "x$prefix" != xNONE; then
3101 ac_site_file1=$prefix/share/config.site
3102 ac_site_file2=$prefix/etc/config.site
3103 else
3104 ac_site_file1=$ac_default_prefix/share/config.site
3105 ac_site_file2=$ac_default_prefix/etc/config.site
3106 fi
3107 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3108 do
3109 test "x$ac_site_file" = xNONE && continue
3110 if test -r "$ac_site_file"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3112 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3113 sed 's/^/| /' "$ac_site_file" >&5
3114 . "$ac_site_file"
3115 fi
3116 done
3117
3118 if test -r "$cache_file"; then
3119 # Some versions of bash will fail to source /dev/null (special
3120 # files actually), so we avoid doing that.
3121 if test -f "$cache_file"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3123 $as_echo "$as_me: loading cache $cache_file" >&6;}
3124 case $cache_file in
3125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3126 *) . "./$cache_file";;
3127 esac
3128 fi
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3131 $as_echo "$as_me: creating cache $cache_file" >&6;}
3132 >$cache_file
3133 fi
3134
3135 # Check that the precious variables saved in the cache have kept the same
3136 # value.
3137 ac_cache_corrupted=false
3138 for ac_var in $ac_precious_vars; do
3139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3140 eval ac_new_set=\$ac_env_${ac_var}_set
3141 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3142 eval ac_new_val=\$ac_env_${ac_var}_value
3143 case $ac_old_set,$ac_new_set in
3144 set,)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3146 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3147 ac_cache_corrupted=: ;;
3148 ,set)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3150 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3151 ac_cache_corrupted=: ;;
3152 ,);;
3153 *)
3154 if test "x$ac_old_val" != "x$ac_new_val"; then
3155 # differences in whitespace do not lead to failure.
3156 ac_old_val_w=`echo x $ac_old_val`
3157 ac_new_val_w=`echo x $ac_new_val`
3158 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3160 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3161 ac_cache_corrupted=:
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3164 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3165 eval $ac_var=\$ac_old_val
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3168 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3170 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3171 fi;;
3172 esac
3173 # Pass precious variables to config.status.
3174 if test "$ac_new_set" = set; then
3175 case $ac_new_val in
3176 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3177 *) ac_arg=$ac_var=$ac_new_val ;;
3178 esac
3179 case " $ac_configure_args " in
3180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3181 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3182 esac
3183 fi
3184 done
3185 if $ac_cache_corrupted; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3189 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3190 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3191 fi
3192 ## -------------------- ##
3193 ## Main body of script. ##
3194 ## -------------------- ##
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202
3203
3204
3205
3206
3207 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3208
3209
3210 gcc_version=`cat $srcdir/BASE-VER`
3211
3212 # Determine the host, build, and target systems
3213 ac_aux_dir=
3214 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3215 for ac_t in install-sh install.sh shtool; do
3216 if test -f "$ac_dir/$ac_t"; then
3217 ac_aux_dir=$ac_dir
3218 ac_install_sh="$ac_aux_dir/$ac_t -c"
3219 break 2
3220 fi
3221 done
3222 done
3223 if test -z "$ac_aux_dir"; then
3224 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3225 fi
3226
3227 # These three variables are undocumented and unsupported,
3228 # and are intended to be withdrawn in a future Autoconf release.
3229 # They can cause serious problems if a builder's source tree is in a directory
3230 # whose full name contains unusual characters.
3231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3234
3235
3236 # Make sure we can run config.sub.
3237 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3238 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3239
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3241 $as_echo_n "checking build system type... " >&6; }
3242 if test "${ac_cv_build+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 ac_build_alias=$build_alias
3246 test "x$ac_build_alias" = x &&
3247 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3248 test "x$ac_build_alias" = x &&
3249 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3251 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3252
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3255 $as_echo "$ac_cv_build" >&6; }
3256 case $ac_cv_build in
3257 *-*-*) ;;
3258 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3259 esac
3260 build=$ac_cv_build
3261 ac_save_IFS=$IFS; IFS='-'
3262 set x $ac_cv_build
3263 shift
3264 build_cpu=$1
3265 build_vendor=$2
3266 shift; shift
3267 # Remember, the first character of IFS is used to create $*,
3268 # except with old shells:
3269 build_os=$*
3270 IFS=$ac_save_IFS
3271 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3272
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3275 $as_echo_n "checking host system type... " >&6; }
3276 if test "${ac_cv_host+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test "x$host_alias" = x; then
3280 ac_cv_host=$ac_cv_build
3281 else
3282 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3283 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3284 fi
3285
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3288 $as_echo "$ac_cv_host" >&6; }
3289 case $ac_cv_host in
3290 *-*-*) ;;
3291 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3292 esac
3293 host=$ac_cv_host
3294 ac_save_IFS=$IFS; IFS='-'
3295 set x $ac_cv_host
3296 shift
3297 host_cpu=$1
3298 host_vendor=$2
3299 shift; shift
3300 # Remember, the first character of IFS is used to create $*,
3301 # except with old shells:
3302 host_os=$*
3303 IFS=$ac_save_IFS
3304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3308 $as_echo_n "checking target system type... " >&6; }
3309 if test "${ac_cv_target+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test "x$target_alias" = x; then
3313 ac_cv_target=$ac_cv_host
3314 else
3315 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3316 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3317 fi
3318
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3321 $as_echo "$ac_cv_target" >&6; }
3322 case $ac_cv_target in
3323 *-*-*) ;;
3324 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3325 esac
3326 target=$ac_cv_target
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_target
3329 shift
3330 target_cpu=$1
3331 target_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 target_os=$*
3336 IFS=$ac_save_IFS
3337 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3338
3339
3340 # The aliases save the names the user supplied, while $host etc.
3341 # will get canonicalized.
3342 test -n "$target_alias" &&
3343 test "$program_prefix$program_suffix$program_transform_name" = \
3344 NONENONEs,x,x, &&
3345 program_prefix=${target_alias}-
3346
3347 # Determine the noncanonical host name, for Ada.
3348 case ${build_alias} in
3349 "") build_noncanonical=${build} ;;
3350 *) build_noncanonical=${build_alias} ;;
3351 esac
3352
3353 case ${host_alias} in
3354 "") host_noncanonical=${build_noncanonical} ;;
3355 *) host_noncanonical=${host_alias} ;;
3356 esac
3357
3358
3359
3360
3361 # Determine the noncanonical target name, for directory use.
3362 case ${target_alias} in
3363 "") target_noncanonical=${host_noncanonical} ;;
3364 *) target_noncanonical=${target_alias} ;;
3365 esac
3366
3367
3368
3369
3370 # Used for constructing correct paths for offload compilers.
3371 real_target_noncanonical=${target_noncanonical}
3372 accel_dir_suffix=
3373
3374 # Determine the target- and build-specific subdirectories
3375
3376 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3377 # have matching libraries, they should use host libraries: Makefile.tpl
3378 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3379 # However, they still use the build modules, because the corresponding
3380 # host modules (e.g. bison) are only built for the host when bootstrap
3381 # finishes. So:
3382 # - build_subdir is where we find build modules, and never changes.
3383 # - build_libsubdir is where we find build libraries, and can be overridden.
3384
3385 # Prefix 'build-' so this never conflicts with target_subdir.
3386 build_subdir="build-${build_noncanonical}"
3387
3388 # Check whether --with-build-libsubdir was given.
3389 if test "${with_build_libsubdir+set}" = set; then :
3390 withval=$with_build_libsubdir; build_libsubdir="$withval"
3391 else
3392 build_libsubdir="$build_subdir"
3393 fi
3394
3395 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3396 if ( test $srcdir = . && test -d gcc ) \
3397 || test -d $srcdir/../host-${host_noncanonical}; then
3398 host_subdir="host-${host_noncanonical}"
3399 else
3400 host_subdir=.
3401 fi
3402 # No prefix.
3403 target_subdir=${target_noncanonical}
3404
3405
3406 # Set program_transform_name
3407 test "$program_prefix" != NONE &&
3408 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3409 # Use a double $ so make ignores it.
3410 test "$program_suffix" != NONE &&
3411 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3412 # Double any \ or $.
3413 # By default was `s,x,x', remove it if useless.
3414 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3415 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3416
3417
3418 # Check for bogus environment variables.
3419 # Test if LIBRARY_PATH contains the notation for the current directory
3420 # since this would lead to problems installing/building glibc.
3421 # LIBRARY_PATH contains the current directory if one of the following
3422 # is true:
3423 # - one of the terminals (":" and ";") is the first or last sign
3424 # - two terminals occur directly after each other
3425 # - the path contains an element with a dot in it
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3427 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3428 case ${LIBRARY_PATH} in
3429 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3430 library_path_setting="contains current directory"
3431 ;;
3432 *)
3433 library_path_setting="ok"
3434 ;;
3435 esac
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3437 $as_echo "$library_path_setting" >&6; }
3438 if test "$library_path_setting" != "ok"; then
3439 as_fn_error "
3440 *** LIBRARY_PATH shouldn't contain the current directory when
3441 *** building gcc. Please change the environment variable
3442 *** and run configure again." "$LINENO" 5
3443 fi
3444
3445 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3446 # since this would lead to problems installing/building glibc.
3447 # GCC_EXEC_PREFIX contains the current directory if one of the following
3448 # is true:
3449 # - one of the terminals (":" and ";") is the first or last sign
3450 # - two terminals occur directly after each other
3451 # - the path contains an element with a dot in it
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3453 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3454 case ${GCC_EXEC_PREFIX} in
3455 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3456 gcc_exec_prefix_setting="contains current directory"
3457 ;;
3458 *)
3459 gcc_exec_prefix_setting="ok"
3460 ;;
3461 esac
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3463 $as_echo "$gcc_exec_prefix_setting" >&6; }
3464 if test "$gcc_exec_prefix_setting" != "ok"; then
3465 as_fn_error "
3466 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3467 *** building gcc. Please change the environment variable
3468 *** and run configure again." "$LINENO" 5
3469 fi
3470
3471 # -----------
3472 # Directories
3473 # -----------
3474
3475 # Specify the local prefix
3476 local_prefix=
3477
3478 # Check whether --with-local-prefix was given.
3479 if test "${with_local_prefix+set}" = set; then :
3480 withval=$with_local_prefix; case "${withval}" in
3481 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3482 no) ;;
3483 *) local_prefix=$with_local_prefix ;;
3484 esac
3485 fi
3486
3487
3488 # Default local prefix if it is empty
3489 if test x$local_prefix = x; then
3490 local_prefix=/usr/local
3491 fi
3492
3493
3494 # Check whether --with-native-system-header-dir was given.
3495 if test "${with_native_system_header_dir+set}" = set; then :
3496 withval=$with_native_system_header_dir;
3497 case ${with_native_system_header_dir} in
3498 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3499 /* | [A-Za-z]:[\\/]*) ;;
3500 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3501 esac
3502 configured_native_system_header_dir="${withval}"
3503
3504 else
3505 configured_native_system_header_dir=
3506 fi
3507
3508
3509
3510 # Check whether --with-build-sysroot was given.
3511 if test "${with_build_sysroot+set}" = set; then :
3512 withval=$with_build_sysroot; if test x"$withval" != x ; then
3513 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3514 fi
3515 else
3516 SYSROOT_CFLAGS_FOR_TARGET=
3517 fi
3518
3519
3520
3521 if test "x$prefix" = xNONE; then
3522 test_prefix=/usr/local
3523 else
3524 test_prefix=$prefix
3525 fi
3526 if test "x$exec_prefix" = xNONE; then
3527 test_exec_prefix=$test_prefix
3528 else
3529 test_exec_prefix=$exec_prefix
3530 fi
3531
3532
3533 # Check whether --with-sysroot was given.
3534 if test "${with_sysroot+set}" = set; then :
3535 withval=$with_sysroot;
3536 case ${with_sysroot} in
3537 /) ;;
3538 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3539 esac
3540 case ${with_sysroot} in
3541 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3542 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3543 esac
3544
3545 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3546 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3547
3548 case ${TARGET_SYSTEM_ROOT} in
3549 "${test_prefix}"|"${test_prefix}/"*|\
3550 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3551 '${prefix}'|'${prefix}/'*|\
3552 '${exec_prefix}'|'${exec_prefix}/'*)
3553 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3554 TARGET_SYSTEM_ROOT_DEFINE="$t"
3555 ;;
3556 esac
3557
3558 else
3559
3560 TARGET_SYSTEM_ROOT=
3561 TARGET_SYSTEM_ROOT_DEFINE=
3562 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3563
3564 fi
3565
3566
3567
3568
3569
3570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3571 # passed in by the toplevel make and thus we'd get different behavior
3572 # depending on where we built the sources.
3573 gcc_gxx_include_dir=
3574 # Specify the g++ header file directory
3575
3576 # Check whether --with-gxx-include-dir was given.
3577 if test "${with_gxx_include_dir+set}" = set; then :
3578 withval=$with_gxx_include_dir; case "${withval}" in
3579 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3580 no) ;;
3581 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3582 esac
3583 fi
3584
3585
3586 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3587 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3588 # relative to the sysroot.
3589 gcc_gxx_include_dir_add_sysroot=0
3590
3591 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3592 if test x${gcc_gxx_include_dir} = x; then
3593 if test x${enable_version_specific_runtime_libs} = xyes; then
3594 gcc_gxx_include_dir='${libsubdir}/include/c++'
3595 else
3596 libstdcxx_incdir='include/c++/$(version)'
3597 if test x$host != x$target; then
3598 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3599 fi
3600 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3601 fi
3602 elif test "${with_sysroot+set}" = set; then
3603 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3604 if test "${gcc_gxx_without_sysroot}"; then
3605 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3606 gcc_gxx_include_dir_add_sysroot=1
3607 fi
3608 fi
3609
3610
3611 # Check whether --with-cpp_install_dir was given.
3612 if test "${with_cpp_install_dir+set}" = set; then :
3613 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3614 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3615 elif test x$withval != xno; then
3616 cpp_install_dir=$withval
3617 fi
3618 fi
3619
3620
3621 # We would like to our source tree to be readonly. However when releases or
3622 # pre-releases are generated, the flex/bison generated files as well as the
3623 # various formats of manuals need to be included along with the rest of the
3624 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3625 # just that.
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3628 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3629 # Check whether --enable-generated-files-in-srcdir was given.
3630 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3631 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3632 else
3633 generated_files_in_srcdir=no
3634 fi
3635
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3638 $as_echo "$generated_files_in_srcdir" >&6; }
3639
3640 if test "$generated_files_in_srcdir" = "yes"; then
3641 GENINSRC=''
3642 else
3643 GENINSRC='#'
3644 fi
3645
3646
3647 # -------------------
3648 # Find default linker
3649 # -------------------
3650
3651 # With GNU ld
3652
3653 # Check whether --with-gnu-ld was given.
3654 if test "${with_gnu_ld+set}" = set; then :
3655 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3656 else
3657 gnu_ld_flag=no
3658 fi
3659
3660
3661 case $target in
3662 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3663 *) ld64_flag=no;;
3664 esac
3665
3666 # With pre-defined ld
3667
3668 # Check whether --with-ld was given.
3669 if test "${with_ld+set}" = set; then :
3670 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3671 fi
3672
3673 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3674 if test ! -x "$DEFAULT_LINKER"; then
3675 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3676 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3677 gnu_ld_flag=yes
3678 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3679 ld64_flag=yes
3680 fi
3681
3682 cat >>confdefs.h <<_ACEOF
3683 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3684 _ACEOF
3685
3686 fi
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3689 $as_echo_n "checking whether a default linker was specified... " >&6; }
3690 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3691 if test x"$gnu_ld_flag" = x"no"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3693 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3696 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3697 fi
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703 # With demangler in GNU ld
3704
3705 # Check whether --with-demangler-in-ld was given.
3706 if test "${with_demangler_in_ld+set}" = set; then :
3707 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3708 else
3709 demangler_in_ld=yes
3710 fi
3711
3712
3713 # ----------------------
3714 # Find default assembler
3715 # ----------------------
3716
3717 # With GNU as
3718
3719 # Check whether --with-gnu-as was given.
3720 if test "${with_gnu_as+set}" = set; then :
3721 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3722 else
3723 gas_flag=no
3724 fi
3725
3726
3727
3728 # Check whether --with-as was given.
3729 if test "${with_as+set}" = set; then :
3730 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3731 fi
3732
3733 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3734 if test ! -x "$DEFAULT_ASSEMBLER"; then
3735 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3736 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3737 gas_flag=yes
3738 fi
3739
3740 cat >>confdefs.h <<_ACEOF
3741 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3742 _ACEOF
3743
3744 fi
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3747 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3748 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3749 if test x"$gas_flag" = x"no"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3751 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3754 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3755 fi
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761 # ---------------
3762 # Find C compiler
3763 # ---------------
3764
3765 # If a non-executable a.out is present (e.g. created by GNU as above even if
3766 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3767 # file, even when creating an executable, so an execution test fails.
3768 # Remove possible default executable files to avoid this.
3769 #
3770 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3771 # Autoconf includes it.
3772 rm -f a.out a.exe b.out
3773
3774 # Find the native compiler
3775 ac_ext=c
3776 ac_cpp='$CPP $CPPFLAGS'
3777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 if test -n "$ac_tool_prefix"; then
3781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if test "${ac_cv_prog_CC+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$CC"; then
3789 ac_cv_prog_CC="$CC" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802 done
3803 done
3804 IFS=$as_save_IFS
3805
3806 fi
3807 fi
3808 CC=$ac_cv_prog_CC
3809 if test -n "$CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3811 $as_echo "$CC" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817
3818 fi
3819 if test -z "$ac_cv_prog_CC"; then
3820 ac_ct_CC=$CC
3821 # Extract the first word of "gcc", so it can be a program name with args.
3822 set dummy gcc; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -n "$ac_ct_CC"; then
3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_prog_ac_ct_CC="gcc"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842 done
3843 done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 $as_echo "$ac_ct_CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3855 fi
3856
3857 if test "x$ac_ct_CC" = x; then
3858 CC=""
3859 else
3860 case $cross_compiling:$ac_tool_warned in
3861 yes:)
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3865 esac
3866 CC=$ac_ct_CC
3867 fi
3868 else
3869 CC="$ac_cv_prog_CC"
3870 fi
3871
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3875 set dummy ${ac_tool_prefix}cc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$CC"; then
3882 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_CC="${ac_tool_prefix}cc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 fi
3900 fi
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911 fi
3912 fi
3913 if test -z "$CC"; then
3914 # Extract the first word of "cc", so it can be a program name with args.
3915 set dummy cc; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if test "${ac_cv_prog_CC+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923 else
3924 ac_prog_rejected=no
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3933 ac_prog_rejected=yes
3934 continue
3935 fi
3936 ac_cv_prog_CC="cc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 if test $ac_prog_rejected = yes; then
3945 # We found a bogon in the path, so make sure we never use it.
3946 set dummy $ac_cv_prog_CC
3947 shift
3948 if test $# != 0; then
3949 # We chose a different compiler from the bogus one.
3950 # However, it has the same basename, so the bogon will be chosen
3951 # first if we set CC to just the basename; use the full file name.
3952 shift
3953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3954 fi
3955 fi
3956 fi
3957 fi
3958 CC=$ac_cv_prog_CC
3959 if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968 fi
3969 if test -z "$CC"; then
3970 if test -n "$ac_tool_prefix"; then
3971 for ac_prog in cl.exe
3972 do
3973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_CC+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 $as_echo "$CC" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 fi
4008
4009
4010 test -n "$CC" && break
4011 done
4012 fi
4013 if test -z "$CC"; then
4014 ac_ct_CC=$CC
4015 for ac_prog in cl.exe
4016 do
4017 # Extract the first word of "$ac_prog", so it can be a program name with args.
4018 set dummy $ac_prog; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$ac_ct_CC"; then
4025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 ac_cv_prog_ac_ct_CC="$ac_prog"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi
4043 fi
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4047 $as_echo "$ac_ct_CC" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 fi
4052
4053
4054 test -n "$ac_ct_CC" && break
4055 done
4056
4057 if test "x$ac_ct_CC" = x; then
4058 CC=""
4059 else
4060 case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066 CC=$ac_ct_CC
4067 fi
4068 fi
4069
4070 fi
4071
4072
4073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "no acceptable C compiler found in \$PATH
4076 See \`config.log' for more details." "$LINENO" 5; }
4077
4078 # Provide some information about the compiler.
4079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4080 set X $ac_compile
4081 ac_compiler=$2
4082 for ac_option in --version -v -V -qversion; do
4083 { { ac_try="$ac_compiler $ac_option >&5"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4091 ac_status=$?
4092 if test -s conftest.err; then
4093 sed '10a\
4094 ... rest of stderr output deleted ...
4095 10q' conftest.err >conftest.er1
4096 cat conftest.er1 >&5
4097 rm -f conftest.er1 conftest.err
4098 fi
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }
4101 done
4102
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 ac_clean_files_save=$ac_clean_files
4115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4116 # Try to create an executable without -o first, disregard a.out.
4117 # It will help us diagnose broken compilers, and finding out an intuition
4118 # of exeext.
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4120 $as_echo_n "checking for C compiler default output file name... " >&6; }
4121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4122
4123 # The possible output files:
4124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4125
4126 ac_rmfiles=
4127 for ac_file in $ac_files
4128 do
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4132 esac
4133 done
4134 rm -f $ac_rmfiles
4135
4136 if { { ac_try="$ac_link_default"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 $as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_link_default") 2>&5
4144 ac_status=$?
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }; then :
4147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4150 # so that the user can short-circuit this test for compilers unknown to
4151 # Autoconf.
4152 for ac_file in $ac_files ''
4153 do
4154 test -f "$ac_file" || continue
4155 case $ac_file in
4156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4157 ;;
4158 [ab].out )
4159 # We found the default executable, but exeext='' is most
4160 # certainly right.
4161 break;;
4162 *.* )
4163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4164 then :; else
4165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4166 fi
4167 # We set ac_cv_exeext here because the later test for it is not
4168 # safe: cross compilers may not add the suffix if given an `-o'
4169 # argument, so we may need to know it at that point already.
4170 # Even if this section looks crufty: it has the advantage of
4171 # actually working.
4172 break;;
4173 * )
4174 break;;
4175 esac
4176 done
4177 test "$ac_cv_exeext" = no && ac_cv_exeext=
4178
4179 else
4180 ac_file=''
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4183 $as_echo "$ac_file" >&6; }
4184 if test -z "$ac_file"; then :
4185 $as_echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 { as_fn_set_status 77
4191 as_fn_error "C compiler cannot create executables
4192 See \`config.log' for more details." "$LINENO" 5; }; }
4193 fi
4194 ac_exeext=$ac_cv_exeext
4195
4196 # Check that the compiler produces executables we can run. If not, either
4197 # the compiler is broken, or we cross compile.
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4199 $as_echo_n "checking whether the C compiler works... " >&6; }
4200 # If not cross compiling, check that we can run a simple program.
4201 if test "$cross_compiling" != yes; then
4202 if { ac_try='./$ac_file'
4203 { { case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; }; then
4213 cross_compiling=no
4214 else
4215 if test "$cross_compiling" = maybe; then
4216 cross_compiling=yes
4217 else
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error "cannot run C compiled programs.
4221 If you meant to cross compile, use \`--host'.
4222 See \`config.log' for more details." "$LINENO" 5; }
4223 fi
4224 fi
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227 $as_echo "yes" >&6; }
4228
4229 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4230 ac_clean_files=$ac_clean_files_save
4231 # Check that the compiler produces executables we can run. If not, either
4232 # the compiler is broken, or we cross compile.
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4234 $as_echo_n "checking whether we are cross compiling... " >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4236 $as_echo "$cross_compiling" >&6; }
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239 $as_echo_n "checking for suffix of executables... " >&6; }
4240 if { { ac_try="$ac_link"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4253 # work properly (i.e., refer to `conftest.exe'), while it won't with
4254 # `rm'.
4255 for ac_file in conftest.exe conftest conftest.*; do
4256 test -f "$ac_file" || continue
4257 case $ac_file in
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260 break;;
4261 * ) break;;
4262 esac
4263 done
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error "cannot compute suffix of executables: cannot compile and link
4268 See \`config.log' for more details." "$LINENO" 5; }
4269 fi
4270 rm -f conftest$ac_cv_exeext
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272 $as_echo "$ac_cv_exeext" >&6; }
4273
4274 rm -f conftest.$ac_ext
4275 EXEEXT=$ac_cv_exeext
4276 ac_exeext=$EXEEXT
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4278 $as_echo_n "checking for suffix of object files... " >&6; }
4279 if test "${ac_cv_objext+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284
4285 int
4286 main ()
4287 {
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.o conftest.obj
4294 if { { ac_try="$ac_compile"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_compile") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; }; then :
4305 for ac_file in conftest.o conftest.obj conftest.*; do
4306 test -f "$ac_file" || continue;
4307 case $ac_file in
4308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4310 break;;
4311 esac
4312 done
4313 else
4314 $as_echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319 as_fn_error "cannot compute suffix of object files: cannot compile
4320 See \`config.log' for more details." "$LINENO" 5; }
4321 fi
4322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4325 $as_echo "$ac_cv_objext" >&6; }
4326 OBJEXT=$ac_cv_objext
4327 ac_objext=$OBJEXT
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4330 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339 #ifndef __GNUC__
4340 choke me
4341 #endif
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_compiler_gnu=yes
4349 else
4350 ac_compiler_gnu=no
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4354
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4358 if test $ac_compiler_gnu = yes; then
4359 GCC=yes
4360 else
4361 GCC=
4362 fi
4363 ac_test_CFLAGS=${CFLAGS+set}
4364 ac_save_CFLAGS=$CFLAGS
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4367 if test "${ac_cv_prog_cc_g+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 ac_save_c_werror_flag=$ac_c_werror_flag
4371 ac_c_werror_flag=yes
4372 ac_cv_prog_cc_g=no
4373 CFLAGS="-g"
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main ()
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_prog_cc_g=yes
4387 else
4388 CFLAGS=""
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 int
4393 main ()
4394 {
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401
4402 else
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="-g"
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main ()
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_g=yes
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4427 $as_echo "$ac_cv_prog_cc_g" >&6; }
4428 if test "$ac_test_CFLAGS" = set; then
4429 CFLAGS=$ac_save_CFLAGS
4430 elif test $ac_cv_prog_cc_g = yes; then
4431 if test "$GCC" = yes; then
4432 CFLAGS="-g -O2"
4433 else
4434 CFLAGS="-g"
4435 fi
4436 else
4437 if test "$GCC" = yes; then
4438 CFLAGS="-O2"
4439 else
4440 CFLAGS=
4441 fi
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4445 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 ac_cv_prog_cc_c89=no
4449 ac_save_CC=$CC
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <stdarg.h>
4453 #include <stdio.h>
4454 #include <sys/types.h>
4455 #include <sys/stat.h>
4456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4457 struct buf { int x; };
4458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4459 static char *e (p, i)
4460 char **p;
4461 int i;
4462 {
4463 return p[i];
4464 }
4465 static char *f (char * (*g) (char **, int), char **p, ...)
4466 {
4467 char *s;
4468 va_list v;
4469 va_start (v,p);
4470 s = g (p, va_arg (v,int));
4471 va_end (v);
4472 return s;
4473 }
4474
4475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4476 function prototypes and stuff, but not '\xHH' hex character constants.
4477 These don't provoke an error unfortunately, instead are silently treated
4478 as 'x'. The following induces an error, until -std is added to get
4479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4480 array size at least. It's necessary to write '\x00'==0 to get something
4481 that's true only with -std. */
4482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4483
4484 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4485 inside strings and character constants. */
4486 #define FOO(x) 'x'
4487 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4488
4489 int test (int i, double x);
4490 struct s1 {int (*f) (int a);};
4491 struct s2 {int (*f) (double a);};
4492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493 int argc;
4494 char **argv;
4495 int
4496 main ()
4497 {
4498 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4505 do
4506 CC="$ac_save_CC $ac_arg"
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_prog_cc_c89=$ac_arg
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext
4511 test "x$ac_cv_prog_cc_c89" != "xno" && break
4512 done
4513 rm -f conftest.$ac_ext
4514 CC=$ac_save_CC
4515
4516 fi
4517 # AC_CACHE_VAL
4518 case "x$ac_cv_prog_cc_c89" in
4519 x)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4521 $as_echo "none needed" >&6; } ;;
4522 xno)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4524 $as_echo "unsupported" >&6; } ;;
4525 *)
4526 CC="$CC $ac_cv_prog_cc_c89"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4529 esac
4530 if test "x$ac_cv_prog_cc_c89" != xno; then :
4531
4532 fi
4533
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
4540 ac_ext=cpp
4541 ac_cpp='$CXXCPP $CPPFLAGS'
4542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4545 if test -z "$CXX"; then
4546 if test -n "$CCC"; then
4547 CXX=$CCC
4548 else
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4551 do
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CXX+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$CXX"; then
4560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 CXX=$ac_cv_prog_CXX
4580 if test -n "$CXX"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4582 $as_echo "$CXX" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588
4589 test -n "$CXX" && break
4590 done
4591 fi
4592 if test -z "$CXX"; then
4593 ac_ct_CXX=$CXX
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4595 do
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$ac_ct_CXX"; then
4604 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_ac_ct_CXX="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4624 if test -n "$ac_ct_CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4626 $as_echo "$ac_ct_CXX" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 test -n "$ac_ct_CXX" && break
4634 done
4635
4636 if test "x$ac_ct_CXX" = x; then
4637 CXX="g++"
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 CXX=$ac_ct_CXX
4646 fi
4647 fi
4648
4649 fi
4650 fi
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4653 set X $ac_compile
4654 ac_compiler=$2
4655 for ac_option in --version -v -V -qversion; do
4656 { { ac_try="$ac_compiler $ac_option >&5"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4664 ac_status=$?
4665 if test -s conftest.err; then
4666 sed '10a\
4667 ... rest of stderr output deleted ...
4668 10q' conftest.err >conftest.er1
4669 cat conftest.er1 >&5
4670 rm -f conftest.er1 conftest.err
4671 fi
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4674 done
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683
4684 int
4685 main ()
4686 {
4687 #ifndef __GNUC__
4688 choke me
4689 #endif
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696 ac_compiler_gnu=yes
4697 else
4698 ac_compiler_gnu=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4705 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4706 if test $ac_compiler_gnu = yes; then
4707 GXX=yes
4708 else
4709 GXX=
4710 fi
4711 ac_test_CXXFLAGS=${CXXFLAGS+set}
4712 ac_save_CXXFLAGS=$CXXFLAGS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4714 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4719 ac_cxx_werror_flag=yes
4720 ac_cv_prog_cxx_g=no
4721 CXXFLAGS="-g"
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4734 ac_cv_prog_cxx_g=yes
4735 else
4736 CXXFLAGS=""
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749
4750 else
4751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4752 CXXFLAGS="-g"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_cxx_try_compile "$LINENO"; then :
4765 ac_cv_prog_cxx_g=yes
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4775 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4776 if test "$ac_test_CXXFLAGS" = set; then
4777 CXXFLAGS=$ac_save_CXXFLAGS
4778 elif test $ac_cv_prog_cxx_g = yes; then
4779 if test "$GXX" = yes; then
4780 CXXFLAGS="-g -O2"
4781 else
4782 CXXFLAGS="-g"
4783 fi
4784 else
4785 if test "$GXX" = yes; then
4786 CXXFLAGS="-O2"
4787 else
4788 CXXFLAGS=
4789 fi
4790 fi
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796
4797
4798
4799
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$GNATBIND"; then
4809 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 GNATBIND=$ac_cv_prog_GNATBIND
4829 if test -n "$GNATBIND"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4831 $as_echo "$GNATBIND" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 fi
4839 if test -z "$ac_cv_prog_GNATBIND"; then
4840 ac_ct_GNATBIND=$GNATBIND
4841 # Extract the first word of "gnatbind", so it can be a program name with args.
4842 set dummy gnatbind; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_GNATBIND"; then
4849 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4869 if test -n "$ac_ct_GNATBIND"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4871 $as_echo "$ac_ct_GNATBIND" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877 if test "x$ac_ct_GNATBIND" = x; then
4878 GNATBIND="no"
4879 else
4880 case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886 GNATBIND=$ac_ct_GNATBIND
4887 fi
4888 else
4889 GNATBIND="$ac_cv_prog_GNATBIND"
4890 fi
4891
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$GNATMAKE"; then
4901 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 GNATMAKE=$ac_cv_prog_GNATMAKE
4921 if test -n "$GNATMAKE"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4923 $as_echo "$GNATMAKE" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$ac_cv_prog_GNATMAKE"; then
4932 ac_ct_GNATMAKE=$GNATMAKE
4933 # Extract the first word of "gnatmake", so it can be a program name with args.
4934 set dummy gnatmake; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_GNATMAKE"; then
4941 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4963 $as_echo "$ac_ct_GNATMAKE" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969 if test "x$ac_ct_GNATMAKE" = x; then
4970 GNATMAKE="no"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 GNATMAKE=$ac_ct_GNATMAKE
4979 fi
4980 else
4981 GNATMAKE="$ac_cv_prog_GNATMAKE"
4982 fi
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4985 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4986 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat >conftest.adb <<EOF
4990 procedure conftest is begin null; end conftest;
4991 EOF
4992 acx_cv_cc_gcc_supports_ada=no
4993 # There is a bug in old released versions of GCC which causes the
4994 # driver to exit successfully when the appropriate language module
4995 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4996 # Therefore we must check for the error message as well as an
4997 # unsuccessful exit.
4998 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4999 # given a .adb file, but produce no object file. So we must check
5000 # if an object file was really produced to guard against this.
5001 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5002 if test x"$errors" = x && test -f conftest.$ac_objext; then
5003 acx_cv_cc_gcc_supports_ada=yes
5004 fi
5005 rm -f conftest.*
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5008 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5009
5010 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5011 have_gnat=yes
5012 else
5013 have_gnat=no
5014 fi
5015
5016
5017 # Do configure tests with the C++ compiler, since that's what we build with.
5018 ac_ext=cpp
5019 ac_cpp='$CXXCPP $CPPFLAGS'
5020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023
5024
5025 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5026 # optimizations to be activated explicitly by the toplevel.
5027 case "$CC" in
5028 */prev-gcc/xgcc*) ;;
5029 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5030 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5031 esac
5032
5033
5034
5035 # Determine PICFLAG for target gnatlib.
5036
5037
5038
5039
5040 case "${target}" in
5041 # PIC is the default on some targets or must not be used.
5042 *-*-darwin*)
5043 # For darwin, common symbols are not allowed in MH_DYLIB files
5044 case "${CFLAGS}" in
5045 # If we are using a compiler supporting mdynamic-no-pic
5046 # and the option has been tested as safe to add, then cancel
5047 # it here, since the code generated is incompatible with shared
5048 # libs.
5049 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5050 *) PICFLAG_FOR_TARGET=-fno-common ;;
5051 esac
5052 ;;
5053 alpha*-dec-osf5*)
5054 # PIC is the default.
5055 ;;
5056 hppa*64*-*-hpux*)
5057 # PIC is the default for 64-bit PA HP-UX.
5058 ;;
5059 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5060 ;;
5061 i[34567]86-*-mingw* | x86_64-*-mingw*)
5062 ;;
5063 i[34567]86-*-interix[3-9]*)
5064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5065 # Instead, we relocate shared libraries at runtime.
5066 ;;
5067 i[34567]86-*-nto-qnx*)
5068 # QNX uses GNU C++, but need to define -shared option too, otherwise
5069 # it will coredump.
5070 PICFLAG_FOR_TARGET='-fPIC -shared'
5071 ;;
5072 i[34567]86-pc-msdosdjgpp*)
5073 # DJGPP does not support shared libraries at all.
5074 ;;
5075 ia64*-*-hpux*)
5076 # On IA64 HP-UX, PIC is the default but the pic flag
5077 # sets the default TLS model and affects inlining.
5078 PICFLAG_FOR_TARGET=-fPIC
5079 ;;
5080 mips-sgi-irix6*)
5081 # PIC is the default.
5082 ;;
5083 rs6000-ibm-aix* | powerpc-ibm-aix*)
5084 # All AIX code is PIC.
5085 ;;
5086
5087 # Some targets support both -fPIC and -fpic, but prefer the latter.
5088 # FIXME: Why?
5089 i[34567]86-*-* | x86_64-*-*)
5090 PICFLAG_FOR_TARGET=-fpic
5091 ;;
5092 # FIXME: Override -fPIC default in libgcc only?
5093 sh-*-linux* | sh[2346lbe]*-*-linux*)
5094 PICFLAG_FOR_TARGET=-fpic
5095 ;;
5096 # FIXME: Simplify to sh*-*-netbsd*?
5097 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5098 sh64-*-netbsd* | sh64l*-*-netbsd*)
5099 PICFLAG_FOR_TARGET=-fpic
5100 ;;
5101 # Default to -fPIC unless specified otherwise.
5102 *)
5103 PICFLAG_FOR_TARGET=-fPIC
5104 ;;
5105 esac
5106
5107 # If the user explicitly uses -fpic/-fPIC, keep that.
5108 case "${CFLAGS_FOR_TARGET}" in
5109 *-fpic*)
5110 PICFLAG_FOR_TARGET=-fpic
5111 ;;
5112 *-fPIC*)
5113 PICFLAG_FOR_TARGET=-fPIC
5114 ;;
5115 esac
5116
5117
5118
5119 # -------------------------
5120 # Check C compiler features
5121 # -------------------------
5122
5123
5124 ac_ext=cpp
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5130 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5131 if test -z "$CXXCPP"; then
5132 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 # Double quotes because CXXCPP needs to be expanded
5136 for CXXCPP in "$CXX -E" "/lib/cpp"
5137 do
5138 ac_preproc_ok=false
5139 for ac_cxx_preproc_warn_flag in '' yes
5140 do
5141 # Use a header file that comes with gcc, so configuring glibc
5142 # with a fresh cross-compiler works.
5143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144 # <limits.h> exists even on freestanding compilers.
5145 # On the NeXT, cc -E runs the code through the compiler's parser,
5146 # not just through cpp. "Syntax error" is here to catch this case.
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if ac_fn_cxx_try_cpp "$LINENO"; then :
5157
5158 else
5159 # Broken: fails on valid input.
5160 continue
5161 fi
5162 rm -f conftest.err conftest.$ac_ext
5163
5164 # OK, works on sane cases. Now check whether nonexistent headers
5165 # can be detected and how.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if ac_fn_cxx_try_cpp "$LINENO"; then :
5171 # Broken: success on invalid input.
5172 continue
5173 else
5174 # Passes both tests.
5175 ac_preproc_ok=:
5176 break
5177 fi
5178 rm -f conftest.err conftest.$ac_ext
5179
5180 done
5181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182 rm -f conftest.err conftest.$ac_ext
5183 if $ac_preproc_ok; then :
5184 break
5185 fi
5186
5187 done
5188 ac_cv_prog_CXXCPP=$CXXCPP
5189
5190 fi
5191 CXXCPP=$ac_cv_prog_CXXCPP
5192 else
5193 ac_cv_prog_CXXCPP=$CXXCPP
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5196 $as_echo "$CXXCPP" >&6; }
5197 ac_preproc_ok=false
5198 for ac_cxx_preproc_warn_flag in '' yes
5199 do
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #ifdef __STDC__
5209 # include <limits.h>
5210 #else
5211 # include <assert.h>
5212 #endif
5213 Syntax error
5214 _ACEOF
5215 if ac_fn_cxx_try_cpp "$LINENO"; then :
5216
5217 else
5218 # Broken: fails on valid input.
5219 continue
5220 fi
5221 rm -f conftest.err conftest.$ac_ext
5222
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <ac_nonexistent.h>
5228 _ACEOF
5229 if ac_fn_cxx_try_cpp "$LINENO"; then :
5230 # Broken: success on invalid input.
5231 continue
5232 else
5233 # Passes both tests.
5234 ac_preproc_ok=:
5235 break
5236 fi
5237 rm -f conftest.err conftest.$ac_ext
5238
5239 done
5240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241 rm -f conftest.err conftest.$ac_ext
5242 if $ac_preproc_ok; then :
5243
5244 else
5245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5248 See \`config.log' for more details." "$LINENO" 5; }
5249 fi
5250
5251 ac_ext=cpp
5252 ac_cpp='$CXXCPP $CPPFLAGS'
5253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5259 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5260 if test "${ac_cv_path_GREP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -z "$GREP"; then
5264 ac_path_GREP_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in grep ggrep; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5275 # Check for GNU ac_path_GREP and select it if it is found.
5276 # Check for GNU $ac_path_GREP
5277 case `"$ac_path_GREP" --version 2>&1` in
5278 *GNU*)
5279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5280 *)
5281 ac_count=0
5282 $as_echo_n 0123456789 >"conftest.in"
5283 while :
5284 do
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo 'GREP' >> "conftest.nl"
5289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 as_fn_arith $ac_count + 1 && ac_count=$as_val
5292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_GREP="$ac_path_GREP"
5295 ac_path_GREP_max=$ac_count
5296 fi
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5299 done
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5302
5303 $ac_path_GREP_found && break 3
5304 done
5305 done
5306 done
5307 IFS=$as_save_IFS
5308 if test -z "$ac_cv_path_GREP"; then
5309 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5310 fi
5311 else
5312 ac_cv_path_GREP=$GREP
5313 fi
5314
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5317 $as_echo "$ac_cv_path_GREP" >&6; }
5318 GREP="$ac_cv_path_GREP"
5319
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5322 $as_echo_n "checking for egrep... " >&6; }
5323 if test "${ac_cv_path_EGREP+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327 then ac_cv_path_EGREP="$GREP -E"
5328 else
5329 if test -z "$EGREP"; then
5330 ac_path_EGREP_found=false
5331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334 do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_prog in egrep; do
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5340 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5341 # Check for GNU ac_path_EGREP and select it if it is found.
5342 # Check for GNU $ac_path_EGREP
5343 case `"$ac_path_EGREP" --version 2>&1` in
5344 *GNU*)
5345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5346 *)
5347 ac_count=0
5348 $as_echo_n 0123456789 >"conftest.in"
5349 while :
5350 do
5351 cat "conftest.in" "conftest.in" >"conftest.tmp"
5352 mv "conftest.tmp" "conftest.in"
5353 cp "conftest.in" "conftest.nl"
5354 $as_echo 'EGREP' >> "conftest.nl"
5355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5357 as_fn_arith $ac_count + 1 && ac_count=$as_val
5358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5359 # Best one so far, save it but keep looking for a better one
5360 ac_cv_path_EGREP="$ac_path_EGREP"
5361 ac_path_EGREP_max=$ac_count
5362 fi
5363 # 10*(2^10) chars as input seems more than enough
5364 test $ac_count -gt 10 && break
5365 done
5366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367 esac
5368
5369 $ac_path_EGREP_found && break 3
5370 done
5371 done
5372 done
5373 IFS=$as_save_IFS
5374 if test -z "$ac_cv_path_EGREP"; then
5375 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5376 fi
5377 else
5378 ac_cv_path_EGREP=$EGREP
5379 fi
5380
5381 fi
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5384 $as_echo "$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5389 $as_echo_n "checking for ANSI C header files... " >&6; }
5390 if test "${ac_cv_header_stdc+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <stdlib.h>
5396 #include <stdarg.h>
5397 #include <string.h>
5398 #include <float.h>
5399
5400 int
5401 main ()
5402 {
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_cxx_try_compile "$LINENO"; then :
5409 ac_cv_header_stdc=yes
5410 else
5411 ac_cv_header_stdc=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414
5415 if test $ac_cv_header_stdc = yes; then
5416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <string.h>
5420
5421 _ACEOF
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "memchr" >/dev/null 2>&1; then :
5424
5425 else
5426 ac_cv_header_stdc=no
5427 fi
5428 rm -f conftest*
5429
5430 fi
5431
5432 if test $ac_cv_header_stdc = yes; then
5433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <stdlib.h>
5437
5438 _ACEOF
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "free" >/dev/null 2>&1; then :
5441
5442 else
5443 ac_cv_header_stdc=no
5444 fi
5445 rm -f conftest*
5446
5447 fi
5448
5449 if test $ac_cv_header_stdc = yes; then
5450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5451 if test "$cross_compiling" = yes; then :
5452 :
5453 else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #include <ctype.h>
5457 #include <stdlib.h>
5458 #if ((' ' & 0x0FF) == 0x020)
5459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5461 #else
5462 # define ISLOWER(c) \
5463 (('a' <= (c) && (c) <= 'i') \
5464 || ('j' <= (c) && (c) <= 'r') \
5465 || ('s' <= (c) && (c) <= 'z'))
5466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5467 #endif
5468
5469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5470 int
5471 main ()
5472 {
5473 int i;
5474 for (i = 0; i < 256; i++)
5475 if (XOR (islower (i), ISLOWER (i))
5476 || toupper (i) != TOUPPER (i))
5477 return 2;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_cxx_try_run "$LINENO"; then :
5482
5483 else
5484 ac_cv_header_stdc=no
5485 fi
5486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5487 conftest.$ac_objext conftest.beam conftest.$ac_ext
5488 fi
5489
5490 fi
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5493 $as_echo "$ac_cv_header_stdc" >&6; }
5494 if test $ac_cv_header_stdc = yes; then
5495
5496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5497
5498 fi
5499
5500 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5502 inttypes.h stdint.h unistd.h
5503 do :
5504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5506 "
5507 eval as_val=\$$as_ac_Header
5508 if test "x$as_val" = x""yes; then :
5509 cat >>confdefs.h <<_ACEOF
5510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511 _ACEOF
5512
5513 fi
5514
5515 done
5516
5517
5518
5519 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5520 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5521 MINIX=yes
5522 else
5523 MINIX=
5524 fi
5525
5526
5527 if test "$MINIX" = yes; then
5528
5529 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5530
5531
5532 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5533
5534
5535 $as_echo "#define _MINIX 1" >>confdefs.h
5536
5537 fi
5538
5539
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5541 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5542 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547
5548 # define __EXTENSIONS__ 1
5549 $ac_includes_default
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_cxx_try_compile "$LINENO"; then :
5559 ac_cv_safe_to_define___extensions__=yes
5560 else
5561 ac_cv_safe_to_define___extensions__=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5566 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5567 test $ac_cv_safe_to_define___extensions__ = yes &&
5568 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5569
5570 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5571
5572 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5573
5574 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5575
5576 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5577
5578
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5586 # On Suns, sometimes $CPP names a directory.
5587 if test -n "$CPP" && test -d "$CPP"; then
5588 CPP=
5589 fi
5590 if test -z "$CPP"; then
5591 if test "${ac_cv_prog_CPP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 # Double quotes because CPP needs to be expanded
5595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5596 do
5597 ac_preproc_ok=false
5598 for ac_c_preproc_warn_flag in '' yes
5599 do
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613 Syntax error
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5616
5617 else
5618 # Broken: fails on valid input.
5619 continue
5620 fi
5621 rm -f conftest.err conftest.$ac_ext
5622
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if ac_fn_c_try_cpp "$LINENO"; then :
5630 # Broken: success on invalid input.
5631 continue
5632 else
5633 # Passes both tests.
5634 ac_preproc_ok=:
5635 break
5636 fi
5637 rm -f conftest.err conftest.$ac_ext
5638
5639 done
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.err conftest.$ac_ext
5642 if $ac_preproc_ok; then :
5643 break
5644 fi
5645
5646 done
5647 ac_cv_prog_CPP=$CPP
5648
5649 fi
5650 CPP=$ac_cv_prog_CPP
5651 else
5652 ac_cv_prog_CPP=$CPP
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5655 $as_echo "$CPP" >&6; }
5656 ac_preproc_ok=false
5657 for ac_c_preproc_warn_flag in '' yes
5658 do
5659 # Use a header file that comes with gcc, so configuring glibc
5660 # with a fresh cross-compiler works.
5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 # <limits.h> exists even on freestanding compilers.
5663 # On the NeXT, cc -E runs the code through the compiler's parser,
5664 # not just through cpp. "Syntax error" is here to catch this case.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #ifdef __STDC__
5668 # include <limits.h>
5669 #else
5670 # include <assert.h>
5671 #endif
5672 Syntax error
5673 _ACEOF
5674 if ac_fn_c_try_cpp "$LINENO"; then :
5675
5676 else
5677 # Broken: fails on valid input.
5678 continue
5679 fi
5680 rm -f conftest.err conftest.$ac_ext
5681
5682 # OK, works on sane cases. Now check whether nonexistent headers
5683 # can be detected and how.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5687 _ACEOF
5688 if ac_fn_c_try_cpp "$LINENO"; then :
5689 # Broken: success on invalid input.
5690 continue
5691 else
5692 # Passes both tests.
5693 ac_preproc_ok=:
5694 break
5695 fi
5696 rm -f conftest.err conftest.$ac_ext
5697
5698 done
5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700 rm -f conftest.err conftest.$ac_ext
5701 if $ac_preproc_ok; then :
5702
5703 else
5704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5706 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5707 See \`config.log' for more details." "$LINENO" 5; }
5708 fi
5709
5710 ac_ext=cpp
5711 ac_cpp='$CXXCPP $CPPFLAGS'
5712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5717 $as_echo_n "checking for inline... " >&6; }
5718 if test "${ac_cv_c_inline+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 ac_cv_c_inline=no
5722 for ac_kw in inline __inline__ __inline; do
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #ifndef __cplusplus
5726 typedef int foo_t;
5727 static $ac_kw foo_t static_foo () {return 0; }
5728 $ac_kw foo_t foo () {return 0; }
5729 #endif
5730
5731 _ACEOF
5732 if ac_fn_cxx_try_compile "$LINENO"; then :
5733 ac_cv_c_inline=$ac_kw
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 test "$ac_cv_c_inline" != no && break
5737 done
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5741 $as_echo "$ac_cv_c_inline" >&6; }
5742
5743 case $ac_cv_c_inline in
5744 inline | yes) ;;
5745 *)
5746 case $ac_cv_c_inline in
5747 no) ac_val=;;
5748 *) ac_val=$ac_cv_c_inline;;
5749 esac
5750 cat >>confdefs.h <<_ACEOF
5751 #ifndef __cplusplus
5752 #define inline $ac_val
5753 #endif
5754 _ACEOF
5755 ;;
5756 esac
5757
5758
5759 # Check whether --enable-largefile was given.
5760 if test "${enable_largefile+set}" = set; then :
5761 enableval=$enable_largefile;
5762 fi
5763
5764 if test "$enable_largefile" != no; then
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5767 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5768 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 ac_cv_sys_largefile_CC=no
5772 if test "$GCC" != yes; then
5773 ac_save_CC=$CC
5774 while :; do
5775 # IRIX 6.2 and later do not support large files by default,
5776 # so use the C compiler's -n32 option if that helps.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5787 ? 1 : -1];
5788 int
5789 main ()
5790 {
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5797 break
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext
5800 CC="$CC -n32"
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_sys_largefile_CC=' -n32'; break
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext
5805 break
5806 done
5807 CC=$ac_save_CC
5808 rm -f conftest.$ac_ext
5809 fi
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5813 if test "$ac_cv_sys_largefile_CC" != no; then
5814 CC=$CC$ac_cv_sys_largefile_CC
5815 fi
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 while :; do
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5834 int
5835 main ()
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_cxx_try_compile "$LINENO"; then :
5843 ac_cv_sys_file_offset_bits=no; break
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #define _FILE_OFFSET_BITS 64
5849 #include <sys/types.h>
5850 /* Check that off_t can represent 2**63 - 1 correctly.
5851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5852 since some C++ compilers masquerading as C compilers
5853 incorrectly reject 9223372036854775807. */
5854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5856 && LARGE_OFF_T % 2147483647 == 1)
5857 ? 1 : -1];
5858 int
5859 main ()
5860 {
5861
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_cxx_try_compile "$LINENO"; then :
5867 ac_cv_sys_file_offset_bits=64; break
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_sys_file_offset_bits=unknown
5871 break
5872 done
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5875 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5876 case $ac_cv_sys_file_offset_bits in #(
5877 no | unknown) ;;
5878 *)
5879 cat >>confdefs.h <<_ACEOF
5880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5881 _ACEOF
5882 ;;
5883 esac
5884 rm -rf conftest*
5885 if test $ac_cv_sys_file_offset_bits = unknown; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5887 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5888 if test "${ac_cv_sys_large_files+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 while :; do
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5902 ? 1 : -1];
5903 int
5904 main ()
5905 {
5906
5907 ;
5908 return 0;
5909 }
5910 _ACEOF
5911 if ac_fn_cxx_try_compile "$LINENO"; then :
5912 ac_cv_sys_large_files=no; break
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #define _LARGE_FILES 1
5918 #include <sys/types.h>
5919 /* Check that off_t can represent 2**63 - 1 correctly.
5920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5921 since some C++ compilers masquerading as C compilers
5922 incorrectly reject 9223372036854775807. */
5923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5925 && LARGE_OFF_T % 2147483647 == 1)
5926 ? 1 : -1];
5927 int
5928 main ()
5929 {
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_cxx_try_compile "$LINENO"; then :
5936 ac_cv_sys_large_files=1; break
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cv_sys_large_files=unknown
5940 break
5941 done
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5944 $as_echo "$ac_cv_sys_large_files" >&6; }
5945 case $ac_cv_sys_large_files in #(
5946 no | unknown) ;;
5947 *)
5948 cat >>confdefs.h <<_ACEOF
5949 #define _LARGE_FILES $ac_cv_sys_large_files
5950 _ACEOF
5951 ;;
5952 esac
5953 rm -rf conftest*
5954 fi
5955 fi
5956
5957
5958 # sizeof(char) is 1 by definition.
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5964 $as_echo_n "checking size of void *... " >&6; }
5965 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5969
5970 else
5971 if test "$ac_cv_type_void_p" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (void *)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_void_p=0
5979 fi
5980 fi
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5984 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5985
5986
5987
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5990 _ACEOF
5991
5992
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5998 $as_echo_n "checking size of short... " >&6; }
5999 if test "${ac_cv_sizeof_short+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6003
6004 else
6005 if test "$ac_cv_type_short" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (short)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_short=0
6013 fi
6014 fi
6015
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6018 $as_echo "$ac_cv_sizeof_short" >&6; }
6019
6020
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_SHORT $ac_cv_sizeof_short
6024 _ACEOF
6025
6026
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6032 $as_echo_n "checking size of int... " >&6; }
6033 if test "${ac_cv_sizeof_int+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6037
6038 else
6039 if test "$ac_cv_type_int" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (int)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_int=0
6047 fi
6048 fi
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6052 $as_echo "$ac_cv_sizeof_int" >&6; }
6053
6054
6055
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_INT $ac_cv_sizeof_int
6058 _ACEOF
6059
6060
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6066 $as_echo_n "checking size of long... " >&6; }
6067 if test "${ac_cv_sizeof_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6071
6072 else
6073 if test "$ac_cv_type_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status 77
6077 as_fn_error "cannot compute sizeof (long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6079 else
6080 ac_cv_sizeof_long=0
6081 fi
6082 fi
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6086 $as_echo "$ac_cv_sizeof_long" >&6; }
6087
6088
6089
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF_LONG $ac_cv_sizeof_long
6092 _ACEOF
6093
6094
6095 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6096 if test "x$ac_cv_type_long_long" = x""yes; then :
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_LONG_LONG 1
6100 _ACEOF
6101
6102 # The cast to long int works around a bug in the HP C Compiler
6103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6105 # This bug is HP SR number 8606223364.
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6107 $as_echo_n "checking size of long long... " >&6; }
6108 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6112
6113 else
6114 if test "$ac_cv_type_long_long" = yes; then
6115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 { as_fn_set_status 77
6118 as_fn_error "cannot compute sizeof (long long)
6119 See \`config.log' for more details." "$LINENO" 5; }; }
6120 else
6121 ac_cv_sizeof_long_long=0
6122 fi
6123 fi
6124
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6127 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6128
6129
6130
6131 cat >>confdefs.h <<_ACEOF
6132 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6133 _ACEOF
6134
6135
6136 fi
6137
6138 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6139 case $ac_cv_c_int8_t in #(
6140 no|yes) ;; #(
6141 *)
6142
6143 cat >>confdefs.h <<_ACEOF
6144 #define int8_t $ac_cv_c_int8_t
6145 _ACEOF
6146 ;;
6147 esac
6148
6149 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6150 case $ac_cv_c_int16_t in #(
6151 no|yes) ;; #(
6152 *)
6153
6154 cat >>confdefs.h <<_ACEOF
6155 #define int16_t $ac_cv_c_int16_t
6156 _ACEOF
6157 ;;
6158 esac
6159
6160 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6161 case $ac_cv_c_int32_t in #(
6162 no|yes) ;; #(
6163 *)
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define int32_t $ac_cv_c_int32_t
6167 _ACEOF
6168 ;;
6169 esac
6170
6171 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6172 case $ac_cv_c_int64_t in #(
6173 no|yes) ;; #(
6174 *)
6175
6176 cat >>confdefs.h <<_ACEOF
6177 #define int64_t $ac_cv_c_int64_t
6178 _ACEOF
6179 ;;
6180 esac
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6184 $as_echo_n "checking for long long int... " >&6; }
6185 if test "${ac_cv_type_long_long_int+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190
6191 /* For now, do not test the preprocessor; as of 2007 there are too many
6192 implementations with broken preprocessors. Perhaps this can
6193 be revisited in 2012. In the meantime, code should not expect
6194 #if to work with literals wider than 32 bits. */
6195 /* Test literals. */
6196 long long int ll = 9223372036854775807ll;
6197 long long int nll = -9223372036854775807LL;
6198 unsigned long long int ull = 18446744073709551615ULL;
6199 /* Test constant expressions. */
6200 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6201 ? 1 : -1)];
6202 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6203 ? 1 : -1)];
6204 int i = 63;
6205 int
6206 main ()
6207 {
6208 /* Test availability of runtime routines for shift and division. */
6209 long long int llmax = 9223372036854775807ll;
6210 unsigned long long int ullmax = 18446744073709551615ull;
6211 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6212 | (llmax / ll) | (llmax % ll)
6213 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6214 | (ullmax / ull) | (ullmax % ull));
6215 ;
6216 return 0;
6217 }
6218
6219 _ACEOF
6220 if ac_fn_cxx_try_link "$LINENO"; then :
6221 if test "$cross_compiling" = yes; then :
6222 ac_cv_type_long_long_int=yes
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <limits.h>
6227 #ifndef LLONG_MAX
6228 # define HALF \
6229 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6230 # define LLONG_MAX (HALF - 1 + HALF)
6231 #endif
6232 int
6233 main ()
6234 {
6235 long long int n = 1;
6236 int i;
6237 for (i = 0; ; i++)
6238 {
6239 long long int m = n << i;
6240 if (m >> i != n)
6241 return 1;
6242 if (LLONG_MAX / 2 < m)
6243 break;
6244 }
6245 return 0;
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_cxx_try_run "$LINENO"; then :
6251 ac_cv_type_long_long_int=yes
6252 else
6253 ac_cv_type_long_long_int=no
6254 fi
6255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6256 conftest.$ac_objext conftest.beam conftest.$ac_ext
6257 fi
6258
6259 else
6260 ac_cv_type_long_long_int=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6266 $as_echo "$ac_cv_type_long_long_int" >&6; }
6267 if test $ac_cv_type_long_long_int = yes; then
6268
6269 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6270
6271 fi
6272
6273
6274
6275 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6276 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6277
6278 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6279
6280 else
6281 test $ac_cv_type_long_long_int = yes \
6282 && ac_type='long long int' \
6283 || ac_type='long int'
6284
6285 cat >>confdefs.h <<_ACEOF
6286 #define intmax_t $ac_type
6287 _ACEOF
6288
6289 fi
6290
6291
6292
6293 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6294 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6295
6296 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6297
6298 else
6299 for ac_type in 'int' 'long int' 'long long int'; do
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 int
6304 main ()
6305 {
6306 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6307 test_array [0] = 0
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_cxx_try_compile "$LINENO"; then :
6314
6315 cat >>confdefs.h <<_ACEOF
6316 #define intptr_t $ac_type
6317 _ACEOF
6318
6319 ac_type=
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 test -z "$ac_type" && break
6323 done
6324 fi
6325
6326
6327 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6328 case $ac_cv_c_uint8_t in #(
6329 no|yes) ;; #(
6330 *)
6331
6332 $as_echo "#define _UINT8_T 1" >>confdefs.h
6333
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define uint8_t $ac_cv_c_uint8_t
6337 _ACEOF
6338 ;;
6339 esac
6340
6341 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6342 case $ac_cv_c_uint16_t in #(
6343 no|yes) ;; #(
6344 *)
6345
6346
6347 cat >>confdefs.h <<_ACEOF
6348 #define uint16_t $ac_cv_c_uint16_t
6349 _ACEOF
6350 ;;
6351 esac
6352
6353 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6354 case $ac_cv_c_uint32_t in #(
6355 no|yes) ;; #(
6356 *)
6357
6358 $as_echo "#define _UINT32_T 1" >>confdefs.h
6359
6360
6361 cat >>confdefs.h <<_ACEOF
6362 #define uint32_t $ac_cv_c_uint32_t
6363 _ACEOF
6364 ;;
6365 esac
6366
6367 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6368 case $ac_cv_c_uint64_t in #(
6369 no|yes) ;; #(
6370 *)
6371
6372 $as_echo "#define _UINT64_T 1" >>confdefs.h
6373
6374
6375 cat >>confdefs.h <<_ACEOF
6376 #define uint64_t $ac_cv_c_uint64_t
6377 _ACEOF
6378 ;;
6379 esac
6380
6381
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6383 $as_echo_n "checking for unsigned long long int... " >&6; }
6384 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389
6390 /* For now, do not test the preprocessor; as of 2007 there are too many
6391 implementations with broken preprocessors. Perhaps this can
6392 be revisited in 2012. In the meantime, code should not expect
6393 #if to work with literals wider than 32 bits. */
6394 /* Test literals. */
6395 long long int ll = 9223372036854775807ll;
6396 long long int nll = -9223372036854775807LL;
6397 unsigned long long int ull = 18446744073709551615ULL;
6398 /* Test constant expressions. */
6399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6400 ? 1 : -1)];
6401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6402 ? 1 : -1)];
6403 int i = 63;
6404 int
6405 main ()
6406 {
6407 /* Test availability of runtime routines for shift and division. */
6408 long long int llmax = 9223372036854775807ll;
6409 unsigned long long int ullmax = 18446744073709551615ull;
6410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6411 | (llmax / ll) | (llmax % ll)
6412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6413 | (ullmax / ull) | (ullmax % ull));
6414 ;
6415 return 0;
6416 }
6417
6418 _ACEOF
6419 if ac_fn_cxx_try_link "$LINENO"; then :
6420 ac_cv_type_unsigned_long_long_int=yes
6421 else
6422 ac_cv_type_unsigned_long_long_int=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6428 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6429 if test $ac_cv_type_unsigned_long_long_int = yes; then
6430
6431 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6432
6433 fi
6434
6435
6436
6437 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6438 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6439
6440 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6441
6442 else
6443 test $ac_cv_type_unsigned_long_long_int = yes \
6444 && ac_type='unsigned long long int' \
6445 || ac_type='unsigned long int'
6446
6447 cat >>confdefs.h <<_ACEOF
6448 #define uintmax_t $ac_type
6449 _ACEOF
6450
6451 fi
6452
6453
6454
6455 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6456 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6457
6458 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6459
6460 else
6461 for ac_type in 'unsigned int' 'unsigned long int' \
6462 'unsigned long long int'; do
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 $ac_includes_default
6466 int
6467 main ()
6468 {
6469 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6470 test_array [0] = 0
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_cxx_try_compile "$LINENO"; then :
6477
6478 cat >>confdefs.h <<_ACEOF
6479 #define uintptr_t $ac_type
6480 _ACEOF
6481
6482 ac_type=
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 test -z "$ac_type" && break
6486 done
6487 fi
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6503 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6504 fi
6505
6506 # check what underlying integer type int64_t uses
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6508 $as_echo_n "checking for int64_t underlying type... " >&6; }
6509 if test "${ac_cv_int64_t_type+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515
6516 #ifdef HAVE_STDINT_H
6517 #include <stdint.h>
6518 #endif
6519 template <typename T> struct X { };
6520 template <>
6521 struct X<long> { typedef long t; };
6522
6523 int
6524 main ()
6525 {
6526 X<int64_t>::t x;
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6532 ac_cv_int64_t_type=long
6533 else
6534 ac_cv_int64_t_type="long long"
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6539 $as_echo "$ac_cv_int64_t_type" >&6; }
6540 if test "$ac_cv_int64_t_type" = "long"; then
6541
6542 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6543
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547
6548 #ifdef HAVE_STDINT_H
6549 #include <stdint.h>
6550 #endif
6551 template <typename T> struct X { };
6552 template <>
6553 struct X<long long> { typedef long long t; };
6554
6555 int
6556 main ()
6557 {
6558 X<int64_t>::t x;
6559 ;
6560 return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_cxx_try_compile "$LINENO"; then :
6564
6565 else
6566 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 fi
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6572 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6573 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579
6580 #include <utility>
6581
6582 int
6583 main ()
6584 {
6585 int a, b; std::swap(a,b);
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_cxx_try_compile "$LINENO"; then :
6591 ac_cv_std_swap_in_utility=yes
6592 else
6593 ac_cv_std_swap_in_utility=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6598 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6599 if test $ac_cv_std_swap_in_utility = yes; then
6600
6601 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6602
6603 fi
6604
6605 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6606 # If the host compiler is affected by the bug, and we build with optimization
6607 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6608 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6609 # Since there is no reliable feature check for the presence of this bug,
6610 # we simply use a GCC version number check. (This should never trigger for
6611 # stages 2 or 3 of a native bootstrap.)
6612 aliasing_flags=
6613 if test "$GCC" = yes; then
6614 saved_CXXFLAGS="$CXXFLAGS"
6615
6616 # The following test compilation will succeed if and only if $CXX accepts
6617 # -fno-strict-aliasing *and* is older than GCC 4.3.
6618 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6620 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623
6624 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6625 #error compiler not affected by placement new aliasing bug
6626 #endif
6627
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637
6638 CXXFLAGS="$saved_CXXFLAGS"
6639 fi
6640
6641
6642
6643
6644 # ---------------------
6645 # Warnings and checking
6646 # ---------------------
6647
6648 # Check $CC warning features (if it's GCC).
6649 # We want to use -pedantic, but we don't want warnings about
6650 # * 'long long'
6651 # * variadic macros
6652 # * overlong strings
6653 # * C++11 narrowing conversions in { }
6654 # So, we only use -pedantic if we can disable those warnings.
6655
6656 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6657 # Check whether --enable-build-format-warnings was given.
6658 if test "${enable_build_format_warnings+set}" = set; then :
6659 enableval=$enable_build_format_warnings;
6660 else
6661 enable_build_format_warnings=yes
6662 fi
6663
6664 if test $enable_build_format_warnings = no; then :
6665 wf_opt=-Wno-format
6666 else
6667 wf_opt=
6668 fi
6669 ac_ext=cpp
6670 ac_cpp='$CXXCPP $CPPFLAGS'
6671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6674
6675 loose_warn=
6676 save_CXXFLAGS="$CXXFLAGS"
6677 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6678 # Do the check with the no- prefix removed since gcc silently
6679 # accepts any -Wno-* option on purpose
6680 case $real_option in
6681 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6682 *) option=$real_option ;;
6683 esac
6684 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6685
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6687 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6688 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 CXXFLAGS="$option"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694
6695 int
6696 main ()
6697 {
6698
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 if ac_fn_cxx_try_compile "$LINENO"; then :
6704 eval "$as_acx_Woption=yes"
6705 else
6706 eval "$as_acx_Woption=no"
6707 fi
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709
6710 fi
6711 eval ac_res=\$$as_acx_Woption
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6713 $as_echo "$ac_res" >&6; }
6714 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6715 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6716 fi
6717 done
6718 CXXFLAGS="$save_CXXFLAGS"
6719 ac_ext=cpp
6720 ac_cpp='$CXXCPP $CPPFLAGS'
6721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6724
6725
6726
6727 ac_ext=c
6728 ac_cpp='$CPP $CPPFLAGS'
6729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
6733 c_loose_warn=
6734 save_CFLAGS="$CFLAGS"
6735 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6736 # Do the check with the no- prefix removed since gcc silently
6737 # accepts any -Wno-* option on purpose
6738 case $real_option in
6739 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6740 *) option=$real_option ;;
6741 esac
6742 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6745 $as_echo_n "checking whether $CC supports $option... " >&6; }
6746 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 CFLAGS="$option"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752
6753 int
6754 main ()
6755 {
6756
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 eval "$as_acx_Woption=yes"
6763 else
6764 eval "$as_acx_Woption=no"
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767
6768 fi
6769 eval ac_res=\$$as_acx_Woption
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6771 $as_echo "$ac_res" >&6; }
6772 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6773 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6774 fi
6775 done
6776 CFLAGS="$save_CFLAGS"
6777 ac_ext=cpp
6778 ac_cpp='$CXXCPP $CPPFLAGS'
6779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6782
6783
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6789
6790 strict_warn=
6791 save_CXXFLAGS="$CXXFLAGS"
6792 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6793 # Do the check with the no- prefix removed since gcc silently
6794 # accepts any -Wno-* option on purpose
6795 case $real_option in
6796 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6797 *) option=$real_option ;;
6798 esac
6799 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6802 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6803 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 CXXFLAGS="$option"
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809
6810 int
6811 main ()
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_cxx_try_compile "$LINENO"; then :
6819 eval "$as_acx_Woption=yes"
6820 else
6821 eval "$as_acx_Woption=no"
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824
6825 fi
6826 eval ac_res=\$$as_acx_Woption
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6828 $as_echo "$ac_res" >&6; }
6829 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6830 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6831 fi
6832 done
6833 CXXFLAGS="$save_CXXFLAGS"
6834 ac_ext=cpp
6835 ac_cpp='$CXXCPP $CPPFLAGS'
6836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6839
6840
6841 ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847 c_strict_warn=
6848 save_CFLAGS="$CFLAGS"
6849 for real_option in -Wold-style-definition -Wc++-compat; do
6850 # Do the check with the no- prefix removed since gcc silently
6851 # accepts any -Wno-* option on purpose
6852 case $real_option in
6853 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6854 *) option=$real_option ;;
6855 esac
6856 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6859 $as_echo_n "checking whether $CC supports $option... " >&6; }
6860 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 CFLAGS="$option"
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866
6867 int
6868 main ()
6869 {
6870
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 eval "$as_acx_Woption=yes"
6877 else
6878 eval "$as_acx_Woption=no"
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881
6882 fi
6883 eval ac_res=\$$as_acx_Woption
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6887 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6888 fi
6889 done
6890 CFLAGS="$save_CFLAGS"
6891 ac_ext=cpp
6892 ac_cpp='$CXXCPP $CPPFLAGS'
6893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6896
6897
6898 ac_ext=cpp
6899 ac_cpp='$CXXCPP $CPPFLAGS'
6900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6903
6904 # Do the check with the no- prefix removed from the warning options
6905 # since gcc silently accepts any -Wno-* option on purpose
6906 if test "$GXX" = yes; then :
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6908 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6909 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 save_CXXFLAGS="$CXXFLAGS"
6913 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916
6917 int
6918 main ()
6919 {
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_cxx_try_compile "$LINENO"; then :
6926 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6927 else
6928 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 CXXFLAGS="$save_CXXFLAGS"
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6934 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6935 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6936 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6937 fi
6938
6939 fi
6940 ac_ext=cpp
6941 ac_cpp='$CXXCPP $CPPFLAGS'
6942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6945
6946
6947 ac_ext=cpp
6948 ac_cpp='$CXXCPP $CPPFLAGS'
6949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6952
6953 # Check whether --enable-werror-always was given.
6954 if test "${enable_werror_always+set}" = set; then :
6955 enableval=$enable_werror_always;
6956 else
6957 enable_werror_always=no
6958 fi
6959
6960 if test $enable_werror_always = yes; then :
6961 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6962 fi
6963
6964 ac_ext=cpp
6965 ac_cpp='$CXXCPP $CPPFLAGS'
6966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6969
6970
6971
6972 # The above macros do nothing if the compiler is not GCC. However, the
6973 # Makefile has more goo to add other flags, so these variables are used
6974 # to enable warnings only for GCC.
6975 warn_cflags=
6976 warn_cxxflags=
6977 if test "x$GCC" = "xyes"; then
6978 warn_cflags='$(GCC_WARN_CFLAGS)'
6979 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6980 fi
6981
6982
6983
6984 # Disable exceptions and RTTI if building with g++
6985 ac_ext=c
6986 ac_cpp='$CPP $CPPFLAGS'
6987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990
6991 noexception_flags=
6992 save_CFLAGS="$CFLAGS"
6993 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6994 # Do the check with the no- prefix removed since gcc silently
6995 # accepts any -Wno-* option on purpose
6996 case $real_option in
6997 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6998 *) option=$real_option ;;
6999 esac
7000 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7003 $as_echo_n "checking whether $CC supports $option... " >&6; }
7004 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 CFLAGS="$option"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010
7011 int
7012 main ()
7013 {
7014
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020 eval "$as_acx_Woption=yes"
7021 else
7022 eval "$as_acx_Woption=no"
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025
7026 fi
7027 eval ac_res=\$$as_acx_Woption
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7029 $as_echo "$ac_res" >&6; }
7030 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7031 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7032 fi
7033 done
7034 CFLAGS="$save_CFLAGS"
7035 ac_ext=cpp
7036 ac_cpp='$CXXCPP $CPPFLAGS'
7037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7040
7041
7042
7043 # Enable expensive internal checks
7044 is_release=
7045 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7046 is_release=yes
7047 fi
7048
7049 # Check whether --enable-checking was given.
7050 if test "${enable_checking+set}" = set; then :
7051 enableval=$enable_checking; ac_checking_flags="${enableval}"
7052 else
7053
7054 # Determine the default checks.
7055 if test x$is_release = x ; then
7056 ac_checking_flags=yes,extra
7057 else
7058 ac_checking_flags=release
7059 fi
7060 fi
7061
7062 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7063 for check in release $ac_checking_flags
7064 do
7065 case $check in
7066 # these set all the flags to specific states
7067 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7068 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7069 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7070 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7071 ac_tree_checking=1 ; ac_valgrind_checking= ;
7072 ac_types_checking=1 ;;
7073 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7074 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7075 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7076 ac_rtlflag_checking= ; ac_runtime_checking= ;
7077 ac_tree_checking= ; ac_valgrind_checking= ;
7078 ac_types_checking= ;;
7079 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7080 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7081 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7082 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7083 ac_tree_checking=1 ; ac_valgrind_checking= ;
7084 ac_types_checking=1 ;;
7085 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7086 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7087 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7088 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7089 ac_tree_checking= ; ac_valgrind_checking= ;
7090 ac_types_checking= ;;
7091 # these enable particular checks
7092 assert) ac_assert_checking=1 ;;
7093 df) ac_df_checking=1 ;;
7094 extra) ac_extra_checking=1 ;;
7095 fold) ac_fold_checking=1 ;;
7096 gc) ac_gc_checking=1 ;;
7097 gcac) ac_gc_always_collect=1 ;;
7098 gimple) ac_gimple_checking=1 ;;
7099 misc) ac_checking=1 ;;
7100 rtl) ac_rtl_checking=1 ;;
7101 rtlflag) ac_rtlflag_checking=1 ;;
7102 runtime) ac_runtime_checking=1 ;;
7103 tree) ac_tree_checking=1 ;;
7104 types) ac_types_checking=1 ;;
7105 valgrind) ac_valgrind_checking=1 ;;
7106 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7107 esac
7108 done
7109 IFS="$ac_save_IFS"
7110
7111 nocommon_flag=""
7112 if test x$ac_checking != x ; then
7113
7114 $as_echo "#define CHECKING_P 1" >>confdefs.h
7115
7116 nocommon_flag=-fno-common
7117 else
7118 $as_echo "#define CHECKING_P 0" >>confdefs.h
7119
7120 fi
7121
7122 if test x$ac_extra_checking != x ; then
7123
7124 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7125
7126 else
7127 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7128
7129 fi
7130 if test x$ac_df_checking != x ; then
7131
7132 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7133
7134 fi
7135 if test x$ac_assert_checking != x ; then
7136
7137 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7138
7139 fi
7140 if test x$ac_gimple_checking != x ; then
7141
7142 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7143
7144 fi
7145
7146 if test x$ac_runtime_checking != x ; then
7147
7148 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7149
7150 fi
7151 if test x$ac_tree_checking != x ; then
7152
7153 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7154
7155 TREECHECKING=yes
7156 fi
7157 if test x$ac_types_checking != x ; then
7158
7159 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7160
7161 fi
7162
7163 if test x$ac_rtl_checking != x ; then
7164
7165 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7166
7167 fi
7168 if test x$ac_rtlflag_checking != x ; then
7169
7170 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7171
7172 fi
7173 if test x$ac_gc_checking != x ; then
7174
7175 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7176
7177 fi
7178 if test x$ac_gc_always_collect != x ; then
7179
7180 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7181
7182 fi
7183 if test x$ac_fold_checking != x ; then
7184
7185 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7186
7187 fi
7188 valgrind_path_defines=
7189 valgrind_command=
7190
7191 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7192 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7193 have_valgrind_h=yes
7194 else
7195 have_valgrind_h=no
7196 fi
7197
7198
7199
7200 # It is certainly possible that there's valgrind but no valgrind.h.
7201 # GCC relies on making annotations so we must have both.
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7203 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <valgrind/memcheck.h>
7207 #ifndef VALGRIND_DISCARD
7208 #error VALGRIND_DISCARD not defined
7209 #endif
7210 _ACEOF
7211 if ac_fn_cxx_try_cpp "$LINENO"; then :
7212 gcc_cv_header_valgrind_memcheck_h=yes
7213 else
7214 gcc_cv_header_valgrind_memcheck_h=no
7215 fi
7216 rm -f conftest.err conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7218 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7220 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <memcheck.h>
7224 #ifndef VALGRIND_DISCARD
7225 #error VALGRIND_DISCARD not defined
7226 #endif
7227 _ACEOF
7228 if ac_fn_cxx_try_cpp "$LINENO"; then :
7229 gcc_cv_header_memcheck_h=yes
7230 else
7231 gcc_cv_header_memcheck_h=no
7232 fi
7233 rm -f conftest.err conftest.$ac_ext
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7235 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7236 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7237
7238 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7239
7240 fi
7241 if test $gcc_cv_header_memcheck_h = yes; then
7242
7243 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7244
7245 fi
7246
7247 if test x$ac_valgrind_checking != x ; then
7248
7249 # Prepare PATH_SEPARATOR.
7250 # The user is always right.
7251 if test "${PATH_SEPARATOR+set}" != set; then
7252 echo "#! /bin/sh" >conf$$.sh
7253 echo "exit 0" >>conf$$.sh
7254 chmod +x conf$$.sh
7255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7256 PATH_SEPARATOR=';'
7257 else
7258 PATH_SEPARATOR=:
7259 fi
7260 rm -f conf$$.sh
7261 fi
7262
7263 # Find out how to test for executable files. Don't use a zero-byte file,
7264 # as systems may use methods other than mode bits to determine executability.
7265 cat >conf$$.file <<_ASEOF
7266 #! /bin/sh
7267 exit 0
7268 _ASEOF
7269 chmod +x conf$$.file
7270 if test -x conf$$.file >/dev/null 2>&1; then
7271 ac_executable_p="test -x"
7272 else
7273 ac_executable_p="test -f"
7274 fi
7275 rm -f conf$$.file
7276
7277 # Extract the first word of "valgrind", so it can be a program name with args.
7278 set dummy valgrind; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 case "$valgrind_path" in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7290 for ac_dir in $PATH; do
7291 IFS="$ac_save_IFS"
7292 test -z "$ac_dir" && ac_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7295 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7296 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7297 break 2
7298 fi
7299 fi
7300 done
7301 done
7302 IFS="$ac_save_IFS"
7303 ;;
7304 esac
7305 fi
7306 valgrind_path="$ac_cv_path_valgrind_path"
7307 if test -n "$valgrind_path"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7309 $as_echo "$valgrind_path" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315 if test "x$valgrind_path" = "x" \
7316 || (test $have_valgrind_h = no \
7317 && test $gcc_cv_header_memcheck_h = no \
7318 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7319 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7320 fi
7321 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7322 valgrind_command="$valgrind_path -q"
7323
7324 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7325
7326 fi
7327
7328
7329
7330 # Enable code coverage collection
7331 # Check whether --enable-coverage was given.
7332 if test "${enable_coverage+set}" = set; then :
7333 enableval=$enable_coverage; case "${enableval}" in
7334 yes|noopt)
7335 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7336 ;;
7337 opt)
7338 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7339 ;;
7340 no)
7341 # a.k.a. --disable-coverage
7342 coverage_flags=""
7343 ;;
7344 *)
7345 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7346 ;;
7347 esac
7348 else
7349 coverage_flags=""
7350 fi
7351
7352
7353
7354 # Check whether --enable-gather-detailed-mem-stats was given.
7355 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7356 enableval=$enable_gather_detailed_mem_stats;
7357 else
7358 enable_gather_detailed_mem_stats=no
7359 fi
7360
7361 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7362
7363 cat >>confdefs.h <<_ACEOF
7364 #define GATHER_STATISTICS $gather_stats
7365 _ACEOF
7366
7367
7368 # Check whether --enable-valgrind-annotations was given.
7369 if test "${enable_valgrind_annotations+set}" = set; then :
7370 enableval=$enable_valgrind_annotations;
7371 else
7372 enable_valgrind_annotations=no
7373 fi
7374
7375 if test x$enable_valgrind_annotations != xno \
7376 || test x$ac_valgrind_checking != x; then
7377 if (test $have_valgrind_h = no \
7378 && test $gcc_cv_header_memcheck_h = no \
7379 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7380 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7381 fi
7382
7383 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7384
7385 fi
7386
7387 # -------------------------------
7388 # Miscenalleous configure options
7389 # -------------------------------
7390
7391 # With stabs
7392
7393 # Check whether --with-stabs was given.
7394 if test "${with_stabs+set}" = set; then :
7395 withval=$with_stabs; stabs="$with_stabs"
7396 else
7397 stabs=no
7398 fi
7399
7400
7401 # Determine whether or not multilibs are enabled.
7402 # Check whether --enable-multilib was given.
7403 if test "${enable_multilib+set}" = set; then :
7404 enableval=$enable_multilib;
7405 else
7406 enable_multilib=yes
7407 fi
7408
7409
7410
7411 # Determine whether or not multiarch is enabled.
7412 # Check whether --enable-multiarch was given.
7413 if test "${enable_multiarch+set}" = set; then :
7414 enableval=$enable_multiarch; case "${enableval}" in
7415 yes|no|auto) enable_multiarch=$enableval;;
7416 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7417 esac
7418 else
7419 enable_multiarch=auto
7420 fi
7421
7422 if test x${enable_multiarch} = xauto; then
7423 if test x${with_native_system_header_dir} != x; then
7424 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7425 enable_multiarch=no
7426 fi
7427 if test x$host != x$target && test "x$with_sysroot" = x; then
7428 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7429 enable_multiarch=no
7430 fi
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7433 $as_echo_n "checking for multiarch configuration... " >&6; }
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7436 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7437
7438 # needed for setting the multiarch name for soft-float/hard-float ABIs
7439
7440
7441
7442 # Enable __cxa_atexit for C++.
7443 # Check whether --enable-__cxa_atexit was given.
7444 if test "${enable___cxa_atexit+set}" = set; then :
7445 enableval=$enable___cxa_atexit;
7446 fi
7447
7448
7449 # Enable C extension for decimal float if target supports it.
7450
7451 # Check whether --enable-decimal-float was given.
7452 if test "${enable_decimal_float+set}" = set; then :
7453 enableval=$enable_decimal_float;
7454 case $enable_decimal_float in
7455 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7456 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7457 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7458 esac
7459
7460 else
7461
7462 case $target in
7463 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7464 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7465 i?86*-*-mingw* | x86_64*-*-mingw* | \
7466 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7467 enable_decimal_float=yes
7468 ;;
7469 *)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7471 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7472 enable_decimal_float=no
7473 ;;
7474 esac
7475
7476 fi
7477
7478
7479 # x86's use BID format instead of DPD
7480 case x$enable_decimal_float in
7481 xyes)
7482 case $target in
7483 i?86*-*-* | x86_64*-*-*)
7484 enable_decimal_float=bid
7485 ;;
7486 *)
7487 enable_decimal_float=dpd
7488 ;;
7489 esac
7490 default_decimal_float=$enable_decimal_float
7491 ;;
7492 xno)
7493 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7494 # dependency on libdecnumber.
7495 default_decimal_float=dpd
7496 ;;
7497 esac
7498
7499
7500
7501
7502 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define ENABLE_DECIMAL_FLOAT $dfp
7506 _ACEOF
7507
7508
7509 # Use default_decimal_float for dependency.
7510 enable_decimal_float=$default_decimal_float
7511
7512 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define ENABLE_DECIMAL_BID_FORMAT $bid
7516 _ACEOF
7517
7518
7519 # Enable C extension for fixed-point arithmetic.
7520 # Check whether --enable-fixed-point was given.
7521 if test "${enable_fixed_point+set}" = set; then :
7522 enableval=$enable_fixed_point;
7523 else
7524
7525 case $target in
7526 arm*)
7527 enable_fixed_point=yes
7528 ;;
7529
7530 mips*-*-*)
7531 enable_fixed_point=yes
7532 ;;
7533 *)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7535 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7536 enable_fixed_point=no
7537 ;;
7538 esac
7539
7540 fi
7541
7542
7543
7544 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7545
7546 cat >>confdefs.h <<_ACEOF
7547 #define ENABLE_FIXED_POINT $fixedpoint
7548 _ACEOF
7549
7550
7551 # Enable threads
7552 # Pass with no value to take the default
7553 # Pass with a value to specify a thread package
7554 # Check whether --enable-threads was given.
7555 if test "${enable_threads+set}" = set; then :
7556 enableval=$enable_threads;
7557 else
7558 enable_threads=''
7559 fi
7560
7561
7562 # Check whether --enable-tls was given.
7563 if test "${enable_tls+set}" = set; then :
7564 enableval=$enable_tls;
7565 case $enable_tls in
7566 yes | no) ;;
7567 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7568 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7569 esac
7570
7571 else
7572 enable_tls=''
7573 fi
7574
7575
7576 # Check whether --enable-vtable-verify was given.
7577 if test "${enable_vtable_verify+set}" = set; then :
7578 enableval=$enable_vtable_verify;
7579 else
7580 enable_vtable_verify=no
7581 fi
7582
7583 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define ENABLE_VTABLE_VERIFY $vtable_verify
7587 _ACEOF
7588
7589
7590 # Check whether --enable-objc-gc was given.
7591 if test "${enable_objc_gc+set}" = set; then :
7592 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7593 objc_boehm_gc=''
7594 else
7595 objc_boehm_gc=1
7596 fi
7597 else
7598 objc_boehm_gc=''
7599 fi
7600
7601
7602
7603 # Check whether --with-dwarf2 was given.
7604 if test "${with_dwarf2+set}" = set; then :
7605 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7606 else
7607 dwarf2=no
7608 fi
7609
7610
7611 # Check whether --enable-shared was given.
7612 if test "${enable_shared+set}" = set; then :
7613 enableval=$enable_shared;
7614 case $enable_shared in
7615 yes | no) ;;
7616 *)
7617 enable_shared=no
7618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7619 for pkg in $enableval; do
7620 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7621 enable_shared=yes
7622 fi
7623 done
7624 IFS="$ac_save_ifs"
7625 ;;
7626 esac
7627
7628 else
7629 enable_shared=yes
7630 fi
7631
7632
7633
7634 # Check whether --enable-gcov was given.
7635 if test "${enable_gcov+set}" = set; then :
7636 enableval=$enable_gcov;
7637 else
7638 enable_gcov=yes
7639 fi
7640
7641
7642
7643
7644 # Check whether --with-specs was given.
7645 if test "${with_specs+set}" = set; then :
7646 withval=$with_specs; CONFIGURE_SPECS=$withval
7647 else
7648 CONFIGURE_SPECS=
7649
7650 fi
7651
7652
7653
7654
7655
7656 # Check whether --with-pkgversion was given.
7657 if test "${with_pkgversion+set}" = set; then :
7658 withval=$with_pkgversion; case "$withval" in
7659 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7660 no) PKGVERSION= ;;
7661 *) PKGVERSION="($withval) " ;;
7662 esac
7663 else
7664 PKGVERSION="(GCC) "
7665
7666 fi
7667
7668
7669
7670
7671
7672 # Check whether --with-bugurl was given.
7673 if test "${with_bugurl+set}" = set; then :
7674 withval=$with_bugurl; case "$withval" in
7675 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7676 no) BUGURL=
7677 ;;
7678 *) BUGURL="$withval"
7679 ;;
7680 esac
7681 else
7682 BUGURL="https://gcc.gnu.org/bugs/"
7683
7684 fi
7685
7686 case ${BUGURL} in
7687 "")
7688 REPORT_BUGS_TO=
7689 REPORT_BUGS_TEXI=
7690 ;;
7691 *)
7692 REPORT_BUGS_TO="<$BUGURL>"
7693 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7694 ;;
7695 esac;
7696
7697
7698
7699
7700 # Sanity check enable_languages in case someone does not run the toplevel
7701 # configure # script.
7702 # Check whether --enable-languages was given.
7703 if test "${enable_languages+set}" = set; then :
7704 enableval=$enable_languages; case ,${enable_languages}, in
7705 ,,|,yes,)
7706 # go safe -- we cannot be much sure without the toplevel
7707 # configure's
7708 # analysis of which target libs are present and usable
7709 enable_languages=c
7710 ;;
7711 *,all,*)
7712 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7713 ;;
7714 *,c,*)
7715 ;;
7716 *)
7717 enable_languages=c,${enable_languages}
7718 ;;
7719 esac
7720 else
7721 enable_languages=c
7722 fi
7723
7724
7725 if test x"$enable_as_accelerator_for" != x; then
7726
7727 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7728
7729 enable_as_accelerator=yes
7730 case "${target}" in
7731 *-intelmicemul-*)
7732 # In this case we expect offload compiler to be built as native, so we
7733 # need to rename the driver to avoid clashes with host's drivers.
7734 program_transform_name="s&^&${target}-&" ;;
7735 esac
7736 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7737 program_transform_name=`echo $program_transform_name | sed $sedscript`
7738 accel_dir_suffix=/accel/${target_noncanonical}
7739 real_target_noncanonical=${enable_as_accelerator_for}
7740 fi
7741
7742
7743
7744
7745 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7746 tgt=`echo $tgt | sed 's/=.*//'`
7747
7748 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7749 enable_hsa=1
7750 else
7751 enable_offloading=1
7752 fi
7753
7754 if test x"$offload_targets" = x; then
7755 offload_targets=$tgt
7756 else
7757 offload_targets="$offload_targets,$tgt"
7758 fi
7759 done
7760
7761 cat >>confdefs.h <<_ACEOF
7762 #define OFFLOAD_TARGETS "$offload_targets"
7763 _ACEOF
7764
7765 if test x"$enable_offloading" != x; then
7766
7767 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7768
7769 else
7770
7771 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7772
7773 fi
7774
7775 if test x"$enable_hsa" = x1 ; then
7776
7777 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7778
7779 fi
7780
7781
7782 # Check whether --with-multilib-list was given.
7783 if test "${with_multilib_list+set}" = set; then :
7784 withval=$with_multilib_list; :
7785 else
7786 with_multilib_list=default
7787 fi
7788
7789
7790 # -------------------------
7791 # Checks for other programs
7792 # -------------------------
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7795 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7796 set x ${MAKE-make}
7797 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7798 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat >conftest.make <<\_ACEOF
7802 SHELL = /bin/sh
7803 all:
7804 @echo '@@@%%%=$(MAKE)=@@@%%%'
7805 _ACEOF
7806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7807 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7808 *@@@%%%=?*=@@@%%%*)
7809 eval ac_cv_prog_make_${ac_make}_set=yes;;
7810 *)
7811 eval ac_cv_prog_make_${ac_make}_set=no;;
7812 esac
7813 rm -f conftest.make
7814 fi
7815 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7817 $as_echo "yes" >&6; }
7818 SET_MAKE=
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 SET_MAKE="MAKE=${MAKE-make}"
7823 fi
7824
7825
7826 # Find some useful tools
7827 for ac_prog in gawk mawk nawk awk
7828 do
7829 # Extract the first word of "$ac_prog", so it can be a program name with args.
7830 set dummy $ac_prog; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if test "${ac_cv_prog_AWK+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$AWK"; then
7837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_prog_AWK="$ac_prog"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 AWK=$ac_cv_prog_AWK
7857 if test -n "$AWK"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7859 $as_echo "$AWK" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 test -n "$AWK" && break
7867 done
7868
7869 # We need awk to create options.c and options.h.
7870 # Bail out if it's missing.
7871 case ${AWK} in
7872 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7873 esac
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7876 $as_echo_n "checking whether ln -s works... " >&6; }
7877 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 rm -f conftestdata_t
7881 echo >conftestdata_f
7882 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7883 then
7884 gcc_cv_prog_LN_S="ln -s"
7885 else
7886 if ln conftestdata_f conftestdata_t 2>/dev/null
7887 then
7888 gcc_cv_prog_LN_S=ln
7889 else
7890 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7891 then
7892 gcc_cv_prog_LN_S="cp -p"
7893 else
7894 gcc_cv_prog_LN_S=cp
7895 fi
7896 fi
7897 fi
7898 rm -f conftestdata_f conftestdata_t
7899
7900 fi
7901 LN_S="$gcc_cv_prog_LN_S"
7902 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7904 $as_echo "yes" >&6; }
7905 else
7906 if test "$gcc_cv_prog_LN_S" = "ln"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7908 $as_echo "no, using ln" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7911 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7912 fi
7913 fi
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7916 $as_echo_n "checking whether ln works... " >&6; }
7917 if test "${acx_cv_prog_LN+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 rm -f conftestdata_t
7921 echo >conftestdata_f
7922 if ln conftestdata_f conftestdata_t 2>/dev/null
7923 then
7924 acx_cv_prog_LN=ln
7925 else
7926 acx_cv_prog_LN=no
7927 fi
7928 rm -f conftestdata_f conftestdata_t
7929
7930 fi
7931 if test $acx_cv_prog_LN = no; then
7932 LN="$LN_S"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7934 $as_echo "no, using $LN" >&6; }
7935 else
7936 LN="$acx_cv_prog_LN"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7939 fi
7940
7941 if test -n "$ac_tool_prefix"; then
7942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$RANLIB"; then
7950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 RANLIB=$ac_cv_prog_RANLIB
7970 if test -n "$RANLIB"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7972 $as_echo "$RANLIB" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 fi
7980 if test -z "$ac_cv_prog_RANLIB"; then
7981 ac_ct_RANLIB=$RANLIB
7982 # Extract the first word of "ranlib", so it can be a program name with args.
7983 set dummy ranlib; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$ac_ct_RANLIB"; then
7990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_ac_ct_RANLIB="ranlib"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8010 if test -n "$ac_ct_RANLIB"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8012 $as_echo "$ac_ct_RANLIB" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018 if test "x$ac_ct_RANLIB" = x; then
8019 RANLIB=":"
8020 else
8021 case $cross_compiling:$ac_tool_warned in
8022 yes:)
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025 ac_tool_warned=yes ;;
8026 esac
8027 RANLIB=$ac_ct_RANLIB
8028 fi
8029 else
8030 RANLIB="$ac_cv_prog_RANLIB"
8031 fi
8032
8033 ranlib_flags=""
8034
8035
8036 # Find a good install program. We prefer a C program (faster),
8037 # so one script is as good as another. But avoid the broken or
8038 # incompatible versions:
8039 # SysV /etc/install, /usr/sbin/install
8040 # SunOS /usr/etc/install
8041 # IRIX /sbin/install
8042 # AIX /bin/install
8043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8045 # ./install, which can be erroneously created by make from ./install.sh.
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8047 $as_echo_n "checking for a BSD compatible install... " >&6; }
8048 if test -z "$INSTALL"; then
8049 if test "${ac_cv_path_install+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8053 for ac_dir in $PATH; do
8054 # Account for people who put trailing slashes in PATH elements.
8055 case "$ac_dir/" in
8056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8057 *)
8058 # OSF1 and SCO ODT 3.0 have their own names for install.
8059 for ac_prog in ginstall scoinst install; do
8060 if test -f $ac_dir/$ac_prog; then
8061 if test $ac_prog = install &&
8062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8063 # AIX install. It has an incompatible calling convention.
8064 # OSF/1 installbsd also uses dspmsg, but is usable.
8065 :
8066 else
8067 ac_cv_path_install="$ac_dir/$ac_prog -c"
8068 break 2
8069 fi
8070 fi
8071 done
8072 ;;
8073 esac
8074 done
8075 IFS="$ac_save_IFS"
8076
8077 fi
8078 if test "${ac_cv_path_install+set}" = set; then
8079 INSTALL="$ac_cv_path_install"
8080 else
8081 # As a last resort, use the slow shell script. We don't cache a
8082 # path for INSTALL within a source directory, because that will
8083 # break other packages using the cache if that directory is
8084 # removed, or if the path is relative.
8085 INSTALL="$ac_install_sh"
8086 fi
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8089 $as_echo "$INSTALL" >&6; }
8090
8091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8092 # It thinks the first close brace ends the variable substitution.
8093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8094
8095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8096
8097
8098 # See if cmp has --ignore-initial.
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8100 $as_echo_n "checking for cmp's capabilities... " >&6; }
8101 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 echo abfoo >t1
8105 echo cdfoo >t2
8106 gcc_cv_prog_cmp_skip=slowcompare
8107 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8108 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8109 :
8110 else
8111 gcc_cv_prog_cmp_skip=gnucompare
8112 fi
8113 fi
8114 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8115 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8116 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8117 :
8118 else
8119 gcc_cv_prog_cmp_skip=fastcompare
8120 fi
8121 fi
8122 fi
8123 rm t1 t2
8124
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8127 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8128 make_compare_target=$gcc_cv_prog_cmp_skip
8129
8130
8131
8132 # See if we have the mktemp command.
8133 # Extract the first word of "mktemp", so it can be a program name with args.
8134 set dummy mktemp; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 if test -n "$have_mktemp_command"; then
8141 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_have_mktemp_command="yes"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8159 fi
8160 fi
8161 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8162 if test -n "$have_mktemp_command"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8164 $as_echo "$have_mktemp_command" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169
8170
8171
8172 # See if makeinfo has been installed and is modern enough
8173 # that we can use it.
8174
8175 # Extract the first word of "makeinfo", so it can be a program name with args.
8176 set dummy makeinfo; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if test -n "$MAKEINFO"; then
8183 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8187 do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_prog_MAKEINFO="makeinfo"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200 fi
8201 fi
8202 MAKEINFO=$ac_cv_prog_MAKEINFO
8203 if test -n "$MAKEINFO"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8205 $as_echo "$MAKEINFO" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210
8211
8212 if test -n "$MAKEINFO"; then
8213 # Found it, now check the version.
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8215 $as_echo_n "checking for modern makeinfo... " >&6; }
8216 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8220 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8221
8222 case $ac_prog_version in
8223 '') gcc_cv_prog_makeinfo_modern=no;;
8224 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8225 *) gcc_cv_prog_makeinfo_modern=no;;
8226 esac
8227
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8230 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8231 else
8232 gcc_cv_prog_makeinfo_modern=no
8233 fi
8234 if test $gcc_cv_prog_makeinfo_modern = no; then
8235 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8236 fi
8237
8238 if test $gcc_cv_prog_makeinfo_modern = no; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8240 *** Makeinfo is missing or too old.
8241 *** Info documentation will not be built." >&5
8242 $as_echo "$as_me: WARNING:
8243 *** Makeinfo is missing or too old.
8244 *** Info documentation will not be built." >&2;}
8245 BUILD_INFO=
8246 else
8247 BUILD_INFO=info
8248 fi
8249
8250
8251 # Is pod2man recent enough to regenerate manpages?
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8253 $as_echo_n "checking for recent Pod::Man... " >&6; }
8254 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8256 $as_echo "yes" >&6; }
8257 GENERATED_MANPAGES=generated-manpages
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 GENERATED_MANPAGES=
8262 fi
8263
8264
8265 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8266
8267 # How about lex?
8268 for ac_prog in flex
8269 do
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_FLEX+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$FLEX"; then
8278 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_FLEX="$ac_prog"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 FLEX=$ac_cv_prog_FLEX
8298 if test -n "$FLEX"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8300 $as_echo "$FLEX" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307 test -n "$FLEX" && break
8308 done
8309 test -n "$FLEX" || FLEX="$MISSING flex"
8310
8311
8312 # Bison?
8313 for ac_prog in bison
8314 do
8315 # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_BISON+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$BISON"; then
8323 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_BISON="$ac_prog"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 BISON=$ac_cv_prog_BISON
8343 if test -n "$BISON"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8345 $as_echo "$BISON" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 test -n "$BISON" && break
8353 done
8354 test -n "$BISON" || BISON="$MISSING bison"
8355
8356
8357 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8358 # check for build == host before using them.
8359
8360 # NM
8361 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8362 && test -d ../binutils ; then
8363 NM='${objdir}/../binutils/nm-new'
8364 else
8365 # Extract the first word of "nm", so it can be a program name with args.
8366 set dummy nm; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_prog_NM+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 if test -n "$NM"; then
8373 ac_cv_prog_NM="$NM" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_NM="nm"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8391 fi
8392 fi
8393 NM=$ac_cv_prog_NM
8394 if test -n "$NM"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8396 $as_echo "$NM" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403 fi
8404
8405 # AR
8406 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8407 && test -d ../binutils ; then
8408 AR='${objdir}/../binutils/ar'
8409 else
8410 # Extract the first word of "ar", so it can be a program name with args.
8411 set dummy ar; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_AR+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$AR"; then
8418 ac_cv_prog_AR="$AR" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_AR="ar"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431 done
8432 done
8433 IFS=$as_save_IFS
8434
8435 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8436 fi
8437 fi
8438 AR=$ac_cv_prog_AR
8439 if test -n "$AR"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8441 $as_echo "$AR" >&6; }
8442 else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448 fi
8449
8450 # The jit documentation looks better if built with sphinx, but can be
8451 # built with texinfo if sphinx is not available.
8452 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8453 # Extract the first word of "sphinx-build", so it can be a program name with args.
8454 set dummy sphinx-build; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$doc_build_sys"; then
8461 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_doc_build_sys="sphinx"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8479 fi
8480 fi
8481 doc_build_sys=$ac_cv_prog_doc_build_sys
8482 if test -n "$doc_build_sys"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8484 $as_echo "$doc_build_sys" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490
8491
8492 # --------------------
8493 # Checks for C headers
8494 # --------------------
8495
8496 # Need to reject headers which give warnings, so that the -Werror bootstrap
8497 # works later. *sigh* This needs to come before all header checks.
8498
8499 ac_c_preproc_warn_flag=yes
8500
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8502 $as_echo_n "checking for ANSI C header files... " >&6; }
8503 if test "${ac_cv_header_stdc+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <stdlib.h>
8509 #include <stdarg.h>
8510 #include <string.h>
8511 #include <float.h>
8512
8513 int
8514 main ()
8515 {
8516
8517 ;
8518 return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_cxx_try_compile "$LINENO"; then :
8522 ac_cv_header_stdc=yes
8523 else
8524 ac_cv_header_stdc=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527
8528 if test $ac_cv_header_stdc = yes; then
8529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 #include <string.h>
8533
8534 _ACEOF
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536 $EGREP "memchr" >/dev/null 2>&1; then :
8537
8538 else
8539 ac_cv_header_stdc=no
8540 fi
8541 rm -f conftest*
8542
8543 fi
8544
8545 if test $ac_cv_header_stdc = yes; then
8546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <stdlib.h>
8550
8551 _ACEOF
8552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553 $EGREP "free" >/dev/null 2>&1; then :
8554
8555 else
8556 ac_cv_header_stdc=no
8557 fi
8558 rm -f conftest*
8559
8560 fi
8561
8562 if test $ac_cv_header_stdc = yes; then
8563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8564 if test "$cross_compiling" = yes; then :
8565 :
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 #include <ctype.h>
8570 #include <stdlib.h>
8571 #if ((' ' & 0x0FF) == 0x020)
8572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8574 #else
8575 # define ISLOWER(c) \
8576 (('a' <= (c) && (c) <= 'i') \
8577 || ('j' <= (c) && (c) <= 'r') \
8578 || ('s' <= (c) && (c) <= 'z'))
8579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8580 #endif
8581
8582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8583 int
8584 main ()
8585 {
8586 int i;
8587 for (i = 0; i < 256; i++)
8588 if (XOR (islower (i), ISLOWER (i))
8589 || toupper (i) != TOUPPER (i))
8590 return 2;
8591 return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_cxx_try_run "$LINENO"; then :
8595
8596 else
8597 ac_cv_header_stdc=no
8598 fi
8599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8600 conftest.$ac_objext conftest.beam conftest.$ac_ext
8601 fi
8602
8603 fi
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8606 $as_echo "$ac_cv_header_stdc" >&6; }
8607 if test $ac_cv_header_stdc = yes; then
8608
8609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8610
8611 fi
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8614 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8615 if test "${ac_cv_header_time+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/time.h>
8622 #include <time.h>
8623
8624 int
8625 main ()
8626 {
8627 if ((struct tm *) 0)
8628 return 0;
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_cxx_try_compile "$LINENO"; then :
8634 ac_cv_header_time=yes
8635 else
8636 ac_cv_header_time=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8641 $as_echo "$ac_cv_header_time" >&6; }
8642 if test $ac_cv_header_time = yes; then
8643
8644 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8645
8646 fi
8647
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8649 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8650 if test "${gcc_cv_header_string+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <string.h>
8656 #include <strings.h>
8657 int
8658 main ()
8659 {
8660
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_cxx_try_compile "$LINENO"; then :
8666 gcc_cv_header_string=yes
8667 else
8668 gcc_cv_header_string=no
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8673 $as_echo "$gcc_cv_header_string" >&6; }
8674 if test $gcc_cv_header_string = yes; then
8675
8676 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8677
8678 fi
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8681 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8682 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/wait.h>
8689 #ifndef WEXITSTATUS
8690 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8691 #endif
8692 #ifndef WIFEXITED
8693 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 int s;
8700 wait (&s);
8701 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_cxx_try_compile "$LINENO"; then :
8707 ac_cv_header_sys_wait_h=yes
8708 else
8709 ac_cv_header_sys_wait_h=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8715 if test $ac_cv_header_sys_wait_h = yes; then
8716
8717 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8718
8719 fi
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8722 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8723 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <sys/types.h>
8729 #include <termios.h>
8730 #ifdef TIOCGWINSZ
8731 yes
8732 #endif
8733
8734 _ACEOF
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 $EGREP "yes" >/dev/null 2>&1; then :
8737 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8738 else
8739 ac_cv_sys_tiocgwinsz_in_termios_h=no
8740 fi
8741 rm -f conftest*
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8745 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8746
8747 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8749 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8750 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <sys/types.h>
8756 #include <sys/ioctl.h>
8757 #ifdef TIOCGWINSZ
8758 yes
8759 #endif
8760
8761 _ACEOF
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "yes" >/dev/null 2>&1; then :
8764 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8765 else
8766 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8767 fi
8768 rm -f conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8772 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8773
8774 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8775
8776 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8777
8778 fi
8779 fi
8780
8781 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8782 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8783 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8784 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8785 do :
8786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8788 eval as_val=\$$as_ac_Header
8789 if test "x$as_val" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8792 _ACEOF
8793
8794 fi
8795 done
8796
8797
8798 # Check for thread headers.
8799 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8800 if test "x$ac_cv_header_thread_h" = x""yes; then :
8801 have_thread_h=yes
8802 else
8803 have_thread_h=
8804 fi
8805
8806 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8807 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8808 have_pthread_h=yes
8809 else
8810 have_pthread_h=
8811 fi
8812
8813
8814 # These tests can't be done till we know if we have limits.h.
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8816 $as_echo_n "checking for CHAR_BIT... " >&6; }
8817 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #ifdef HAVE_LIMITS_H
8823 #include <limits.h>
8824 #endif
8825 #ifdef CHAR_BIT
8826 found
8827 #endif
8828 _ACEOF
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 $EGREP "found" >/dev/null 2>&1; then :
8831 gcc_cv_decl_char_bit=yes
8832 else
8833 gcc_cv_decl_char_bit=no
8834 fi
8835 rm -f conftest*
8836
8837
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8840 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8841 if test $gcc_cv_decl_char_bit = no; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8843 $as_echo_n "checking number of bits in a byte... " >&6; }
8844 if test "${gcc_cv_c_nbby+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 i=8
8848 gcc_cv_c_nbby=
8849 while test $i -lt 65; do
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852
8853 int
8854 main ()
8855 {
8856 switch(0) {
8857 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8858 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8859 ; }
8860 ;
8861 return 0;
8862 }
8863 _ACEOF
8864 if ac_fn_cxx_try_compile "$LINENO"; then :
8865 gcc_cv_c_nbby=$i; break
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 i=`expr $i + 1`
8869 done
8870 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8871
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8874 $as_echo "$gcc_cv_c_nbby" >&6; }
8875 if test $gcc_cv_c_nbby = failed; then
8876 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8877 else
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define CHAR_BIT $gcc_cv_c_nbby
8881 _ACEOF
8882
8883 fi
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8886 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8887 if test "${ac_cv_c_bigendian+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 ac_cv_c_bigendian=unknown
8891 # See if we're dealing with a universal compiler.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 #ifndef __APPLE_CC__
8895 not a universal capable compiler
8896 #endif
8897 typedef int dummy;
8898
8899 _ACEOF
8900 if ac_fn_cxx_try_compile "$LINENO"; then :
8901
8902 # Check for potential -arch flags. It is not universal unless
8903 # there are at least two -arch flags with different values.
8904 ac_arch=
8905 ac_prev=
8906 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8907 if test -n "$ac_prev"; then
8908 case $ac_word in
8909 i?86 | x86_64 | ppc | ppc64)
8910 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8911 ac_arch=$ac_word
8912 else
8913 ac_cv_c_bigendian=universal
8914 break
8915 fi
8916 ;;
8917 esac
8918 ac_prev=
8919 elif test "x$ac_word" = "x-arch"; then
8920 ac_prev=arch
8921 fi
8922 done
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 if test $ac_cv_c_bigendian = unknown; then
8926 # See if sys/param.h defines the BYTE_ORDER macro.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <sys/param.h>
8931
8932 int
8933 main ()
8934 {
8935 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8936 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8937 && LITTLE_ENDIAN)
8938 bogus endian macros
8939 #endif
8940
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 # It does; now see whether it defined to BIG_ENDIAN or not.
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8950 #include <sys/param.h>
8951
8952 int
8953 main ()
8954 {
8955 #if BYTE_ORDER != BIG_ENDIAN
8956 not big endian
8957 #endif
8958
8959 ;
8960 return 0;
8961 }
8962 _ACEOF
8963 if ac_fn_cxx_try_compile "$LINENO"; then :
8964 ac_cv_c_bigendian=yes
8965 else
8966 ac_cv_c_bigendian=no
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 fi
8972 if test $ac_cv_c_bigendian = unknown; then
8973 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <limits.h>
8977
8978 int
8979 main ()
8980 {
8981 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8982 bogus endian macros
8983 #endif
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_cxx_try_compile "$LINENO"; then :
8990 # It does; now see whether it defined to _BIG_ENDIAN or not.
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 #include <limits.h>
8994
8995 int
8996 main ()
8997 {
8998 #ifndef _BIG_ENDIAN
8999 not big endian
9000 #endif
9001
9002 ;
9003 return 0;
9004 }
9005 _ACEOF
9006 if ac_fn_cxx_try_compile "$LINENO"; then :
9007 ac_cv_c_bigendian=yes
9008 else
9009 ac_cv_c_bigendian=no
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 fi
9015 if test $ac_cv_c_bigendian = unknown; then
9016 # Compile a test program.
9017 if test "$cross_compiling" = yes; then :
9018 # Try to guess by grepping values from an object file.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 short int ascii_mm[] =
9022 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9023 short int ascii_ii[] =
9024 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9025 int use_ascii (int i) {
9026 return ascii_mm[i] + ascii_ii[i];
9027 }
9028 short int ebcdic_ii[] =
9029 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9030 short int ebcdic_mm[] =
9031 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9032 int use_ebcdic (int i) {
9033 return ebcdic_mm[i] + ebcdic_ii[i];
9034 }
9035 extern int foo;
9036
9037 int
9038 main ()
9039 {
9040 return use_ascii (foo) == use_ebcdic (foo);
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_cxx_try_compile "$LINENO"; then :
9046 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9047 ac_cv_c_bigendian=yes
9048 fi
9049 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9050 if test "$ac_cv_c_bigendian" = unknown; then
9051 ac_cv_c_bigendian=no
9052 else
9053 # finding both strings is unlikely to happen, but who knows?
9054 ac_cv_c_bigendian=unknown
9055 fi
9056 fi
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 $ac_includes_default
9063 int
9064 main ()
9065 {
9066
9067 /* Are we little or big endian? From Harbison&Steele. */
9068 union
9069 {
9070 long int l;
9071 char c[sizeof (long int)];
9072 } u;
9073 u.l = 1;
9074 return u.c[sizeof (long int) - 1] == 1;
9075
9076 ;
9077 return 0;
9078 }
9079 _ACEOF
9080 if ac_fn_cxx_try_run "$LINENO"; then :
9081 ac_cv_c_bigendian=no
9082 else
9083 ac_cv_c_bigendian=yes
9084 fi
9085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9086 conftest.$ac_objext conftest.beam conftest.$ac_ext
9087 fi
9088
9089 fi
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9092 $as_echo "$ac_cv_c_bigendian" >&6; }
9093 case $ac_cv_c_bigendian in #(
9094 yes)
9095 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9096 ;; #(
9097 no)
9098 ;; #(
9099 universal)
9100
9101 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9102
9103 ;; #(
9104 *)
9105 as_fn_error "unknown endianness
9106 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9107 esac
9108
9109
9110 # ----------------------
9111 # Checks for C++ headers
9112 # ----------------------
9113
9114 ac_ext=cpp
9115 ac_cpp='$CXXCPP $CPPFLAGS'
9116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9120 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9121 if test -z "$CXXCPP"; then
9122 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 # Double quotes because CXXCPP needs to be expanded
9126 for CXXCPP in "$CXX -E" "/lib/cpp"
9127 do
9128 ac_preproc_ok=false
9129 for ac_cxx_preproc_warn_flag in '' yes
9130 do
9131 # Use a header file that comes with gcc, so configuring glibc
9132 # with a fresh cross-compiler works.
9133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9134 # <limits.h> exists even on freestanding compilers.
9135 # On the NeXT, cc -E runs the code through the compiler's parser,
9136 # not just through cpp. "Syntax error" is here to catch this case.
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #ifdef __STDC__
9140 # include <limits.h>
9141 #else
9142 # include <assert.h>
9143 #endif
9144 Syntax error
9145 _ACEOF
9146 if ac_fn_cxx_try_cpp "$LINENO"; then :
9147
9148 else
9149 # Broken: fails on valid input.
9150 continue
9151 fi
9152 rm -f conftest.err conftest.$ac_ext
9153
9154 # OK, works on sane cases. Now check whether nonexistent headers
9155 # can be detected and how.
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <ac_nonexistent.h>
9159 _ACEOF
9160 if ac_fn_cxx_try_cpp "$LINENO"; then :
9161 # Broken: success on invalid input.
9162 continue
9163 else
9164 # Passes both tests.
9165 ac_preproc_ok=:
9166 break
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169
9170 done
9171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9172 rm -f conftest.err conftest.$ac_ext
9173 if $ac_preproc_ok; then :
9174 break
9175 fi
9176
9177 done
9178 ac_cv_prog_CXXCPP=$CXXCPP
9179
9180 fi
9181 CXXCPP=$ac_cv_prog_CXXCPP
9182 else
9183 ac_cv_prog_CXXCPP=$CXXCPP
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9186 $as_echo "$CXXCPP" >&6; }
9187 ac_preproc_ok=false
9188 for ac_cxx_preproc_warn_flag in '' yes
9189 do
9190 # Use a header file that comes with gcc, so configuring glibc
9191 # with a fresh cross-compiler works.
9192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9193 # <limits.h> exists even on freestanding compilers.
9194 # On the NeXT, cc -E runs the code through the compiler's parser,
9195 # not just through cpp. "Syntax error" is here to catch this case.
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #ifdef __STDC__
9199 # include <limits.h>
9200 #else
9201 # include <assert.h>
9202 #endif
9203 Syntax error
9204 _ACEOF
9205 if ac_fn_cxx_try_cpp "$LINENO"; then :
9206
9207 else
9208 # Broken: fails on valid input.
9209 continue
9210 fi
9211 rm -f conftest.err conftest.$ac_ext
9212
9213 # OK, works on sane cases. Now check whether nonexistent headers
9214 # can be detected and how.
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 #include <ac_nonexistent.h>
9218 _ACEOF
9219 if ac_fn_cxx_try_cpp "$LINENO"; then :
9220 # Broken: success on invalid input.
9221 continue
9222 else
9223 # Passes both tests.
9224 ac_preproc_ok=:
9225 break
9226 fi
9227 rm -f conftest.err conftest.$ac_ext
9228
9229 done
9230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9231 rm -f conftest.err conftest.$ac_ext
9232 if $ac_preproc_ok; then :
9233
9234 else
9235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9238 See \`config.log' for more details." >&5
9239 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9240 See \`config.log' for more details." >&2;}; }
9241 fi
9242
9243 ac_ext=cpp
9244 ac_cpp='$CXXCPP $CPPFLAGS'
9245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9248
9249
9250 for ac_header in unordered_map
9251 do :
9252 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9253 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_UNORDERED_MAP 1
9256 _ACEOF
9257
9258 fi
9259 done
9260
9261 for ac_header in tr1/unordered_map
9262 do :
9263 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9264 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9265 cat >>confdefs.h <<_ACEOF
9266 #define HAVE_TR1_UNORDERED_MAP 1
9267 _ACEOF
9268
9269 fi
9270 done
9271
9272 for ac_header in ext/hash_map
9273 do :
9274 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9275 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9276 cat >>confdefs.h <<_ACEOF
9277 #define HAVE_EXT_HASH_MAP 1
9278 _ACEOF
9279
9280 fi
9281 done
9282
9283
9284 # --------
9285 # Dependency checking.
9286 # --------
9287
9288 rm -rf .tst 2>/dev/null
9289 mkdir .tst 2>/dev/null
9290 if test -d .tst; then
9291 am__leading_dot=.
9292 else
9293 am__leading_dot=_
9294 fi
9295 rmdir .tst 2>/dev/null
9296
9297 DEPDIR="${am__leading_dot}deps"
9298
9299 ac_config_commands="$ac_config_commands depdir"
9300
9301
9302 ac_config_commands="$ac_config_commands gccdepdir"
9303
9304
9305 depcc="$CXX" am_compiler_list=
9306
9307 am_depcomp=$ac_aux_dir/depcomp
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9309 $as_echo_n "checking dependency style of $depcc... " >&6; }
9310 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 if test -f "$am_depcomp"; then
9314 # We make a subdir and do the tests there. Otherwise we can end up
9315 # making bogus files that we don't know about and never remove. For
9316 # instance it was reported that on HP-UX the gcc test will end up
9317 # making a dummy file named `D' -- because `-MD' means `put the output
9318 # in D'.
9319 mkdir conftest.dir
9320 # Copy depcomp to subdir because otherwise we won't find it if we're
9321 # using a relative directory.
9322 cp "$am_depcomp" conftest.dir
9323 cd conftest.dir
9324 # We will build objects and dependencies in a subdirectory because
9325 # it helps to detect inapplicable dependency modes. For instance
9326 # both Tru64's cc and ICC support -MD to output dependencies as a
9327 # side effect of compilation, but ICC will put the dependencies in
9328 # the current directory while Tru64 will put them in the object
9329 # directory.
9330 mkdir sub
9331
9332 am_cv_CXX_dependencies_compiler_type=none
9333 if test "$am_compiler_list" = ""; then
9334 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9335 fi
9336 for depmode in $am_compiler_list; do
9337 if test $depmode = none; then break; fi
9338
9339 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9340 # Setup a source with many dependencies, because some compilers
9341 # like to wrap large dependency lists on column 80 (with \), and
9342 # we should not choose a depcomp mode which is confused by this.
9343 #
9344 # We need to recreate these files for each test, as the compiler may
9345 # overwrite some of them when testing with obscure command lines.
9346 # This happens at least with the AIX C compiler.
9347 : > sub/conftest.c
9348 for i in 1 2 3 4 5 6; do
9349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9350 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9351 # Solaris 8's {/usr,}/bin/sh.
9352 touch sub/conftst$i.h
9353 done
9354 echo "include sub/conftest.Po" > confmf
9355
9356 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9357 # mode. It turns out that the SunPro C++ compiler does not properly
9358 # handle `-M -o', and we need to detect this.
9359 depcmd="depmode=$depmode \
9360 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9362 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9363 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9364 if env $depcmd > conftest.err 2>&1 &&
9365 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9366 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9367 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9368 # icc doesn't choke on unknown options, it will just issue warnings
9369 # or remarks (even with -Werror). So we grep stderr for any message
9370 # that says an option was ignored or not supported.
9371 # When given -MP, icc 7.0 and 7.1 complain thusly:
9372 # icc: Command line warning: ignoring option '-M'; no argument required
9373 # The diagnosis changed in icc 8.0:
9374 # icc: Command line remark: option '-MP' not supported
9375 if (grep 'ignoring option' conftest.err ||
9376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9377 am_cv_CXX_dependencies_compiler_type=$depmode
9378 $as_echo "$as_me:$LINENO: success" >&5
9379 break
9380 fi
9381 fi
9382 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9383 sed -e 's/^/| /' < conftest.err >&5
9384 done
9385
9386 cd ..
9387 rm -rf conftest.dir
9388 else
9389 am_cv_CXX_dependencies_compiler_type=none
9390 fi
9391
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9394 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9395 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9396 then as_fn_error "no usable dependency style found" "$LINENO" 5
9397 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9398
9399 fi
9400
9401
9402 # --------
9403 # UNSORTED
9404 # --------
9405
9406
9407 # These libraries may be used by collect2.
9408 # We may need a special search path to get them linked.
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9410 $as_echo_n "checking for collect2 libraries... " >&6; }
9411 if test "${gcc_cv_collect2_libs+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 save_LIBS="$LIBS"
9415 for libs in '' -lld -lmld \
9416 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9417 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9418 do
9419 LIBS="$libs"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char ldopen ();
9430 int
9431 main ()
9432 {
9433 return ldopen ();
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 if ac_fn_cxx_try_link "$LINENO"; then :
9439 gcc_cv_collect2_libs="$libs"; break
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 done
9444 LIBS="$save_LIBS"
9445 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9448 $as_echo "$gcc_cv_collect2_libs" >&6; }
9449 case $gcc_cv_collect2_libs in
9450 "none required") ;;
9451 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9452 esac
9453
9454
9455 # When building Ada code on Alpha, we need exc_resume which is usually in
9456 # -lexc. So test for it.
9457 save_LIBS="$LIBS"
9458 LIBS=
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9460 $as_echo_n "checking for library containing exc_resume... " >&6; }
9461 if test "${ac_cv_search_exc_resume+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 ac_func_search_save_LIBS=$LIBS
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char exc_resume ();
9475 int
9476 main ()
9477 {
9478 return exc_resume ();
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 for ac_lib in '' exc; do
9484 if test -z "$ac_lib"; then
9485 ac_res="none required"
9486 else
9487 ac_res=-l$ac_lib
9488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9489 fi
9490 if ac_fn_cxx_try_link "$LINENO"; then :
9491 ac_cv_search_exc_resume=$ac_res
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext
9495 if test "${ac_cv_search_exc_resume+set}" = set; then :
9496 break
9497 fi
9498 done
9499 if test "${ac_cv_search_exc_resume+set}" = set; then :
9500
9501 else
9502 ac_cv_search_exc_resume=no
9503 fi
9504 rm conftest.$ac_ext
9505 LIBS=$ac_func_search_save_LIBS
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9508 $as_echo "$ac_cv_search_exc_resume" >&6; }
9509 ac_res=$ac_cv_search_exc_resume
9510 if test "$ac_res" != no; then :
9511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9512
9513 fi
9514
9515 GNAT_LIBEXC="$LIBS"
9516 LIBS="$save_LIBS"
9517
9518
9519 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9520 save_LIBS="$LIBS"
9521 LIBS=
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9523 $as_echo_n "checking for library containing kstat_open... " >&6; }
9524 if test "${ac_cv_search_kstat_open+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 ac_func_search_save_LIBS=$LIBS
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 char kstat_open ();
9538 int
9539 main ()
9540 {
9541 return kstat_open ();
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 for ac_lib in '' kstat; do
9547 if test -z "$ac_lib"; then
9548 ac_res="none required"
9549 else
9550 ac_res=-l$ac_lib
9551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9552 fi
9553 if ac_fn_cxx_try_link "$LINENO"; then :
9554 ac_cv_search_kstat_open=$ac_res
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext
9558 if test "${ac_cv_search_kstat_open+set}" = set; then :
9559 break
9560 fi
9561 done
9562 if test "${ac_cv_search_kstat_open+set}" = set; then :
9563
9564 else
9565 ac_cv_search_kstat_open=no
9566 fi
9567 rm conftest.$ac_ext
9568 LIBS=$ac_func_search_save_LIBS
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9571 $as_echo "$ac_cv_search_kstat_open" >&6; }
9572 ac_res=$ac_cv_search_kstat_open
9573 if test "$ac_res" != no; then :
9574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9575
9576 fi
9577
9578 EXTRA_GCC_LIBS="$LIBS"
9579 LIBS="$save_LIBS"
9580
9581
9582 # Some systems put ldexp and frexp in libm instead of libc; assume
9583 # they're both in the same place. jcf-dump needs them.
9584 save_LIBS="$LIBS"
9585 LIBS=
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9587 $as_echo_n "checking for library containing ldexp... " >&6; }
9588 if test "${ac_cv_search_ldexp+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 ac_func_search_save_LIBS=$LIBS
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char ldexp ();
9602 int
9603 main ()
9604 {
9605 return ldexp ();
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 for ac_lib in '' m; do
9611 if test -z "$ac_lib"; then
9612 ac_res="none required"
9613 else
9614 ac_res=-l$ac_lib
9615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9616 fi
9617 if ac_fn_cxx_try_link "$LINENO"; then :
9618 ac_cv_search_ldexp=$ac_res
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext
9622 if test "${ac_cv_search_ldexp+set}" = set; then :
9623 break
9624 fi
9625 done
9626 if test "${ac_cv_search_ldexp+set}" = set; then :
9627
9628 else
9629 ac_cv_search_ldexp=no
9630 fi
9631 rm conftest.$ac_ext
9632 LIBS=$ac_func_search_save_LIBS
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9635 $as_echo "$ac_cv_search_ldexp" >&6; }
9636 ac_res=$ac_cv_search_ldexp
9637 if test "$ac_res" != no; then :
9638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9639
9640 fi
9641
9642 LDEXP_LIB="$LIBS"
9643 LIBS="$save_LIBS"
9644
9645
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9648 # PRId64
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9650 $as_echo_n "checking for inttypes.h... " >&6; }
9651 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #define __STDC_FORMAT_MACROS
9657 #include <sys/types.h>
9658 #include <inttypes.h>
9659 int
9660 main ()
9661 {
9662 intmax_t i = -1;
9663 #ifndef PRId64
9664 choke me
9665 #endif
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 if ac_fn_cxx_try_compile "$LINENO"; then :
9671 gcc_cv_header_inttypes_h=yes
9672 else
9673 gcc_cv_header_inttypes_h=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9679 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9680 if test $gcc_cv_header_inttypes_h = yes; then
9681
9682 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9683
9684 fi
9685
9686
9687
9688 for ac_func in times clock kill getrlimit setrlimit atoq \
9689 popen sysconf strsignal getrusage nl_langinfo \
9690 gettimeofday mbstowcs wcswidth mmap setlocale \
9691 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
9692 do :
9693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9695 eval as_val=\$$as_ac_var
9696 if test "x$as_val" = x""yes; then :
9697 cat >>confdefs.h <<_ACEOF
9698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9699 _ACEOF
9700
9701 fi
9702 done
9703
9704
9705 if test x$ac_cv_func_mbstowcs = xyes; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9707 $as_echo_n "checking whether mbstowcs works... " >&6; }
9708 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 if test "$cross_compiling" = yes; then :
9712 gcc_cv_func_mbstowcs_works=yes
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include <stdlib.h>
9717 int main()
9718 {
9719 mbstowcs(0, "", 0);
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_cxx_try_run "$LINENO"; then :
9724 gcc_cv_func_mbstowcs_works=yes
9725 else
9726 gcc_cv_func_mbstowcs_works=no
9727 fi
9728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9729 conftest.$ac_objext conftest.beam conftest.$ac_ext
9730 fi
9731
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9734 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9735 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9736
9737 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9738
9739 fi
9740 fi
9741
9742 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9743 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9744
9745 else
9746
9747 cat >>confdefs.h <<_ACEOF
9748 #define ssize_t int
9749 _ACEOF
9750
9751 fi
9752
9753 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9754 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9755
9756 else
9757
9758 cat >>confdefs.h <<_ACEOF
9759 #define caddr_t char *
9760 _ACEOF
9761
9762 fi
9763
9764
9765
9766 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9767 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9768 gcc_header_sys_mman_h=yes
9769 else
9770 gcc_header_sys_mman_h=no
9771 fi
9772
9773 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9774 if test "x$ac_cv_func_mmap" = x""yes; then :
9775 gcc_func_mmap=yes
9776 else
9777 gcc_func_mmap=no
9778 fi
9779
9780 if test "$gcc_header_sys_mman_h" != yes \
9781 || test "$gcc_func_mmap" != yes; then
9782 gcc_cv_func_mmap_file=no
9783 gcc_cv_func_mmap_dev_zero=no
9784 gcc_cv_func_mmap_anon=no
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9787 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9788 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 # Add a system to this blacklist if
9792 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9793 # memory area containing the same data that you'd get if you applied
9794 # read() to the same fd. The only system known to have a problem here
9795 # is VMS, where text files have record structure.
9796 case "$host_os" in
9797 *vms* | ultrix*)
9798 gcc_cv_func_mmap_file=no ;;
9799 *)
9800 gcc_cv_func_mmap_file=yes;;
9801 esac
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9804 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9806 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9807 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 # Add a system to this blacklist if it has mmap() but /dev/zero
9811 # does not exist, or if mmapping /dev/zero does not give anonymous
9812 # zeroed pages with both the following properties:
9813 # 1. If you map N consecutive pages in with one call, and then
9814 # unmap any subset of those pages, the pages that were not
9815 # explicitly unmapped remain accessible.
9816 # 2. If you map two adjacent blocks of memory and then unmap them
9817 # both at once, they must both go away.
9818 # Systems known to be in this category are Windows (all variants),
9819 # VMS, and Darwin.
9820 case "$host_os" in
9821 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9822 gcc_cv_func_mmap_dev_zero=no ;;
9823 *)
9824 gcc_cv_func_mmap_dev_zero=yes;;
9825 esac
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9828 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9829
9830 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9832 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9833 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include <sys/types.h>
9839 #include <sys/mman.h>
9840 #include <unistd.h>
9841
9842 #ifndef MAP_ANONYMOUS
9843 #define MAP_ANONYMOUS MAP_ANON
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 int n = MAP_ANONYMOUS;
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_cxx_try_compile "$LINENO"; then :
9855 gcc_cv_decl_map_anon=yes
9856 else
9857 gcc_cv_decl_map_anon=no
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9862 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9863
9864 if test $gcc_cv_decl_map_anon = no; then
9865 gcc_cv_func_mmap_anon=no
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9868 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9869 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9873 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9874 # doesn't give anonymous zeroed pages with the same properties listed
9875 # above for use of /dev/zero.
9876 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9877 case "$host_os" in
9878 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9879 gcc_cv_func_mmap_anon=no ;;
9880 *)
9881 gcc_cv_func_mmap_anon=yes;;
9882 esac
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9885 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9886 fi
9887 fi
9888
9889 if test $gcc_cv_func_mmap_file = yes; then
9890
9891 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9892
9893 fi
9894 if test $gcc_cv_func_mmap_dev_zero = yes; then
9895
9896 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9897
9898 fi
9899 if test $gcc_cv_func_mmap_anon = yes; then
9900
9901 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9902
9903 fi
9904
9905
9906 case "${host}" in
9907 *-*-*vms*)
9908 # Under VMS, vfork works very differently than on Unix. The standard test
9909 # won't work, and it isn't easily adaptable. It makes more sense to
9910 # just force it.
9911 ac_cv_func_vfork_works=yes
9912 ;;
9913 esac
9914 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9915 if test "x$ac_cv_type_pid_t" = x""yes; then :
9916
9917 else
9918
9919 cat >>confdefs.h <<_ACEOF
9920 #define pid_t int
9921 _ACEOF
9922
9923 fi
9924
9925 for ac_header in vfork.h
9926 do :
9927 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9928 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_VFORK_H 1
9931 _ACEOF
9932
9933 fi
9934 done
9935
9936 for ac_func in fork vfork
9937 do :
9938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9940 eval as_val=\$$as_ac_var
9941 if test "x$as_val" = x""yes; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9944 _ACEOF
9945
9946 fi
9947 done
9948
9949 if test "x$ac_cv_func_fork" = xyes; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9951 $as_echo_n "checking for working fork... " >&6; }
9952 if test "${ac_cv_func_fork_works+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test "$cross_compiling" = yes; then :
9956 ac_cv_func_fork_works=cross
9957 else
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961 int
9962 main ()
9963 {
9964
9965 /* By Ruediger Kuhlmann. */
9966 return fork () < 0;
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_cxx_try_run "$LINENO"; then :
9973 ac_cv_func_fork_works=yes
9974 else
9975 ac_cv_func_fork_works=no
9976 fi
9977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9978 conftest.$ac_objext conftest.beam conftest.$ac_ext
9979 fi
9980
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9983 $as_echo "$ac_cv_func_fork_works" >&6; }
9984
9985 else
9986 ac_cv_func_fork_works=$ac_cv_func_fork
9987 fi
9988 if test "x$ac_cv_func_fork_works" = xcross; then
9989 case $host in
9990 *-*-amigaos* | *-*-msdosdjgpp*)
9991 # Override, as these systems have only a dummy fork() stub
9992 ac_cv_func_fork_works=no
9993 ;;
9994 *)
9995 ac_cv_func_fork_works=yes
9996 ;;
9997 esac
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9999 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10000 fi
10001 ac_cv_func_vfork_works=$ac_cv_func_vfork
10002 if test "x$ac_cv_func_vfork" = xyes; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10004 $as_echo_n "checking for working vfork... " >&6; }
10005 if test "${ac_cv_func_vfork_works+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 if test "$cross_compiling" = yes; then :
10009 ac_cv_func_vfork_works=cross
10010 else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 /* Thanks to Paul Eggert for this test. */
10014 $ac_includes_default
10015 #include <sys/wait.h>
10016 #ifdef HAVE_VFORK_H
10017 # include <vfork.h>
10018 #endif
10019 /* On some sparc systems, changes by the child to local and incoming
10020 argument registers are propagated back to the parent. The compiler
10021 is told about this with #include <vfork.h>, but some compilers
10022 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10023 static variable whose address is put into a register that is
10024 clobbered by the vfork. */
10025 static void
10026 #ifdef __cplusplus
10027 sparc_address_test (int arg)
10028 # else
10029 sparc_address_test (arg) int arg;
10030 #endif
10031 {
10032 static pid_t child;
10033 if (!child) {
10034 child = vfork ();
10035 if (child < 0) {
10036 perror ("vfork");
10037 _exit(2);
10038 }
10039 if (!child) {
10040 arg = getpid();
10041 write(-1, "", 0);
10042 _exit (arg);
10043 }
10044 }
10045 }
10046
10047 int
10048 main ()
10049 {
10050 pid_t parent = getpid ();
10051 pid_t child;
10052
10053 sparc_address_test (0);
10054
10055 child = vfork ();
10056
10057 if (child == 0) {
10058 /* Here is another test for sparc vfork register problems. This
10059 test uses lots of local variables, at least as many local
10060 variables as main has allocated so far including compiler
10061 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10062 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10063 reuse the register of parent for one of the local variables,
10064 since it will think that parent can't possibly be used any more
10065 in this routine. Assigning to the local variable will thus
10066 munge parent in the parent process. */
10067 pid_t
10068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10070 /* Convince the compiler that p..p7 are live; otherwise, it might
10071 use the same hardware register for all 8 local variables. */
10072 if (p != p1 || p != p2 || p != p3 || p != p4
10073 || p != p5 || p != p6 || p != p7)
10074 _exit(1);
10075
10076 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10077 from child file descriptors. If the child closes a descriptor
10078 before it execs or exits, this munges the parent's descriptor
10079 as well. Test for this by closing stdout in the child. */
10080 _exit(close(fileno(stdout)) != 0);
10081 } else {
10082 int status;
10083 struct stat st;
10084
10085 while (wait(&status) != child)
10086 ;
10087 return (
10088 /* Was there some problem with vforking? */
10089 child < 0
10090
10091 /* Did the child fail? (This shouldn't happen.) */
10092 || status
10093
10094 /* Did the vfork/compiler bug occur? */
10095 || parent != getpid()
10096
10097 /* Did the file descriptor bug occur? */
10098 || fstat(fileno(stdout), &st) != 0
10099 );
10100 }
10101 }
10102 _ACEOF
10103 if ac_fn_cxx_try_run "$LINENO"; then :
10104 ac_cv_func_vfork_works=yes
10105 else
10106 ac_cv_func_vfork_works=no
10107 fi
10108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10109 conftest.$ac_objext conftest.beam conftest.$ac_ext
10110 fi
10111
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10114 $as_echo "$ac_cv_func_vfork_works" >&6; }
10115
10116 fi;
10117 if test "x$ac_cv_func_fork_works" = xcross; then
10118 ac_cv_func_vfork_works=$ac_cv_func_vfork
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10120 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10121 fi
10122
10123 if test "x$ac_cv_func_vfork_works" = xyes; then
10124
10125 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10126
10127 else
10128
10129 $as_echo "#define vfork fork" >>confdefs.h
10130
10131 fi
10132 if test "x$ac_cv_func_fork_works" = xyes; then
10133
10134 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10135
10136 fi
10137
10138
10139
10140 if test "X$prefix" = "XNONE"; then
10141 acl_final_prefix="$ac_default_prefix"
10142 else
10143 acl_final_prefix="$prefix"
10144 fi
10145 if test "X$exec_prefix" = "XNONE"; then
10146 acl_final_exec_prefix='${prefix}'
10147 else
10148 acl_final_exec_prefix="$exec_prefix"
10149 fi
10150 acl_save_prefix="$prefix"
10151 prefix="$acl_final_prefix"
10152 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10153 prefix="$acl_save_prefix"
10154
10155
10156 # Check whether --with-gnu-ld was given.
10157 if test "${with_gnu_ld+set}" = set; then :
10158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10159 else
10160 with_gnu_ld=no
10161 fi
10162
10163 # Prepare PATH_SEPARATOR.
10164 # The user is always right.
10165 if test "${PATH_SEPARATOR+set}" != set; then
10166 echo "#! /bin/sh" >conf$$.sh
10167 echo "exit 0" >>conf$$.sh
10168 chmod +x conf$$.sh
10169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10170 PATH_SEPARATOR=';'
10171 else
10172 PATH_SEPARATOR=:
10173 fi
10174 rm -f conf$$.sh
10175 fi
10176 ac_prog=ld
10177 if test "$GCC" = yes; then
10178 # Check if gcc -print-prog-name=ld gives a path.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10180 $as_echo_n "checking for ld used by GCC... " >&6; }
10181 case $host in
10182 *-*-mingw*)
10183 # gcc leaves a trailing carriage return which upsets mingw
10184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10185 *)
10186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10187 esac
10188 case $ac_prog in
10189 # Accept absolute paths.
10190 [\\/]* | [A-Za-z]:[\\/]*)
10191 re_direlt='/[^/][^/]*/\.\./'
10192 # Canonicalize the path of ld
10193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10196 done
10197 test -z "$LD" && LD="$ac_prog"
10198 ;;
10199 "")
10200 # If it fails, then pretend we aren't using GCC.
10201 ac_prog=ld
10202 ;;
10203 *)
10204 # If it is relative, then search for the first ld in PATH.
10205 with_gnu_ld=unknown
10206 ;;
10207 esac
10208 elif test "$with_gnu_ld" = yes; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10210 $as_echo_n "checking for GNU ld... " >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10213 $as_echo_n "checking for non-GNU ld... " >&6; }
10214 fi
10215 if test "${acl_cv_path_LD+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 if test -z "$LD"; then
10219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10220 for ac_dir in $PATH; do
10221 test -z "$ac_dir" && ac_dir=.
10222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10223 acl_cv_path_LD="$ac_dir/$ac_prog"
10224 # Check to see if the program is GNU ld. I'd rather use --version,
10225 # but apparently some GNU ld's only accept -v.
10226 # Break only if it was the GNU/non-GNU ld that we prefer.
10227 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10228 test "$with_gnu_ld" != no && break
10229 else
10230 test "$with_gnu_ld" != yes && break
10231 fi
10232 fi
10233 done
10234 IFS="$ac_save_ifs"
10235 else
10236 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10237 fi
10238 fi
10239
10240 LD="$acl_cv_path_LD"
10241 if test -n "$LD"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10243 $as_echo "$LD" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10247 fi
10248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10251 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10255 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10256 acl_cv_prog_gnu_ld=yes
10257 else
10258 acl_cv_prog_gnu_ld=no
10259 fi
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10262 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10263 with_gnu_ld=$acl_cv_prog_gnu_ld
10264
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10268 $as_echo_n "checking for shared library run path origin... " >&6; }
10269 if test "${acl_cv_rpath+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272
10273 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10274 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10275 . ./conftest.sh
10276 rm -f ./conftest.sh
10277 acl_cv_rpath=done
10278
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10281 $as_echo "$acl_cv_rpath" >&6; }
10282 wl="$acl_cv_wl"
10283 libext="$acl_cv_libext"
10284 shlibext="$acl_cv_shlibext"
10285 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10286 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10287 hardcode_direct="$acl_cv_hardcode_direct"
10288 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10289 # Check whether --enable-rpath was given.
10290 if test "${enable_rpath+set}" = set; then :
10291 enableval=$enable_rpath; :
10292 else
10293 enable_rpath=yes
10294 fi
10295
10296
10297
10298
10299
10300
10301
10302
10303 use_additional=yes
10304
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10309
10310 eval additional_includedir=\"$includedir\"
10311 eval additional_libdir=\"$libdir\"
10312
10313 exec_prefix="$acl_save_exec_prefix"
10314 prefix="$acl_save_prefix"
10315
10316
10317 # Check whether --with-libiconv-prefix was given.
10318 if test "${with_libiconv_prefix+set}" = set; then :
10319 withval=$with_libiconv_prefix;
10320 if test "X$withval" = "Xno"; then
10321 use_additional=no
10322 else
10323 if test "X$withval" = "X"; then
10324
10325 acl_save_prefix="$prefix"
10326 prefix="$acl_final_prefix"
10327 acl_save_exec_prefix="$exec_prefix"
10328 exec_prefix="$acl_final_exec_prefix"
10329
10330 eval additional_includedir=\"$includedir\"
10331 eval additional_libdir=\"$libdir\"
10332
10333 exec_prefix="$acl_save_exec_prefix"
10334 prefix="$acl_save_prefix"
10335
10336 else
10337 additional_includedir="$withval/include"
10338 additional_libdir="$withval/lib"
10339 fi
10340 fi
10341
10342 fi
10343
10344 LIBICONV=
10345 LTLIBICONV=
10346 INCICONV=
10347 rpathdirs=
10348 ltrpathdirs=
10349 names_already_handled=
10350 names_next_round='iconv '
10351 while test -n "$names_next_round"; do
10352 names_this_round="$names_next_round"
10353 names_next_round=
10354 for name in $names_this_round; do
10355 already_handled=
10356 for n in $names_already_handled; do
10357 if test "$n" = "$name"; then
10358 already_handled=yes
10359 break
10360 fi
10361 done
10362 if test -z "$already_handled"; then
10363 names_already_handled="$names_already_handled $name"
10364 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10365 eval value=\"\$HAVE_LIB$uppername\"
10366 if test -n "$value"; then
10367 if test "$value" = yes; then
10368 eval value=\"\$LIB$uppername\"
10369 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10370 eval value=\"\$LTLIB$uppername\"
10371 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10372 else
10373 :
10374 fi
10375 else
10376 found_dir=
10377 found_la=
10378 found_so=
10379 found_a=
10380 if test $use_additional = yes; then
10381 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10382 found_dir="$additional_libdir"
10383 found_so="$additional_libdir/lib$name.$shlibext"
10384 if test -f "$additional_libdir/lib$name.la"; then
10385 found_la="$additional_libdir/lib$name.la"
10386 fi
10387 else
10388 if test -f "$additional_libdir/lib$name.$libext"; then
10389 found_dir="$additional_libdir"
10390 found_a="$additional_libdir/lib$name.$libext"
10391 if test -f "$additional_libdir/lib$name.la"; then
10392 found_la="$additional_libdir/lib$name.la"
10393 fi
10394 fi
10395 fi
10396 fi
10397 if test "X$found_dir" = "X"; then
10398 for x in $LDFLAGS $LTLIBICONV; do
10399
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10404 eval x=\"$x\"
10405 exec_prefix="$acl_save_exec_prefix"
10406 prefix="$acl_save_prefix"
10407
10408 case "$x" in
10409 -L*)
10410 dir=`echo "X$x" | sed -e 's/^X-L//'`
10411 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10412 found_dir="$dir"
10413 found_so="$dir/lib$name.$shlibext"
10414 if test -f "$dir/lib$name.la"; then
10415 found_la="$dir/lib$name.la"
10416 fi
10417 else
10418 if test -f "$dir/lib$name.$libext"; then
10419 found_dir="$dir"
10420 found_a="$dir/lib$name.$libext"
10421 if test -f "$dir/lib$name.la"; then
10422 found_la="$dir/lib$name.la"
10423 fi
10424 fi
10425 fi
10426 ;;
10427 esac
10428 if test "X$found_dir" != "X"; then
10429 break
10430 fi
10431 done
10432 fi
10433 if test "X$found_dir" != "X"; then
10434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10435 if test "X$found_so" != "X"; then
10436 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10438 else
10439 haveit=
10440 for x in $ltrpathdirs; do
10441 if test "X$x" = "X$found_dir"; then
10442 haveit=yes
10443 break
10444 fi
10445 done
10446 if test -z "$haveit"; then
10447 ltrpathdirs="$ltrpathdirs $found_dir"
10448 fi
10449 if test "$hardcode_direct" = yes; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10451 else
10452 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10454 haveit=
10455 for x in $rpathdirs; do
10456 if test "X$x" = "X$found_dir"; then
10457 haveit=yes
10458 break
10459 fi
10460 done
10461 if test -z "$haveit"; then
10462 rpathdirs="$rpathdirs $found_dir"
10463 fi
10464 else
10465 haveit=
10466 for x in $LDFLAGS $LIBICONV; do
10467
10468 acl_save_prefix="$prefix"
10469 prefix="$acl_final_prefix"
10470 acl_save_exec_prefix="$exec_prefix"
10471 exec_prefix="$acl_final_exec_prefix"
10472 eval x=\"$x\"
10473 exec_prefix="$acl_save_exec_prefix"
10474 prefix="$acl_save_prefix"
10475
10476 if test "X$x" = "X-L$found_dir"; then
10477 haveit=yes
10478 break
10479 fi
10480 done
10481 if test -z "$haveit"; then
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10483 fi
10484 if test "$hardcode_minus_L" != no; then
10485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10486 else
10487 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10488 fi
10489 fi
10490 fi
10491 fi
10492 else
10493 if test "X$found_a" != "X"; then
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10495 else
10496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10497 fi
10498 fi
10499 additional_includedir=
10500 case "$found_dir" in
10501 */lib | */lib/)
10502 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10503 additional_includedir="$basedir/include"
10504 ;;
10505 esac
10506 if test "X$additional_includedir" != "X"; then
10507 if test "X$additional_includedir" != "X/usr/include"; then
10508 haveit=
10509 if test "X$additional_includedir" = "X/usr/local/include"; then
10510 if test -n "$GCC"; then
10511 case $host_os in
10512 linux*) haveit=yes;;
10513 esac
10514 fi
10515 fi
10516 if test -z "$haveit"; then
10517 for x in $CPPFLAGS $INCICONV; do
10518
10519 acl_save_prefix="$prefix"
10520 prefix="$acl_final_prefix"
10521 acl_save_exec_prefix="$exec_prefix"
10522 exec_prefix="$acl_final_exec_prefix"
10523 eval x=\"$x\"
10524 exec_prefix="$acl_save_exec_prefix"
10525 prefix="$acl_save_prefix"
10526
10527 if test "X$x" = "X-I$additional_includedir"; then
10528 haveit=yes
10529 break
10530 fi
10531 done
10532 if test -z "$haveit"; then
10533 if test -d "$additional_includedir"; then
10534 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10535 fi
10536 fi
10537 fi
10538 fi
10539 fi
10540 if test -n "$found_la"; then
10541 save_libdir="$libdir"
10542 case "$found_la" in
10543 */* | *\\*) . "$found_la" ;;
10544 *) . "./$found_la" ;;
10545 esac
10546 libdir="$save_libdir"
10547 for dep in $dependency_libs; do
10548 case "$dep" in
10549 -L*)
10550 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10551 if test "X$additional_libdir" != "X/usr/lib"; then
10552 haveit=
10553 if test "X$additional_libdir" = "X/usr/local/lib"; then
10554 if test -n "$GCC"; then
10555 case $host_os in
10556 linux*) haveit=yes;;
10557 esac
10558 fi
10559 fi
10560 if test -z "$haveit"; then
10561 haveit=
10562 for x in $LDFLAGS $LIBICONV; do
10563
10564 acl_save_prefix="$prefix"
10565 prefix="$acl_final_prefix"
10566 acl_save_exec_prefix="$exec_prefix"
10567 exec_prefix="$acl_final_exec_prefix"
10568 eval x=\"$x\"
10569 exec_prefix="$acl_save_exec_prefix"
10570 prefix="$acl_save_prefix"
10571
10572 if test "X$x" = "X-L$additional_libdir"; then
10573 haveit=yes
10574 break
10575 fi
10576 done
10577 if test -z "$haveit"; then
10578 if test -d "$additional_libdir"; then
10579 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10580 fi
10581 fi
10582 haveit=
10583 for x in $LDFLAGS $LTLIBICONV; do
10584
10585 acl_save_prefix="$prefix"
10586 prefix="$acl_final_prefix"
10587 acl_save_exec_prefix="$exec_prefix"
10588 exec_prefix="$acl_final_exec_prefix"
10589 eval x=\"$x\"
10590 exec_prefix="$acl_save_exec_prefix"
10591 prefix="$acl_save_prefix"
10592
10593 if test "X$x" = "X-L$additional_libdir"; then
10594 haveit=yes
10595 break
10596 fi
10597 done
10598 if test -z "$haveit"; then
10599 if test -d "$additional_libdir"; then
10600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10601 fi
10602 fi
10603 fi
10604 fi
10605 ;;
10606 -R*)
10607 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10608 if test "$enable_rpath" != no; then
10609 haveit=
10610 for x in $rpathdirs; do
10611 if test "X$x" = "X$dir"; then
10612 haveit=yes
10613 break
10614 fi
10615 done
10616 if test -z "$haveit"; then
10617 rpathdirs="$rpathdirs $dir"
10618 fi
10619 haveit=
10620 for x in $ltrpathdirs; do
10621 if test "X$x" = "X$dir"; then
10622 haveit=yes
10623 break
10624 fi
10625 done
10626 if test -z "$haveit"; then
10627 ltrpathdirs="$ltrpathdirs $dir"
10628 fi
10629 fi
10630 ;;
10631 -l*)
10632 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10633 ;;
10634 *.la)
10635 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10636 ;;
10637 *)
10638 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10640 ;;
10641 esac
10642 done
10643 fi
10644 else
10645 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10647 fi
10648 fi
10649 fi
10650 done
10651 done
10652 if test "X$rpathdirs" != "X"; then
10653 if test -n "$hardcode_libdir_separator"; then
10654 alldirs=
10655 for found_dir in $rpathdirs; do
10656 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10657 done
10658 acl_save_libdir="$libdir"
10659 libdir="$alldirs"
10660 eval flag=\"$hardcode_libdir_flag_spec\"
10661 libdir="$acl_save_libdir"
10662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10663 else
10664 for found_dir in $rpathdirs; do
10665 acl_save_libdir="$libdir"
10666 libdir="$found_dir"
10667 eval flag=\"$hardcode_libdir_flag_spec\"
10668 libdir="$acl_save_libdir"
10669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10670 done
10671 fi
10672 fi
10673 if test "X$ltrpathdirs" != "X"; then
10674 for found_dir in $ltrpathdirs; do
10675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10676 done
10677 fi
10678
10679
10680
10681
10682
10683
10684
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10686 $as_echo_n "checking for iconv... " >&6; }
10687 if test "${am_cv_func_iconv+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690
10691 am_cv_func_iconv="no, consider installing GNU libiconv"
10692 am_cv_lib_iconv=no
10693 am_save_CPPFLAGS="$CPPFLAGS"
10694 CPPFLAGS="$CPPFLAGS $INCICONV"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <stdlib.h>
10698 #include <iconv.h>
10699 int
10700 main ()
10701 {
10702 iconv_t cd = iconv_open("","");
10703 iconv(cd,NULL,NULL,NULL,NULL);
10704 iconv_close(cd);
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_cxx_try_link "$LINENO"; then :
10710 am_cv_func_iconv=yes
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 CPPFLAGS="$am_save_CPPFLAGS"
10715
10716 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10717 for _libs in .libs _libs; do
10718 am_save_CPPFLAGS="$CPPFLAGS"
10719 am_save_LIBS="$LIBS"
10720 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10721 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <stdlib.h>
10725 #include <iconv.h>
10726 int
10727 main ()
10728 {
10729 iconv_t cd = iconv_open("","");
10730 iconv(cd,NULL,NULL,NULL,NULL);
10731 iconv_close(cd);
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_cxx_try_link "$LINENO"; then :
10737 INCICONV="-I../libiconv/include"
10738 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10739 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10740 am_cv_lib_iconv=yes
10741 am_cv_func_iconv=yes
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 CPPFLAGS="$am_save_CPPFLAGS"
10746 LIBS="$am_save_LIBS"
10747 if test "$am_cv_func_iconv" = "yes"; then
10748 break
10749 fi
10750 done
10751 fi
10752
10753 if test "$am_cv_func_iconv" != yes; then
10754 am_save_CPPFLAGS="$CPPFLAGS"
10755 am_save_LIBS="$LIBS"
10756 CPPFLAGS="$LIBS $INCICONV"
10757 LIBS="$LIBS $LIBICONV"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include <stdlib.h>
10761 #include <iconv.h>
10762 int
10763 main ()
10764 {
10765 iconv_t cd = iconv_open("","");
10766 iconv(cd,NULL,NULL,NULL,NULL);
10767 iconv_close(cd);
10768 ;
10769 return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_cxx_try_link "$LINENO"; then :
10773 am_cv_lib_iconv=yes
10774 am_cv_func_iconv=yes
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 CPPFLAGS="$am_save_CPPFLAGS"
10779 LIBS="$am_save_LIBS"
10780 fi
10781
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10784 $as_echo "$am_cv_func_iconv" >&6; }
10785 if test "$am_cv_func_iconv" = yes; then
10786
10787 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10788
10789 fi
10790 if test "$am_cv_lib_iconv" = yes; then
10791
10792 for element in $INCICONV; do
10793 haveit=
10794 for x in $CPPFLAGS; do
10795
10796 acl_save_prefix="$prefix"
10797 prefix="$acl_final_prefix"
10798 acl_save_exec_prefix="$exec_prefix"
10799 exec_prefix="$acl_final_exec_prefix"
10800 eval x=\"$x\"
10801 exec_prefix="$acl_save_exec_prefix"
10802 prefix="$acl_save_prefix"
10803
10804 if test "X$x" = "X$element"; then
10805 haveit=yes
10806 break
10807 fi
10808 done
10809 if test -z "$haveit"; then
10810 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10811 fi
10812 done
10813
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10815 $as_echo_n "checking how to link with libiconv... " >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10817 $as_echo "$LIBICONV" >&6; }
10818 else
10819 LIBICONV=
10820 LTLIBICONV=
10821 fi
10822
10823
10824
10825 if test "$am_cv_func_iconv" = yes; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10827 $as_echo_n "checking for iconv declaration... " >&6; }
10828 if test "${am_cv_proto_iconv+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834
10835 #include <stdlib.h>
10836 #include <iconv.h>
10837 extern
10838 #ifdef __cplusplus
10839 "C"
10840 #endif
10841 #if defined(__STDC__) || defined(__cplusplus)
10842 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10843 #else
10844 size_t iconv();
10845 #endif
10846
10847 int
10848 main ()
10849 {
10850
10851 ;
10852 return 0;
10853 }
10854 _ACEOF
10855 if ac_fn_cxx_try_compile "$LINENO"; then :
10856 am_cv_proto_iconv_arg1=""
10857 else
10858 am_cv_proto_iconv_arg1="const"
10859 fi
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861 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);"
10862 fi
10863
10864 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10866 }$am_cv_proto_iconv" >&5
10867 $as_echo "${ac_t:-
10868 }$am_cv_proto_iconv" >&6; }
10869
10870 cat >>confdefs.h <<_ACEOF
10871 #define ICONV_CONST $am_cv_proto_iconv_arg1
10872 _ACEOF
10873
10874 fi
10875
10876
10877 # Until we have in-tree GNU iconv:
10878 LIBICONV_DEP=
10879 if test -f "$LTLIBICONV"; then
10880 LIBICONV_DEP=$LTLIBICONV
10881 fi
10882
10883
10884
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10886 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10887 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <locale.h>
10893 int
10894 main ()
10895 {
10896 return LC_MESSAGES
10897 ;
10898 return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_cxx_try_link "$LINENO"; then :
10902 am_cv_val_LC_MESSAGES=yes
10903 else
10904 am_cv_val_LC_MESSAGES=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10910 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10911 if test $am_cv_val_LC_MESSAGES = yes; then
10912
10913 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10914
10915 fi
10916
10917
10918
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10920 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10921 if test "${am_cv_langinfo_codeset+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #include <langinfo.h>
10927 int
10928 main ()
10929 {
10930 char* cs = nl_langinfo(CODESET);
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_cxx_try_link "$LINENO"; then :
10936 am_cv_langinfo_codeset=yes
10937 else
10938 am_cv_langinfo_codeset=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10945 $as_echo "$am_cv_langinfo_codeset" >&6; }
10946 if test $am_cv_langinfo_codeset = yes; then
10947
10948 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10949
10950 fi
10951
10952
10953 # We will need to find libiberty.h and ansidecl.h
10954 saved_CFLAGS="$CFLAGS"
10955 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10956 saved_CXXFLAGS="$CXXFLAGS"
10957 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10958
10959 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10960 # normal autoconf function for these. But force definition of
10961 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10962 # basename handling in libiberty.h.
10963 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10964 #undef HAVE_DECL_BASENAME
10965 #define HAVE_DECL_BASENAME 1
10966 #include \"ansidecl.h\"
10967 #include \"system.h\"
10968 "
10969 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10970 ac_have_decl=1
10971 else
10972 ac_have_decl=0
10973 fi
10974
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_DECL_BASENAME $ac_have_decl
10977 _ACEOF
10978 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10979 #undef HAVE_DECL_BASENAME
10980 #define HAVE_DECL_BASENAME 1
10981 #include \"ansidecl.h\"
10982 #include \"system.h\"
10983 "
10984 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10985 ac_have_decl=1
10986 else
10987 ac_have_decl=0
10988 fi
10989
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_DECL_STRSTR $ac_have_decl
10992 _ACEOF
10993
10994
10995 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10996 madvise stpcpy strnlen strsignal strverscmp \
10997 strtol strtoul strtoll strtoull setenv unsetenv \
10998 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10999 free 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
11000 do
11001 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11003 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11004 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #undef $ac_tr_decl
11010 #define $ac_tr_decl 1
11011
11012 #include "ansidecl.h"
11013 #include "system.h"
11014
11015 int
11016 main ()
11017 {
11018 #ifndef $ac_func
11019 char *(*pfn) = (char *(*)) $ac_func ;
11020 #endif
11021 ;
11022 return 0;
11023 }
11024 _ACEOF
11025 if ac_fn_cxx_try_compile "$LINENO"; then :
11026 eval "gcc_cv_have_decl_$ac_func=yes"
11027 else
11028 eval "gcc_cv_have_decl_$ac_func=no"
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 fi
11032
11033 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11036 #define $ac_tr_decl 1
11037 _ACEOF
11038
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11042 #define $ac_tr_decl 0
11043 _ACEOF
11044
11045 fi
11046
11047 done
11048
11049
11050 for ac_func in getrlimit setrlimit getrusage
11051 do
11052 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11054 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11055 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #undef $ac_tr_decl
11061 #define $ac_tr_decl 1
11062
11063 #include "ansidecl.h"
11064 #include "system.h"
11065 #ifdef HAVE_SYS_RESOURCE_H
11066 #include <sys/resource.h>
11067 #endif
11068
11069
11070 int
11071 main ()
11072 {
11073 #ifndef $ac_func
11074 char *(*pfn) = (char *(*)) $ac_func ;
11075 #endif
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_cxx_try_compile "$LINENO"; then :
11081 eval "gcc_cv_have_decl_$ac_func=yes"
11082 else
11083 eval "gcc_cv_have_decl_$ac_func=no"
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 fi
11087
11088 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11090 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11091 #define $ac_tr_decl 1
11092 _ACEOF
11093
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11097 #define $ac_tr_decl 0
11098 _ACEOF
11099
11100 fi
11101
11102 done
11103
11104
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11107
11108 #include "ansidecl.h"
11109 #include "system.h"
11110 #ifdef HAVE_SYS_RESOURCE_H
11111 #include <sys/resource.h>
11112 #endif
11113
11114 int
11115 main ()
11116 {
11117 rlim_t l = 0;
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_cxx_try_compile "$LINENO"; then :
11123
11124 else
11125
11126 $as_echo "#define rlim_t long" >>confdefs.h
11127
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11130
11131 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11132 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11133 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11134 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11135 for ac_func in ldgetname
11136 do
11137 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11139 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11140 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 #undef $ac_tr_decl
11146 #define $ac_tr_decl 1
11147
11148 #include "ansidecl.h"
11149 #include "system.h"
11150 #ifdef HAVE_LDFCN_H
11151 #undef FREAD
11152 #undef FWRITE
11153 #include <ldfcn.h>
11154 #endif
11155
11156
11157 int
11158 main ()
11159 {
11160 #ifndef $ac_func
11161 char *(*pfn) = (char *(*)) $ac_func ;
11162 #endif
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_cxx_try_compile "$LINENO"; then :
11168 eval "gcc_cv_have_decl_$ac_func=yes"
11169 else
11170 eval "gcc_cv_have_decl_$ac_func=no"
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 fi
11174
11175 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11178 #define $ac_tr_decl 1
11179 _ACEOF
11180
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11184 #define $ac_tr_decl 0
11185 _ACEOF
11186
11187 fi
11188
11189 done
11190
11191
11192 for ac_func in times
11193 do
11194 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11196 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11197 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #undef $ac_tr_decl
11203 #define $ac_tr_decl 1
11204
11205 #include "ansidecl.h"
11206 #include "system.h"
11207 #ifdef HAVE_SYS_TIMES_H
11208 #include <sys/times.h>
11209 #endif
11210
11211
11212 int
11213 main ()
11214 {
11215 #ifndef $ac_func
11216 char *(*pfn) = (char *(*)) $ac_func ;
11217 #endif
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_cxx_try_compile "$LINENO"; then :
11223 eval "gcc_cv_have_decl_$ac_func=yes"
11224 else
11225 eval "gcc_cv_have_decl_$ac_func=no"
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 fi
11229
11230 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11232 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11233 #define $ac_tr_decl 1
11234 _ACEOF
11235
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11239 #define $ac_tr_decl 0
11240 _ACEOF
11241
11242 fi
11243
11244 done
11245
11246
11247 for ac_func in sigaltstack
11248 do
11249 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11251 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11252 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257 #undef $ac_tr_decl
11258 #define $ac_tr_decl 1
11259
11260 #include "ansidecl.h"
11261 #include "system.h"
11262 #include <signal.h>
11263
11264
11265 int
11266 main ()
11267 {
11268 #ifndef $ac_func
11269 char *(*pfn) = (char *(*)) $ac_func ;
11270 #endif
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_cxx_try_compile "$LINENO"; then :
11276 eval "gcc_cv_have_decl_$ac_func=yes"
11277 else
11278 eval "gcc_cv_have_decl_$ac_func=no"
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 fi
11282
11283 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11286 #define $ac_tr_decl 1
11287 _ACEOF
11288
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11292 #define $ac_tr_decl 0
11293 _ACEOF
11294
11295 fi
11296
11297 done
11298
11299
11300 # More time-related stuff.
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11302 $as_echo_n "checking for struct tms... " >&6; }
11303 if test "${ac_cv_struct_tms+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309
11310 #include "ansidecl.h"
11311 #include "system.h"
11312 #ifdef HAVE_SYS_TIMES_H
11313 #include <sys/times.h>
11314 #endif
11315
11316 int
11317 main ()
11318 {
11319 struct tms tms;
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_cxx_try_compile "$LINENO"; then :
11325 ac_cv_struct_tms=yes
11326 else
11327 ac_cv_struct_tms=no
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11332 $as_echo "$ac_cv_struct_tms" >&6; }
11333 if test $ac_cv_struct_tms = yes; then
11334
11335 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11336
11337 fi
11338
11339 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11340 # revisit after autoconf 2.50.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11342 $as_echo_n "checking for clock_t... " >&6; }
11343 if test "${gcc_cv_type_clock_t+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 #include "ansidecl.h"
11351 #include "system.h"
11352
11353 int
11354 main ()
11355 {
11356 clock_t x;
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_cxx_try_compile "$LINENO"; then :
11362 gcc_cv_type_clock_t=yes
11363 else
11364 gcc_cv_type_clock_t=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11369 $as_echo "$gcc_cv_type_clock_t" >&6; }
11370 if test $gcc_cv_type_clock_t = yes; then
11371
11372 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11373
11374 fi
11375
11376 # Check if F_SETLKW is supported by fcntl.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11378 $as_echo_n "checking for F_SETLKW... " >&6; }
11379 if test "${ac_cv_f_setlkw+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 #include <fcntl.h>
11387 int
11388 main ()
11389 {
11390
11391 struct flock fl;
11392 fl.l_whence = 0;
11393 fl.l_start = 0;
11394 fl.l_len = 0;
11395 fl.l_pid = 0;
11396 return fcntl (1, F_SETLKW, &fl);
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 if ac_fn_cxx_try_compile "$LINENO"; then :
11402 ac_cv_f_setlkw=yes
11403 else
11404 ac_cv_f_setlkw=no
11405 fi
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 fi
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11409 $as_echo "$ac_cv_f_setlkw" >&6; }
11410 if test $ac_cv_f_setlkw = yes; then
11411
11412 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11413
11414 fi
11415
11416 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11417 CFLAGS="$saved_CFLAGS"
11418 CXXFLAGS="$saved_CXXFLAGS"
11419
11420 # mkdir takes a single argument on some systems.
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11422 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11423 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428
11429 #include <sys/types.h>
11430 #ifdef HAVE_SYS_STAT_H
11431 # include <sys/stat.h>
11432 #endif
11433 #ifdef HAVE_UNISTD_H
11434 # include <unistd.h>
11435 #endif
11436 #ifdef HAVE_DIRECT_H
11437 # include <direct.h>
11438 #endif
11439 int
11440 main ()
11441 {
11442 mkdir ("foo", 0);
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_cxx_try_compile "$LINENO"; then :
11448 gcc_cv_mkdir_takes_one_arg=no
11449 else
11450 gcc_cv_mkdir_takes_one_arg=yes
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11455 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11456 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11457
11458 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11459
11460 fi
11461
11462
11463 # File extensions
11464 manext='.1'
11465 objext='.o'
11466
11467
11468
11469 # With Setjmp/Longjmp based exception handling.
11470 # Check whether --enable-sjlj-exceptions was given.
11471 if test "${enable_sjlj_exceptions+set}" = set; then :
11472 enableval=$enable_sjlj_exceptions; case $target in
11473 *-*-hpux10*)
11474 if test $enableval != yes; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11476 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11477 enableval=yes
11478 fi
11479 ;;
11480 esac
11481 force_sjlj_exceptions=yes
11482 else
11483 case $target in
11484 *-*-hpux10*)
11485 force_sjlj_exceptions=yes
11486 enableval=yes
11487 ;;
11488 lm32*-*-*)
11489 force_sjlj_exceptions=yes
11490 enableval=yes
11491 ;;
11492 *)
11493 force_sjlj_exceptions=no
11494 ;;
11495 esac
11496 fi
11497
11498 if test $force_sjlj_exceptions = yes; then
11499 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11500
11501 cat >>confdefs.h <<_ACEOF
11502 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11503 _ACEOF
11504
11505 fi
11506
11507 # --------------------------------------------------------
11508 # Build, host, and target specific configuration fragments
11509 # --------------------------------------------------------
11510
11511 # Collect build-machine-specific information.
11512 . ${srcdir}/config.build || exit 1
11513
11514 # Collect host-machine-specific information.
11515 . ${srcdir}/config.host || exit 1
11516
11517 target_gtfiles=
11518
11519 # Collect target-machine-specific information.
11520 . ${srcdir}/config.gcc || exit 1
11521
11522 extra_objs="${host_extra_objs} ${extra_objs}"
11523 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11524
11525 # Default the target-machine variables that were not explicitly set.
11526 if test x"$tm_file" = x
11527 then tm_file=$cpu_type/$cpu_type.h; fi
11528
11529 if test x"$extra_headers" = x
11530 then extra_headers=; fi
11531
11532 if test x$md_file = x
11533 then md_file=$cpu_type/$cpu_type.md; fi
11534
11535 if test x$out_file = x
11536 then out_file=$cpu_type/$cpu_type.c; fi
11537
11538 if test x"$tmake_file" = x
11539 then tmake_file=$cpu_type/t-$cpu_type
11540 fi
11541
11542 # Support --enable-initfini-array.
11543 if test x$enable_initfini_array != xno; then
11544 tm_file="${tm_file} initfini-array.h"
11545 fi
11546
11547 if test x"$dwarf2" = xyes
11548 then tm_file="$tm_file tm-dwarf2.h"
11549 fi
11550
11551 # Say what files are being used for the output code and MD file.
11552 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11553 echo "Using \`$srcdir/config/$md_file' as machine description file."
11554
11555 # If any of the xm_file variables contain nonexistent files, warn
11556 # about them and drop them.
11557
11558 bx=
11559 for x in $build_xm_file; do
11560 if test -f $srcdir/config/$x
11561 then bx="$bx $x"
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11564 fi
11565 done
11566 build_xm_file="$bx"
11567
11568 hx=
11569 for x in $host_xm_file; do
11570 if test -f $srcdir/config/$x
11571 then hx="$hx $x"
11572 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11573 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11574 fi
11575 done
11576 host_xm_file="$hx"
11577
11578 tx=
11579 for x in $xm_file; do
11580 if test -f $srcdir/config/$x
11581 then tx="$tx $x"
11582 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11583 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11584 fi
11585 done
11586 xm_file="$tx"
11587
11588 count=a
11589 for f in $tm_file; do
11590 count=${count}x
11591 done
11592 if test $count = ax; then
11593 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11594 else
11595 echo "Using the following target machine macro files:"
11596 for f in $tm_file; do
11597 echo " $srcdir/config/$f"
11598 done
11599 fi
11600
11601 if test x$use_long_long_for_widest_fast_int = xyes; then
11602
11603 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11604
11605 fi
11606
11607 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11608
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_GNU_LD $gnu_ld_bool
11611 _ACEOF
11612
11613
11614 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11615
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_GNU_AS $gnu_as_bool
11618 _ACEOF
11619
11620
11621 count=a
11622 for f in $host_xm_file; do
11623 count=${count}x
11624 done
11625 if test $count = a; then
11626 :
11627 elif test $count = ax; then
11628 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11629 else
11630 echo "Using the following host machine macro files:"
11631 for f in $host_xm_file; do
11632 echo " $srcdir/config/$f"
11633 done
11634 fi
11635 echo "Using ${out_host_hook_obj} for host machine hooks."
11636
11637 if test "$host_xm_file" != "$build_xm_file"; then
11638 count=a
11639 for f in $build_xm_file; do
11640 count=${count}x
11641 done
11642 if test $count = a; then
11643 :
11644 elif test $count = ax; then
11645 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11646 else
11647 echo "Using the following build machine macro files:"
11648 for f in $build_xm_file; do
11649 echo " $srcdir/config/$f"
11650 done
11651 fi
11652 fi
11653
11654 if test -n "$configured_native_system_header_dir"; then
11655 native_system_header_dir=$configured_native_system_header_dir
11656 fi
11657 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11658
11659
11660 case ${host} in
11661 powerpc*-*-darwin*)
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11663 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11664 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669
11670 #include <sys/cdefs.h>
11671 #include <sys/signal.h>
11672 #include <ucontext.h>
11673 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11674
11675 _ACEOF
11676 if ac_fn_cxx_try_compile "$LINENO"; then :
11677 gcc_cv_mcontext_underscores=no
11678 else
11679 gcc_cv_mcontext_underscores=yes
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11684 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11685 if test $gcc_cv_mcontext_underscores = yes; then
11686
11687 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11688
11689 fi
11690 ;;
11691 esac
11692
11693 # ---------
11694 # Threading
11695 # ---------
11696
11697 # Check if a valid thread package
11698 case ${enable_threads} in
11699 "" | no)
11700 # No threads
11701 target_thread_file='single'
11702 ;;
11703 yes)
11704 # default
11705 target_thread_file='single'
11706 ;;
11707 aix | dce | lynx | mipssde | posix | rtems | \
11708 single | tpf | vxworks | win32)
11709 target_thread_file=${enable_threads}
11710 ;;
11711 *)
11712 echo "${enable_threads} is an unknown thread package" 1>&2
11713 exit 1
11714 ;;
11715 esac
11716
11717 if test x${thread_file} = x; then
11718 # No thread file set by target-specific clauses in config.gcc,
11719 # so use file chosen by default logic above
11720 thread_file=${target_thread_file}
11721 fi
11722
11723 # --------
11724 # UNSORTED
11725 # --------
11726
11727 use_cxa_atexit=no
11728 if test x$enable___cxa_atexit = xyes || \
11729 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11730 if test x$host = x$target; then
11731 case $host in
11732 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11733 # keyed to flag_use_cxa_atexit
11734 *-*-mingw32*)
11735 use_cxa_atexit=yes
11736 ;;
11737 powerpc-ibm-aix*)
11738 use_cxa_atexit=yes
11739 ;;
11740 *)
11741 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11742 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11743 use_cxa_atexit=yes
11744 else
11745 echo "__cxa_atexit can't be enabled on this target"
11746 fi
11747
11748 ;;
11749 esac
11750 else
11751 # We can't check for __cxa_atexit when building a cross, so assume
11752 # it is available
11753 use_cxa_atexit=yes
11754 fi
11755 if test x$use_cxa_atexit = xyes; then
11756
11757 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11758
11759 fi
11760 fi
11761
11762 # Look for a file containing extra machine modes.
11763 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11764 extra_modes_file='$(srcdir)'/config/${extra_modes}
11765
11766
11767 cat >>confdefs.h <<_ACEOF
11768 #define EXTRA_MODES_FILE "config/$extra_modes"
11769 _ACEOF
11770
11771 fi
11772
11773 # Convert extra_options into a form suitable for Makefile use.
11774 extra_opt_files=
11775 all_opt_files=
11776 for f in $extra_options; do
11777 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11778 all_opt_files="$all_opt_files $srcdir/config/$f"
11779 done
11780
11781
11782 # auto-host.h is the file containing items generated by autoconf and is
11783 # the first file included by config.h.
11784 # If host=build, it is correct to have bconfig include auto-host.h
11785 # as well. If host!=build, we are in error and need to do more
11786 # work to find out the build config parameters.
11787 if test x$host = x$build
11788 then
11789 build_auto=auto-host.h
11790 else
11791 # We create a subdir, then run autoconf in the subdir.
11792 # To prevent recursion we set host and build for the new
11793 # invocation of configure to the build for this invocation
11794 # of configure.
11795 tempdir=build.$$
11796 rm -rf $tempdir
11797 mkdir $tempdir
11798 cd $tempdir
11799 case ${srcdir} in
11800 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11801 *) realsrcdir=../${srcdir};;
11802 esac
11803 # Clearing GMPINC is necessary to prevent host headers being
11804 # used by the build compiler. Defining GENERATOR_FILE stops
11805 # system.h from including gmp.h.
11806 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11807 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11808 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11809 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11810 ${realsrcdir}/configure \
11811 --enable-languages=${enable_languages-all} \
11812 --target=$target_alias --host=$build_alias --build=$build_alias
11813
11814 # We just finished tests for the build machine, so rename
11815 # the file auto-build.h in the gcc directory.
11816 mv auto-host.h ../auto-build.h
11817 cd ..
11818 rm -rf $tempdir
11819 build_auto=auto-build.h
11820 fi
11821
11822
11823 tm_file="${tm_file} defaults.h"
11824 tm_p_file="${tm_p_file} tm-preds.h"
11825 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11826 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11827 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11828 # put this back in temporarily.
11829 xm_file="auto-host.h ansidecl.h ${xm_file}"
11830
11831 # --------
11832 # UNSORTED
11833 # --------
11834
11835 # Compile in configure arguments.
11836 if test -f configargs.h ; then
11837 # Being re-configured.
11838 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11839 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11840 else
11841 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11842 fi
11843
11844 # Double all backslashes and backslash all quotes to turn
11845 # gcc_config_arguments into a C string.
11846 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11847 $gcc_config_arguments
11848 EOF
11849 gcc_config_arguments_str=`cat conftest.out`
11850 rm -f conftest.out
11851
11852 cat > configargs.h <<EOF
11853 /* Generated automatically. */
11854 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11855 static const char thread_model[] = "$thread_file";
11856
11857 static const struct {
11858 const char *name, *value;
11859 } configure_default_options[] = $configure_default_options;
11860 EOF
11861
11862 gcc_BASEVER=`cat $srcdir/BASE-VER`
11863 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11864 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11865 if test -f $srcdir/REVISION ; then
11866 gcc_REVISION=`cat $srcdir/REVISION`
11867 else
11868 gcc_REVISION=""
11869 fi
11870 cat > plugin-version.h <<EOF
11871 #include "configargs.h"
11872
11873 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11874 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11875 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11876 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11877
11878 static char basever[] = "$gcc_BASEVER";
11879 static char datestamp[] = "$gcc_DATESTAMP";
11880 static char devphase[] = "$gcc_DEVPHASE";
11881 static char revision[] = "$gcc_REVISION";
11882
11883 /* FIXME plugins: We should make the version information more precise.
11884 One way to do is to add a checksum. */
11885
11886 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11887 devphase, revision,
11888 configuration_arguments};
11889 EOF
11890
11891 # Determine what GCC version number to use in filesystem paths.
11892
11893 get_gcc_base_ver="cat"
11894
11895 # Check whether --with-gcc-major-version-only was given.
11896 if test "${with_gcc_major_version_only+set}" = set; then :
11897 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11898 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11899 fi
11900
11901 fi
11902
11903
11904
11905
11906 # Internationalization
11907 # If we haven't got the data from the intl directory,
11908 # assume NLS is disabled.
11909 USE_NLS=no
11910 LIBINTL=
11911 LIBINTL_DEP=
11912 INCINTL=
11913 XGETTEXT=
11914 GMSGFMT=
11915 POSUB=
11916
11917 if test -f ../intl/config.intl; then
11918 . ../intl/config.intl
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11921 $as_echo_n "checking whether NLS is requested... " >&6; }
11922 if test x"$USE_NLS" != xyes; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928
11929 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11930
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11933 $as_echo_n "checking for catalogs to be installed... " >&6; }
11934 # Look for .po and .gmo files in the source directory.
11935 CATALOGS=
11936 XLINGUAS=
11937 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11938 # If there aren't any .gmo files the shell will give us the
11939 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11940 # weeded out.
11941 case "$cat" in *\**)
11942 continue;;
11943 esac
11944 # The quadruple backslash is collapsed to a double backslash
11945 # by the backticks, then collapsed again by the double quotes,
11946 # leaving us with one backslash in the sed expression (right
11947 # before the dot that mustn't act as a wildcard).
11948 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11949 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11950 # The user is allowed to set LINGUAS to a list of languages to
11951 # install catalogs for. If it's empty that means "all of them."
11952 if test "x$LINGUAS" = x; then
11953 CATALOGS="$CATALOGS $cat"
11954 XLINGUAS="$XLINGUAS $lang"
11955 else
11956 case "$LINGUAS" in *$lang*)
11957 CATALOGS="$CATALOGS $cat"
11958 XLINGUAS="$XLINGUAS $lang"
11959 ;;
11960 esac
11961 fi
11962 done
11963 LINGUAS="$XLINGUAS"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11965 $as_echo "$LINGUAS" >&6; }
11966
11967
11968 DATADIRNAME=share
11969
11970 INSTOBJEXT=.mo
11971
11972 GENCAT=gencat
11973
11974 CATOBJEXT=.gmo
11975
11976 fi
11977
11978 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11979 # -liconv on the link line twice.
11980 case "$LIBINTL" in *$LIBICONV*)
11981 LIBICONV= ;;
11982 esac
11983
11984 # Check whether --enable-secureplt was given.
11985 if test "${enable_secureplt+set}" = set; then :
11986 enableval=$enable_secureplt;
11987 fi
11988
11989
11990 # Check whether --enable-mingw-wildcard was given.
11991 if test "${enable_mingw_wildcard+set}" = set; then :
11992 enableval=$enable_mingw_wildcard;
11993 else
11994 enable_mingw_wildcard=platform
11995 fi
11996
11997 if test x"$enable_mingw_wildcard" != xplatform ; then :
11998
11999 cat >>confdefs.h <<_ACEOF
12000 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12001 _ACEOF
12002
12003 fi
12004
12005 # Check whether --enable-leading-mingw64-underscores was given.
12006 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12007 enableval=$enable_leading_mingw64_underscores;
12008 fi
12009
12010 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12011
12012 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12013
12014 fi
12015
12016 # Check whether --enable-cld was given.
12017 if test "${enable_cld+set}" = set; then :
12018 enableval=$enable_cld;
12019 else
12020 enable_cld=no
12021 fi
12022
12023
12024 # Check whether --enable-frame-pointer was given.
12025 if test "${enable_frame_pointer+set}" = set; then :
12026 enableval=$enable_frame_pointer;
12027 else
12028
12029 case $target_os in
12030 linux* | darwin[8912]*)
12031 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12032 # DWARF2.
12033 enable_frame_pointer=no
12034 ;;
12035 *)
12036 enable_frame_pointer=yes
12037 ;;
12038 esac
12039
12040 fi
12041
12042
12043 # Windows32 Registry support for specifying GCC installation paths.
12044 # Check whether --enable-win32-registry was given.
12045 if test "${enable_win32_registry+set}" = set; then :
12046 enableval=$enable_win32_registry;
12047 fi
12048
12049
12050 case $host_os in
12051 win32 | pe | cygwin* | mingw32*)
12052 if test "x$enable_win32_registry" != xno; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12054 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12055 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_func_search_save_LIBS=$LIBS
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 char RegOpenKeyExA ();
12069 int
12070 main ()
12071 {
12072 return RegOpenKeyExA ();
12073 ;
12074 return 0;
12075 }
12076 _ACEOF
12077 for ac_lib in '' advapi32; do
12078 if test -z "$ac_lib"; then
12079 ac_res="none required"
12080 else
12081 ac_res=-l$ac_lib
12082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12083 fi
12084 if ac_fn_cxx_try_link "$LINENO"; then :
12085 ac_cv_search_RegOpenKeyExA=$ac_res
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext
12089 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12090 break
12091 fi
12092 done
12093 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12094
12095 else
12096 ac_cv_search_RegOpenKeyExA=no
12097 fi
12098 rm conftest.$ac_ext
12099 LIBS=$ac_func_search_save_LIBS
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12102 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12103 ac_res=$ac_cv_search_RegOpenKeyExA
12104 if test "$ac_res" != no; then :
12105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12106
12107 else
12108 enable_win32_registry=no
12109 fi
12110
12111 fi
12112
12113 if test "x$enable_win32_registry" != xno; then
12114
12115 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12116
12117
12118 if test "x$enable_win32_registry" != xyes \
12119 && test "x$enable_win32_registry" != x; then
12120
12121 cat >>confdefs.h <<_ACEOF
12122 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12123 _ACEOF
12124
12125 fi
12126 fi
12127 ;;
12128 esac
12129
12130 # Get an absolute path to the GCC top-level source directory
12131 holddir=`${PWDCMD-pwd}`
12132 cd $srcdir
12133 topdir=`${PWDCMD-pwd}`
12134 cd $holddir
12135
12136 # Conditionalize the makefile for this host machine.
12137 xmake_file=
12138 for f in ${host_xmake_file}
12139 do
12140 if test -f ${srcdir}/config/$f
12141 then
12142 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12143 fi
12144 done
12145
12146 # Conditionalize the makefile for this target machine.
12147 tmake_file_=
12148 for f in ${tmake_file}
12149 do
12150 if test -f ${srcdir}/config/$f
12151 then
12152 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12153 fi
12154 done
12155 tmake_file="${tmake_file_}"
12156
12157 out_object_file=`basename $out_file .c`.o
12158 common_out_object_file=`basename $common_out_file .c`.o
12159
12160 tm_file_list="options.h"
12161 tm_include_list="options.h insn-constants.h"
12162 for f in $tm_file; do
12163 case $f in
12164 ./* )
12165 f=`echo $f | sed 's/^..//'`
12166 tm_file_list="${tm_file_list} $f"
12167 tm_include_list="${tm_include_list} $f"
12168 ;;
12169 defaults.h )
12170 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12171 tm_include_list="${tm_include_list} $f"
12172 ;;
12173 * )
12174 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12175 tm_include_list="${tm_include_list} config/$f"
12176 ;;
12177 esac
12178 done
12179
12180 tm_p_file_list=
12181 tm_p_include_list=
12182 for f in $tm_p_file; do
12183 case $f in
12184 tm-preds.h )
12185 tm_p_file_list="${tm_p_file_list} $f"
12186 tm_p_include_list="${tm_p_include_list} $f"
12187 ;;
12188 * )
12189 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12190 tm_p_include_list="${tm_p_include_list} config/$f"
12191 esac
12192 done
12193
12194 xm_file_list=
12195 xm_include_list=
12196 for f in $xm_file; do
12197 case $f in
12198 ansidecl.h )
12199 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12200 xm_include_list="${xm_include_list} $f"
12201 ;;
12202 auto-host.h )
12203 xm_file_list="${xm_file_list} $f"
12204 xm_include_list="${xm_include_list} $f"
12205 ;;
12206 * )
12207 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12208 xm_include_list="${xm_include_list} config/$f"
12209 ;;
12210 esac
12211 done
12212
12213 host_xm_file_list=
12214 host_xm_include_list=
12215 for f in $host_xm_file; do
12216 case $f in
12217 ansidecl.h )
12218 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12219 host_xm_include_list="${host_xm_include_list} $f"
12220 ;;
12221 auto-host.h )
12222 host_xm_file_list="${host_xm_file_list} $f"
12223 host_xm_include_list="${host_xm_include_list} $f"
12224 ;;
12225 * )
12226 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12227 host_xm_include_list="${host_xm_include_list} config/$f"
12228 ;;
12229 esac
12230 done
12231
12232 build_xm_file_list=
12233 for f in $build_xm_file; do
12234 case $f in
12235 ansidecl.h )
12236 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12237 build_xm_include_list="${build_xm_include_list} $f"
12238 ;;
12239 auto-build.h | auto-host.h )
12240 build_xm_file_list="${build_xm_file_list} $f"
12241 build_xm_include_list="${build_xm_include_list} $f"
12242 ;;
12243 * )
12244 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12245 build_xm_include_list="${build_xm_include_list} config/$f"
12246 ;;
12247 esac
12248 done
12249
12250 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12251 # cross-compiler which does not use the native headers and libraries.
12252 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12253 CROSS=
12254 ALL=all.internal
12255 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12256 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12257
12258 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12259 test x$build != x$host || test "x$with_build_sysroot" != x; then
12260 if test "x$with_build_sysroot" != x; then
12261 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12262 else
12263 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12264 fi
12265
12266 if test x$host != x$target
12267 then
12268 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12269 ALL=all.cross
12270 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12271 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12272 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12273 fi
12274
12275 if test "x$with_build_sysroot" != "x"; then
12276 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12277 elif test "x$with_sysroot" = x; then
12278 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12279 elif test "x$with_sysroot" = xyes; then
12280 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12281 else
12282 target_header_dir="${with_sysroot}${native_system_header_dir}"
12283 fi
12284 else
12285 target_header_dir=${native_system_header_dir}
12286 fi
12287
12288 # If this is a cross-compiler that does not
12289 # have its own set of headers then define
12290 # inhibit_libc
12291
12292 # If this is using newlib, without having the headers available now,
12293 # then define inhibit_libc in LIBGCC2_CFLAGS.
12294 # This prevents libgcc2 from containing any code which requires libc
12295 # support.
12296 : ${inhibit_libc=false}
12297 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12298 test x$with_newlib = xyes ; } &&
12299 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12300 inhibit_libc=true
12301 fi
12302
12303
12304 # When building gcc with a cross-compiler, we need to adjust things so
12305 # that the generator programs are still built with the native compiler.
12306 # Also, we cannot run fixincludes.
12307
12308 # These are the normal (build=host) settings:
12309 CC_FOR_BUILD='$(CC)'
12310 CXX_FOR_BUILD='$(CXX)'
12311 BUILD_CFLAGS='$(ALL_CFLAGS)'
12312 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12313 BUILD_LDFLAGS='$(LDFLAGS)'
12314 STMP_FIXINC=stmp-fixinc
12315
12316 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12317 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12318
12319 # And these apply if build != host, or we are generating coverage data
12320 if test x$build != x$host || test "x$coverage_flags" != x
12321 then
12322 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12323 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12324 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12325
12326 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12327 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12328 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12329 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12330 fi
12331
12332
12333
12334 # Expand extra_headers to include complete path.
12335 # This substitutes for lots of t-* files.
12336 extra_headers_list=
12337 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12338 for file in ${extra_headers} ; do
12339 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12340 done
12341
12342 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12343 if test x"$use_gcc_tgmath" = xyes
12344 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12345 fi
12346
12347 # Define collect2 in Makefile.
12348 case $host_can_use_collect2 in
12349 no) collect2= ;;
12350 *) collect2='collect2$(exeext)' ;;
12351 esac
12352
12353
12354 # Add a definition of USE_COLLECT2 if system wants one.
12355 case $use_collect2 in
12356 no) use_collect2= ;;
12357 "") ;;
12358 *)
12359 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12360 xm_defines="${xm_defines} USE_COLLECT2"
12361 case $host_can_use_collect2 in
12362 no)
12363 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12364 ;;
12365 esac
12366 ;;
12367 esac
12368
12369
12370 cat >>confdefs.h <<_ACEOF
12371 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12372 _ACEOF
12373
12374
12375 # ---------------------------
12376 # Assembler & linker features
12377 # ---------------------------
12378
12379 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12380 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12381 # However when ld-new is first executed from the build tree, libtool will
12382 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12383 # to the build tree. While doing this we need to use the previous-stage
12384 # linker, or we have an infinite loop. The presence of a shell script as
12385 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12386 # the gcc/collect-ld script. So we need to know how libtool works, or
12387 # exec-tool will fail.
12388
12389
12390 case `pwd` in
12391 *\ * | *\ *)
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12394 esac
12395
12396
12397
12398 macro_version='2.2.7a'
12399 macro_revision='1.3134'
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413 ltmain="$ac_aux_dir/ltmain.sh"
12414
12415 # Backslashify metacharacters that are still active within
12416 # double-quoted strings.
12417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12418
12419 # Same as above, but do not quote variable references.
12420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12421
12422 # Sed substitution to delay expansion of an escaped shell variable in a
12423 # double_quote_subst'ed string.
12424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12425
12426 # Sed substitution to delay expansion of an escaped single quote.
12427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12428
12429 # Sed substitution to avoid accidental globbing in evaled expressions
12430 no_glob_subst='s/\*/\\\*/g'
12431
12432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12437 $as_echo_n "checking how to print strings... " >&6; }
12438 # Test print first, because it will be a builtin if present.
12439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12441 ECHO='print -r --'
12442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12443 ECHO='printf %s\n'
12444 else
12445 # Use this function as a fallback that always works.
12446 func_fallback_echo ()
12447 {
12448 eval 'cat <<_LTECHO_EOF
12449 $1
12450 _LTECHO_EOF'
12451 }
12452 ECHO='func_fallback_echo'
12453 fi
12454
12455 # func_echo_all arg...
12456 # Invoke $ECHO with all args, space-separated.
12457 func_echo_all ()
12458 {
12459 $ECHO ""
12460 }
12461
12462 case "$ECHO" in
12463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12464 $as_echo "printf" >&6; } ;;
12465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12466 $as_echo "print -r" >&6; } ;;
12467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12468 $as_echo "cat" >&6; } ;;
12469 esac
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12486 if test "${ac_cv_path_SED+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12490 for ac_i in 1 2 3 4 5 6 7; do
12491 ac_script="$ac_script$as_nl$ac_script"
12492 done
12493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12494 { ac_script=; unset ac_script;}
12495 if test -z "$SED"; then
12496 ac_path_SED_found=false
12497 # Loop through the user's path and test for each of PROGNAME-LIST
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_prog in sed gsed; do
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12507 # Check for GNU ac_path_SED and select it if it is found.
12508 # Check for GNU $ac_path_SED
12509 case `"$ac_path_SED" --version 2>&1` in
12510 *GNU*)
12511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12512 *)
12513 ac_count=0
12514 $as_echo_n 0123456789 >"conftest.in"
12515 while :
12516 do
12517 cat "conftest.in" "conftest.in" >"conftest.tmp"
12518 mv "conftest.tmp" "conftest.in"
12519 cp "conftest.in" "conftest.nl"
12520 $as_echo '' >> "conftest.nl"
12521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12523 as_fn_arith $ac_count + 1 && ac_count=$as_val
12524 if test $ac_count -gt ${ac_path_SED_max-0}; then
12525 # Best one so far, save it but keep looking for a better one
12526 ac_cv_path_SED="$ac_path_SED"
12527 ac_path_SED_max=$ac_count
12528 fi
12529 # 10*(2^10) chars as input seems more than enough
12530 test $ac_count -gt 10 && break
12531 done
12532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12533 esac
12534
12535 $ac_path_SED_found && break 3
12536 done
12537 done
12538 done
12539 IFS=$as_save_IFS
12540 if test -z "$ac_cv_path_SED"; then
12541 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12542 fi
12543 else
12544 ac_cv_path_SED=$SED
12545 fi
12546
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12549 $as_echo "$ac_cv_path_SED" >&6; }
12550 SED="$ac_cv_path_SED"
12551 rm -f conftest.sed
12552
12553 test -z "$SED" && SED=sed
12554 Xsed="$SED -e 1s/^X//"
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12567 $as_echo_n "checking for fgrep... " >&6; }
12568 if test "${ac_cv_path_FGREP+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12572 then ac_cv_path_FGREP="$GREP -F"
12573 else
12574 if test -z "$FGREP"; then
12575 ac_path_FGREP_found=false
12576 # Loop through the user's path and test for each of PROGNAME-LIST
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_prog in fgrep; do
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12586 # Check for GNU ac_path_FGREP and select it if it is found.
12587 # Check for GNU $ac_path_FGREP
12588 case `"$ac_path_FGREP" --version 2>&1` in
12589 *GNU*)
12590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12591 *)
12592 ac_count=0
12593 $as_echo_n 0123456789 >"conftest.in"
12594 while :
12595 do
12596 cat "conftest.in" "conftest.in" >"conftest.tmp"
12597 mv "conftest.tmp" "conftest.in"
12598 cp "conftest.in" "conftest.nl"
12599 $as_echo 'FGREP' >> "conftest.nl"
12600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12602 as_fn_arith $ac_count + 1 && ac_count=$as_val
12603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12604 # Best one so far, save it but keep looking for a better one
12605 ac_cv_path_FGREP="$ac_path_FGREP"
12606 ac_path_FGREP_max=$ac_count
12607 fi
12608 # 10*(2^10) chars as input seems more than enough
12609 test $ac_count -gt 10 && break
12610 done
12611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12612 esac
12613
12614 $ac_path_FGREP_found && break 3
12615 done
12616 done
12617 done
12618 IFS=$as_save_IFS
12619 if test -z "$ac_cv_path_FGREP"; then
12620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12621 fi
12622 else
12623 ac_cv_path_FGREP=$FGREP
12624 fi
12625
12626 fi
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12629 $as_echo "$ac_cv_path_FGREP" >&6; }
12630 FGREP="$ac_cv_path_FGREP"
12631
12632
12633 test -z "$GREP" && GREP=grep
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then :
12655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12656 else
12657 with_gnu_ld=no
12658 fi
12659
12660 ac_prog=ld
12661 if test "$GCC" = yes; then
12662 # Check if gcc -print-prog-name=ld gives a path.
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12664 $as_echo_n "checking for ld used by $CC... " >&6; }
12665 case $host in
12666 *-*-mingw*)
12667 # gcc leaves a trailing carriage return which upsets mingw
12668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 *)
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12671 esac
12672 case $ac_prog in
12673 # Accept absolute paths.
12674 [\\/]* | ?:[\\/]*)
12675 re_direlt='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12680 done
12681 test -z "$LD" && LD="$ac_prog"
12682 ;;
12683 "")
12684 # If it fails, then pretend we aren't using GCC.
12685 ac_prog=ld
12686 ;;
12687 *)
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld=unknown
12690 ;;
12691 esac
12692 elif test "$with_gnu_ld" = yes; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12694 $as_echo_n "checking for GNU ld... " >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12697 $as_echo_n "checking for non-GNU ld... " >&6; }
12698 fi
12699 if test "${lt_cv_path_LD+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -z "$LD"; then
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH; do
12705 IFS="$lt_save_ifs"
12706 test -z "$ac_dir" && ac_dir=.
12707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD="$ac_dir/$ac_prog"
12709 # Check to see if the program is GNU ld. I'd rather use --version,
12710 # but apparently some variants of GNU ld only accept -v.
12711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU* | *'with BFD'*)
12714 test "$with_gnu_ld" != no && break
12715 ;;
12716 *)
12717 test "$with_gnu_ld" != yes && break
12718 ;;
12719 esac
12720 fi
12721 done
12722 IFS="$lt_save_ifs"
12723 else
12724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12725 fi
12726 fi
12727
12728 LD="$lt_cv_path_LD"
12729 if test -n "$LD"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12731 $as_echo "$LD" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12739 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12743 case `$LD -v 2>&1 </dev/null` in
12744 *GNU* | *'with BFD'*)
12745 lt_cv_prog_gnu_ld=yes
12746 ;;
12747 *)
12748 lt_cv_prog_gnu_ld=no
12749 ;;
12750 esac
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12754 with_gnu_ld=$lt_cv_prog_gnu_ld
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12766 if test "${lt_cv_path_NM+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test -n "$NM"; then
12770 # Let the user override the test.
12771 lt_cv_path_NM="$NM"
12772 else
12773 lt_nm_to_check="${ac_tool_prefix}nm"
12774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12775 lt_nm_to_check="$lt_nm_to_check nm"
12776 fi
12777 for lt_tmp_nm in $lt_nm_to_check; do
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12780 IFS="$lt_save_ifs"
12781 test -z "$ac_dir" && ac_dir=.
12782 tmp_nm="$ac_dir/$lt_tmp_nm"
12783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12784 # Check to see if the nm accepts a BSD-compat flag.
12785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12786 # nm: unknown option "B" ignored
12787 # Tru64's nm complains that /dev/null is an invalid object file
12788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12789 */dev/null* | *'Invalid file or object type'*)
12790 lt_cv_path_NM="$tmp_nm -B"
12791 break
12792 ;;
12793 *)
12794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12795 */dev/null*)
12796 lt_cv_path_NM="$tmp_nm -p"
12797 break
12798 ;;
12799 *)
12800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12801 continue # so that we can try to find one that supports BSD flags
12802 ;;
12803 esac
12804 ;;
12805 esac
12806 fi
12807 done
12808 IFS="$lt_save_ifs"
12809 done
12810 : ${lt_cv_path_NM=no}
12811 fi
12812 fi
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12814 $as_echo "$lt_cv_path_NM" >&6; }
12815 if test "$lt_cv_path_NM" != "no"; then
12816 NM="$lt_cv_path_NM"
12817 else
12818 # Didn't find any BSD compatible name lister, look for dumpbin.
12819 if test -n "$DUMPBIN"; then :
12820 # Let the user override the test.
12821 else
12822 if test -n "$ac_tool_prefix"; then
12823 for ac_prog in dumpbin "link -dump"
12824 do
12825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$DUMPBIN"; then
12833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 DUMPBIN=$ac_cv_prog_DUMPBIN
12853 if test -n "$DUMPBIN"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12855 $as_echo "$DUMPBIN" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 test -n "$DUMPBIN" && break
12863 done
12864 fi
12865 if test -z "$DUMPBIN"; then
12866 ac_ct_DUMPBIN=$DUMPBIN
12867 for ac_prog in dumpbin "link -dump"
12868 do
12869 # Extract the first word of "$ac_prog", so it can be a program name with args.
12870 set dummy $ac_prog; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$ac_ct_DUMPBIN"; then
12877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12889 fi
12890 done
12891 done
12892 IFS=$as_save_IFS
12893
12894 fi
12895 fi
12896 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12897 if test -n "$ac_ct_DUMPBIN"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12899 $as_echo "$ac_ct_DUMPBIN" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904
12905
12906 test -n "$ac_ct_DUMPBIN" && break
12907 done
12908
12909 if test "x$ac_ct_DUMPBIN" = x; then
12910 DUMPBIN=":"
12911 else
12912 case $cross_compiling:$ac_tool_warned in
12913 yes:)
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916 ac_tool_warned=yes ;;
12917 esac
12918 DUMPBIN=$ac_ct_DUMPBIN
12919 fi
12920 fi
12921
12922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12923 *COFF*)
12924 DUMPBIN="$DUMPBIN -symbols"
12925 ;;
12926 *)
12927 DUMPBIN=:
12928 ;;
12929 esac
12930 fi
12931
12932 if test "$DUMPBIN" != ":"; then
12933 NM="$DUMPBIN"
12934 fi
12935 fi
12936 test -z "$NM" && NM=nm
12937
12938
12939
12940
12941
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12944 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12945 if test "${lt_cv_nm_interface+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 lt_cv_nm_interface="BSD nm"
12949 echo "int some_variable = 0;" > conftest.$ac_ext
12950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12951 (eval "$ac_compile" 2>conftest.err)
12952 cat conftest.err >&5
12953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12955 cat conftest.err >&5
12956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12957 cat conftest.out >&5
12958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12959 lt_cv_nm_interface="MS dumpbin"
12960 fi
12961 rm -f conftest*
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12964 $as_echo "$lt_cv_nm_interface" >&6; }
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12967 $as_echo_n "checking whether ln -s works... " >&6; }
12968 LN_S=$as_ln_s
12969 if test "$LN_S" = "ln -s"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972 else
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12974 $as_echo "no, using $LN_S" >&6; }
12975 fi
12976
12977 # find the maximum length of command line arguments
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 i=0
12984 teststring="ABCD"
12985
12986 case $build_os in
12987 msdosdjgpp*)
12988 # On DJGPP, this test can blow up pretty badly due to problems in libc
12989 # (any single argument exceeding 2000 bytes causes a buffer overrun
12990 # during glob expansion). Even if it were fixed, the result of this
12991 # check would be larger than it should be.
12992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12993 ;;
12994
12995 gnu*)
12996 # Under GNU Hurd, this test is not required because there is
12997 # no limit to the length of command line arguments.
12998 # Libtool will interpret -1 as no limit whatsoever
12999 lt_cv_sys_max_cmd_len=-1;
13000 ;;
13001
13002 cygwin* | mingw* | cegcc*)
13003 # On Win9x/ME, this test blows up -- it succeeds, but takes
13004 # about 5 minutes as the teststring grows exponentially.
13005 # Worse, since 9x/ME are not pre-emptively multitasking,
13006 # you end up with a "frozen" computer, even though with patience
13007 # the test eventually succeeds (with a max line length of 256k).
13008 # Instead, let's just punt: use the minimum linelength reported by
13009 # all of the supported platforms: 8192 (on NT/2K/XP).
13010 lt_cv_sys_max_cmd_len=8192;
13011 ;;
13012
13013 mint*)
13014 # On MiNT this can take a long time and run out of memory.
13015 lt_cv_sys_max_cmd_len=8192;
13016 ;;
13017
13018 amigaos*)
13019 # On AmigaOS with pdksh, this test takes hours, literally.
13020 # So we just punt and use a minimum line length of 8192.
13021 lt_cv_sys_max_cmd_len=8192;
13022 ;;
13023
13024 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13025 # This has been around since 386BSD, at least. Likely further.
13026 if test -x /sbin/sysctl; then
13027 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13028 elif test -x /usr/sbin/sysctl; then
13029 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13030 else
13031 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13032 fi
13033 # And add a safety zone
13034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13036 ;;
13037
13038 interix*)
13039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13040 lt_cv_sys_max_cmd_len=196608
13041 ;;
13042
13043 osf*)
13044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13046 # nice to cause kernel panics so lets avoid the loop below.
13047 # First set a reasonable default.
13048 lt_cv_sys_max_cmd_len=16384
13049 #
13050 if test -x /sbin/sysconfig; then
13051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13052 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13053 esac
13054 fi
13055 ;;
13056 sco3.2v5*)
13057 lt_cv_sys_max_cmd_len=102400
13058 ;;
13059 sysv5* | sco5v6* | sysv4.2uw2*)
13060 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13061 if test -n "$kargmax"; then
13062 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13063 else
13064 lt_cv_sys_max_cmd_len=32768
13065 fi
13066 ;;
13067 *)
13068 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13069 if test -n "$lt_cv_sys_max_cmd_len"; then
13070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13072 else
13073 # Make teststring a little bigger before we do anything with it.
13074 # a 1K string should be a reasonable start.
13075 for i in 1 2 3 4 5 6 7 8 ; do
13076 teststring=$teststring$teststring
13077 done
13078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13079 # If test is not a shell built-in, we'll probably end up computing a
13080 # maximum length that is only half of the actual maximum length, but
13081 # we can't tell.
13082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13084 test $i != 17 # 1/2 MB should be enough
13085 do
13086 i=`expr $i + 1`
13087 teststring=$teststring$teststring
13088 done
13089 # Only check the string length outside the loop.
13090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13091 teststring=
13092 # Add a significant safety factor because C++ compilers can tack on
13093 # massive amounts of additional arguments before passing them to the
13094 # linker. It appears as though 1/2 is a usable value.
13095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13096 fi
13097 ;;
13098 esac
13099
13100 fi
13101
13102 if test -n $lt_cv_sys_max_cmd_len ; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13104 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13107 $as_echo "none" >&6; }
13108 fi
13109 max_cmd_len=$lt_cv_sys_max_cmd_len
13110
13111
13112
13113
13114
13115
13116 : ${CP="cp -f"}
13117 : ${MV="mv -f"}
13118 : ${RM="rm -f"}
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13121 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13122 # Try some XSI features
13123 xsi_shell=no
13124 ( _lt_dummy="a/b/c"
13125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13126 = c,a/b,, \
13127 && eval 'test $(( 1 + 1 )) -eq 2 \
13128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13129 && xsi_shell=yes
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13131 $as_echo "$xsi_shell" >&6; }
13132
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13135 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13136 lt_shell_append=no
13137 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13138 >/dev/null 2>&1 \
13139 && lt_shell_append=yes
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13141 $as_echo "$lt_shell_append" >&6; }
13142
13143
13144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13145 lt_unset=unset
13146 else
13147 lt_unset=false
13148 fi
13149
13150
13151
13152
13153
13154 # test EBCDIC or ASCII
13155 case `echo X|tr X '\101'` in
13156 A) # ASCII based system
13157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13158 lt_SP2NL='tr \040 \012'
13159 lt_NL2SP='tr \015\012 \040\040'
13160 ;;
13161 *) # EBCDIC based system
13162 lt_SP2NL='tr \100 \n'
13163 lt_NL2SP='tr \r\n \100\100'
13164 ;;
13165 esac
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13177 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 lt_cv_ld_reload_flag='-r'
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13184 reload_flag=$lt_cv_ld_reload_flag
13185 case $reload_flag in
13186 "" | " "*) ;;
13187 *) reload_flag=" $reload_flag" ;;
13188 esac
13189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13190 case $host_os in
13191 darwin*)
13192 if test "$GCC" = yes; then
13193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13194 else
13195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13196 fi
13197 ;;
13198 esac
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$OBJDUMP"; then
13217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13221 do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230 done
13231 done
13232 IFS=$as_save_IFS
13233
13234 fi
13235 fi
13236 OBJDUMP=$ac_cv_prog_OBJDUMP
13237 if test -n "$OBJDUMP"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13239 $as_echo "$OBJDUMP" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13243 fi
13244
13245
13246 fi
13247 if test -z "$ac_cv_prog_OBJDUMP"; then
13248 ac_ct_OBJDUMP=$OBJDUMP
13249 # Extract the first word of "objdump", so it can be a program name with args.
13250 set dummy objdump; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$ac_ct_OBJDUMP"; then
13257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13269 fi
13270 done
13271 done
13272 IFS=$as_save_IFS
13273
13274 fi
13275 fi
13276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13277 if test -n "$ac_ct_OBJDUMP"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13279 $as_echo "$ac_ct_OBJDUMP" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 fi
13284
13285 if test "x$ac_ct_OBJDUMP" = x; then
13286 OBJDUMP="false"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294 OBJDUMP=$ac_ct_OBJDUMP
13295 fi
13296 else
13297 OBJDUMP="$ac_cv_prog_OBJDUMP"
13298 fi
13299
13300 test -z "$OBJDUMP" && OBJDUMP=objdump
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13311 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13312 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 lt_cv_file_magic_cmd='$MAGIC_CMD'
13316 lt_cv_file_magic_test_file=
13317 lt_cv_deplibs_check_method='unknown'
13318 # Need to set the preceding variable on all platforms that support
13319 # interlibrary dependencies.
13320 # 'none' -- dependencies not supported.
13321 # `unknown' -- same as none, but documents that we really don't know.
13322 # 'pass_all' -- all dependencies passed with no checks.
13323 # 'test_compile' -- check by making test program.
13324 # 'file_magic [[regex]]' -- check by looking for files in library path
13325 # which responds to the $file_magic_cmd with a given extended regex.
13326 # If you have `file' or equivalent on your system and you're not sure
13327 # whether `pass_all' will *always* work, you probably want this one.
13328
13329 case $host_os in
13330 aix[4-9]*)
13331 lt_cv_deplibs_check_method=pass_all
13332 ;;
13333
13334 beos*)
13335 lt_cv_deplibs_check_method=pass_all
13336 ;;
13337
13338 bsdi[45]*)
13339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13340 lt_cv_file_magic_cmd='/usr/bin/file -L'
13341 lt_cv_file_magic_test_file=/shlib/libc.so
13342 ;;
13343
13344 cygwin*)
13345 # func_win32_libid is a shell function defined in ltmain.sh
13346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13347 lt_cv_file_magic_cmd='func_win32_libid'
13348 ;;
13349
13350 mingw* | pw32*)
13351 # Base MSYS/MinGW do not provide the 'file' command needed by
13352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13353 # unless we find 'file', for example because we are cross-compiling.
13354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13357 lt_cv_file_magic_cmd='func_win32_libid'
13358 else
13359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13360 lt_cv_file_magic_cmd='$OBJDUMP -f'
13361 fi
13362 ;;
13363
13364 cegcc*)
13365 # use the weaker test based on 'objdump'. See mingw*.
13366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13367 lt_cv_file_magic_cmd='$OBJDUMP -f'
13368 ;;
13369
13370 darwin* | rhapsody*)
13371 lt_cv_deplibs_check_method=pass_all
13372 ;;
13373
13374 freebsd* | dragonfly*)
13375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13376 case $host_cpu in
13377 i*86 )
13378 # Not sure whether the presence of OpenBSD here was a mistake.
13379 # Let's accept both of them until this is cleared up.
13380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13381 lt_cv_file_magic_cmd=/usr/bin/file
13382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13383 ;;
13384 esac
13385 else
13386 lt_cv_deplibs_check_method=pass_all
13387 fi
13388 ;;
13389
13390 gnu*)
13391 lt_cv_deplibs_check_method=pass_all
13392 ;;
13393
13394 haiku*)
13395 lt_cv_deplibs_check_method=pass_all
13396 ;;
13397
13398 hpux10.20* | hpux11*)
13399 lt_cv_file_magic_cmd=/usr/bin/file
13400 case $host_cpu in
13401 ia64*)
13402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13404 ;;
13405 hppa*64*)
13406 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]'
13407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13408 ;;
13409 *)
13410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13412 ;;
13413 esac
13414 ;;
13415
13416 interix[3-9]*)
13417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13419 ;;
13420
13421 irix5* | irix6* | nonstopux*)
13422 case $LD in
13423 *-32|*"-32 ") libmagic=32-bit;;
13424 *-n32|*"-n32 ") libmagic=N32;;
13425 *-64|*"-64 ") libmagic=64-bit;;
13426 *) libmagic=never-match;;
13427 esac
13428 lt_cv_deplibs_check_method=pass_all
13429 ;;
13430
13431 # This must be Linux ELF.
13432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13433 lt_cv_deplibs_check_method=pass_all
13434 ;;
13435
13436 netbsd*)
13437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13439 else
13440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13441 fi
13442 ;;
13443
13444 newos6*)
13445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13446 lt_cv_file_magic_cmd=/usr/bin/file
13447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13448 ;;
13449
13450 *nto* | *qnx*)
13451 lt_cv_deplibs_check_method=pass_all
13452 ;;
13453
13454 openbsd*)
13455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13457 else
13458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13459 fi
13460 ;;
13461
13462 osf3* | osf4* | osf5*)
13463 lt_cv_deplibs_check_method=pass_all
13464 ;;
13465
13466 rdos*)
13467 lt_cv_deplibs_check_method=pass_all
13468 ;;
13469
13470 solaris*)
13471 lt_cv_deplibs_check_method=pass_all
13472 ;;
13473
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475 lt_cv_deplibs_check_method=pass_all
13476 ;;
13477
13478 sysv4 | sysv4.3*)
13479 case $host_vendor in
13480 motorola)
13481 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]'
13482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13483 ;;
13484 ncr)
13485 lt_cv_deplibs_check_method=pass_all
13486 ;;
13487 sequent)
13488 lt_cv_file_magic_cmd='/bin/file'
13489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13490 ;;
13491 sni)
13492 lt_cv_file_magic_cmd='/bin/file'
13493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13494 lt_cv_file_magic_test_file=/lib/libc.so
13495 ;;
13496 siemens)
13497 lt_cv_deplibs_check_method=pass_all
13498 ;;
13499 pc)
13500 lt_cv_deplibs_check_method=pass_all
13501 ;;
13502 esac
13503 ;;
13504
13505 tpf*)
13506 lt_cv_deplibs_check_method=pass_all
13507 ;;
13508 esac
13509
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13513 file_magic_cmd=$lt_cv_file_magic_cmd
13514 deplibs_check_method=$lt_cv_deplibs_check_method
13515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 if test -n "$ac_tool_prefix"; then
13529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13530 set dummy ${ac_tool_prefix}ar; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if test "${ac_cv_prog_AR+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 if test -n "$AR"; then
13537 ac_cv_prog_AR="$AR" # Let the user override the test.
13538 else
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13541 do
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546 ac_cv_prog_AR="${ac_tool_prefix}ar"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13549 fi
13550 done
13551 done
13552 IFS=$as_save_IFS
13553
13554 fi
13555 fi
13556 AR=$ac_cv_prog_AR
13557 if test -n "$AR"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13559 $as_echo "$AR" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13563 fi
13564
13565
13566 fi
13567 if test -z "$ac_cv_prog_AR"; then
13568 ac_ct_AR=$AR
13569 # Extract the first word of "ar", so it can be a program name with args.
13570 set dummy ar; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 if test -n "$ac_ct_AR"; then
13577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13578 else
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13581 do
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13586 ac_cv_prog_ac_ct_AR="ar"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13589 fi
13590 done
13591 done
13592 IFS=$as_save_IFS
13593
13594 fi
13595 fi
13596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13597 if test -n "$ac_ct_AR"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13599 $as_echo "$ac_ct_AR" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605 if test "x$ac_ct_AR" = x; then
13606 AR="false"
13607 else
13608 case $cross_compiling:$ac_tool_warned in
13609 yes:)
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13612 ac_tool_warned=yes ;;
13613 esac
13614 AR=$ac_ct_AR
13615 fi
13616 else
13617 AR="$ac_cv_prog_AR"
13618 fi
13619
13620 test -z "$AR" && AR=ar
13621 test -z "$AR_FLAGS" && AR_FLAGS=cru
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633 if test -n "$ac_tool_prefix"; then
13634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13635 set dummy ${ac_tool_prefix}strip; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if test "${ac_cv_prog_STRIP+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 if test -n "$STRIP"; then
13642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13643 else
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13646 do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655 done
13656 done
13657 IFS=$as_save_IFS
13658
13659 fi
13660 fi
13661 STRIP=$ac_cv_prog_STRIP
13662 if test -n "$STRIP"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13664 $as_echo "$STRIP" >&6; }
13665 else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13668 fi
13669
13670
13671 fi
13672 if test -z "$ac_cv_prog_STRIP"; then
13673 ac_ct_STRIP=$STRIP
13674 # Extract the first word of "strip", so it can be a program name with args.
13675 set dummy strip; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 if test -n "$ac_ct_STRIP"; then
13682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13683 else
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13691 ac_cv_prog_ac_ct_STRIP="strip"
13692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13694 fi
13695 done
13696 done
13697 IFS=$as_save_IFS
13698
13699 fi
13700 fi
13701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13702 if test -n "$ac_ct_STRIP"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13704 $as_echo "$ac_ct_STRIP" >&6; }
13705 else
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708 fi
13709
13710 if test "x$ac_ct_STRIP" = x; then
13711 STRIP=":"
13712 else
13713 case $cross_compiling:$ac_tool_warned in
13714 yes:)
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13717 ac_tool_warned=yes ;;
13718 esac
13719 STRIP=$ac_ct_STRIP
13720 fi
13721 else
13722 STRIP="$ac_cv_prog_STRIP"
13723 fi
13724
13725 test -z "$STRIP" && STRIP=:
13726
13727
13728
13729
13730
13731
13732 if test -n "$ac_tool_prefix"; then
13733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if test -n "$RANLIB"; then
13741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13742 else
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13745 do
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13753 fi
13754 done
13755 done
13756 IFS=$as_save_IFS
13757
13758 fi
13759 fi
13760 RANLIB=$ac_cv_prog_RANLIB
13761 if test -n "$RANLIB"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13763 $as_echo "$RANLIB" >&6; }
13764 else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13767 fi
13768
13769
13770 fi
13771 if test -z "$ac_cv_prog_RANLIB"; then
13772 ac_ct_RANLIB=$RANLIB
13773 # Extract the first word of "ranlib", so it can be a program name with args.
13774 set dummy ranlib; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 if test -n "$ac_ct_RANLIB"; then
13781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13785 do
13786 IFS=$as_save_IFS
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_ac_ct_RANLIB="ranlib"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 break 2
13793 fi
13794 done
13795 done
13796 IFS=$as_save_IFS
13797
13798 fi
13799 fi
13800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13801 if test -n "$ac_ct_RANLIB"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13803 $as_echo "$ac_ct_RANLIB" >&6; }
13804 else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13807 fi
13808
13809 if test "x$ac_ct_RANLIB" = x; then
13810 RANLIB=":"
13811 else
13812 case $cross_compiling:$ac_tool_warned in
13813 yes:)
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13816 ac_tool_warned=yes ;;
13817 esac
13818 RANLIB=$ac_ct_RANLIB
13819 fi
13820 else
13821 RANLIB="$ac_cv_prog_RANLIB"
13822 fi
13823
13824 test -z "$RANLIB" && RANLIB=:
13825
13826
13827
13828
13829
13830
13831 # Determine commands to create old-style static archives.
13832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13833 old_postinstall_cmds='chmod 644 $oldlib'
13834 old_postuninstall_cmds=
13835
13836 if test -n "$RANLIB"; then
13837 case $host_os in
13838 openbsd*)
13839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13840 ;;
13841 *)
13842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13843 ;;
13844 esac
13845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13846 fi
13847
13848 case $host_os in
13849 darwin*)
13850 lock_old_archive_extraction=yes ;;
13851 *)
13852 lock_old_archive_extraction=no ;;
13853 esac
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893 # If no C compiler was specified, use CC.
13894 LTCC=${LTCC-"$CC"}
13895
13896 # If no C compiler flags were specified, use CFLAGS.
13897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13898
13899 # Allow CC to be a program name with arguments.
13900 compiler=$CC
13901
13902
13903 # Check for command to grab the raw symbol name followed by C symbol from nm.
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13905 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909
13910 # These are sane defaults that work on at least a few old systems.
13911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13912
13913 # Character class describing NM global symbol codes.
13914 symcode='[BCDEGRST]'
13915
13916 # Regexp to match symbols that can be accessed directly from C.
13917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13918
13919 # Define system-specific variables.
13920 case $host_os in
13921 aix*)
13922 symcode='[BCDT]'
13923 ;;
13924 cygwin* | mingw* | pw32* | cegcc*)
13925 symcode='[ABCDGISTW]'
13926 ;;
13927 hpux*)
13928 if test "$host_cpu" = ia64; then
13929 symcode='[ABCDEGRST]'
13930 fi
13931 ;;
13932 irix* | nonstopux*)
13933 symcode='[BCDEGRST]'
13934 ;;
13935 osf*)
13936 symcode='[BCDEGQRST]'
13937 ;;
13938 solaris*)
13939 symcode='[BDRT]'
13940 ;;
13941 sco3.2v5*)
13942 symcode='[DT]'
13943 ;;
13944 sysv4.2uw2*)
13945 symcode='[DT]'
13946 ;;
13947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13948 symcode='[ABDT]'
13949 ;;
13950 sysv4)
13951 symcode='[DFNSTU]'
13952 ;;
13953 esac
13954
13955 # If we're using GNU nm, then use its standard symbol codes.
13956 case `$NM -V 2>&1` in
13957 *GNU* | *'with BFD'*)
13958 symcode='[ABCDGIRSTW]' ;;
13959 esac
13960
13961 # Transform an extracted symbol line into a proper C declaration.
13962 # Some systems (esp. on ia64) link data and code symbols differently,
13963 # so use this general approach.
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965
13966 # Transform an extracted symbol line into symbol name and symbol address
13967 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13968 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'"
13969
13970 # Handle CRLF in mingw tool chain
13971 opt_cr=
13972 case $build_os in
13973 mingw*)
13974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13975 ;;
13976 esac
13977
13978 # Try without a prefix underscore, then with it.
13979 for ac_symprfx in "" "_"; do
13980
13981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13982 symxfrm="\\1 $ac_symprfx\\2 \\2"
13983
13984 # Write the raw and C identifiers.
13985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13986 # Fake it for dumpbin and say T for any non-static function
13987 # and D for any global variable.
13988 # Also find C++ and __fastcall symbols from MSVC++,
13989 # which start with @ or ?.
13990 lt_cv_sys_global_symbol_pipe="$AWK '"\
13991 " {last_section=section; section=\$ 3};"\
13992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13993 " \$ 0!~/External *\|/{next};"\
13994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13995 " {if(hide[section]) next};"\
13996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14000 " ' prfx=^$ac_symprfx"
14001 else
14002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14003 fi
14004
14005 # Check to see that the pipe works correctly.
14006 pipe_works=no
14007
14008 rm -f conftest*
14009 cat > conftest.$ac_ext <<_LT_EOF
14010 #ifdef __cplusplus
14011 extern "C" {
14012 #endif
14013 char nm_test_var;
14014 void nm_test_func(void);
14015 void nm_test_func(void){}
14016 #ifdef __cplusplus
14017 }
14018 #endif
14019 int main(){nm_test_var='a';nm_test_func();return(0);}
14020 _LT_EOF
14021
14022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14023 (eval $ac_compile) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026 test $ac_status = 0; }; then
14027 # Now try to grab the symbols.
14028 nlist=conftest.nm
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; } && test -s "$nlist"; then
14034 # Try sorting and uniquifying the output.
14035 if sort "$nlist" | uniq > "$nlist"T; then
14036 mv -f "$nlist"T "$nlist"
14037 else
14038 rm -f "$nlist"T
14039 fi
14040
14041 # Make sure that we snagged all the symbols we need.
14042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14044 cat <<_LT_EOF > conftest.$ac_ext
14045 #ifdef __cplusplus
14046 extern "C" {
14047 #endif
14048
14049 _LT_EOF
14050 # Now generate the symbol file.
14051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14052
14053 cat <<_LT_EOF >> conftest.$ac_ext
14054
14055 /* The mapping between symbol names and symbols. */
14056 const struct {
14057 const char *name;
14058 void *address;
14059 }
14060 lt__PROGRAM__LTX_preloaded_symbols[] =
14061 {
14062 { "@PROGRAM@", (void *) 0 },
14063 _LT_EOF
14064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14065 cat <<\_LT_EOF >> conftest.$ac_ext
14066 {0, (void *) 0}
14067 };
14068
14069 /* This works around a problem in FreeBSD linker */
14070 #ifdef FREEBSD_WORKAROUND
14071 static const void *lt_preloaded_setup() {
14072 return lt__PROGRAM__LTX_preloaded_symbols;
14073 }
14074 #endif
14075
14076 #ifdef __cplusplus
14077 }
14078 #endif
14079 _LT_EOF
14080 # Now try linking the two files.
14081 mv conftest.$ac_objext conftstm.$ac_objext
14082 lt_save_LIBS="$LIBS"
14083 lt_save_CFLAGS="$CFLAGS"
14084 LIBS="conftstm.$ac_objext"
14085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14087 (eval $ac_link) 2>&5
14088 ac_status=$?
14089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14091 pipe_works=yes
14092 fi
14093 LIBS="$lt_save_LIBS"
14094 CFLAGS="$lt_save_CFLAGS"
14095 else
14096 echo "cannot find nm_test_func in $nlist" >&5
14097 fi
14098 else
14099 echo "cannot find nm_test_var in $nlist" >&5
14100 fi
14101 else
14102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14103 fi
14104 else
14105 echo "$progname: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 fi
14108 rm -rf conftest* conftst*
14109
14110 # Do not use the global_symbol_pipe unless it works.
14111 if test "$pipe_works" = yes; then
14112 break
14113 else
14114 lt_cv_sys_global_symbol_pipe=
14115 fi
14116 done
14117
14118 fi
14119
14120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14121 lt_cv_sys_global_symbol_to_cdecl=
14122 fi
14123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14125 $as_echo "failed" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14128 $as_echo "ok" >&6; }
14129 fi
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152 # Check whether --enable-libtool-lock was given.
14153 if test "${enable_libtool_lock+set}" = set; then :
14154 enableval=$enable_libtool_lock;
14155 fi
14156
14157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14158
14159 # Some flags need to be propagated to the compiler or linker for good
14160 # libtool support.
14161 case $host in
14162 ia64-*-hpux*)
14163 # Find out which ABI we are using.
14164 echo 'int i;' > conftest.$ac_ext
14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166 (eval $ac_compile) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14171 *ELF-32*)
14172 HPUX_IA64_MODE="32"
14173 ;;
14174 *ELF-64*)
14175 HPUX_IA64_MODE="64"
14176 ;;
14177 esac
14178 fi
14179 rm -rf conftest*
14180 ;;
14181 *-*-irix6*)
14182 # Find out which ABI we are using.
14183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 if test "$lt_cv_prog_gnu_ld" = yes; then
14190 case `/usr/bin/file conftest.$ac_objext` in
14191 *32-bit*)
14192 LD="${LD-ld} -melf32bsmip"
14193 ;;
14194 *N32*)
14195 LD="${LD-ld} -melf32bmipn32"
14196 ;;
14197 *64-bit*)
14198 LD="${LD-ld} -melf64bmip"
14199 ;;
14200 esac
14201 else
14202 case `/usr/bin/file conftest.$ac_objext` in
14203 *32-bit*)
14204 LD="${LD-ld} -32"
14205 ;;
14206 *N32*)
14207 LD="${LD-ld} -n32"
14208 ;;
14209 *64-bit*)
14210 LD="${LD-ld} -64"
14211 ;;
14212 esac
14213 fi
14214 fi
14215 rm -rf conftest*
14216 ;;
14217
14218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14220 # Find out which ABI we are using.
14221 echo 'int i;' > conftest.$ac_ext
14222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14223 (eval $ac_compile) 2>&5
14224 ac_status=$?
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; }; then
14227 case `/usr/bin/file conftest.o` in
14228 *32-bit*)
14229 case $host in
14230 x86_64-*kfreebsd*-gnu)
14231 LD="${LD-ld} -m elf_i386_fbsd"
14232 ;;
14233 x86_64-*linux*)
14234 case `/usr/bin/file conftest.o` in
14235 *x86-64*)
14236 LD="${LD-ld} -m elf32_x86_64"
14237 ;;
14238 *)
14239 LD="${LD-ld} -m elf_i386"
14240 ;;
14241 esac
14242 ;;
14243 powerpc64le-*linux*)
14244 LD="${LD-ld} -m elf32lppclinux"
14245 ;;
14246 powerpc64-*linux*)
14247 LD="${LD-ld} -m elf32ppclinux"
14248 ;;
14249 s390x-*linux*)
14250 LD="${LD-ld} -m elf_s390"
14251 ;;
14252 sparc64-*linux*)
14253 LD="${LD-ld} -m elf32_sparc"
14254 ;;
14255 esac
14256 ;;
14257 *64-bit*)
14258 case $host in
14259 x86_64-*kfreebsd*-gnu)
14260 LD="${LD-ld} -m elf_x86_64_fbsd"
14261 ;;
14262 x86_64-*linux*)
14263 LD="${LD-ld} -m elf_x86_64"
14264 ;;
14265 powerpcle-*linux*)
14266 LD="${LD-ld} -m elf64lppc"
14267 ;;
14268 powerpc-*linux*)
14269 LD="${LD-ld} -m elf64ppc"
14270 ;;
14271 s390*-*linux*|s390*-*tpf*)
14272 LD="${LD-ld} -m elf64_s390"
14273 ;;
14274 sparc*-*linux*)
14275 LD="${LD-ld} -m elf64_sparc"
14276 ;;
14277 esac
14278 ;;
14279 esac
14280 fi
14281 rm -rf conftest*
14282 ;;
14283
14284 *-*-sco3.2v5*)
14285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14286 SAVE_CFLAGS="$CFLAGS"
14287 CFLAGS="$CFLAGS -belf"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14290 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 ac_ext=c
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14298
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301
14302 int
14303 main ()
14304 {
14305
14306 ;
14307 return 0;
14308 }
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 lt_cv_cc_needs_belf=yes
14312 else
14313 lt_cv_cc_needs_belf=no
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 ac_ext=c
14318 ac_cpp='$CPP $CPPFLAGS'
14319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14322
14323 fi
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14328 CFLAGS="$SAVE_CFLAGS"
14329 fi
14330 ;;
14331 sparc*-*solaris*)
14332 # Find out which ABI we are using.
14333 echo 'int i;' > conftest.$ac_ext
14334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14335 (eval $ac_compile) 2>&5
14336 ac_status=$?
14337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14338 test $ac_status = 0; }; then
14339 case `/usr/bin/file conftest.o` in
14340 *64-bit*)
14341 case $lt_cv_prog_gnu_ld in
14342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14343 *)
14344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14345 LD="${LD-ld} -64"
14346 fi
14347 ;;
14348 esac
14349 ;;
14350 esac
14351 fi
14352 rm -rf conftest*
14353 ;;
14354 esac
14355
14356 need_locks="$enable_libtool_lock"
14357
14358
14359 case $host_os in
14360 rhapsody* | darwin*)
14361 if test -n "$ac_tool_prefix"; then
14362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 if test -n "$DSYMUTIL"; then
14370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14371 else
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14374 do
14375 IFS=$as_save_IFS
14376 test -z "$as_dir" && as_dir=.
14377 for ac_exec_ext in '' $ac_executable_extensions; do
14378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14381 break 2
14382 fi
14383 done
14384 done
14385 IFS=$as_save_IFS
14386
14387 fi
14388 fi
14389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14390 if test -n "$DSYMUTIL"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14392 $as_echo "$DSYMUTIL" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 fi
14397
14398
14399 fi
14400 if test -z "$ac_cv_prog_DSYMUTIL"; then
14401 ac_ct_DSYMUTIL=$DSYMUTIL
14402 # Extract the first word of "dsymutil", so it can be a program name with args.
14403 set dummy dsymutil; ac_word=$2
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14405 $as_echo_n "checking for $ac_word... " >&6; }
14406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 if test -n "$ac_ct_DSYMUTIL"; then
14410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14411 else
14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415 IFS=$as_save_IFS
14416 test -z "$as_dir" && as_dir=.
14417 for ac_exec_ext in '' $ac_executable_extensions; do
14418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 break 2
14422 fi
14423 done
14424 done
14425 IFS=$as_save_IFS
14426
14427 fi
14428 fi
14429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14430 if test -n "$ac_ct_DSYMUTIL"; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14436 fi
14437
14438 if test "x$ac_ct_DSYMUTIL" = x; then
14439 DSYMUTIL=":"
14440 else
14441 case $cross_compiling:$ac_tool_warned in
14442 yes:)
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14445 ac_tool_warned=yes ;;
14446 esac
14447 DSYMUTIL=$ac_ct_DSYMUTIL
14448 fi
14449 else
14450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14451 fi
14452
14453 if test -n "$ac_tool_prefix"; then
14454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457 $as_echo_n "checking for $ac_word... " >&6; }
14458 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 if test -n "$NMEDIT"; then
14462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14463 else
14464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14466 do
14467 IFS=$as_save_IFS
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14473 break 2
14474 fi
14475 done
14476 done
14477 IFS=$as_save_IFS
14478
14479 fi
14480 fi
14481 NMEDIT=$ac_cv_prog_NMEDIT
14482 if test -n "$NMEDIT"; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14484 $as_echo "$NMEDIT" >&6; }
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14488 fi
14489
14490
14491 fi
14492 if test -z "$ac_cv_prog_NMEDIT"; then
14493 ac_ct_NMEDIT=$NMEDIT
14494 # Extract the first word of "nmedit", so it can be a program name with args.
14495 set dummy nmedit; ac_word=$2
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14497 $as_echo_n "checking for $ac_word... " >&6; }
14498 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 if test -n "$ac_ct_NMEDIT"; then
14502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14503 else
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14506 do
14507 IFS=$as_save_IFS
14508 test -z "$as_dir" && as_dir=.
14509 for ac_exec_ext in '' $ac_executable_extensions; do
14510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14513 break 2
14514 fi
14515 done
14516 done
14517 IFS=$as_save_IFS
14518
14519 fi
14520 fi
14521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14522 if test -n "$ac_ct_NMEDIT"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14524 $as_echo "$ac_ct_NMEDIT" >&6; }
14525 else
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14528 fi
14529
14530 if test "x$ac_ct_NMEDIT" = x; then
14531 NMEDIT=":"
14532 else
14533 case $cross_compiling:$ac_tool_warned in
14534 yes:)
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14537 ac_tool_warned=yes ;;
14538 esac
14539 NMEDIT=$ac_ct_NMEDIT
14540 fi
14541 else
14542 NMEDIT="$ac_cv_prog_NMEDIT"
14543 fi
14544
14545 if test -n "$ac_tool_prefix"; then
14546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14549 $as_echo_n "checking for $ac_word... " >&6; }
14550 if test "${ac_cv_prog_LIPO+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 if test -n "$LIPO"; then
14554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14555 else
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14558 do
14559 IFS=$as_save_IFS
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 break 2
14566 fi
14567 done
14568 done
14569 IFS=$as_save_IFS
14570
14571 fi
14572 fi
14573 LIPO=$ac_cv_prog_LIPO
14574 if test -n "$LIPO"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14576 $as_echo "$LIPO" >&6; }
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14580 fi
14581
14582
14583 fi
14584 if test -z "$ac_cv_prog_LIPO"; then
14585 ac_ct_LIPO=$LIPO
14586 # Extract the first word of "lipo", so it can be a program name with args.
14587 set dummy lipo; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 if test -n "$ac_ct_LIPO"; then
14594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14595 else
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14598 do
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14603 ac_cv_prog_ac_ct_LIPO="lipo"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 break 2
14606 fi
14607 done
14608 done
14609 IFS=$as_save_IFS
14610
14611 fi
14612 fi
14613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14614 if test -n "$ac_ct_LIPO"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14616 $as_echo "$ac_ct_LIPO" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621
14622 if test "x$ac_ct_LIPO" = x; then
14623 LIPO=":"
14624 else
14625 case $cross_compiling:$ac_tool_warned in
14626 yes:)
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14629 ac_tool_warned=yes ;;
14630 esac
14631 LIPO=$ac_ct_LIPO
14632 fi
14633 else
14634 LIPO="$ac_cv_prog_LIPO"
14635 fi
14636
14637 if test -n "$ac_tool_prefix"; then
14638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14639 set dummy ${ac_tool_prefix}otool; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 $as_echo_n "checking for $ac_word... " >&6; }
14642 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645 if test -n "$OTOOL"; then
14646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14647 else
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14650 do
14651 IFS=$as_save_IFS
14652 test -z "$as_dir" && as_dir=.
14653 for ac_exec_ext in '' $ac_executable_extensions; do
14654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 break 2
14658 fi
14659 done
14660 done
14661 IFS=$as_save_IFS
14662
14663 fi
14664 fi
14665 OTOOL=$ac_cv_prog_OTOOL
14666 if test -n "$OTOOL"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14668 $as_echo "$OTOOL" >&6; }
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671 $as_echo "no" >&6; }
14672 fi
14673
14674
14675 fi
14676 if test -z "$ac_cv_prog_OTOOL"; then
14677 ac_ct_OTOOL=$OTOOL
14678 # Extract the first word of "otool", so it can be a program name with args.
14679 set dummy otool; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681 $as_echo_n "checking for $ac_word... " >&6; }
14682 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 if test -n "$ac_ct_OTOOL"; then
14686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14687 else
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14690 do
14691 IFS=$as_save_IFS
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14695 ac_cv_prog_ac_ct_OTOOL="otool"
14696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14697 break 2
14698 fi
14699 done
14700 done
14701 IFS=$as_save_IFS
14702
14703 fi
14704 fi
14705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14706 if test -n "$ac_ct_OTOOL"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14708 $as_echo "$ac_ct_OTOOL" >&6; }
14709 else
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14712 fi
14713
14714 if test "x$ac_ct_OTOOL" = x; then
14715 OTOOL=":"
14716 else
14717 case $cross_compiling:$ac_tool_warned in
14718 yes:)
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14721 ac_tool_warned=yes ;;
14722 esac
14723 OTOOL=$ac_ct_OTOOL
14724 fi
14725 else
14726 OTOOL="$ac_cv_prog_OTOOL"
14727 fi
14728
14729 if test -n "$ac_tool_prefix"; then
14730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14733 $as_echo_n "checking for $ac_word... " >&6; }
14734 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 if test -n "$OTOOL64"; then
14738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14739 else
14740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741 for as_dir in $PATH
14742 do
14743 IFS=$as_save_IFS
14744 test -z "$as_dir" && as_dir=.
14745 for ac_exec_ext in '' $ac_executable_extensions; do
14746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14749 break 2
14750 fi
14751 done
14752 done
14753 IFS=$as_save_IFS
14754
14755 fi
14756 fi
14757 OTOOL64=$ac_cv_prog_OTOOL64
14758 if test -n "$OTOOL64"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14760 $as_echo "$OTOOL64" >&6; }
14761 else
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 $as_echo "no" >&6; }
14764 fi
14765
14766
14767 fi
14768 if test -z "$ac_cv_prog_OTOOL64"; then
14769 ac_ct_OTOOL64=$OTOOL64
14770 # Extract the first word of "otool64", so it can be a program name with args.
14771 set dummy otool64; ac_word=$2
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14773 $as_echo_n "checking for $ac_word... " >&6; }
14774 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 if test -n "$ac_ct_OTOOL64"; then
14778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14779 else
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14782 do
14783 IFS=$as_save_IFS
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14787 ac_cv_prog_ac_ct_OTOOL64="otool64"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14789 break 2
14790 fi
14791 done
14792 done
14793 IFS=$as_save_IFS
14794
14795 fi
14796 fi
14797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14798 if test -n "$ac_ct_OTOOL64"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14800 $as_echo "$ac_ct_OTOOL64" >&6; }
14801 else
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 $as_echo "no" >&6; }
14804 fi
14805
14806 if test "x$ac_ct_OTOOL64" = x; then
14807 OTOOL64=":"
14808 else
14809 case $cross_compiling:$ac_tool_warned in
14810 yes:)
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14813 ac_tool_warned=yes ;;
14814 esac
14815 OTOOL64=$ac_ct_OTOOL64
14816 fi
14817 else
14818 OTOOL64="$ac_cv_prog_OTOOL64"
14819 fi
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14848 $as_echo_n "checking for -single_module linker flag... " >&6; }
14849 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14850 $as_echo_n "(cached) " >&6
14851 else
14852 lt_cv_apple_cc_single_mod=no
14853 if test -z "${LT_MULTI_MODULE}"; then
14854 # By default we will add the -single_module flag. You can override
14855 # by either setting the environment variable LT_MULTI_MODULE
14856 # non-empty at configure time, or by adding -multi_module to the
14857 # link flags.
14858 rm -rf libconftest.dylib*
14859 echo "int foo(void){return 1;}" > conftest.c
14860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14861 -dynamiclib -Wl,-single_module conftest.c" >&5
14862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14864 _lt_result=$?
14865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14866 lt_cv_apple_cc_single_mod=yes
14867 else
14868 cat conftest.err >&5
14869 fi
14870 rm -rf libconftest.dylib*
14871 rm -f conftest.*
14872 fi
14873 fi
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14878 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 lt_cv_ld_exported_symbols_list=no
14882 save_LDFLAGS=$LDFLAGS
14883 echo "_main" > conftest.sym
14884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887
14888 int
14889 main ()
14890 {
14891
14892 ;
14893 return 0;
14894 }
14895 _ACEOF
14896 if ac_fn_c_try_link "$LINENO"; then :
14897 lt_cv_ld_exported_symbols_list=yes
14898 else
14899 lt_cv_ld_exported_symbols_list=no
14900 fi
14901 rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LDFLAGS="$save_LDFLAGS"
14904
14905 fi
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14909 $as_echo_n "checking for -force_load linker flag... " >&6; }
14910 if test "${lt_cv_ld_force_load+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 lt_cv_ld_force_load=no
14914 cat > conftest.c << _LT_EOF
14915 int forced_loaded() { return 2;}
14916 _LT_EOF
14917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14919 echo "$AR cru libconftest.a conftest.o" >&5
14920 $AR cru libconftest.a conftest.o 2>&5
14921 cat > conftest.c << _LT_EOF
14922 int main() { return 0;}
14923 _LT_EOF
14924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14926 _lt_result=$?
14927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14928 lt_cv_ld_force_load=yes
14929 else
14930 cat conftest.err >&5
14931 fi
14932 rm -f conftest.err libconftest.a conftest conftest.c
14933 rm -rf conftest.dSYM
14934
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14937 $as_echo "$lt_cv_ld_force_load" >&6; }
14938 case $host_os in
14939 rhapsody* | darwin1.[012])
14940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14941 darwin1.*)
14942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14943 darwin*) # darwin 5.x on
14944 # if running on 10.5 or later, the deployment target defaults
14945 # to the OS version, if on x86, and 10.4, the deployment
14946 # target defaults to 10.4. Don't you love it?
14947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14950 10.[012][,.]*)
14951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14952 10.*)
14953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14954 esac
14955 ;;
14956 esac
14957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14958 _lt_dar_single_mod='$single_module'
14959 fi
14960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14962 else
14963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14964 fi
14965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14966 _lt_dsymutil='~$DSYMUTIL $lib || :'
14967 else
14968 _lt_dsymutil=
14969 fi
14970 ;;
14971 esac
14972
14973
14974 for ac_header in dlfcn.h
14975 do :
14976 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14977 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_DLFCN_H 1
14980 _ACEOF
14981
14982 fi
14983 done
14984
14985
14986
14987
14988
14989 # Set options
14990
14991
14992
14993 enable_dlopen=no
14994
14995
14996 enable_win32_dll=no
14997
14998
14999 # Check whether --enable-shared was given.
15000 if test "${enable_shared+set}" = set; then :
15001 enableval=$enable_shared; p=${PACKAGE-default}
15002 case $enableval in
15003 yes) enable_shared=yes ;;
15004 no) enable_shared=no ;;
15005 *)
15006 enable_shared=no
15007 # Look at the argument we got. We use all the common list separators.
15008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15009 for pkg in $enableval; do
15010 IFS="$lt_save_ifs"
15011 if test "X$pkg" = "X$p"; then
15012 enable_shared=yes
15013 fi
15014 done
15015 IFS="$lt_save_ifs"
15016 ;;
15017 esac
15018 else
15019 enable_shared=yes
15020 fi
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030 # Check whether --enable-static was given.
15031 if test "${enable_static+set}" = set; then :
15032 enableval=$enable_static; p=${PACKAGE-default}
15033 case $enableval in
15034 yes) enable_static=yes ;;
15035 no) enable_static=no ;;
15036 *)
15037 enable_static=no
15038 # Look at the argument we got. We use all the common list separators.
15039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15040 for pkg in $enableval; do
15041 IFS="$lt_save_ifs"
15042 if test "X$pkg" = "X$p"; then
15043 enable_static=yes
15044 fi
15045 done
15046 IFS="$lt_save_ifs"
15047 ;;
15048 esac
15049 else
15050 enable_static=yes
15051 fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062 # Check whether --with-pic was given.
15063 if test "${with_pic+set}" = set; then :
15064 withval=$with_pic; pic_mode="$withval"
15065 else
15066 pic_mode=default
15067 fi
15068
15069
15070 test -z "$pic_mode" && pic_mode=default
15071
15072
15073
15074
15075
15076
15077
15078 # Check whether --enable-fast-install was given.
15079 if test "${enable_fast_install+set}" = set; then :
15080 enableval=$enable_fast_install; p=${PACKAGE-default}
15081 case $enableval in
15082 yes) enable_fast_install=yes ;;
15083 no) enable_fast_install=no ;;
15084 *)
15085 enable_fast_install=no
15086 # Look at the argument we got. We use all the common list separators.
15087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15088 for pkg in $enableval; do
15089 IFS="$lt_save_ifs"
15090 if test "X$pkg" = "X$p"; then
15091 enable_fast_install=yes
15092 fi
15093 done
15094 IFS="$lt_save_ifs"
15095 ;;
15096 esac
15097 else
15098 enable_fast_install=yes
15099 fi
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111 # This can be used to rebuild libtool when needed
15112 LIBTOOL_DEPS="$ltmain"
15113
15114 # Always use our own libtool.
15115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 test -z "$LN_S" && LN_S="ln -s"
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 if test -n "${ZSH_VERSION+set}" ; then
15158 setopt NO_GLOB_SUBST
15159 fi
15160
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15162 $as_echo_n "checking for objdir... " >&6; }
15163 if test "${lt_cv_objdir+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 rm -f .libs 2>/dev/null
15167 mkdir .libs 2>/dev/null
15168 if test -d .libs; then
15169 lt_cv_objdir=.libs
15170 else
15171 # MS-DOS does not allow filenames that begin with a dot.
15172 lt_cv_objdir=_libs
15173 fi
15174 rmdir .libs 2>/dev/null
15175 fi
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15177 $as_echo "$lt_cv_objdir" >&6; }
15178 objdir=$lt_cv_objdir
15179
15180
15181
15182
15183
15184 cat >>confdefs.h <<_ACEOF
15185 #define LT_OBJDIR "$lt_cv_objdir/"
15186 _ACEOF
15187
15188
15189
15190
15191 case $host_os in
15192 aix3*)
15193 # AIX sometimes has problems with the GCC collect2 program. For some
15194 # reason, if we set the COLLECT_NAMES environment variable, the problems
15195 # vanish in a puff of smoke.
15196 if test "X${COLLECT_NAMES+set}" != Xset; then
15197 COLLECT_NAMES=
15198 export COLLECT_NAMES
15199 fi
15200 ;;
15201 esac
15202
15203 # Global variables:
15204 ofile=libtool
15205 can_build_shared=yes
15206
15207 # All known linkers require a `.a' archive for static linking (except MSVC,
15208 # which needs '.lib').
15209 libext=a
15210
15211 with_gnu_ld="$lt_cv_prog_gnu_ld"
15212
15213 old_CC="$CC"
15214 old_CFLAGS="$CFLAGS"
15215
15216 # Set sane defaults for various variables
15217 test -z "$CC" && CC=cc
15218 test -z "$LTCC" && LTCC=$CC
15219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15220 test -z "$LD" && LD=ld
15221 test -z "$ac_objext" && ac_objext=o
15222
15223 for cc_temp in $compiler""; do
15224 case $cc_temp in
15225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15227 \-*) ;;
15228 *) break;;
15229 esac
15230 done
15231 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15232
15233
15234 # Only perform the check for file, if the check method requires it
15235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15236 case $deplibs_check_method in
15237 file_magic*)
15238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 case $MAGIC_CMD in
15245 [\\/*] | ?:[\\/]*)
15246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15247 ;;
15248 *)
15249 lt_save_MAGIC_CMD="$MAGIC_CMD"
15250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15252 for ac_dir in $ac_dummy; do
15253 IFS="$lt_save_ifs"
15254 test -z "$ac_dir" && ac_dir=.
15255 if test -f $ac_dir/${ac_tool_prefix}file; then
15256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15257 if test -n "$file_magic_test_file"; then
15258 case $deplibs_check_method in
15259 "file_magic "*)
15260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15263 $EGREP "$file_magic_regex" > /dev/null; then
15264 :
15265 else
15266 cat <<_LT_EOF 1>&2
15267
15268 *** Warning: the command libtool uses to detect shared libraries,
15269 *** $file_magic_cmd, produces output that libtool cannot recognize.
15270 *** The result is that libtool may fail to recognize shared libraries
15271 *** as such. This will affect the creation of libtool libraries that
15272 *** depend on shared libraries, but programs linked with such libtool
15273 *** libraries will work regardless of this problem. Nevertheless, you
15274 *** may want to report the problem to your system manager and/or to
15275 *** bug-libtool@gnu.org
15276
15277 _LT_EOF
15278 fi ;;
15279 esac
15280 fi
15281 break
15282 fi
15283 done
15284 IFS="$lt_save_ifs"
15285 MAGIC_CMD="$lt_save_MAGIC_CMD"
15286 ;;
15287 esac
15288 fi
15289
15290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15291 if test -n "$MAGIC_CMD"; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15293 $as_echo "$MAGIC_CMD" >&6; }
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15297 fi
15298
15299
15300
15301
15302
15303 if test -z "$lt_cv_path_MAGIC_CMD"; then
15304 if test -n "$ac_tool_prefix"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15306 $as_echo_n "checking for file... " >&6; }
15307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15308 $as_echo_n "(cached) " >&6
15309 else
15310 case $MAGIC_CMD in
15311 [\\/*] | ?:[\\/]*)
15312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15313 ;;
15314 *)
15315 lt_save_MAGIC_CMD="$MAGIC_CMD"
15316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15318 for ac_dir in $ac_dummy; do
15319 IFS="$lt_save_ifs"
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f $ac_dir/file; then
15322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15323 if test -n "$file_magic_test_file"; then
15324 case $deplibs_check_method in
15325 "file_magic "*)
15326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15329 $EGREP "$file_magic_regex" > /dev/null; then
15330 :
15331 else
15332 cat <<_LT_EOF 1>&2
15333
15334 *** Warning: the command libtool uses to detect shared libraries,
15335 *** $file_magic_cmd, produces output that libtool cannot recognize.
15336 *** The result is that libtool may fail to recognize shared libraries
15337 *** as such. This will affect the creation of libtool libraries that
15338 *** depend on shared libraries, but programs linked with such libtool
15339 *** libraries will work regardless of this problem. Nevertheless, you
15340 *** may want to report the problem to your system manager and/or to
15341 *** bug-libtool@gnu.org
15342
15343 _LT_EOF
15344 fi ;;
15345 esac
15346 fi
15347 break
15348 fi
15349 done
15350 IFS="$lt_save_ifs"
15351 MAGIC_CMD="$lt_save_MAGIC_CMD"
15352 ;;
15353 esac
15354 fi
15355
15356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15357 if test -n "$MAGIC_CMD"; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15359 $as_echo "$MAGIC_CMD" >&6; }
15360 else
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362 $as_echo "no" >&6; }
15363 fi
15364
15365
15366 else
15367 MAGIC_CMD=:
15368 fi
15369 fi
15370
15371 fi
15372 ;;
15373 esac
15374
15375 # Use C for the default configuration in the libtool script
15376
15377 lt_save_CC="$CC"
15378 ac_ext=c
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15383
15384
15385 # Source file extension for C test sources.
15386 ac_ext=c
15387
15388 # Object file extension for compiled C test sources.
15389 objext=o
15390 objext=$objext
15391
15392 # Code to be used in simple compile tests
15393 lt_simple_compile_test_code="int some_variable = 0;"
15394
15395 # Code to be used in simple link tests
15396 lt_simple_link_test_code='int main(){return(0);}'
15397
15398
15399
15400
15401
15402
15403
15404 # If no C compiler was specified, use CC.
15405 LTCC=${LTCC-"$CC"}
15406
15407 # If no C compiler flags were specified, use CFLAGS.
15408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15409
15410 # Allow CC to be a program name with arguments.
15411 compiler=$CC
15412
15413 # Save the default compiler, since it gets overwritten when the other
15414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15415 compiler_DEFAULT=$CC
15416
15417 # save warnings/boilerplate of simple test code
15418 ac_outfile=conftest.$ac_objext
15419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15421 _lt_compiler_boilerplate=`cat conftest.err`
15422 $RM conftest*
15423
15424 ac_outfile=conftest.$ac_objext
15425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15427 _lt_linker_boilerplate=`cat conftest.err`
15428 $RM -r conftest*
15429
15430
15431 ## CAVEAT EMPTOR:
15432 ## There is no encapsulation within the following macros, do not change
15433 ## the running order or otherwise move them around unless you know exactly
15434 ## what you are doing...
15435 if test -n "$compiler"; then
15436
15437 lt_prog_compiler_no_builtin_flag=
15438
15439 if test "$GCC" = yes; then
15440 case $cc_basename in
15441 nvcc*)
15442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15443 *)
15444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15445 esac
15446
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 lt_cv_prog_compiler_rtti_exceptions=no
15453 ac_outfile=conftest.$ac_objext
15454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455 lt_compiler_flag="-fno-rtti -fno-exceptions"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 # The option is referenced via a variable to avoid confusing sed.
15461 lt_compile=`echo "$ac_compile" | $SED \
15462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15464 -e 's:$: $lt_compiler_flag:'`
15465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15466 (eval "$lt_compile" 2>conftest.err)
15467 ac_status=$?
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 if (exit $ac_status) && test -s "$ac_outfile"; then
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings other than the usual output.
15473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_rtti_exceptions=yes
15477 fi
15478 fi
15479 $RM conftest*
15480
15481 fi
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15484
15485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15487 else
15488 :
15489 fi
15490
15491 fi
15492
15493
15494
15495
15496
15497
15498 lt_prog_compiler_wl=
15499 lt_prog_compiler_pic=
15500 lt_prog_compiler_static=
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15504
15505 if test "$GCC" = yes; then
15506 lt_prog_compiler_wl='-Wl,'
15507 lt_prog_compiler_static='-static'
15508
15509 case $host_os in
15510 aix*)
15511 # All AIX code is PIC.
15512 if test "$host_cpu" = ia64; then
15513 # AIX 5 now supports IA64 processor
15514 lt_prog_compiler_static='-Bstatic'
15515 fi
15516 lt_prog_compiler_pic='-fPIC'
15517 ;;
15518
15519 amigaos*)
15520 case $host_cpu in
15521 powerpc)
15522 # see comment about AmigaOS4 .so support
15523 lt_prog_compiler_pic='-fPIC'
15524 ;;
15525 m68k)
15526 # FIXME: we need at least 68020 code to build shared libraries, but
15527 # adding the `-m68020' flag to GCC prevents building anything better,
15528 # like `-m68040'.
15529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15530 ;;
15531 esac
15532 ;;
15533
15534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15535 # PIC is the default for these OSes.
15536 ;;
15537
15538 mingw* | cygwin* | pw32* | os2* | cegcc*)
15539 # This hack is so that the source file can tell whether it is being
15540 # built for inclusion in a dll (and should export symbols for example).
15541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15542 # (--disable-auto-import) libraries
15543 lt_prog_compiler_pic='-DDLL_EXPORT'
15544 ;;
15545
15546 darwin* | rhapsody*)
15547 # PIC is the default on this platform
15548 # Common symbols not allowed in MH_DYLIB files
15549 lt_prog_compiler_pic='-fno-common'
15550 ;;
15551
15552 haiku*)
15553 # PIC is the default for Haiku.
15554 # The "-static" flag exists, but is broken.
15555 lt_prog_compiler_static=
15556 ;;
15557
15558 hpux*)
15559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15561 # sets the default TLS model and affects inlining.
15562 case $host_cpu in
15563 hppa*64*)
15564 # +Z the default
15565 ;;
15566 *)
15567 lt_prog_compiler_pic='-fPIC'
15568 ;;
15569 esac
15570 ;;
15571
15572 interix[3-9]*)
15573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15574 # Instead, we relocate shared libraries at runtime.
15575 ;;
15576
15577 msdosdjgpp*)
15578 # Just because we use GCC doesn't mean we suddenly get shared libraries
15579 # on systems that don't support them.
15580 lt_prog_compiler_can_build_shared=no
15581 enable_shared=no
15582 ;;
15583
15584 *nto* | *qnx*)
15585 # QNX uses GNU C++, but need to define -shared option too, otherwise
15586 # it will coredump.
15587 lt_prog_compiler_pic='-fPIC -shared'
15588 ;;
15589
15590 sysv4*MP*)
15591 if test -d /usr/nec; then
15592 lt_prog_compiler_pic=-Kconform_pic
15593 fi
15594 ;;
15595
15596 *)
15597 lt_prog_compiler_pic='-fPIC'
15598 ;;
15599 esac
15600
15601 case $cc_basename in
15602 nvcc*) # Cuda Compiler Driver 2.2
15603 lt_prog_compiler_wl='-Xlinker '
15604 lt_prog_compiler_pic='-Xcompiler -fPIC'
15605 ;;
15606 esac
15607 else
15608 # PORTME Check for flag to pass linker flags through the system compiler.
15609 case $host_os in
15610 aix*)
15611 lt_prog_compiler_wl='-Wl,'
15612 if test "$host_cpu" = ia64; then
15613 # AIX 5 now supports IA64 processor
15614 lt_prog_compiler_static='-Bstatic'
15615 else
15616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15617 fi
15618 ;;
15619
15620 mingw* | cygwin* | pw32* | os2* | cegcc*)
15621 # This hack is so that the source file can tell whether it is being
15622 # built for inclusion in a dll (and should export symbols for example).
15623 lt_prog_compiler_pic='-DDLL_EXPORT'
15624 ;;
15625
15626 hpux9* | hpux10* | hpux11*)
15627 lt_prog_compiler_wl='-Wl,'
15628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15629 # not for PA HP-UX.
15630 case $host_cpu in
15631 hppa*64*|ia64*)
15632 # +Z the default
15633 ;;
15634 *)
15635 lt_prog_compiler_pic='+Z'
15636 ;;
15637 esac
15638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15639 lt_prog_compiler_static='${wl}-a ${wl}archive'
15640 ;;
15641
15642 irix5* | irix6* | nonstopux*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # PIC (with -KPIC) is the default.
15645 lt_prog_compiler_static='-non_shared'
15646 ;;
15647
15648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15649 case $cc_basename in
15650 # old Intel for x86_64 which still supported -KPIC.
15651 ecc*)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-static'
15655 ;;
15656 # icc used to be incompatible with GCC.
15657 # ICC 10 doesn't accept -KPIC any more.
15658 icc* | ifort*)
15659 lt_prog_compiler_wl='-Wl,'
15660 lt_prog_compiler_pic='-fPIC'
15661 lt_prog_compiler_static='-static'
15662 ;;
15663 # Lahey Fortran 8.1.
15664 lf95*)
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='--shared'
15667 lt_prog_compiler_static='--static'
15668 ;;
15669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15670 # Portland Group compilers (*not* the Pentium gcc compiler,
15671 # which looks to be a dead project)
15672 lt_prog_compiler_wl='-Wl,'
15673 lt_prog_compiler_pic='-fpic'
15674 lt_prog_compiler_static='-Bstatic'
15675 ;;
15676 ccc*)
15677 lt_prog_compiler_wl='-Wl,'
15678 # All Alpha code is PIC.
15679 lt_prog_compiler_static='-non_shared'
15680 ;;
15681 xl* | bgxl* | bgf* | mpixl*)
15682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-qpic'
15685 lt_prog_compiler_static='-qstaticlink'
15686 ;;
15687 *)
15688 case `$CC -V 2>&1 | sed 5q` in
15689 *Sun\ F* | *Sun*Fortran*)
15690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15691 lt_prog_compiler_pic='-KPIC'
15692 lt_prog_compiler_static='-Bstatic'
15693 lt_prog_compiler_wl=''
15694 ;;
15695 *Sun\ C*)
15696 # Sun C 5.9
15697 lt_prog_compiler_pic='-KPIC'
15698 lt_prog_compiler_static='-Bstatic'
15699 lt_prog_compiler_wl='-Wl,'
15700 ;;
15701 esac
15702 ;;
15703 esac
15704 ;;
15705
15706 newsos6)
15707 lt_prog_compiler_pic='-KPIC'
15708 lt_prog_compiler_static='-Bstatic'
15709 ;;
15710
15711 *nto* | *qnx*)
15712 # QNX uses GNU C++, but need to define -shared option too, otherwise
15713 # it will coredump.
15714 lt_prog_compiler_pic='-fPIC -shared'
15715 ;;
15716
15717 osf3* | osf4* | osf5*)
15718 lt_prog_compiler_wl='-Wl,'
15719 # All OSF/1 code is PIC.
15720 lt_prog_compiler_static='-non_shared'
15721 ;;
15722
15723 rdos*)
15724 lt_prog_compiler_static='-non_shared'
15725 ;;
15726
15727 solaris*)
15728 lt_prog_compiler_pic='-KPIC'
15729 lt_prog_compiler_static='-Bstatic'
15730 case $cc_basename in
15731 f77* | f90* | f95*)
15732 lt_prog_compiler_wl='-Qoption ld ';;
15733 *)
15734 lt_prog_compiler_wl='-Wl,';;
15735 esac
15736 ;;
15737
15738 sunos4*)
15739 lt_prog_compiler_wl='-Qoption ld '
15740 lt_prog_compiler_pic='-PIC'
15741 lt_prog_compiler_static='-Bstatic'
15742 ;;
15743
15744 sysv4 | sysv4.2uw2* | sysv4.3*)
15745 lt_prog_compiler_wl='-Wl,'
15746 lt_prog_compiler_pic='-KPIC'
15747 lt_prog_compiler_static='-Bstatic'
15748 ;;
15749
15750 sysv4*MP*)
15751 if test -d /usr/nec ;then
15752 lt_prog_compiler_pic='-Kconform_pic'
15753 lt_prog_compiler_static='-Bstatic'
15754 fi
15755 ;;
15756
15757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15758 lt_prog_compiler_wl='-Wl,'
15759 lt_prog_compiler_pic='-KPIC'
15760 lt_prog_compiler_static='-Bstatic'
15761 ;;
15762
15763 unicos*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_can_build_shared=no
15766 ;;
15767
15768 uts4*)
15769 lt_prog_compiler_pic='-pic'
15770 lt_prog_compiler_static='-Bstatic'
15771 ;;
15772
15773 *)
15774 lt_prog_compiler_can_build_shared=no
15775 ;;
15776 esac
15777 fi
15778
15779 case $host_os in
15780 # For platforms which do not support PIC, -DPIC is meaningless:
15781 *djgpp*)
15782 lt_prog_compiler_pic=
15783 ;;
15784 *)
15785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15786 ;;
15787 esac
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15789 $as_echo "$lt_prog_compiler_pic" >&6; }
15790
15791
15792
15793
15794
15795
15796 #
15797 # Check to make sure the PIC flag actually works.
15798 #
15799 if test -n "$lt_prog_compiler_pic"; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15802 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15803 $as_echo_n "(cached) " >&6
15804 else
15805 lt_cv_prog_compiler_pic_works=no
15806 ac_outfile=conftest.$ac_objext
15807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15809 # Insert the option either (1) after the last *FLAGS variable, or
15810 # (2) before a word containing "conftest.", or (3) at the end.
15811 # Note that $ac_compile itself does not contain backslashes and begins
15812 # with a dollar sign (not a hyphen), so the echo should work correctly.
15813 # The option is referenced via a variable to avoid confusing sed.
15814 lt_compile=`echo "$ac_compile" | $SED \
15815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817 -e 's:$: $lt_compiler_flag:'`
15818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15819 (eval "$lt_compile" 2>conftest.err)
15820 ac_status=$?
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 if (exit $ac_status) && test -s "$ac_outfile"; then
15824 # The compiler can only warn and ignore the option if not recognized
15825 # So say no if there are warnings other than the usual output.
15826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15829 lt_cv_prog_compiler_pic_works=yes
15830 fi
15831 fi
15832 $RM conftest*
15833
15834 fi
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15837
15838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15839 case $lt_prog_compiler_pic in
15840 "" | " "*) ;;
15841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15842 esac
15843 else
15844 lt_prog_compiler_pic=
15845 lt_prog_compiler_can_build_shared=no
15846 fi
15847
15848 fi
15849
15850
15851
15852
15853
15854
15855 #
15856 # Check to make sure the static flag actually works.
15857 #
15858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15860 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15861 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 lt_cv_prog_compiler_static_works=no
15865 save_LDFLAGS="$LDFLAGS"
15866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15869 # The linker can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 if test -s conftest.err; then
15872 # Append any errors to the config.log.
15873 cat conftest.err 1>&5
15874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15876 if diff conftest.exp conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_static_works=yes
15878 fi
15879 else
15880 lt_cv_prog_compiler_static_works=yes
15881 fi
15882 fi
15883 $RM -r conftest*
15884 LDFLAGS="$save_LDFLAGS"
15885
15886 fi
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15889
15890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15891 :
15892 else
15893 lt_prog_compiler_static=
15894 fi
15895
15896
15897
15898
15899
15900
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 lt_cv_prog_compiler_c_o=no
15908 $RM -r conftest 2>/dev/null
15909 mkdir conftest
15910 cd conftest
15911 mkdir out
15912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15913
15914 lt_compiler_flag="-o out/conftest2.$ac_objext"
15915 # Insert the option either (1) after the last *FLAGS variable, or
15916 # (2) before a word containing "conftest.", or (3) at the end.
15917 # Note that $ac_compile itself does not contain backslashes and begins
15918 # with a dollar sign (not a hyphen), so the echo should work correctly.
15919 lt_compile=`echo "$ac_compile" | $SED \
15920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922 -e 's:$: $lt_compiler_flag:'`
15923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15924 (eval "$lt_compile" 2>out/conftest.err)
15925 ac_status=$?
15926 cat out/conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15929 then
15930 # The compiler can only warn and ignore the option if not recognized
15931 # So say no if there are warnings
15932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15935 lt_cv_prog_compiler_c_o=yes
15936 fi
15937 fi
15938 chmod u+w . 2>&5
15939 $RM conftest*
15940 # SGI C++ compiler will create directory out/ii_files/ for
15941 # template instantiation
15942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15943 $RM out/* && rmdir out
15944 cd ..
15945 $RM -r conftest
15946 $RM conftest*
15947
15948 fi
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15951
15952
15953
15954
15955
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 lt_cv_prog_compiler_c_o=no
15963 $RM -r conftest 2>/dev/null
15964 mkdir conftest
15965 cd conftest
15966 mkdir out
15967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15968
15969 lt_compiler_flag="-o out/conftest2.$ac_objext"
15970 # Insert the option either (1) after the last *FLAGS variable, or
15971 # (2) before a word containing "conftest.", or (3) at the end.
15972 # Note that $ac_compile itself does not contain backslashes and begins
15973 # with a dollar sign (not a hyphen), so the echo should work correctly.
15974 lt_compile=`echo "$ac_compile" | $SED \
15975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15977 -e 's:$: $lt_compiler_flag:'`
15978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15979 (eval "$lt_compile" 2>out/conftest.err)
15980 ac_status=$?
15981 cat out/conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15984 then
15985 # The compiler can only warn and ignore the option if not recognized
15986 # So say no if there are warnings
15987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15990 lt_cv_prog_compiler_c_o=yes
15991 fi
15992 fi
15993 chmod u+w . 2>&5
15994 $RM conftest*
15995 # SGI C++ compiler will create directory out/ii_files/ for
15996 # template instantiation
15997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15998 $RM out/* && rmdir out
15999 cd ..
16000 $RM -r conftest
16001 $RM conftest*
16002
16003 fi
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16006
16007
16008
16009
16010 hard_links="nottested"
16011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16012 # do not overwrite the value of need_locks provided by the user
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16014 $as_echo_n "checking if we can lock with hard links... " >&6; }
16015 hard_links=yes
16016 $RM conftest*
16017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16018 touch conftest.a
16019 ln conftest.a conftest.b 2>&5 || hard_links=no
16020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16022 $as_echo "$hard_links" >&6; }
16023 if test "$hard_links" = no; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16026 need_locks=warn
16027 fi
16028 else
16029 need_locks=no
16030 fi
16031
16032
16033
16034
16035
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16039
16040 runpath_var=
16041 allow_undefined_flag=
16042 always_export_symbols=no
16043 archive_cmds=
16044 archive_expsym_cmds=
16045 compiler_needs_object=no
16046 enable_shared_with_static_runtimes=no
16047 export_dynamic_flag_spec=
16048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16049 hardcode_automatic=no
16050 hardcode_direct=no
16051 hardcode_direct_absolute=no
16052 hardcode_libdir_flag_spec=
16053 hardcode_libdir_flag_spec_ld=
16054 hardcode_libdir_separator=
16055 hardcode_minus_L=no
16056 hardcode_shlibpath_var=unsupported
16057 inherit_rpath=no
16058 link_all_deplibs=unknown
16059 module_cmds=
16060 module_expsym_cmds=
16061 old_archive_from_new_cmds=
16062 old_archive_from_expsyms_cmds=
16063 thread_safe_flag_spec=
16064 whole_archive_flag_spec=
16065 # include_expsyms should be a list of space-separated symbols to be *always*
16066 # included in the symbol list
16067 include_expsyms=
16068 # exclude_expsyms can be an extended regexp of symbols to exclude
16069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16071 # as well as any symbol that contains `d'.
16072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16074 # platforms (ab)use it in PIC code, but their linkers get confused if
16075 # the symbol is explicitly referenced. Since portable code cannot
16076 # rely on this symbol name, it's probably fine to never include it in
16077 # preloaded symbol tables.
16078 # Exclude shared library initialization/finalization symbols.
16079 extract_expsyms_cmds=
16080
16081 case $host_os in
16082 cygwin* | mingw* | pw32* | cegcc*)
16083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 if test "$GCC" != yes; then
16087 with_gnu_ld=no
16088 fi
16089 ;;
16090 interix*)
16091 # we just hope/assume this is gcc and not c89 (= MSVC++)
16092 with_gnu_ld=yes
16093 ;;
16094 openbsd*)
16095 with_gnu_ld=no
16096 ;;
16097 esac
16098
16099 ld_shlibs=yes
16100
16101 # On some targets, GNU ld is compatible enough with the native linker
16102 # that we're better off using the native interface for both.
16103 lt_use_gnu_ld_interface=no
16104 if test "$with_gnu_ld" = yes; then
16105 case $host_os in
16106 aix*)
16107 # The AIX port of GNU ld has always aspired to compatibility
16108 # with the native linker. However, as the warning in the GNU ld
16109 # block says, versions before 2.19.5* couldn't really create working
16110 # shared libraries, regardless of the interface used.
16111 case `$LD -v 2>&1` in
16112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16115 *)
16116 lt_use_gnu_ld_interface=yes
16117 ;;
16118 esac
16119 ;;
16120 *)
16121 lt_use_gnu_ld_interface=yes
16122 ;;
16123 esac
16124 fi
16125
16126 if test "$lt_use_gnu_ld_interface" = yes; then
16127 # If archive_cmds runs LD, not CC, wlarc should be empty
16128 wlarc='${wl}'
16129
16130 # Set some defaults for GNU ld with shared library support. These
16131 # are reset later if shared libraries are not supported. Putting them
16132 # here allows them to be overridden if necessary.
16133 runpath_var=LD_RUN_PATH
16134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16135 export_dynamic_flag_spec='${wl}--export-dynamic'
16136 # ancient GNU ld didn't support --whole-archive et. al.
16137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16139 else
16140 whole_archive_flag_spec=
16141 fi
16142 supports_anon_versioning=no
16143 case `$LD -v 2>&1` in
16144 *GNU\ gold*) supports_anon_versioning=yes ;;
16145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16148 *\ 2.11.*) ;; # other 2.11 versions
16149 *) supports_anon_versioning=yes ;;
16150 esac
16151
16152 # See if GNU ld supports shared libraries.
16153 case $host_os in
16154 aix[3-9]*)
16155 # On AIX/PPC, the GNU linker is very broken
16156 if test "$host_cpu" != ia64; then
16157 ld_shlibs=no
16158 cat <<_LT_EOF 1>&2
16159
16160 *** Warning: the GNU linker, at least up to release 2.19, is reported
16161 *** to be unable to reliably create shared libraries on AIX.
16162 *** Therefore, libtool is disabling shared libraries support. If you
16163 *** really care for shared libraries, you may want to install binutils
16164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16165 *** You will then need to restart the configuration process.
16166
16167 _LT_EOF
16168 fi
16169 ;;
16170
16171 amigaos*)
16172 case $host_cpu in
16173 powerpc)
16174 # see comment about AmigaOS4 .so support
16175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds=''
16177 ;;
16178 m68k)
16179 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)'
16180 hardcode_libdir_flag_spec='-L$libdir'
16181 hardcode_minus_L=yes
16182 ;;
16183 esac
16184 ;;
16185
16186 beos*)
16187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16188 allow_undefined_flag=unsupported
16189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16190 # support --undefined. This deserves some investigation. FIXME
16191 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192 else
16193 ld_shlibs=no
16194 fi
16195 ;;
16196
16197 cygwin* | mingw* | pw32* | cegcc*)
16198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16199 # as there is no search path for DLLs.
16200 hardcode_libdir_flag_spec='-L$libdir'
16201 export_dynamic_flag_spec='${wl}--export-all-symbols'
16202 allow_undefined_flag=unsupported
16203 always_export_symbols=no
16204 enable_shared_with_static_runtimes=yes
16205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16206
16207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16209 # If the export-symbols file already is a .def file (1st line
16210 # is EXPORTS), use it as is; otherwise, prepend...
16211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16212 cp $export_symbols $output_objdir/$soname.def;
16213 else
16214 echo EXPORTS > $output_objdir/$soname.def;
16215 cat $export_symbols >> $output_objdir/$soname.def;
16216 fi~
16217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16218 else
16219 ld_shlibs=no
16220 fi
16221 ;;
16222
16223 haiku*)
16224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16225 link_all_deplibs=yes
16226 ;;
16227
16228 interix[3-9]*)
16229 hardcode_direct=no
16230 hardcode_shlibpath_var=no
16231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16232 export_dynamic_flag_spec='${wl}-E'
16233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16234 # Instead, shared libraries are loaded at an image base (0x10000000 by
16235 # default) and relocated if they conflict, which is a slow very memory
16236 # consuming and fragmenting process. To avoid this, we pick a random,
16237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16240 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'
16241 ;;
16242
16243 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16244 tmp_diet=no
16245 if test "$host_os" = linux-dietlibc; then
16246 case $cc_basename in
16247 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16248 esac
16249 fi
16250 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16251 && test "$tmp_diet" = no
16252 then
16253 tmp_addflag=' $pic_flag'
16254 tmp_sharedflag='-shared'
16255 case $cc_basename,$host_cpu in
16256 pgcc*) # Portland Group C compiler
16257 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'
16258 tmp_addflag=' $pic_flag'
16259 ;;
16260 pgf77* | pgf90* | pgf95* | pgfortran*)
16261 # Portland Group f77 and f90 compilers
16262 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'
16263 tmp_addflag=' $pic_flag -Mnomain' ;;
16264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16265 tmp_addflag=' -i_dynamic' ;;
16266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16267 tmp_addflag=' -i_dynamic -nofor_main' ;;
16268 ifc* | ifort*) # Intel Fortran compiler
16269 tmp_addflag=' -nofor_main' ;;
16270 lf95*) # Lahey Fortran 8.1
16271 whole_archive_flag_spec=
16272 tmp_sharedflag='--shared' ;;
16273 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16274 tmp_sharedflag='-qmkshrobj'
16275 tmp_addflag= ;;
16276 nvcc*) # Cuda Compiler Driver 2.2
16277 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'
16278 compiler_needs_object=yes
16279 ;;
16280 esac
16281 case `$CC -V 2>&1 | sed 5q` in
16282 *Sun\ C*) # Sun C 5.9
16283 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'
16284 compiler_needs_object=yes
16285 tmp_sharedflag='-G' ;;
16286 *Sun\ F*) # Sun Fortran 8.3
16287 tmp_sharedflag='-G' ;;
16288 esac
16289 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16290
16291 if test "x$supports_anon_versioning" = xyes; then
16292 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16296 fi
16297
16298 case $cc_basename in
16299 xlf* | bgf* | bgxlf* | mpixlf*)
16300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16301 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16302 hardcode_libdir_flag_spec=
16303 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16304 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16305 if test "x$supports_anon_versioning" = xyes; then
16306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16308 echo "local: *; };" >> $output_objdir/$libname.ver~
16309 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16310 fi
16311 ;;
16312 esac
16313 else
16314 ld_shlibs=no
16315 fi
16316 ;;
16317
16318 netbsd*)
16319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16321 wlarc=
16322 else
16323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16325 fi
16326 ;;
16327
16328 solaris*)
16329 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16330 ld_shlibs=no
16331 cat <<_LT_EOF 1>&2
16332
16333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16334 *** create shared libraries on Solaris systems. Therefore, libtool
16335 *** is disabling shared libraries support. We urge you to upgrade GNU
16336 *** binutils to release 2.9.1 or newer. Another option is to modify
16337 *** your PATH or compiler configuration so that the native linker is
16338 *** used, and then restart.
16339
16340 _LT_EOF
16341 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16344 else
16345 ld_shlibs=no
16346 fi
16347 ;;
16348
16349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16350 case `$LD -v 2>&1` in
16351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16352 ld_shlibs=no
16353 cat <<_LT_EOF 1>&2
16354
16355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16356 *** reliably create shared libraries on SCO systems. Therefore, libtool
16357 *** is disabling shared libraries support. We urge you to upgrade GNU
16358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16359 *** your PATH or compiler configuration so that the native linker is
16360 *** used, and then restart.
16361
16362 _LT_EOF
16363 ;;
16364 *)
16365 # For security reasons, it is highly recommended that you always
16366 # use absolute paths for naming shared libraries, and exclude the
16367 # DT_RUNPATH tag from executables and libraries. But doing so
16368 # requires that you compile everything twice, which is a pain.
16369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16373 else
16374 ld_shlibs=no
16375 fi
16376 ;;
16377 esac
16378 ;;
16379
16380 sunos4*)
16381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16382 wlarc=
16383 hardcode_direct=yes
16384 hardcode_shlibpath_var=no
16385 ;;
16386
16387 *)
16388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16391 else
16392 ld_shlibs=no
16393 fi
16394 ;;
16395 esac
16396
16397 if test "$ld_shlibs" = no; then
16398 runpath_var=
16399 hardcode_libdir_flag_spec=
16400 export_dynamic_flag_spec=
16401 whole_archive_flag_spec=
16402 fi
16403 else
16404 # PORTME fill in a description of your system's linker (not GNU ld)
16405 case $host_os in
16406 aix3*)
16407 allow_undefined_flag=unsupported
16408 always_export_symbols=yes
16409 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'
16410 # Note: this linker hardcodes the directories in LIBPATH if there
16411 # are no directories specified by -L.
16412 hardcode_minus_L=yes
16413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16414 # Neither direct hardcoding nor static linking is supported with a
16415 # broken collect2.
16416 hardcode_direct=unsupported
16417 fi
16418 ;;
16419
16420 aix[4-9]*)
16421 if test "$host_cpu" = ia64; then
16422 # On IA64, the linker does run time linking by default, so we don't
16423 # have to do anything special.
16424 aix_use_runtimelinking=no
16425 exp_sym_flag='-Bexport'
16426 no_entry_flag=""
16427 else
16428 # If we're using GNU nm, then we don't want the "-C" option.
16429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16430 # Also, AIX nm treats weak defined symbols like other global
16431 # defined symbols, whereas GNU nm marks them as "W".
16432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16433 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'
16434 else
16435 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16436 fi
16437 aix_use_runtimelinking=no
16438
16439 # Test if we are trying to use run time linking or normal
16440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16441 # need to do runtime linking.
16442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16443 for ld_flag in $LDFLAGS; do
16444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16445 aix_use_runtimelinking=yes
16446 break
16447 fi
16448 done
16449 ;;
16450 esac
16451
16452 exp_sym_flag='-bexport'
16453 no_entry_flag='-bnoentry'
16454 fi
16455
16456 # When large executables or shared objects are built, AIX ld can
16457 # have problems creating the table of contents. If linking a library
16458 # or program results in "error TOC overflow" add -mminimal-toc to
16459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16461
16462 archive_cmds=''
16463 hardcode_direct=yes
16464 hardcode_direct_absolute=yes
16465 hardcode_libdir_separator=':'
16466 link_all_deplibs=yes
16467 file_list_spec='${wl}-f,'
16468
16469 if test "$GCC" = yes; then
16470 case $host_os in aix4.[012]|aix4.[012].*)
16471 # We only want to do this on AIX 4.2 and lower, the check
16472 # below for broken collect2 doesn't work under 4.3+
16473 collect2name=`${CC} -print-prog-name=collect2`
16474 if test -f "$collect2name" &&
16475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16476 then
16477 # We have reworked collect2
16478 :
16479 else
16480 # We have old collect2
16481 hardcode_direct=unsupported
16482 # It fails to find uninstalled libraries when the uninstalled
16483 # path is not listed in the libpath. Setting hardcode_minus_L
16484 # to unsupported forces relinking
16485 hardcode_minus_L=yes
16486 hardcode_libdir_flag_spec='-L$libdir'
16487 hardcode_libdir_separator=
16488 fi
16489 ;;
16490 esac
16491 shared_flag='-shared'
16492 if test "$aix_use_runtimelinking" = yes; then
16493 shared_flag="$shared_flag "'${wl}-G'
16494 fi
16495 else
16496 # not using gcc
16497 if test "$host_cpu" = ia64; then
16498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16499 # chokes on -Wl,-G. The following line is correct:
16500 shared_flag='-G'
16501 else
16502 if test "$aix_use_runtimelinking" = yes; then
16503 shared_flag='${wl}-G'
16504 else
16505 shared_flag='${wl}-bM:SRE'
16506 fi
16507 fi
16508 fi
16509
16510 export_dynamic_flag_spec='${wl}-bexpall'
16511 # It seems that -bexpall does not export symbols beginning with
16512 # underscore (_), so it is better to generate a list of symbols to export.
16513 always_export_symbols=yes
16514 if test "$aix_use_runtimelinking" = yes; then
16515 # Warning - without using the other runtime loading flags (-brtl),
16516 # -berok will link without error, but may produce a broken library.
16517 allow_undefined_flag='-berok'
16518 # Determine the default libpath from the value encoded in an
16519 # empty executable.
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522
16523 int
16524 main ()
16525 {
16526
16527 ;
16528 return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"; then :
16532
16533 lt_aix_libpath_sed='
16534 /Import File Strings/,/^$/ {
16535 /^0/ {
16536 s/^0 *\(.*\)$/\1/
16537 p
16538 }
16539 }'
16540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16541 # Check for a 64-bit object if we didn't find anything.
16542 if test -z "$aix_libpath"; then
16543 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16544 fi
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16549
16550 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16551 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"
16552 else
16553 if test "$host_cpu" = ia64; then
16554 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16555 allow_undefined_flag="-z nodefs"
16556 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"
16557 else
16558 # Determine the default libpath from the value encoded in an
16559 # empty executable.
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16562
16563 int
16564 main ()
16565 {
16566
16567 ;
16568 return 0;
16569 }
16570 _ACEOF
16571 if ac_fn_c_try_link "$LINENO"; then :
16572
16573 lt_aix_libpath_sed='
16574 /Import File Strings/,/^$/ {
16575 /^0/ {
16576 s/^0 *\(.*\)$/\1/
16577 p
16578 }
16579 }'
16580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581 # Check for a 64-bit object if we didn't find anything.
16582 if test -z "$aix_libpath"; then
16583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16584 fi
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext \
16587 conftest$ac_exeext conftest.$ac_ext
16588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16589
16590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16591 # Warning - without using the other run time loading flags,
16592 # -berok will link without error, but may produce a broken library.
16593 no_undefined_flag=' ${wl}-bernotok'
16594 allow_undefined_flag=' ${wl}-berok'
16595 if test "$with_gnu_ld" = yes; then
16596 # We only use this code for GNU lds that support --whole-archive.
16597 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16598 else
16599 # Exported symbols can be pulled into shared objects from archives
16600 whole_archive_flag_spec='$convenience'
16601 fi
16602 archive_cmds_need_lc=yes
16603 # This is similar to how AIX traditionally builds its shared libraries.
16604 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'
16605 fi
16606 fi
16607 ;;
16608
16609 amigaos*)
16610 case $host_cpu in
16611 powerpc)
16612 # see comment about AmigaOS4 .so support
16613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 archive_expsym_cmds=''
16615 ;;
16616 m68k)
16617 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)'
16618 hardcode_libdir_flag_spec='-L$libdir'
16619 hardcode_minus_L=yes
16620 ;;
16621 esac
16622 ;;
16623
16624 bsdi[45]*)
16625 export_dynamic_flag_spec=-rdynamic
16626 ;;
16627
16628 cygwin* | mingw* | pw32* | cegcc*)
16629 # When not using gcc, we currently assume that we are using
16630 # Microsoft Visual C++.
16631 # hardcode_libdir_flag_spec is actually meaningless, as there is
16632 # no search path for DLLs.
16633 hardcode_libdir_flag_spec=' '
16634 allow_undefined_flag=unsupported
16635 # Tell ltmain to make .lib files, not .a files.
16636 libext=lib
16637 # Tell ltmain to make .dll files, not .so files.
16638 shrext_cmds=".dll"
16639 # FIXME: Setting linknames here is a bad hack.
16640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16641 # The linker will automatically build a .lib file if we build a DLL.
16642 old_archive_from_new_cmds='true'
16643 # FIXME: Should let the user specify the lib program.
16644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16645 fix_srcfile_path='`cygpath -w "$srcfile"`'
16646 enable_shared_with_static_runtimes=yes
16647 ;;
16648
16649 darwin* | rhapsody*)
16650
16651
16652 archive_cmds_need_lc=no
16653 hardcode_direct=no
16654 hardcode_automatic=yes
16655 hardcode_shlibpath_var=unsupported
16656 if test "$lt_cv_ld_force_load" = "yes"; then
16657 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\"`'
16658 else
16659 whole_archive_flag_spec=''
16660 fi
16661 link_all_deplibs=yes
16662 allow_undefined_flag="$_lt_dar_allow_undefined"
16663 case $cc_basename in
16664 ifort*) _lt_dar_can_shared=yes ;;
16665 *) _lt_dar_can_shared=$GCC ;;
16666 esac
16667 if test "$_lt_dar_can_shared" = "yes"; then
16668 output_verbose_link_cmd=func_echo_all
16669 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16670 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16671 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}"
16672 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}"
16673
16674 else
16675 ld_shlibs=no
16676 fi
16677
16678 ;;
16679
16680 dgux*)
16681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_libdir_flag_spec='-L$libdir'
16683 hardcode_shlibpath_var=no
16684 ;;
16685
16686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16687 # support. Future versions do this automatically, but an explicit c++rt0.o
16688 # does not break anything, and helps significantly (at the cost of a little
16689 # extra space).
16690 freebsd2.2*)
16691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16692 hardcode_libdir_flag_spec='-R$libdir'
16693 hardcode_direct=yes
16694 hardcode_shlibpath_var=no
16695 ;;
16696
16697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16698 freebsd2.*)
16699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct=yes
16701 hardcode_minus_L=yes
16702 hardcode_shlibpath_var=no
16703 ;;
16704
16705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16706 freebsd* | dragonfly*)
16707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16708 hardcode_libdir_flag_spec='-R$libdir'
16709 hardcode_direct=yes
16710 hardcode_shlibpath_var=no
16711 ;;
16712
16713 hpux9*)
16714 if test "$GCC" = yes; then
16715 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'
16716 else
16717 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'
16718 fi
16719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16720 hardcode_libdir_separator=:
16721 hardcode_direct=yes
16722
16723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L=yes
16726 export_dynamic_flag_spec='${wl}-E'
16727 ;;
16728
16729 hpux10*)
16730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16732 else
16733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16734 fi
16735 if test "$with_gnu_ld" = no; then
16736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16737 hardcode_libdir_flag_spec_ld='+b $libdir'
16738 hardcode_libdir_separator=:
16739 hardcode_direct=yes
16740 hardcode_direct_absolute=yes
16741 export_dynamic_flag_spec='${wl}-E'
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L=yes
16745 fi
16746 ;;
16747
16748 hpux11*)
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16750 case $host_cpu in
16751 hppa*64*)
16752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16753 ;;
16754 ia64*)
16755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16756 ;;
16757 *)
16758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16759 ;;
16760 esac
16761 else
16762 case $host_cpu in
16763 hppa*64*)
16764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16765 ;;
16766 ia64*)
16767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16768 ;;
16769 *)
16770
16771 # Older versions of the 11.00 compiler do not understand -b yet
16772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16774 $as_echo_n "checking if $CC understands -b... " >&6; }
16775 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 lt_cv_prog_compiler__b=no
16779 save_LDFLAGS="$LDFLAGS"
16780 LDFLAGS="$LDFLAGS -b"
16781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err; then
16786 # Append any errors to the config.log.
16787 cat conftest.err 1>&5
16788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790 if diff conftest.exp conftest.er2 >/dev/null; then
16791 lt_cv_prog_compiler__b=yes
16792 fi
16793 else
16794 lt_cv_prog_compiler__b=yes
16795 fi
16796 fi
16797 $RM -r conftest*
16798 LDFLAGS="$save_LDFLAGS"
16799
16800 fi
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16803
16804 if test x"$lt_cv_prog_compiler__b" = xyes; then
16805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16806 else
16807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16808 fi
16809
16810 ;;
16811 esac
16812 fi
16813 if test "$with_gnu_ld" = no; then
16814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16815 hardcode_libdir_separator=:
16816
16817 case $host_cpu in
16818 hppa*64*|ia64*)
16819 hardcode_direct=no
16820 hardcode_shlibpath_var=no
16821 ;;
16822 *)
16823 hardcode_direct=yes
16824 hardcode_direct_absolute=yes
16825 export_dynamic_flag_spec='${wl}-E'
16826
16827 # hardcode_minus_L: Not really in the search PATH,
16828 # but as the default location of the library.
16829 hardcode_minus_L=yes
16830 ;;
16831 esac
16832 fi
16833 ;;
16834
16835 irix5* | irix6* | nonstopux*)
16836 if test "$GCC" = yes; then
16837 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'
16838 # Try to use the -exported_symbol ld option, if it does not
16839 # work, assume that -exports_file does not work either and
16840 # implicitly export all symbols.
16841 save_LDFLAGS="$LDFLAGS"
16842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 int foo(void) {}
16846 _ACEOF
16847 if ac_fn_c_try_link "$LINENO"; then :
16848 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'
16849
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LDFLAGS="$save_LDFLAGS"
16854 else
16855 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'
16856 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'
16857 fi
16858 archive_cmds_need_lc='no'
16859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator=:
16861 inherit_rpath=yes
16862 link_all_deplibs=yes
16863 ;;
16864
16865 netbsd*)
16866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16868 else
16869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16870 fi
16871 hardcode_libdir_flag_spec='-R$libdir'
16872 hardcode_direct=yes
16873 hardcode_shlibpath_var=no
16874 ;;
16875
16876 newsos6)
16877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878 hardcode_direct=yes
16879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16880 hardcode_libdir_separator=:
16881 hardcode_shlibpath_var=no
16882 ;;
16883
16884 *nto* | *qnx*)
16885 ;;
16886
16887 openbsd*)
16888 if test -f /usr/libexec/ld.so; then
16889 hardcode_direct=yes
16890 hardcode_shlibpath_var=no
16891 hardcode_direct_absolute=yes
16892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16896 export_dynamic_flag_spec='${wl}-E'
16897 else
16898 case $host_os in
16899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_libdir_flag_spec='-R$libdir'
16902 ;;
16903 *)
16904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16906 ;;
16907 esac
16908 fi
16909 else
16910 ld_shlibs=no
16911 fi
16912 ;;
16913
16914 os2*)
16915 hardcode_libdir_flag_spec='-L$libdir'
16916 hardcode_minus_L=yes
16917 allow_undefined_flag=unsupported
16918 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'
16919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16920 ;;
16921
16922 osf3*)
16923 if test "$GCC" = yes; then
16924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16925 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'
16926 else
16927 allow_undefined_flag=' -expect_unresolved \*'
16928 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'
16929 fi
16930 archive_cmds_need_lc='no'
16931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16932 hardcode_libdir_separator=:
16933 ;;
16934
16935 osf4* | osf5*) # as osf3* with the addition of -msym flag
16936 if test "$GCC" = yes; then
16937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16938 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'
16939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16940 else
16941 allow_undefined_flag=' -expect_unresolved \*'
16942 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'
16943 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~
16944 $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'
16945
16946 # Both c and cxx compiler support -rpath directly
16947 hardcode_libdir_flag_spec='-rpath $libdir'
16948 fi
16949 archive_cmds_need_lc='no'
16950 hardcode_libdir_separator=:
16951 ;;
16952
16953 solaris*)
16954 no_undefined_flag=' -z defs'
16955 if test "$GCC" = yes; then
16956 wlarc='${wl}'
16957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16960 else
16961 case `$CC -V 2>&1` in
16962 *"Compilers 5.0"*)
16963 wlarc=''
16964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16967 ;;
16968 *)
16969 wlarc='${wl}'
16970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16973 ;;
16974 esac
16975 fi
16976 hardcode_libdir_flag_spec='-R$libdir'
16977 hardcode_shlibpath_var=no
16978 case $host_os in
16979 solaris2.[0-5] | solaris2.[0-5].*) ;;
16980 *)
16981 # The compiler driver will combine and reorder linker options,
16982 # but understands `-z linker_flag'. GCC discards it without `$wl',
16983 # but is careful enough not to reorder.
16984 # Supported since Solaris 2.6 (maybe 2.5.1?)
16985 if test "$GCC" = yes; then
16986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16987 else
16988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16989 fi
16990 ;;
16991 esac
16992 link_all_deplibs=yes
16993 ;;
16994
16995 sunos4*)
16996 if test "x$host_vendor" = xsequent; then
16997 # Use $CC to link under sequent, because it throws in some extra .o
16998 # files that make .init and .fini sections work.
16999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17000 else
17001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17002 fi
17003 hardcode_libdir_flag_spec='-L$libdir'
17004 hardcode_direct=yes
17005 hardcode_minus_L=yes
17006 hardcode_shlibpath_var=no
17007 ;;
17008
17009 sysv4)
17010 case $host_vendor in
17011 sni)
17012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_direct=yes # is this really true???
17014 ;;
17015 siemens)
17016 ## LD is ld it makes a PLAMLIB
17017 ## CC just makes a GrossModule.
17018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17019 reload_cmds='$CC -r -o $output$reload_objs'
17020 hardcode_direct=no
17021 ;;
17022 motorola)
17023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17025 ;;
17026 esac
17027 runpath_var='LD_RUN_PATH'
17028 hardcode_shlibpath_var=no
17029 ;;
17030
17031 sysv4.3*)
17032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var=no
17034 export_dynamic_flag_spec='-Bexport'
17035 ;;
17036
17037 sysv4*MP*)
17038 if test -d /usr/nec; then
17039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_shlibpath_var=no
17041 runpath_var=LD_RUN_PATH
17042 hardcode_runpath_var=yes
17043 ld_shlibs=yes
17044 fi
17045 ;;
17046
17047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17048 no_undefined_flag='${wl}-z,text'
17049 archive_cmds_need_lc=no
17050 hardcode_shlibpath_var=no
17051 runpath_var='LD_RUN_PATH'
17052
17053 if test "$GCC" = yes; then
17054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 else
17057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 fi
17060 ;;
17061
17062 sysv5* | sco3.2v5* | sco5v6*)
17063 # Note: We can NOT use -z defs as we might desire, because we do not
17064 # link with -lc, and that would cause any symbols used from libc to
17065 # always be unresolved, which means just about no library would
17066 # ever link correctly. If we're not using GNU ld we use -z text
17067 # though, which does catch some bad symbols but isn't as heavy-handed
17068 # as -z defs.
17069 no_undefined_flag='${wl}-z,text'
17070 allow_undefined_flag='${wl}-z,nodefs'
17071 archive_cmds_need_lc=no
17072 hardcode_shlibpath_var=no
17073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17074 hardcode_libdir_separator=':'
17075 link_all_deplibs=yes
17076 export_dynamic_flag_spec='${wl}-Bexport'
17077 runpath_var='LD_RUN_PATH'
17078
17079 if test "$GCC" = yes; then
17080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 else
17083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 fi
17086 ;;
17087
17088 uts4*)
17089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_libdir_flag_spec='-L$libdir'
17091 hardcode_shlibpath_var=no
17092 ;;
17093
17094 *)
17095 ld_shlibs=no
17096 ;;
17097 esac
17098
17099 if test x$host_vendor = xsni; then
17100 case $host in
17101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17102 export_dynamic_flag_spec='${wl}-Blargedynsym'
17103 ;;
17104 esac
17105 fi
17106 fi
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17109 $as_echo "$ld_shlibs" >&6; }
17110 test "$ld_shlibs" = no && can_build_shared=no
17111
17112 with_gnu_ld=$with_gnu_ld
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128 #
17129 # Do we need to explicitly link libc?
17130 #
17131 case "x$archive_cmds_need_lc" in
17132 x|xyes)
17133 # Assume -lc should be added
17134 archive_cmds_need_lc=yes
17135
17136 if test "$enable_shared" = yes && test "$GCC" = yes; then
17137 case $archive_cmds in
17138 *'~'*)
17139 # FIXME: we may have to deal with multi-command sequences.
17140 ;;
17141 '$CC '*)
17142 # Test whether the compiler implicitly links with -lc since on some
17143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17144 # to ld, don't add -lc before -lgcc.
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17147 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17150 $RM conftest*
17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17152
17153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17154 (eval $ac_compile) 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; } 2>conftest.err; then
17158 soname=conftest
17159 lib=conftest
17160 libobjs=conftest.$ac_objext
17161 deplibs=
17162 wl=$lt_prog_compiler_wl
17163 pic_flag=$lt_prog_compiler_pic
17164 compiler_flags=-v
17165 linker_flags=-v
17166 verstring=
17167 output_objdir=.
17168 libname=conftest
17169 lt_save_allow_undefined_flag=$allow_undefined_flag
17170 allow_undefined_flag=
17171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17173 ac_status=$?
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }
17176 then
17177 lt_cv_archive_cmds_need_lc=no
17178 else
17179 lt_cv_archive_cmds_need_lc=yes
17180 fi
17181 allow_undefined_flag=$lt_save_allow_undefined_flag
17182 else
17183 cat conftest.err 1>&5
17184 fi
17185 $RM conftest*
17186
17187 fi
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17191 ;;
17192 esac
17193 fi
17194 ;;
17195 esac
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17355
17356 if test "$GCC" = yes; then
17357 case $host_os in
17358 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17359 *) lt_awk_arg="/^libraries:/" ;;
17360 esac
17361 case $host_os in
17362 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17363 *) lt_sed_strip_eq="s,=/,/,g" ;;
17364 esac
17365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17366 case $lt_search_path_spec in
17367 *\;*)
17368 # if the path contains ";" then we assume it to be the separator
17369 # otherwise default to the standard path separator (i.e. ":") - it is
17370 # assumed that no part of a normal pathname contains ";" but that should
17371 # okay in the real world where ";" in dirpaths is itself problematic.
17372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17373 ;;
17374 *)
17375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17376 ;;
17377 esac
17378 # Ok, now we have the path, separated by spaces, we can step through it
17379 # and add multilib dir if necessary.
17380 lt_tmp_lt_search_path_spec=
17381 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17382 for lt_sys_path in $lt_search_path_spec; do
17383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17385 else
17386 test -d "$lt_sys_path" && \
17387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17388 fi
17389 done
17390 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17391 BEGIN {RS=" "; FS="/|\n";} {
17392 lt_foo="";
17393 lt_count=0;
17394 for (lt_i = NF; lt_i > 0; lt_i--) {
17395 if ($lt_i != "" && $lt_i != ".") {
17396 if ($lt_i == "..") {
17397 lt_count++;
17398 } else {
17399 if (lt_count == 0) {
17400 lt_foo="/" $lt_i lt_foo;
17401 } else {
17402 lt_count--;
17403 }
17404 }
17405 }
17406 }
17407 if (lt_foo != "") { lt_freq[lt_foo]++; }
17408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17409 }'`
17410 # AWK program above erroneously prepends '/' to C:/dos/paths
17411 # for these hosts.
17412 case $host_os in
17413 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17415 esac
17416 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17417 else
17418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17419 fi
17420 library_names_spec=
17421 libname_spec='lib$name'
17422 soname_spec=
17423 shrext_cmds=".so"
17424 postinstall_cmds=
17425 postuninstall_cmds=
17426 finish_cmds=
17427 finish_eval=
17428 shlibpath_var=
17429 shlibpath_overrides_runpath=unknown
17430 version_type=none
17431 dynamic_linker="$host_os ld.so"
17432 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17433 need_lib_prefix=unknown
17434 hardcode_into_libs=no
17435
17436 # when you set need_version to no, make sure it does not cause -set_version
17437 # flags to be left without arguments
17438 need_version=unknown
17439
17440 case $host_os in
17441 aix3*)
17442 version_type=linux
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17444 shlibpath_var=LIBPATH
17445
17446 # AIX 3 has no versioning support, so we append a major version to the name.
17447 soname_spec='${libname}${release}${shared_ext}$major'
17448 ;;
17449
17450 aix[4-9]*)
17451 version_type=linux
17452 need_lib_prefix=no
17453 need_version=no
17454 hardcode_into_libs=yes
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 supports IA64
17457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 else
17460 # With GCC up to 2.95.x, collect2 would create an import file
17461 # for dependence libraries. The import file would start with
17462 # the line `#! .'. This would cause the generated library to
17463 # depend on `.', always an invalid library. This was fixed in
17464 # development snapshots of GCC prior to 3.0.
17465 case $host_os in
17466 aix4 | aix4.[01] | aix4.[01].*)
17467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17468 echo ' yes '
17469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17470 :
17471 else
17472 can_build_shared=no
17473 fi
17474 ;;
17475 esac
17476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17477 # soname into executable. Probably we can add versioning support to
17478 # collect2, so additional links can be useful in future.
17479 if test "$aix_use_runtimelinking" = yes; then
17480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17481 # instead of lib<name>.a to let people know that these are not
17482 # typical AIX shared libraries.
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 else
17485 # We preserve .a as extension for shared libraries through AIX4.2
17486 # and later when we are not doing run time linking.
17487 library_names_spec='${libname}${release}.a $libname.a'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 fi
17490 shlibpath_var=LIBPATH
17491 fi
17492 ;;
17493
17494 amigaos*)
17495 case $host_cpu in
17496 powerpc)
17497 # Since July 2007 AmigaOS4 officially supports .so libraries.
17498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 ;;
17501 m68k)
17502 library_names_spec='$libname.ixlibrary $libname.a'
17503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17504 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'
17505 ;;
17506 esac
17507 ;;
17508
17509 beos*)
17510 library_names_spec='${libname}${shared_ext}'
17511 dynamic_linker="$host_os ld.so"
17512 shlibpath_var=LIBRARY_PATH
17513 ;;
17514
17515 bsdi[45]*)
17516 version_type=linux
17517 need_version=no
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17524 # the default ld.so.conf also contains /usr/contrib/lib and
17525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17526 # libtool to hard-code these into programs
17527 ;;
17528
17529 cygwin* | mingw* | pw32* | cegcc*)
17530 version_type=windows
17531 shrext_cmds=".dll"
17532 need_version=no
17533 need_lib_prefix=no
17534
17535 case $GCC,$host_os in
17536 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17537 library_names_spec='$libname.dll.a'
17538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17539 postinstall_cmds='base_file=`basename \${file}`~
17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17541 dldir=$destdir/`dirname \$dlpath`~
17542 test -d \$dldir || mkdir -p \$dldir~
17543 $install_prog $dir/$dlname \$dldir/$dlname~
17544 chmod a+x \$dldir/$dlname~
17545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17547 fi'
17548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17549 dlpath=$dir/\$dldll~
17550 $RM \$dlpath'
17551 shlibpath_overrides_runpath=yes
17552
17553 case $host_os in
17554 cygwin*)
17555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17557
17558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17559 ;;
17560 mingw* | cegcc*)
17561 # MinGW DLLs use traditional 'lib' prefix
17562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17563 ;;
17564 pw32*)
17565 # pw32 DLLs use 'pw' prefix rather than 'lib'
17566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17567 ;;
17568 esac
17569 ;;
17570
17571 *)
17572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17573 ;;
17574 esac
17575 dynamic_linker='Win32 ld.exe'
17576 # FIXME: first we should search . and the directory the executable is in
17577 shlibpath_var=PATH
17578 ;;
17579
17580 darwin* | rhapsody*)
17581 dynamic_linker="$host_os dyld"
17582 version_type=darwin
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17586 soname_spec='${libname}${release}${major}$shared_ext'
17587 shlibpath_overrides_runpath=yes
17588 shlibpath_var=DYLD_LIBRARY_PATH
17589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17590
17591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17593 ;;
17594
17595 dgux*)
17596 version_type=linux
17597 need_lib_prefix=no
17598 need_version=no
17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17602 ;;
17603
17604 freebsd* | dragonfly*)
17605 # DragonFly does not have aout. When/if they implement a new
17606 # versioning mechanism, adjust this.
17607 if test -x /usr/bin/objformat; then
17608 objformat=`/usr/bin/objformat`
17609 else
17610 case $host_os in
17611 freebsd[23].*) objformat=aout ;;
17612 *) objformat=elf ;;
17613 esac
17614 fi
17615 version_type=freebsd-$objformat
17616 case $version_type in
17617 freebsd-elf*)
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17619 need_version=no
17620 need_lib_prefix=no
17621 ;;
17622 freebsd-*)
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17624 need_version=yes
17625 ;;
17626 esac
17627 shlibpath_var=LD_LIBRARY_PATH
17628 case $host_os in
17629 freebsd2.*)
17630 shlibpath_overrides_runpath=yes
17631 ;;
17632 freebsd3.[01]* | freebsdelf3.[01]*)
17633 shlibpath_overrides_runpath=yes
17634 hardcode_into_libs=yes
17635 ;;
17636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17638 shlibpath_overrides_runpath=no
17639 hardcode_into_libs=yes
17640 ;;
17641 *) # from 4.6 on, and DragonFly
17642 shlibpath_overrides_runpath=yes
17643 hardcode_into_libs=yes
17644 ;;
17645 esac
17646 ;;
17647
17648 gnu*)
17649 version_type=linux
17650 need_lib_prefix=no
17651 need_version=no
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 hardcode_into_libs=yes
17656 ;;
17657
17658 haiku*)
17659 version_type=linux
17660 need_lib_prefix=no
17661 need_version=no
17662 dynamic_linker="$host_os runtime_loader"
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 shlibpath_var=LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes
17667 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17668 hardcode_into_libs=yes
17669 ;;
17670
17671 hpux9* | hpux10* | hpux11*)
17672 # Give a soname corresponding to the major version so that dld.sl refuses to
17673 # link against other versions.
17674 version_type=sunos
17675 need_lib_prefix=no
17676 need_version=no
17677 case $host_cpu in
17678 ia64*)
17679 shrext_cmds='.so'
17680 hardcode_into_libs=yes
17681 dynamic_linker="$host_os dld.so"
17682 shlibpath_var=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685 soname_spec='${libname}${release}${shared_ext}$major'
17686 if test "X$HPUX_IA64_MODE" = X32; then
17687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17688 else
17689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17690 fi
17691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17692 ;;
17693 hppa*64*)
17694 shrext_cmds='.sl'
17695 hardcode_into_libs=yes
17696 dynamic_linker="$host_os dld.sl"
17697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17703 ;;
17704 *)
17705 shrext_cmds='.sl'
17706 dynamic_linker="$host_os dld.sl"
17707 shlibpath_var=SHLIB_PATH
17708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 ;;
17712 esac
17713 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17714 postinstall_cmds='chmod 555 $lib'
17715 # or fails outright, so override atomically:
17716 install_override_mode=555
17717 ;;
17718
17719 interix[3-9]*)
17720 version_type=linux
17721 need_lib_prefix=no
17722 need_version=no
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 hardcode_into_libs=yes
17729 ;;
17730
17731 irix5* | irix6* | nonstopux*)
17732 case $host_os in
17733 nonstopux*) version_type=nonstopux ;;
17734 *)
17735 if test "$lt_cv_prog_gnu_ld" = yes; then
17736 version_type=linux
17737 else
17738 version_type=irix
17739 fi ;;
17740 esac
17741 need_lib_prefix=no
17742 need_version=no
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17745 case $host_os in
17746 irix5* | nonstopux*)
17747 libsuff= shlibsuff=
17748 ;;
17749 *)
17750 case $LD in # libtool.m4 will add one of these switches to LD
17751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17752 libsuff= shlibsuff= libmagic=32-bit;;
17753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17754 libsuff=32 shlibsuff=N32 libmagic=N32;;
17755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17757 *) libsuff= shlibsuff= libmagic=never-match;;
17758 esac
17759 ;;
17760 esac
17761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17762 shlibpath_overrides_runpath=no
17763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17765 hardcode_into_libs=yes
17766 ;;
17767
17768 # No shared lib support for Linux oldld, aout, or coff.
17769 linux*oldld* | linux*aout* | linux*coff*)
17770 dynamic_linker=no
17771 ;;
17772
17773 # This must be Linux ELF.
17774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17775 version_type=linux
17776 need_lib_prefix=no
17777 need_version=no
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=no
17783
17784 # Some binutils ld are patched to set DT_RUNPATH
17785 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 lt_cv_shlibpath_overrides_runpath=no
17789 save_LDFLAGS=$LDFLAGS
17790 save_libdir=$libdir
17791 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17792 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795
17796 int
17797 main ()
17798 {
17799
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 if ac_fn_c_try_link "$LINENO"; then :
17805 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17806 lt_cv_shlibpath_overrides_runpath=yes
17807 fi
17808 fi
17809 rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
17811 LDFLAGS=$save_LDFLAGS
17812 libdir=$save_libdir
17813
17814 fi
17815
17816 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17817
17818 # This implies no fast_install, which is unacceptable.
17819 # Some rework will be needed to allow for fast_install
17820 # before this can be enabled.
17821 hardcode_into_libs=yes
17822
17823 # Append ld.so.conf contents to the search path
17824 if test -f /etc/ld.so.conf; then
17825 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' ' '`
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17827 fi
17828
17829 # We used to test for /lib/ld.so.1 and disable shared libraries on
17830 # powerpc, because MkLinux only supported shared libraries with the
17831 # GNU dynamic linker. Since this was broken with cross compilers,
17832 # most powerpc-linux boxes support dynamic linking these days and
17833 # people can always --disable-shared, the test was removed, and we
17834 # assume the GNU/Linux dynamic linker is in use.
17835 dynamic_linker='GNU/Linux ld.so'
17836 ;;
17837
17838 netbsd*)
17839 version_type=sunos
17840 need_lib_prefix=no
17841 need_version=no
17842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 dynamic_linker='NetBSD (a.out) ld.so'
17846 else
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 dynamic_linker='NetBSD ld.elf_so'
17850 fi
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 hardcode_into_libs=yes
17854 ;;
17855
17856 newsos6)
17857 version_type=linux
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 shlibpath_overrides_runpath=yes
17861 ;;
17862
17863 *nto* | *qnx*)
17864 version_type=qnx
17865 need_lib_prefix=no
17866 need_version=no
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 soname_spec='${libname}${release}${shared_ext}$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=no
17871 hardcode_into_libs=yes
17872 dynamic_linker='ldqnx.so'
17873 ;;
17874
17875 openbsd*)
17876 version_type=sunos
17877 sys_lib_dlsearch_path_spec="/usr/lib"
17878 need_lib_prefix=no
17879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17880 case $host_os in
17881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17882 *) need_version=no ;;
17883 esac
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17888 case $host_os in
17889 openbsd2.[89] | openbsd2.[89].*)
17890 shlibpath_overrides_runpath=no
17891 ;;
17892 *)
17893 shlibpath_overrides_runpath=yes
17894 ;;
17895 esac
17896 else
17897 shlibpath_overrides_runpath=yes
17898 fi
17899 ;;
17900
17901 os2*)
17902 libname_spec='$name'
17903 shrext_cmds=".dll"
17904 need_lib_prefix=no
17905 library_names_spec='$libname${shared_ext} $libname.a'
17906 dynamic_linker='OS/2 ld.exe'
17907 shlibpath_var=LIBPATH
17908 ;;
17909
17910 osf3* | osf4* | osf5*)
17911 version_type=osf
17912 need_lib_prefix=no
17913 need_version=no
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17919 ;;
17920
17921 rdos*)
17922 dynamic_linker=no
17923 ;;
17924
17925 solaris*)
17926 version_type=linux
17927 need_lib_prefix=no
17928 need_version=no
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17930 soname_spec='${libname}${release}${shared_ext}$major'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 shlibpath_overrides_runpath=yes
17933 hardcode_into_libs=yes
17934 # ldd complains unless libraries are executable
17935 postinstall_cmds='chmod +x $lib'
17936 ;;
17937
17938 sunos4*)
17939 version_type=sunos
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17942 shlibpath_var=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath=yes
17944 if test "$with_gnu_ld" = yes; then
17945 need_lib_prefix=no
17946 fi
17947 need_version=yes
17948 ;;
17949
17950 sysv4 | sysv4.3*)
17951 version_type=linux
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 case $host_vendor in
17956 sni)
17957 shlibpath_overrides_runpath=no
17958 need_lib_prefix=no
17959 runpath_var=LD_RUN_PATH
17960 ;;
17961 siemens)
17962 need_lib_prefix=no
17963 ;;
17964 motorola)
17965 need_lib_prefix=no
17966 need_version=no
17967 shlibpath_overrides_runpath=no
17968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17969 ;;
17970 esac
17971 ;;
17972
17973 sysv4*MP*)
17974 if test -d /usr/nec ;then
17975 version_type=linux
17976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17977 soname_spec='$libname${shared_ext}.$major'
17978 shlibpath_var=LD_LIBRARY_PATH
17979 fi
17980 ;;
17981
17982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17983 version_type=freebsd-elf
17984 need_lib_prefix=no
17985 need_version=no
17986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17987 soname_spec='${libname}${release}${shared_ext}$major'
17988 shlibpath_var=LD_LIBRARY_PATH
17989 shlibpath_overrides_runpath=yes
17990 hardcode_into_libs=yes
17991 if test "$with_gnu_ld" = yes; then
17992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17993 else
17994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17995 case $host_os in
17996 sco3.2v5*)
17997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17998 ;;
17999 esac
18000 fi
18001 sys_lib_dlsearch_path_spec='/usr/lib'
18002 ;;
18003
18004 tpf*)
18005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18006 version_type=linux
18007 need_lib_prefix=no
18008 need_version=no
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 shlibpath_overrides_runpath=no
18012 hardcode_into_libs=yes
18013 ;;
18014
18015 uts4*)
18016 version_type=linux
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 ;;
18021
18022 *)
18023 dynamic_linker=no
18024 ;;
18025 esac
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18027 $as_echo "$dynamic_linker" >&6; }
18028 test "$dynamic_linker" = no && can_build_shared=no
18029
18030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18031 if test "$GCC" = yes; then
18032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18033 fi
18034
18035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18036 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18037 fi
18038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18039 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18040 fi
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18135 hardcode_action=
18136 if test -n "$hardcode_libdir_flag_spec" ||
18137 test -n "$runpath_var" ||
18138 test "X$hardcode_automatic" = "Xyes" ; then
18139
18140 # We can hardcode non-existent directories.
18141 if test "$hardcode_direct" != no &&
18142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18143 # have to relink, otherwise we might link with an installed library
18144 # when we should be linking with a yet-to-be-installed one
18145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18146 test "$hardcode_minus_L" != no; then
18147 # Linking always hardcodes the temporary library directory.
18148 hardcode_action=relink
18149 else
18150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18151 hardcode_action=immediate
18152 fi
18153 else
18154 # We cannot hardcode anything, or else we can only hardcode existing
18155 # directories.
18156 hardcode_action=unsupported
18157 fi
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18159 $as_echo "$hardcode_action" >&6; }
18160
18161 if test "$hardcode_action" = relink ||
18162 test "$inherit_rpath" = yes; then
18163 # Fast installation is not supported
18164 enable_fast_install=no
18165 elif test "$shlibpath_overrides_runpath" = yes ||
18166 test "$enable_shared" = no; then
18167 # Fast installation is not necessary
18168 enable_fast_install=needless
18169 fi
18170
18171
18172
18173
18174
18175
18176 if test "x$enable_dlopen" != xyes; then
18177 enable_dlopen=unknown
18178 enable_dlopen_self=unknown
18179 enable_dlopen_self_static=unknown
18180 else
18181 lt_cv_dlopen=no
18182 lt_cv_dlopen_libs=
18183
18184 case $host_os in
18185 beos*)
18186 lt_cv_dlopen="load_add_on"
18187 lt_cv_dlopen_libs=
18188 lt_cv_dlopen_self=yes
18189 ;;
18190
18191 mingw* | pw32* | cegcc*)
18192 lt_cv_dlopen="LoadLibrary"
18193 lt_cv_dlopen_libs=
18194 ;;
18195
18196 cygwin*)
18197 lt_cv_dlopen="dlopen"
18198 lt_cv_dlopen_libs=
18199 ;;
18200
18201 darwin*)
18202 # if libdl is installed we need to link against it
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18206 $as_echo_n "(cached) " >&6
18207 else
18208 ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-ldl $LIBS"
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18212
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18216 #ifdef __cplusplus
18217 extern "C"
18218 #endif
18219 char dlopen ();
18220 int
18221 main ()
18222 {
18223 return dlopen ();
18224 ;
18225 return 0;
18226 }
18227 _ACEOF
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 ac_cv_lib_dl_dlopen=yes
18230 else
18231 ac_cv_lib_dl_dlopen=no
18232 fi
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 LIBS=$ac_check_lib_save_LIBS
18236 fi
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18239 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18241 else
18242
18243 lt_cv_dlopen="dyld"
18244 lt_cv_dlopen_libs=
18245 lt_cv_dlopen_self=yes
18246
18247 fi
18248
18249 ;;
18250
18251 *)
18252 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18253 if test "x$ac_cv_func_shl_load" = x""yes; then :
18254 lt_cv_dlopen="shl_load"
18255 else
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18257 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18260 else
18261 ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-ldld $LIBS"
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18265
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18269 #ifdef __cplusplus
18270 extern "C"
18271 #endif
18272 char shl_load ();
18273 int
18274 main ()
18275 {
18276 return shl_load ();
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"; then :
18282 ac_cv_lib_dld_shl_load=yes
18283 else
18284 ac_cv_lib_dld_shl_load=no
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288 LIBS=$ac_check_lib_save_LIBS
18289 fi
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18291 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18292 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18293 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18294 else
18295 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18296 if test "x$ac_cv_func_dlopen" = x""yes; then :
18297 lt_cv_dlopen="dlopen"
18298 else
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18302 $as_echo_n "(cached) " >&6
18303 else
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-ldl $LIBS"
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char dlopen ();
18316 int
18317 main ()
18318 {
18319 return dlopen ();
18320 ;
18321 return 0;
18322 }
18323 _ACEOF
18324 if ac_fn_c_try_link "$LINENO"; then :
18325 ac_cv_lib_dl_dlopen=yes
18326 else
18327 ac_cv_lib_dl_dlopen=no
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18332 fi
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18335 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18337 else
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18339 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18340 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18342 else
18343 ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-lsvld $LIBS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char dlopen ();
18355 int
18356 main ()
18357 {
18358 return dlopen ();
18359 ;
18360 return 0;
18361 }
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364 ac_cv_lib_svld_dlopen=yes
18365 else
18366 ac_cv_lib_svld_dlopen=no
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18371 fi
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18373 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18374 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18376 else
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18378 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-ldld $LIBS"
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386
18387 /* Override any GCC internal prototype to avoid an error.
18388 Use char because int might match the return type of a GCC
18389 builtin and then its argument prototype would still apply. */
18390 #ifdef __cplusplus
18391 extern "C"
18392 #endif
18393 char dld_link ();
18394 int
18395 main ()
18396 {
18397 return dld_link ();
18398 ;
18399 return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_link "$LINENO"; then :
18403 ac_cv_lib_dld_dld_link=yes
18404 else
18405 ac_cv_lib_dld_dld_link=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_lib_save_LIBS
18410 fi
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18412 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18413 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18415 fi
18416
18417
18418 fi
18419
18420
18421 fi
18422
18423
18424 fi
18425
18426
18427 fi
18428
18429
18430 fi
18431
18432 ;;
18433 esac
18434
18435 if test "x$lt_cv_dlopen" != xno; then
18436 enable_dlopen=yes
18437 else
18438 enable_dlopen=no
18439 fi
18440
18441 case $lt_cv_dlopen in
18442 dlopen)
18443 save_CPPFLAGS="$CPPFLAGS"
18444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18445
18446 save_LDFLAGS="$LDFLAGS"
18447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18448
18449 save_LIBS="$LIBS"
18450 LIBS="$lt_cv_dlopen_libs $LIBS"
18451
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18453 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18454 if test "${lt_cv_dlopen_self+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18456 else
18457 if test "$cross_compiling" = yes; then :
18458 lt_cv_dlopen_self=cross
18459 else
18460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18461 lt_status=$lt_dlunknown
18462 cat > conftest.$ac_ext <<_LT_EOF
18463 #line 18463 "configure"
18464 #include "confdefs.h"
18465
18466 #if HAVE_DLFCN_H
18467 #include <dlfcn.h>
18468 #endif
18469
18470 #include <stdio.h>
18471
18472 #ifdef RTLD_GLOBAL
18473 # define LT_DLGLOBAL RTLD_GLOBAL
18474 #else
18475 # ifdef DL_GLOBAL
18476 # define LT_DLGLOBAL DL_GLOBAL
18477 # else
18478 # define LT_DLGLOBAL 0
18479 # endif
18480 #endif
18481
18482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18483 find out it does not work in some platform. */
18484 #ifndef LT_DLLAZY_OR_NOW
18485 # ifdef RTLD_LAZY
18486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18487 # else
18488 # ifdef DL_LAZY
18489 # define LT_DLLAZY_OR_NOW DL_LAZY
18490 # else
18491 # ifdef RTLD_NOW
18492 # define LT_DLLAZY_OR_NOW RTLD_NOW
18493 # else
18494 # ifdef DL_NOW
18495 # define LT_DLLAZY_OR_NOW DL_NOW
18496 # else
18497 # define LT_DLLAZY_OR_NOW 0
18498 # endif
18499 # endif
18500 # endif
18501 # endif
18502 #endif
18503
18504 /* When -fvisbility=hidden is used, assume the code has been annotated
18505 correspondingly for the symbols needed. */
18506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18507 void fnord () __attribute__((visibility("default")));
18508 #endif
18509
18510 void fnord () { int i=42; }
18511 int main ()
18512 {
18513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18514 int status = $lt_dlunknown;
18515
18516 if (self)
18517 {
18518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18519 else
18520 {
18521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18522 else puts (dlerror ());
18523 }
18524 /* dlclose (self); */
18525 }
18526 else
18527 puts (dlerror ());
18528
18529 return status;
18530 }
18531 _LT_EOF
18532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18533 (eval $ac_link) 2>&5
18534 ac_status=$?
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18537 (./conftest; exit; ) >&5 2>/dev/null
18538 lt_status=$?
18539 case x$lt_status in
18540 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18541 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18542 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18543 esac
18544 else :
18545 # compilation failed
18546 lt_cv_dlopen_self=no
18547 fi
18548 fi
18549 rm -fr conftest*
18550
18551
18552 fi
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18554 $as_echo "$lt_cv_dlopen_self" >&6; }
18555
18556 if test "x$lt_cv_dlopen_self" = xyes; then
18557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18559 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18560 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 if test "$cross_compiling" = yes; then :
18564 lt_cv_dlopen_self_static=cross
18565 else
18566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18567 lt_status=$lt_dlunknown
18568 cat > conftest.$ac_ext <<_LT_EOF
18569 #line 18569 "configure"
18570 #include "confdefs.h"
18571
18572 #if HAVE_DLFCN_H
18573 #include <dlfcn.h>
18574 #endif
18575
18576 #include <stdio.h>
18577
18578 #ifdef RTLD_GLOBAL
18579 # define LT_DLGLOBAL RTLD_GLOBAL
18580 #else
18581 # ifdef DL_GLOBAL
18582 # define LT_DLGLOBAL DL_GLOBAL
18583 # else
18584 # define LT_DLGLOBAL 0
18585 # endif
18586 #endif
18587
18588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18589 find out it does not work in some platform. */
18590 #ifndef LT_DLLAZY_OR_NOW
18591 # ifdef RTLD_LAZY
18592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18593 # else
18594 # ifdef DL_LAZY
18595 # define LT_DLLAZY_OR_NOW DL_LAZY
18596 # else
18597 # ifdef RTLD_NOW
18598 # define LT_DLLAZY_OR_NOW RTLD_NOW
18599 # else
18600 # ifdef DL_NOW
18601 # define LT_DLLAZY_OR_NOW DL_NOW
18602 # else
18603 # define LT_DLLAZY_OR_NOW 0
18604 # endif
18605 # endif
18606 # endif
18607 # endif
18608 #endif
18609
18610 /* When -fvisbility=hidden is used, assume the code has been annotated
18611 correspondingly for the symbols needed. */
18612 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18613 void fnord () __attribute__((visibility("default")));
18614 #endif
18615
18616 void fnord () { int i=42; }
18617 int main ()
18618 {
18619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18620 int status = $lt_dlunknown;
18621
18622 if (self)
18623 {
18624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18625 else
18626 {
18627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18628 else puts (dlerror ());
18629 }
18630 /* dlclose (self); */
18631 }
18632 else
18633 puts (dlerror ());
18634
18635 return status;
18636 }
18637 _LT_EOF
18638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18639 (eval $ac_link) 2>&5
18640 ac_status=$?
18641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18643 (./conftest; exit; ) >&5 2>/dev/null
18644 lt_status=$?
18645 case x$lt_status in
18646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18649 esac
18650 else :
18651 # compilation failed
18652 lt_cv_dlopen_self_static=no
18653 fi
18654 fi
18655 rm -fr conftest*
18656
18657
18658 fi
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18660 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18661 fi
18662
18663 CPPFLAGS="$save_CPPFLAGS"
18664 LDFLAGS="$save_LDFLAGS"
18665 LIBS="$save_LIBS"
18666 ;;
18667 esac
18668
18669 case $lt_cv_dlopen_self in
18670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671 *) enable_dlopen_self=unknown ;;
18672 esac
18673
18674 case $lt_cv_dlopen_self_static in
18675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676 *) enable_dlopen_self_static=unknown ;;
18677 esac
18678 fi
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696 striplib=
18697 old_striplib=
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18699 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18700 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18702 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18705 else
18706 # FIXME - insert some real tests, host_os isn't really good enough
18707 case $host_os in
18708 darwin*)
18709 if test -n "$STRIP" ; then
18710 striplib="$STRIP -x"
18711 old_striplib="$STRIP -S"
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714 else
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717 fi
18718 ;;
18719 *)
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18722 ;;
18723 esac
18724 fi
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737 # Report which library types will actually be built
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18739 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18741 $as_echo "$can_build_shared" >&6; }
18742
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18744 $as_echo_n "checking whether to build shared libraries... " >&6; }
18745 test "$can_build_shared" = "no" && enable_shared=no
18746
18747 # On AIX, shared libraries and static libraries use the same namespace, and
18748 # are all built from PIC.
18749 case $host_os in
18750 aix3*)
18751 test "$enable_shared" = yes && enable_static=no
18752 if test -n "$RANLIB"; then
18753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18754 postinstall_cmds='$RANLIB $lib'
18755 fi
18756 ;;
18757
18758 aix[4-9]*)
18759 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18760 test "$enable_shared" = yes && enable_static=no
18761 fi
18762 ;;
18763 esac
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18765 $as_echo "$enable_shared" >&6; }
18766
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18768 $as_echo_n "checking whether to build static libraries... " >&6; }
18769 # Make sure either enable_shared or enable_static is yes.
18770 test "$enable_shared" = yes || enable_static=yes
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18772 $as_echo "$enable_static" >&6; }
18773
18774
18775
18776
18777 fi
18778 ac_ext=cpp
18779 ac_cpp='$CXXCPP $CPPFLAGS'
18780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18783
18784 CC="$lt_save_CC"
18785
18786 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18787 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18788 (test "X$CXX" != "Xg++"))) ; then
18789 ac_ext=cpp
18790 ac_cpp='$CXXCPP $CPPFLAGS'
18791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18796 if test -z "$CXXCPP"; then
18797 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 # Double quotes because CXXCPP needs to be expanded
18801 for CXXCPP in "$CXX -E" "/lib/cpp"
18802 do
18803 ac_preproc_ok=false
18804 for ac_cxx_preproc_warn_flag in '' yes
18805 do
18806 # Use a header file that comes with gcc, so configuring glibc
18807 # with a fresh cross-compiler works.
18808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 # <limits.h> exists even on freestanding compilers.
18810 # On the NeXT, cc -E runs the code through the compiler's parser,
18811 # not just through cpp. "Syntax error" is here to catch this case.
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 #ifdef __STDC__
18815 # include <limits.h>
18816 #else
18817 # include <assert.h>
18818 #endif
18819 Syntax error
18820 _ACEOF
18821 if ac_fn_cxx_try_cpp "$LINENO"; then :
18822
18823 else
18824 # Broken: fails on valid input.
18825 continue
18826 fi
18827 rm -f conftest.err conftest.$ac_ext
18828
18829 # OK, works on sane cases. Now check whether nonexistent headers
18830 # can be detected and how.
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 #include <ac_nonexistent.h>
18834 _ACEOF
18835 if ac_fn_cxx_try_cpp "$LINENO"; then :
18836 # Broken: success on invalid input.
18837 continue
18838 else
18839 # Passes both tests.
18840 ac_preproc_ok=:
18841 break
18842 fi
18843 rm -f conftest.err conftest.$ac_ext
18844
18845 done
18846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18847 rm -f conftest.err conftest.$ac_ext
18848 if $ac_preproc_ok; then :
18849 break
18850 fi
18851
18852 done
18853 ac_cv_prog_CXXCPP=$CXXCPP
18854
18855 fi
18856 CXXCPP=$ac_cv_prog_CXXCPP
18857 else
18858 ac_cv_prog_CXXCPP=$CXXCPP
18859 fi
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18861 $as_echo "$CXXCPP" >&6; }
18862 ac_preproc_ok=false
18863 for ac_cxx_preproc_warn_flag in '' yes
18864 do
18865 # Use a header file that comes with gcc, so configuring glibc
18866 # with a fresh cross-compiler works.
18867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 # <limits.h> exists even on freestanding compilers.
18869 # On the NeXT, cc -E runs the code through the compiler's parser,
18870 # not just through cpp. "Syntax error" is here to catch this case.
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18873 #ifdef __STDC__
18874 # include <limits.h>
18875 #else
18876 # include <assert.h>
18877 #endif
18878 Syntax error
18879 _ACEOF
18880 if ac_fn_cxx_try_cpp "$LINENO"; then :
18881
18882 else
18883 # Broken: fails on valid input.
18884 continue
18885 fi
18886 rm -f conftest.err conftest.$ac_ext
18887
18888 # OK, works on sane cases. Now check whether nonexistent headers
18889 # can be detected and how.
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <ac_nonexistent.h>
18893 _ACEOF
18894 if ac_fn_cxx_try_cpp "$LINENO"; then :
18895 # Broken: success on invalid input.
18896 continue
18897 else
18898 # Passes both tests.
18899 ac_preproc_ok=:
18900 break
18901 fi
18902 rm -f conftest.err conftest.$ac_ext
18903
18904 done
18905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18906 rm -f conftest.err conftest.$ac_ext
18907 if $ac_preproc_ok; then :
18908
18909 else
18910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18912 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18913 See \`config.log' for more details." "$LINENO" 5; }
18914 fi
18915
18916 ac_ext=cpp
18917 ac_cpp='$CXXCPP $CPPFLAGS'
18918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18921
18922 else
18923 _lt_caught_CXX_error=yes
18924 fi
18925
18926 ac_ext=cpp
18927 ac_cpp='$CXXCPP $CPPFLAGS'
18928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18931
18932 archive_cmds_need_lc_CXX=no
18933 allow_undefined_flag_CXX=
18934 always_export_symbols_CXX=no
18935 archive_expsym_cmds_CXX=
18936 compiler_needs_object_CXX=no
18937 export_dynamic_flag_spec_CXX=
18938 hardcode_direct_CXX=no
18939 hardcode_direct_absolute_CXX=no
18940 hardcode_libdir_flag_spec_CXX=
18941 hardcode_libdir_flag_spec_ld_CXX=
18942 hardcode_libdir_separator_CXX=
18943 hardcode_minus_L_CXX=no
18944 hardcode_shlibpath_var_CXX=unsupported
18945 hardcode_automatic_CXX=no
18946 inherit_rpath_CXX=no
18947 module_cmds_CXX=
18948 module_expsym_cmds_CXX=
18949 link_all_deplibs_CXX=unknown
18950 old_archive_cmds_CXX=$old_archive_cmds
18951 reload_flag_CXX=$reload_flag
18952 reload_cmds_CXX=$reload_cmds
18953 no_undefined_flag_CXX=
18954 whole_archive_flag_spec_CXX=
18955 enable_shared_with_static_runtimes_CXX=no
18956
18957 # Source file extension for C++ test sources.
18958 ac_ext=cpp
18959
18960 # Object file extension for compiled C++ test sources.
18961 objext=o
18962 objext_CXX=$objext
18963
18964 # No sense in running all these tests if we already determined that
18965 # the CXX compiler isn't working. Some variables (like enable_shared)
18966 # are currently assumed to apply to all compilers on this platform,
18967 # and will be corrupted by setting them based on a non-working compiler.
18968 if test "$_lt_caught_CXX_error" != yes; then
18969 # Code to be used in simple compile tests
18970 lt_simple_compile_test_code="int some_variable = 0;"
18971
18972 # Code to be used in simple link tests
18973 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18974
18975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18976
18977
18978
18979
18980
18981
18982 # If no C compiler was specified, use CC.
18983 LTCC=${LTCC-"$CC"}
18984
18985 # If no C compiler flags were specified, use CFLAGS.
18986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18987
18988 # Allow CC to be a program name with arguments.
18989 compiler=$CC
18990
18991
18992 # save warnings/boilerplate of simple test code
18993 ac_outfile=conftest.$ac_objext
18994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18996 _lt_compiler_boilerplate=`cat conftest.err`
18997 $RM conftest*
18998
18999 ac_outfile=conftest.$ac_objext
19000 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19002 _lt_linker_boilerplate=`cat conftest.err`
19003 $RM -r conftest*
19004
19005
19006 # Allow CC to be a program name with arguments.
19007 lt_save_CC=$CC
19008 lt_save_LD=$LD
19009 lt_save_GCC=$GCC
19010 GCC=$GXX
19011 lt_save_with_gnu_ld=$with_gnu_ld
19012 lt_save_path_LD=$lt_cv_path_LD
19013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19015 else
19016 $as_unset lt_cv_prog_gnu_ld
19017 fi
19018 if test -n "${lt_cv_path_LDCXX+set}"; then
19019 lt_cv_path_LD=$lt_cv_path_LDCXX
19020 else
19021 $as_unset lt_cv_path_LD
19022 fi
19023 test -z "${LDCXX+set}" || LD=$LDCXX
19024 CC=${CXX-"c++"}
19025 compiler=$CC
19026 compiler_CXX=$CC
19027 for cc_temp in $compiler""; do
19028 case $cc_temp in
19029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19031 \-*) ;;
19032 *) break;;
19033 esac
19034 done
19035 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19036
19037
19038 if test -n "$compiler"; then
19039 # We don't want -fno-exception when compiling C++ code, so set the
19040 # no_builtin_flag separately
19041 if test "$GXX" = yes; then
19042 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19043 else
19044 lt_prog_compiler_no_builtin_flag_CXX=
19045 fi
19046
19047 if test "$GXX" = yes; then
19048 # Set up default GNU C++ configuration
19049
19050
19051
19052 # Check whether --with-gnu-ld was given.
19053 if test "${with_gnu_ld+set}" = set; then :
19054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19055 else
19056 with_gnu_ld=no
19057 fi
19058
19059 ac_prog=ld
19060 if test "$GCC" = yes; then
19061 # Check if gcc -print-prog-name=ld gives a path.
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19063 $as_echo_n "checking for ld used by $CC... " >&6; }
19064 case $host in
19065 *-*-mingw*)
19066 # gcc leaves a trailing carriage return which upsets mingw
19067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19068 *)
19069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19070 esac
19071 case $ac_prog in
19072 # Accept absolute paths.
19073 [\\/]* | ?:[\\/]*)
19074 re_direlt='/[^/][^/]*/\.\./'
19075 # Canonicalize the pathname of ld
19076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19079 done
19080 test -z "$LD" && LD="$ac_prog"
19081 ;;
19082 "")
19083 # If it fails, then pretend we aren't using GCC.
19084 ac_prog=ld
19085 ;;
19086 *)
19087 # If it is relative, then search for the first ld in PATH.
19088 with_gnu_ld=unknown
19089 ;;
19090 esac
19091 elif test "$with_gnu_ld" = yes; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19093 $as_echo_n "checking for GNU ld... " >&6; }
19094 else
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19096 $as_echo_n "checking for non-GNU ld... " >&6; }
19097 fi
19098 if test "${lt_cv_path_LD+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 if test -z "$LD"; then
19102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19103 for ac_dir in $PATH; do
19104 IFS="$lt_save_ifs"
19105 test -z "$ac_dir" && ac_dir=.
19106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19107 lt_cv_path_LD="$ac_dir/$ac_prog"
19108 # Check to see if the program is GNU ld. I'd rather use --version,
19109 # but apparently some variants of GNU ld only accept -v.
19110 # Break only if it was the GNU/non-GNU ld that we prefer.
19111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19112 *GNU* | *'with BFD'*)
19113 test "$with_gnu_ld" != no && break
19114 ;;
19115 *)
19116 test "$with_gnu_ld" != yes && break
19117 ;;
19118 esac
19119 fi
19120 done
19121 IFS="$lt_save_ifs"
19122 else
19123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19124 fi
19125 fi
19126
19127 LD="$lt_cv_path_LD"
19128 if test -n "$LD"; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19130 $as_echo "$LD" >&6; }
19131 else
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19134 fi
19135 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19138 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19139 $as_echo_n "(cached) " >&6
19140 else
19141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19142 case `$LD -v 2>&1 </dev/null` in
19143 *GNU* | *'with BFD'*)
19144 lt_cv_prog_gnu_ld=yes
19145 ;;
19146 *)
19147 lt_cv_prog_gnu_ld=no
19148 ;;
19149 esac
19150 fi
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19153 with_gnu_ld=$lt_cv_prog_gnu_ld
19154
19155
19156
19157
19158
19159
19160
19161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19162 # archiving commands below assume that GNU ld is being used.
19163 if test "$with_gnu_ld" = yes; then
19164 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 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'
19166
19167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19169
19170 # If archive_cmds runs LD, not CC, wlarc should be empty
19171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19172 # investigate it a little bit more. (MM)
19173 wlarc='${wl}'
19174
19175 # ancient GNU ld didn't support --whole-archive et. al.
19176 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19177 $GREP 'no-whole-archive' > /dev/null; then
19178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19179 else
19180 whole_archive_flag_spec_CXX=
19181 fi
19182 else
19183 with_gnu_ld=no
19184 wlarc=
19185
19186 # A generic and very simple default shared library creation
19187 # command for GNU C++ for the case where it uses the native
19188 # linker, instead of GNU ld. If possible, this setting should
19189 # overridden to take advantage of the native linker features on
19190 # the platform it is being used on.
19191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19192 fi
19193
19194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
19197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19198
19199 else
19200 GXX=no
19201 with_gnu_ld=no
19202 wlarc=
19203 fi
19204
19205 # PORTME: fill in a description of your system's C++ link characteristics
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19207 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19208 ld_shlibs_CXX=yes
19209 case $host_os in
19210 aix3*)
19211 # FIXME: insert proper C++ library support
19212 ld_shlibs_CXX=no
19213 ;;
19214 aix[4-9]*)
19215 if test "$host_cpu" = ia64; then
19216 # On IA64, the linker does run time linking by default, so we don't
19217 # have to do anything special.
19218 aix_use_runtimelinking=no
19219 exp_sym_flag='-Bexport'
19220 no_entry_flag=""
19221 else
19222 aix_use_runtimelinking=no
19223
19224 # Test if we are trying to use run time linking or normal
19225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226 # need to do runtime linking.
19227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19228 for ld_flag in $LDFLAGS; do
19229 case $ld_flag in
19230 *-brtl*)
19231 aix_use_runtimelinking=yes
19232 break
19233 ;;
19234 esac
19235 done
19236 ;;
19237 esac
19238
19239 exp_sym_flag='-bexport'
19240 no_entry_flag='-bnoentry'
19241 fi
19242
19243 # When large executables or shared objects are built, AIX ld can
19244 # have problems creating the table of contents. If linking a library
19245 # or program results in "error TOC overflow" add -mminimal-toc to
19246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19248
19249 archive_cmds_CXX=''
19250 hardcode_direct_CXX=yes
19251 hardcode_direct_absolute_CXX=yes
19252 hardcode_libdir_separator_CXX=':'
19253 link_all_deplibs_CXX=yes
19254 file_list_spec_CXX='${wl}-f,'
19255
19256 if test "$GXX" = yes; then
19257 case $host_os in aix4.[012]|aix4.[012].*)
19258 # We only want to do this on AIX 4.2 and lower, the check
19259 # below for broken collect2 doesn't work under 4.3+
19260 collect2name=`${CC} -print-prog-name=collect2`
19261 if test -f "$collect2name" &&
19262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19263 then
19264 # We have reworked collect2
19265 :
19266 else
19267 # We have old collect2
19268 hardcode_direct_CXX=unsupported
19269 # It fails to find uninstalled libraries when the uninstalled
19270 # path is not listed in the libpath. Setting hardcode_minus_L
19271 # to unsupported forces relinking
19272 hardcode_minus_L_CXX=yes
19273 hardcode_libdir_flag_spec_CXX='-L$libdir'
19274 hardcode_libdir_separator_CXX=
19275 fi
19276 esac
19277 shared_flag='-shared'
19278 if test "$aix_use_runtimelinking" = yes; then
19279 shared_flag="$shared_flag "'${wl}-G'
19280 fi
19281 else
19282 # not using gcc
19283 if test "$host_cpu" = ia64; then
19284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19285 # chokes on -Wl,-G. The following line is correct:
19286 shared_flag='-G'
19287 else
19288 if test "$aix_use_runtimelinking" = yes; then
19289 shared_flag='${wl}-G'
19290 else
19291 shared_flag='${wl}-bM:SRE'
19292 fi
19293 fi
19294 fi
19295
19296 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19297 # It seems that -bexpall does not export symbols beginning with
19298 # underscore (_), so it is better to generate a list of symbols to
19299 # export.
19300 always_export_symbols_CXX=yes
19301 if test "$aix_use_runtimelinking" = yes; then
19302 # Warning - without using the other runtime loading flags (-brtl),
19303 # -berok will link without error, but may produce a broken library.
19304 allow_undefined_flag_CXX='-berok'
19305 # Determine the default libpath from the value encoded in an empty
19306 # executable.
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19309
19310 int
19311 main ()
19312 {
19313
19314 ;
19315 return 0;
19316 }
19317 _ACEOF
19318 if ac_fn_cxx_try_link "$LINENO"; then :
19319
19320 lt_aix_libpath_sed='
19321 /Import File Strings/,/^$/ {
19322 /^0/ {
19323 s/^0 *\(.*\)$/\1/
19324 p
19325 }
19326 }'
19327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19328 # Check for a 64-bit object if we didn't find anything.
19329 if test -z "$aix_libpath"; then
19330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19331 fi
19332 fi
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19336
19337 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19338
19339 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"
19340 else
19341 if test "$host_cpu" = ia64; then
19342 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19343 allow_undefined_flag_CXX="-z nodefs"
19344 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"
19345 else
19346 # Determine the default libpath from the value encoded in an
19347 # empty executable.
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350
19351 int
19352 main ()
19353 {
19354
19355 ;
19356 return 0;
19357 }
19358 _ACEOF
19359 if ac_fn_cxx_try_link "$LINENO"; then :
19360
19361 lt_aix_libpath_sed='
19362 /Import File Strings/,/^$/ {
19363 /^0/ {
19364 s/^0 *\(.*\)$/\1/
19365 p
19366 }
19367 }'
19368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19369 # Check for a 64-bit object if we didn't find anything.
19370 if test -z "$aix_libpath"; then
19371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19372 fi
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19377
19378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19379 # Warning - without using the other run time loading flags,
19380 # -berok will link without error, but may produce a broken library.
19381 no_undefined_flag_CXX=' ${wl}-bernotok'
19382 allow_undefined_flag_CXX=' ${wl}-berok'
19383 if test "$with_gnu_ld" = yes; then
19384 # We only use this code for GNU lds that support --whole-archive.
19385 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19386 else
19387 # Exported symbols can be pulled into shared objects from archives
19388 whole_archive_flag_spec_CXX='$convenience'
19389 fi
19390 archive_cmds_need_lc_CXX=yes
19391 # This is similar to how AIX traditionally builds its shared
19392 # libraries.
19393 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'
19394 fi
19395 fi
19396 ;;
19397
19398 beos*)
19399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19400 allow_undefined_flag_CXX=unsupported
19401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19402 # support --undefined. This deserves some investigation. FIXME
19403 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19404 else
19405 ld_shlibs_CXX=no
19406 fi
19407 ;;
19408
19409 chorus*)
19410 case $cc_basename in
19411 *)
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19414 ;;
19415 esac
19416 ;;
19417
19418 cygwin* | mingw* | pw32* | cegcc*)
19419 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19420 # as there is no search path for DLLs.
19421 hardcode_libdir_flag_spec_CXX='-L$libdir'
19422 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19423 allow_undefined_flag_CXX=unsupported
19424 always_export_symbols_CXX=no
19425 enable_shared_with_static_runtimes_CXX=yes
19426
19427 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19428 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'
19429 # If the export-symbols file already is a .def file (1st line
19430 # is EXPORTS), use it as is; otherwise, prepend...
19431 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19432 cp $export_symbols $output_objdir/$soname.def;
19433 else
19434 echo EXPORTS > $output_objdir/$soname.def;
19435 cat $export_symbols >> $output_objdir/$soname.def;
19436 fi~
19437 $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'
19438 else
19439 ld_shlibs_CXX=no
19440 fi
19441 ;;
19442 darwin* | rhapsody*)
19443
19444
19445 archive_cmds_need_lc_CXX=no
19446 hardcode_direct_CXX=no
19447 hardcode_automatic_CXX=yes
19448 hardcode_shlibpath_var_CXX=unsupported
19449 if test "$lt_cv_ld_force_load" = "yes"; then
19450 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\"`'
19451 else
19452 whole_archive_flag_spec_CXX=''
19453 fi
19454 link_all_deplibs_CXX=yes
19455 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19456 case $cc_basename in
19457 ifort*) _lt_dar_can_shared=yes ;;
19458 *) _lt_dar_can_shared=$GCC ;;
19459 esac
19460 if test "$_lt_dar_can_shared" = "yes"; then
19461 output_verbose_link_cmd=func_echo_all
19462 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}"
19463 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19464 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}"
19465 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}"
19466 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19467 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}"
19468 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}"
19469 fi
19470
19471 else
19472 ld_shlibs_CXX=no
19473 fi
19474
19475 ;;
19476
19477 dgux*)
19478 case $cc_basename in
19479 ec++*)
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 ghcx*)
19484 # Green Hills C++ Compiler
19485 # FIXME: insert proper C++ library support
19486 ld_shlibs_CXX=no
19487 ;;
19488 *)
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19491 ;;
19492 esac
19493 ;;
19494
19495 freebsd2.*)
19496 # C++ shared libraries reported to be fairly broken before
19497 # switch to ELF
19498 ld_shlibs_CXX=no
19499 ;;
19500
19501 freebsd-elf*)
19502 archive_cmds_need_lc_CXX=no
19503 ;;
19504
19505 freebsd* | dragonfly*)
19506 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19507 # conventions
19508 ld_shlibs_CXX=yes
19509 ;;
19510
19511 gnu*)
19512 ;;
19513
19514 haiku*)
19515 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19516 link_all_deplibs_CXX=yes
19517 ;;
19518
19519 hpux9*)
19520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_CXX=:
19522 export_dynamic_flag_spec_CXX='${wl}-E'
19523 hardcode_direct_CXX=yes
19524 hardcode_minus_L_CXX=yes # Not in the search PATH,
19525 # but as the default
19526 # location of the library.
19527
19528 case $cc_basename in
19529 CC*)
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19532 ;;
19533 aCC*)
19534 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'
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19538 #
19539 # There doesn't appear to be a way to prevent this compiler from
19540 # explicitly linking system object files so we need to strip them
19541 # from the output so that they don't get included in the library
19542 # dependencies.
19543 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"'
19544 ;;
19545 *)
19546 if test "$GXX" = yes; then
19547 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'
19548 else
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19551 fi
19552 ;;
19553 esac
19554 ;;
19555
19556 hpux10*|hpux11*)
19557 if test $with_gnu_ld = no; then
19558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_CXX=:
19560
19561 case $host_cpu in
19562 hppa*64*|ia64*)
19563 ;;
19564 *)
19565 export_dynamic_flag_spec_CXX='${wl}-E'
19566 ;;
19567 esac
19568 fi
19569 case $host_cpu in
19570 hppa*64*|ia64*)
19571 hardcode_direct_CXX=no
19572 hardcode_shlibpath_var_CXX=no
19573 ;;
19574 *)
19575 hardcode_direct_CXX=yes
19576 hardcode_direct_absolute_CXX=yes
19577 hardcode_minus_L_CXX=yes # Not in the search PATH,
19578 # but as the default
19579 # location of the library.
19580 ;;
19581 esac
19582
19583 case $cc_basename in
19584 CC*)
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19587 ;;
19588 aCC*)
19589 case $host_cpu in
19590 hppa*64*)
19591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19592 ;;
19593 ia64*)
19594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19595 ;;
19596 *)
19597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 ;;
19599 esac
19600 # Commands to make compiler produce verbose output that lists
19601 # what "hidden" libraries, object files and flags are used when
19602 # linking a shared library.
19603 #
19604 # There doesn't appear to be a way to prevent this compiler from
19605 # explicitly linking system object files so we need to strip them
19606 # from the output so that they don't get included in the library
19607 # dependencies.
19608 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"'
19609 ;;
19610 *)
19611 if test "$GXX" = yes; then
19612 if test $with_gnu_ld = no; then
19613 case $host_cpu in
19614 hppa*64*)
19615 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 ;;
19617 ia64*)
19618 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19619 ;;
19620 *)
19621 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'
19622 ;;
19623 esac
19624 fi
19625 else
19626 # FIXME: insert proper C++ library support
19627 ld_shlibs_CXX=no
19628 fi
19629 ;;
19630 esac
19631 ;;
19632
19633 interix[3-9]*)
19634 hardcode_direct_CXX=no
19635 hardcode_shlibpath_var_CXX=no
19636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19637 export_dynamic_flag_spec_CXX='${wl}-E'
19638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19639 # Instead, shared libraries are loaded at an image base (0x10000000 by
19640 # default) and relocated if they conflict, which is a slow very memory
19641 # consuming and fragmenting process. To avoid this, we pick a random,
19642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19644 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'
19645 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'
19646 ;;
19647 irix5* | irix6*)
19648 case $cc_basename in
19649 CC*)
19650 # SGI C++
19651 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'
19652
19653 # Archives containing C++ object files must be created using
19654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19655 # necessary to make sure instantiated templates are included
19656 # in the archive.
19657 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19658 ;;
19659 *)
19660 if test "$GXX" = yes; then
19661 if test "$with_gnu_ld" = no; then
19662 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'
19663 else
19664 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'
19665 fi
19666 fi
19667 link_all_deplibs_CXX=yes
19668 ;;
19669 esac
19670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19671 hardcode_libdir_separator_CXX=:
19672 inherit_rpath_CXX=yes
19673 ;;
19674
19675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19676 case $cc_basename in
19677 KCC*)
19678 # Kuck and Associates, Inc. (KAI) C++ Compiler
19679
19680 # KCC will only create a shared library if the output file
19681 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19682 # to its proper name (with version) after linking.
19683 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'
19684 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'
19685 # Commands to make compiler produce verbose output that lists
19686 # what "hidden" libraries, object files and flags are used when
19687 # linking a shared library.
19688 #
19689 # There doesn't appear to be a way to prevent this compiler from
19690 # explicitly linking system object files so we need to strip them
19691 # from the output so that they don't get included in the library
19692 # dependencies.
19693 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"'
19694
19695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19697
19698 # Archives containing C++ object files must be created using
19699 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19700 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19701 ;;
19702 icpc* | ecpc* )
19703 # Intel C++
19704 with_gnu_ld=yes
19705 # version 8.0 and above of icpc choke on multiply defined symbols
19706 # if we add $predep_objects and $postdep_objects, however 7.1 and
19707 # earlier do not add the objects themselves.
19708 case `$CC -V 2>&1` in
19709 *"Version 7."*)
19710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 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'
19712 ;;
19713 *) # Version 8.0 or newer
19714 tmp_idyn=
19715 case $host_cpu in
19716 ia64*) tmp_idyn=' -i_dynamic';;
19717 esac
19718 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19719 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'
19720 ;;
19721 esac
19722 archive_cmds_need_lc_CXX=no
19723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19725 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19726 ;;
19727 pgCC* | pgcpp*)
19728 # Portland Group C++ compiler
19729 case `$CC -V` in
19730 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19731 prelink_cmds_CXX='tpldir=Template.dir~
19732 rm -rf $tpldir~
19733 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19734 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19735 old_archive_cmds_CXX='tpldir=Template.dir~
19736 rm -rf $tpldir~
19737 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19738 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19739 $RANLIB $oldlib'
19740 archive_cmds_CXX='tpldir=Template.dir~
19741 rm -rf $tpldir~
19742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19743 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19744 archive_expsym_cmds_CXX='tpldir=Template.dir~
19745 rm -rf $tpldir~
19746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19747 $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'
19748 ;;
19749 *) # Version 6 and above use weak symbols
19750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19751 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'
19752 ;;
19753 esac
19754
19755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19757 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'
19758 ;;
19759 cxx*)
19760 # Compaq C++
19761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19762 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'
19763
19764 runpath_var=LD_RUN_PATH
19765 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19766 hardcode_libdir_separator_CXX=:
19767
19768 # Commands to make compiler produce verbose output that lists
19769 # what "hidden" libraries, object files and flags are used when
19770 # linking a shared library.
19771 #
19772 # There doesn't appear to be a way to prevent this compiler from
19773 # explicitly linking system object files so we need to strip them
19774 # from the output so that they don't get included in the library
19775 # dependencies.
19776 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'
19777 ;;
19778 xl* | mpixl* | bgxl*)
19779 # IBM XL 8.0 on PPC, with GNU ld
19780 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19782 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19783 if test "x$supports_anon_versioning" = xyes; then
19784 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19786 echo "local: *; };" >> $output_objdir/$libname.ver~
19787 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19788 fi
19789 ;;
19790 *)
19791 case `$CC -V 2>&1 | sed 5q` in
19792 *Sun\ C*)
19793 # Sun C++ 5.9
19794 no_undefined_flag_CXX=' -zdefs'
19795 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19796 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'
19797 hardcode_libdir_flag_spec_CXX='-R$libdir'
19798 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'
19799 compiler_needs_object_CXX=yes
19800
19801 # Not sure whether something based on
19802 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19803 # would be better.
19804 output_verbose_link_cmd='func_echo_all'
19805
19806 # Archives containing C++ object files must be created using
19807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19808 # necessary to make sure instantiated templates are included
19809 # in the archive.
19810 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19811 ;;
19812 esac
19813 ;;
19814 esac
19815 ;;
19816
19817 lynxos*)
19818 # FIXME: insert proper C++ library support
19819 ld_shlibs_CXX=no
19820 ;;
19821
19822 m88k*)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19825 ;;
19826
19827 mvs*)
19828 case $cc_basename in
19829 cxx*)
19830 # FIXME: insert proper C++ library support
19831 ld_shlibs_CXX=no
19832 ;;
19833 *)
19834 # FIXME: insert proper C++ library support
19835 ld_shlibs_CXX=no
19836 ;;
19837 esac
19838 ;;
19839
19840 netbsd*)
19841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19843 wlarc=
19844 hardcode_libdir_flag_spec_CXX='-R$libdir'
19845 hardcode_direct_CXX=yes
19846 hardcode_shlibpath_var_CXX=no
19847 fi
19848 # Workaround some broken pre-1.5 toolchains
19849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19850 ;;
19851
19852 *nto* | *qnx*)
19853 ld_shlibs_CXX=yes
19854 ;;
19855
19856 openbsd2*)
19857 # C++ shared libraries are fairly broken
19858 ld_shlibs_CXX=no
19859 ;;
19860
19861 openbsd*)
19862 if test -f /usr/libexec/ld.so; then
19863 hardcode_direct_CXX=yes
19864 hardcode_shlibpath_var_CXX=no
19865 hardcode_direct_absolute_CXX=yes
19866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19870 export_dynamic_flag_spec_CXX='${wl}-E'
19871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19872 fi
19873 output_verbose_link_cmd=func_echo_all
19874 else
19875 ld_shlibs_CXX=no
19876 fi
19877 ;;
19878
19879 osf3* | osf4* | osf5*)
19880 case $cc_basename in
19881 KCC*)
19882 # Kuck and Associates, Inc. (KAI) C++ Compiler
19883
19884 # KCC will only create a shared library if the output file
19885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19886 # to its proper name (with version) after linking.
19887 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'
19888
19889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19890 hardcode_libdir_separator_CXX=:
19891
19892 # Archives containing C++ object files must be created using
19893 # the KAI C++ compiler.
19894 case $host in
19895 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19896 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19897 esac
19898 ;;
19899 RCC*)
19900 # Rational C++ 2.4.1
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19903 ;;
19904 cxx*)
19905 case $host in
19906 osf3*)
19907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19908 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'
19909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19910 ;;
19911 *)
19912 allow_undefined_flag_CXX=' -expect_unresolved \*'
19913 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'
19914 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19915 echo "-hidden">> $lib.exp~
19916 $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~
19917 $RM $lib.exp'
19918 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19919 ;;
19920 esac
19921
19922 hardcode_libdir_separator_CXX=:
19923
19924 # Commands to make compiler produce verbose output that lists
19925 # what "hidden" libraries, object files and flags are used when
19926 # linking a shared library.
19927 #
19928 # There doesn't appear to be a way to prevent this compiler from
19929 # explicitly linking system object files so we need to strip them
19930 # from the output so that they don't get included in the library
19931 # dependencies.
19932 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"'
19933 ;;
19934 *)
19935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19937 case $host in
19938 osf3*)
19939 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'
19940 ;;
19941 *)
19942 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'
19943 ;;
19944 esac
19945
19946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19947 hardcode_libdir_separator_CXX=:
19948
19949 # Commands to make compiler produce verbose output that lists
19950 # what "hidden" libraries, object files and flags are used when
19951 # linking a shared library.
19952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19953
19954 else
19955 # FIXME: insert proper C++ library support
19956 ld_shlibs_CXX=no
19957 fi
19958 ;;
19959 esac
19960 ;;
19961
19962 psos*)
19963 # FIXME: insert proper C++ library support
19964 ld_shlibs_CXX=no
19965 ;;
19966
19967 sunos4*)
19968 case $cc_basename in
19969 CC*)
19970 # Sun C++ 4.x
19971 # FIXME: insert proper C++ library support
19972 ld_shlibs_CXX=no
19973 ;;
19974 lcc*)
19975 # Lucid
19976 # FIXME: insert proper C++ library support
19977 ld_shlibs_CXX=no
19978 ;;
19979 *)
19980 # FIXME: insert proper C++ library support
19981 ld_shlibs_CXX=no
19982 ;;
19983 esac
19984 ;;
19985
19986 solaris*)
19987 case $cc_basename in
19988 CC*)
19989 # Sun C++ 4.2, 5.x and Centerline C++
19990 archive_cmds_need_lc_CXX=yes
19991 no_undefined_flag_CXX=' -zdefs'
19992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19994 $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'
19995
19996 hardcode_libdir_flag_spec_CXX='-R$libdir'
19997 hardcode_shlibpath_var_CXX=no
19998 case $host_os in
19999 solaris2.[0-5] | solaris2.[0-5].*) ;;
20000 *)
20001 # The compiler driver will combine and reorder linker options,
20002 # but understands `-z linker_flag'.
20003 # Supported since Solaris 2.6 (maybe 2.5.1?)
20004 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20005 ;;
20006 esac
20007 link_all_deplibs_CXX=yes
20008
20009 output_verbose_link_cmd='func_echo_all'
20010
20011 # Archives containing C++ object files must be created using
20012 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20013 # necessary to make sure instantiated templates are included
20014 # in the archive.
20015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20016 ;;
20017 gcx*)
20018 # Green Hills C++ Compiler
20019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20020
20021 # The C++ compiler must be used to create the archive.
20022 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20023 ;;
20024 *)
20025 # GNU C++ compiler with Solaris linker
20026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20027 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20028 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20029 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20030 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20031 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20032
20033 # Commands to make compiler produce verbose output that lists
20034 # what "hidden" libraries, object files and flags are used when
20035 # linking a shared library.
20036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20037 else
20038 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20039 # platform.
20040 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20042 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20043
20044 # Commands to make compiler produce verbose output that lists
20045 # what "hidden" libraries, object files and flags are used when
20046 # linking a shared library.
20047 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20048 fi
20049
20050 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20051 case $host_os in
20052 solaris2.[0-5] | solaris2.[0-5].*) ;;
20053 *)
20054 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20055 ;;
20056 esac
20057 fi
20058 ;;
20059 esac
20060 ;;
20061
20062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20063 no_undefined_flag_CXX='${wl}-z,text'
20064 archive_cmds_need_lc_CXX=no
20065 hardcode_shlibpath_var_CXX=no
20066 runpath_var='LD_RUN_PATH'
20067
20068 case $cc_basename in
20069 CC*)
20070 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20072 ;;
20073 *)
20074 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20075 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20076 ;;
20077 esac
20078 ;;
20079
20080 sysv5* | sco3.2v5* | sco5v6*)
20081 # Note: We can NOT use -z defs as we might desire, because we do not
20082 # link with -lc, and that would cause any symbols used from libc to
20083 # always be unresolved, which means just about no library would
20084 # ever link correctly. If we're not using GNU ld we use -z text
20085 # though, which does catch some bad symbols but isn't as heavy-handed
20086 # as -z defs.
20087 no_undefined_flag_CXX='${wl}-z,text'
20088 allow_undefined_flag_CXX='${wl}-z,nodefs'
20089 archive_cmds_need_lc_CXX=no
20090 hardcode_shlibpath_var_CXX=no
20091 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20092 hardcode_libdir_separator_CXX=':'
20093 link_all_deplibs_CXX=yes
20094 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20095 runpath_var='LD_RUN_PATH'
20096
20097 case $cc_basename in
20098 CC*)
20099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20102 '"$old_archive_cmds_CXX"
20103 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20104 '"$reload_cmds_CXX"
20105 ;;
20106 *)
20107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 ;;
20110 esac
20111 ;;
20112
20113 tandem*)
20114 case $cc_basename in
20115 NCC*)
20116 # NonStop-UX NCC 3.20
20117 # FIXME: insert proper C++ library support
20118 ld_shlibs_CXX=no
20119 ;;
20120 *)
20121 # FIXME: insert proper C++ library support
20122 ld_shlibs_CXX=no
20123 ;;
20124 esac
20125 ;;
20126
20127 vxworks*)
20128 # FIXME: insert proper C++ library support
20129 ld_shlibs_CXX=no
20130 ;;
20131
20132 *)
20133 # FIXME: insert proper C++ library support
20134 ld_shlibs_CXX=no
20135 ;;
20136 esac
20137
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20139 $as_echo "$ld_shlibs_CXX" >&6; }
20140 test "$ld_shlibs_CXX" = no && can_build_shared=no
20141
20142 GCC_CXX="$GXX"
20143 LD_CXX="$LD"
20144
20145 ## CAVEAT EMPTOR:
20146 ## There is no encapsulation within the following macros, do not change
20147 ## the running order or otherwise move them around unless you know exactly
20148 ## what you are doing...
20149 # Dependencies to place before and after the object being linked:
20150 predep_objects_CXX=
20151 postdep_objects_CXX=
20152 predeps_CXX=
20153 postdeps_CXX=
20154 compiler_lib_search_path_CXX=
20155
20156 cat > conftest.$ac_ext <<_LT_EOF
20157 class Foo
20158 {
20159 public:
20160 Foo (void) { a = 0; }
20161 private:
20162 int a;
20163 };
20164 _LT_EOF
20165
20166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20167 (eval $ac_compile) 2>&5
20168 ac_status=$?
20169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20170 test $ac_status = 0; }; then
20171 # Parse the compiler output and extract the necessary
20172 # objects, libraries and library flags.
20173
20174 # Sentinel used to keep track of whether or not we are before
20175 # the conftest object file.
20176 pre_test_object_deps_done=no
20177
20178 for p in `eval "$output_verbose_link_cmd"`; do
20179 case $p in
20180
20181 -L* | -R* | -l*)
20182 # Some compilers place space between "-{L,R}" and the path.
20183 # Remove the space.
20184 if test $p = "-L" ||
20185 test $p = "-R"; then
20186 prev=$p
20187 continue
20188 else
20189 prev=
20190 fi
20191
20192 if test "$pre_test_object_deps_done" = no; then
20193 case $p in
20194 -L* | -R*)
20195 # Internal compiler library paths should come after those
20196 # provided the user. The postdeps already come after the
20197 # user supplied libs so there is no need to process them.
20198 if test -z "$compiler_lib_search_path_CXX"; then
20199 compiler_lib_search_path_CXX="${prev}${p}"
20200 else
20201 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20202 fi
20203 ;;
20204 # The "-l" case would never come before the object being
20205 # linked, so don't bother handling this case.
20206 esac
20207 else
20208 if test -z "$postdeps_CXX"; then
20209 postdeps_CXX="${prev}${p}"
20210 else
20211 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20212 fi
20213 fi
20214 ;;
20215
20216 *.$objext)
20217 # This assumes that the test object file only shows up
20218 # once in the compiler output.
20219 if test "$p" = "conftest.$objext"; then
20220 pre_test_object_deps_done=yes
20221 continue
20222 fi
20223
20224 if test "$pre_test_object_deps_done" = no; then
20225 if test -z "$predep_objects_CXX"; then
20226 predep_objects_CXX="$p"
20227 else
20228 predep_objects_CXX="$predep_objects_CXX $p"
20229 fi
20230 else
20231 if test -z "$postdep_objects_CXX"; then
20232 postdep_objects_CXX="$p"
20233 else
20234 postdep_objects_CXX="$postdep_objects_CXX $p"
20235 fi
20236 fi
20237 ;;
20238
20239 *) ;; # Ignore the rest.
20240
20241 esac
20242 done
20243
20244 # Clean up.
20245 rm -f a.out a.exe
20246 else
20247 echo "libtool.m4: error: problem compiling CXX test program"
20248 fi
20249
20250 $RM -f confest.$objext
20251
20252 # PORTME: override above test on systems where it is broken
20253 case $host_os in
20254 interix[3-9]*)
20255 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20256 # hack all around it, let's just trust "g++" to DTRT.
20257 predep_objects_CXX=
20258 postdep_objects_CXX=
20259 postdeps_CXX=
20260 ;;
20261
20262 linux*)
20263 case `$CC -V 2>&1 | sed 5q` in
20264 *Sun\ C*)
20265 # Sun C++ 5.9
20266
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4=yes
20274 ;;
20275 esac
20276
20277 if test "$solaris_use_stlport4" != yes; then
20278 postdeps_CXX='-library=Cstd -library=Crun'
20279 fi
20280 ;;
20281 esac
20282 ;;
20283
20284 solaris*)
20285 case $cc_basename in
20286 CC*)
20287 # The more standards-conforming stlport4 library is
20288 # incompatible with the Cstd library. Avoid specifying
20289 # it if it's in CXXFLAGS. Ignore libCrun as
20290 # -library=stlport4 depends on it.
20291 case " $CXX $CXXFLAGS " in
20292 *" -library=stlport4 "*)
20293 solaris_use_stlport4=yes
20294 ;;
20295 esac
20296
20297 # Adding this requires a known-good setup of shared libraries for
20298 # Sun compiler versions before 5.6, else PIC objects from an old
20299 # archive will be linked into the output, leading to subtle bugs.
20300 if test "$solaris_use_stlport4" != yes; then
20301 postdeps_CXX='-library=Cstd -library=Crun'
20302 fi
20303 ;;
20304 esac
20305 ;;
20306 esac
20307
20308
20309 case " $postdeps_CXX " in
20310 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20311 esac
20312 compiler_lib_search_dirs_CXX=
20313 if test -n "${compiler_lib_search_path_CXX}"; then
20314 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20315 fi
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347 lt_prog_compiler_wl_CXX=
20348 lt_prog_compiler_pic_CXX=
20349 lt_prog_compiler_static_CXX=
20350
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20352 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20353
20354 # C++ specific cases for pic, static, wl, etc.
20355 if test "$GXX" = yes; then
20356 lt_prog_compiler_wl_CXX='-Wl,'
20357 lt_prog_compiler_static_CXX='-static'
20358
20359 case $host_os in
20360 aix*)
20361 # All AIX code is PIC.
20362 if test "$host_cpu" = ia64; then
20363 # AIX 5 now supports IA64 processor
20364 lt_prog_compiler_static_CXX='-Bstatic'
20365 fi
20366 lt_prog_compiler_pic_CXX='-fPIC'
20367 ;;
20368
20369 amigaos*)
20370 case $host_cpu in
20371 powerpc)
20372 # see comment about AmigaOS4 .so support
20373 lt_prog_compiler_pic_CXX='-fPIC'
20374 ;;
20375 m68k)
20376 # FIXME: we need at least 68020 code to build shared libraries, but
20377 # adding the `-m68020' flag to GCC prevents building anything better,
20378 # like `-m68040'.
20379 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20380 ;;
20381 esac
20382 ;;
20383
20384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20385 # PIC is the default for these OSes.
20386 ;;
20387 mingw* | cygwin* | os2* | pw32* | cegcc*)
20388 # This hack is so that the source file can tell whether it is being
20389 # built for inclusion in a dll (and should export symbols for example).
20390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20391 # (--disable-auto-import) libraries
20392 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20393 ;;
20394 darwin* | rhapsody*)
20395 # PIC is the default on this platform
20396 # Common symbols not allowed in MH_DYLIB files
20397 lt_prog_compiler_pic_CXX='-fno-common'
20398 ;;
20399 *djgpp*)
20400 # DJGPP does not support shared libraries at all
20401 lt_prog_compiler_pic_CXX=
20402 ;;
20403 haiku*)
20404 # PIC is the default for Haiku.
20405 # The "-static" flag exists, but is broken.
20406 lt_prog_compiler_static_CXX=
20407 ;;
20408 interix[3-9]*)
20409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20410 # Instead, we relocate shared libraries at runtime.
20411 ;;
20412 sysv4*MP*)
20413 if test -d /usr/nec; then
20414 lt_prog_compiler_pic_CXX=-Kconform_pic
20415 fi
20416 ;;
20417 hpux*)
20418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20420 # sets the default TLS model and affects inlining.
20421 case $host_cpu in
20422 hppa*64*)
20423 ;;
20424 *)
20425 lt_prog_compiler_pic_CXX='-fPIC'
20426 ;;
20427 esac
20428 ;;
20429 *qnx* | *nto*)
20430 # QNX uses GNU C++, but need to define -shared option too, otherwise
20431 # it will coredump.
20432 lt_prog_compiler_pic_CXX='-fPIC -shared'
20433 ;;
20434 *)
20435 lt_prog_compiler_pic_CXX='-fPIC'
20436 ;;
20437 esac
20438 else
20439 case $host_os in
20440 aix[4-9]*)
20441 # All AIX code is PIC.
20442 if test "$host_cpu" = ia64; then
20443 # AIX 5 now supports IA64 processor
20444 lt_prog_compiler_static_CXX='-Bstatic'
20445 else
20446 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20447 fi
20448 ;;
20449 chorus*)
20450 case $cc_basename in
20451 cxch68*)
20452 # Green Hills C++ Compiler
20453 # _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"
20454 ;;
20455 esac
20456 ;;
20457 dgux*)
20458 case $cc_basename in
20459 ec++*)
20460 lt_prog_compiler_pic_CXX='-KPIC'
20461 ;;
20462 ghcx*)
20463 # Green Hills C++ Compiler
20464 lt_prog_compiler_pic_CXX='-pic'
20465 ;;
20466 *)
20467 ;;
20468 esac
20469 ;;
20470 freebsd* | dragonfly*)
20471 # FreeBSD uses GNU C++
20472 ;;
20473 hpux9* | hpux10* | hpux11*)
20474 case $cc_basename in
20475 CC*)
20476 lt_prog_compiler_wl_CXX='-Wl,'
20477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20478 if test "$host_cpu" != ia64; then
20479 lt_prog_compiler_pic_CXX='+Z'
20480 fi
20481 ;;
20482 aCC*)
20483 lt_prog_compiler_wl_CXX='-Wl,'
20484 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20485 case $host_cpu in
20486 hppa*64*|ia64*)
20487 # +Z the default
20488 ;;
20489 *)
20490 lt_prog_compiler_pic_CXX='+Z'
20491 ;;
20492 esac
20493 ;;
20494 *)
20495 ;;
20496 esac
20497 ;;
20498 interix*)
20499 # This is c89, which is MS Visual C++ (no shared libs)
20500 # Anyone wants to do a port?
20501 ;;
20502 irix5* | irix6* | nonstopux*)
20503 case $cc_basename in
20504 CC*)
20505 lt_prog_compiler_wl_CXX='-Wl,'
20506 lt_prog_compiler_static_CXX='-non_shared'
20507 # CC pic flag -KPIC is the default.
20508 ;;
20509 *)
20510 ;;
20511 esac
20512 ;;
20513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20514 case $cc_basename in
20515 KCC*)
20516 # KAI C++ Compiler
20517 lt_prog_compiler_wl_CXX='--backend -Wl,'
20518 lt_prog_compiler_pic_CXX='-fPIC'
20519 ;;
20520 ecpc* )
20521 # old Intel C++ for x86_64 which still supported -KPIC.
20522 lt_prog_compiler_wl_CXX='-Wl,'
20523 lt_prog_compiler_pic_CXX='-KPIC'
20524 lt_prog_compiler_static_CXX='-static'
20525 ;;
20526 icpc* )
20527 # Intel C++, used to be incompatible with GCC.
20528 # ICC 10 doesn't accept -KPIC any more.
20529 lt_prog_compiler_wl_CXX='-Wl,'
20530 lt_prog_compiler_pic_CXX='-fPIC'
20531 lt_prog_compiler_static_CXX='-static'
20532 ;;
20533 pgCC* | pgcpp*)
20534 # Portland Group C++ compiler
20535 lt_prog_compiler_wl_CXX='-Wl,'
20536 lt_prog_compiler_pic_CXX='-fpic'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20538 ;;
20539 cxx*)
20540 # Compaq C++
20541 # Make sure the PIC flag is empty. It appears that all Alpha
20542 # Linux and Compaq Tru64 Unix objects are PIC.
20543 lt_prog_compiler_pic_CXX=
20544 lt_prog_compiler_static_CXX='-non_shared'
20545 ;;
20546 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20547 # IBM XL 8.0, 9.0 on PPC and BlueGene
20548 lt_prog_compiler_wl_CXX='-Wl,'
20549 lt_prog_compiler_pic_CXX='-qpic'
20550 lt_prog_compiler_static_CXX='-qstaticlink'
20551 ;;
20552 *)
20553 case `$CC -V 2>&1 | sed 5q` in
20554 *Sun\ C*)
20555 # Sun C++ 5.9
20556 lt_prog_compiler_pic_CXX='-KPIC'
20557 lt_prog_compiler_static_CXX='-Bstatic'
20558 lt_prog_compiler_wl_CXX='-Qoption ld '
20559 ;;
20560 esac
20561 ;;
20562 esac
20563 ;;
20564 lynxos*)
20565 ;;
20566 m88k*)
20567 ;;
20568 mvs*)
20569 case $cc_basename in
20570 cxx*)
20571 lt_prog_compiler_pic_CXX='-W c,exportall'
20572 ;;
20573 *)
20574 ;;
20575 esac
20576 ;;
20577 netbsd*)
20578 ;;
20579 *qnx* | *nto*)
20580 # QNX uses GNU C++, but need to define -shared option too, otherwise
20581 # it will coredump.
20582 lt_prog_compiler_pic_CXX='-fPIC -shared'
20583 ;;
20584 osf3* | osf4* | osf5*)
20585 case $cc_basename in
20586 KCC*)
20587 lt_prog_compiler_wl_CXX='--backend -Wl,'
20588 ;;
20589 RCC*)
20590 # Rational C++ 2.4.1
20591 lt_prog_compiler_pic_CXX='-pic'
20592 ;;
20593 cxx*)
20594 # Digital/Compaq C++
20595 lt_prog_compiler_wl_CXX='-Wl,'
20596 # Make sure the PIC flag is empty. It appears that all Alpha
20597 # Linux and Compaq Tru64 Unix objects are PIC.
20598 lt_prog_compiler_pic_CXX=
20599 lt_prog_compiler_static_CXX='-non_shared'
20600 ;;
20601 *)
20602 ;;
20603 esac
20604 ;;
20605 psos*)
20606 ;;
20607 solaris*)
20608 case $cc_basename in
20609 CC*)
20610 # Sun C++ 4.2, 5.x and Centerline C++
20611 lt_prog_compiler_pic_CXX='-KPIC'
20612 lt_prog_compiler_static_CXX='-Bstatic'
20613 lt_prog_compiler_wl_CXX='-Qoption ld '
20614 ;;
20615 gcx*)
20616 # Green Hills C++ Compiler
20617 lt_prog_compiler_pic_CXX='-PIC'
20618 ;;
20619 *)
20620 ;;
20621 esac
20622 ;;
20623 sunos4*)
20624 case $cc_basename in
20625 CC*)
20626 # Sun C++ 4.x
20627 lt_prog_compiler_pic_CXX='-pic'
20628 lt_prog_compiler_static_CXX='-Bstatic'
20629 ;;
20630 lcc*)
20631 # Lucid
20632 lt_prog_compiler_pic_CXX='-pic'
20633 ;;
20634 *)
20635 ;;
20636 esac
20637 ;;
20638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20639 case $cc_basename in
20640 CC*)
20641 lt_prog_compiler_wl_CXX='-Wl,'
20642 lt_prog_compiler_pic_CXX='-KPIC'
20643 lt_prog_compiler_static_CXX='-Bstatic'
20644 ;;
20645 esac
20646 ;;
20647 tandem*)
20648 case $cc_basename in
20649 NCC*)
20650 # NonStop-UX NCC 3.20
20651 lt_prog_compiler_pic_CXX='-KPIC'
20652 ;;
20653 *)
20654 ;;
20655 esac
20656 ;;
20657 vxworks*)
20658 ;;
20659 *)
20660 lt_prog_compiler_can_build_shared_CXX=no
20661 ;;
20662 esac
20663 fi
20664
20665 case $host_os in
20666 # For platforms which do not support PIC, -DPIC is meaningless:
20667 *djgpp*)
20668 lt_prog_compiler_pic_CXX=
20669 ;;
20670 *)
20671 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20672 ;;
20673 esac
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20675 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20676
20677
20678
20679 #
20680 # Check to make sure the PIC flag actually works.
20681 #
20682 if test -n "$lt_prog_compiler_pic_CXX"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20685 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20686 $as_echo_n "(cached) " >&6
20687 else
20688 lt_cv_prog_compiler_pic_works_CXX=no
20689 ac_outfile=conftest.$ac_objext
20690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20692 # Insert the option either (1) after the last *FLAGS variable, or
20693 # (2) before a word containing "conftest.", or (3) at the end.
20694 # Note that $ac_compile itself does not contain backslashes and begins
20695 # with a dollar sign (not a hyphen), so the echo should work correctly.
20696 # The option is referenced via a variable to avoid confusing sed.
20697 lt_compile=`echo "$ac_compile" | $SED \
20698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20700 -e 's:$: $lt_compiler_flag:'`
20701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20702 (eval "$lt_compile" 2>conftest.err)
20703 ac_status=$?
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 if (exit $ac_status) && test -s "$ac_outfile"; then
20707 # The compiler can only warn and ignore the option if not recognized
20708 # So say no if there are warnings other than the usual output.
20709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20712 lt_cv_prog_compiler_pic_works_CXX=yes
20713 fi
20714 fi
20715 $RM conftest*
20716
20717 fi
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20720
20721 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20722 case $lt_prog_compiler_pic_CXX in
20723 "" | " "*) ;;
20724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20725 esac
20726 else
20727 lt_prog_compiler_pic_CXX=
20728 lt_prog_compiler_can_build_shared_CXX=no
20729 fi
20730
20731 fi
20732
20733
20734
20735 #
20736 # Check to make sure the static flag actually works.
20737 #
20738 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20741 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20743 else
20744 lt_cv_prog_compiler_static_works_CXX=no
20745 save_LDFLAGS="$LDFLAGS"
20746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20749 # The linker can only warn and ignore the option if not recognized
20750 # So say no if there are warnings
20751 if test -s conftest.err; then
20752 # Append any errors to the config.log.
20753 cat conftest.err 1>&5
20754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20756 if diff conftest.exp conftest.er2 >/dev/null; then
20757 lt_cv_prog_compiler_static_works_CXX=yes
20758 fi
20759 else
20760 lt_cv_prog_compiler_static_works_CXX=yes
20761 fi
20762 fi
20763 $RM -r conftest*
20764 LDFLAGS="$save_LDFLAGS"
20765
20766 fi
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20768 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20769
20770 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20771 :
20772 else
20773 lt_prog_compiler_static_CXX=
20774 fi
20775
20776
20777
20778
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20784 lt_cv_prog_compiler_c_o_CXX=no
20785 $RM -r conftest 2>/dev/null
20786 mkdir conftest
20787 cd conftest
20788 mkdir out
20789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20790
20791 lt_compiler_flag="-o out/conftest2.$ac_objext"
20792 # Insert the option either (1) after the last *FLAGS variable, or
20793 # (2) before a word containing "conftest.", or (3) at the end.
20794 # Note that $ac_compile itself does not contain backslashes and begins
20795 # with a dollar sign (not a hyphen), so the echo should work correctly.
20796 lt_compile=`echo "$ac_compile" | $SED \
20797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20799 -e 's:$: $lt_compiler_flag:'`
20800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20801 (eval "$lt_compile" 2>out/conftest.err)
20802 ac_status=$?
20803 cat out/conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20806 then
20807 # The compiler can only warn and ignore the option if not recognized
20808 # So say no if there are warnings
20809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20812 lt_cv_prog_compiler_c_o_CXX=yes
20813 fi
20814 fi
20815 chmod u+w . 2>&5
20816 $RM conftest*
20817 # SGI C++ compiler will create directory out/ii_files/ for
20818 # template instantiation
20819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20820 $RM out/* && rmdir out
20821 cd ..
20822 $RM -r conftest
20823 $RM conftest*
20824
20825 fi
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20827 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20828
20829
20830
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20832 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 lt_cv_prog_compiler_c_o_CXX=no
20837 $RM -r conftest 2>/dev/null
20838 mkdir conftest
20839 cd conftest
20840 mkdir out
20841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20842
20843 lt_compiler_flag="-o out/conftest2.$ac_objext"
20844 # Insert the option either (1) after the last *FLAGS variable, or
20845 # (2) before a word containing "conftest.", or (3) at the end.
20846 # Note that $ac_compile itself does not contain backslashes and begins
20847 # with a dollar sign (not a hyphen), so the echo should work correctly.
20848 lt_compile=`echo "$ac_compile" | $SED \
20849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20851 -e 's:$: $lt_compiler_flag:'`
20852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20853 (eval "$lt_compile" 2>out/conftest.err)
20854 ac_status=$?
20855 cat out/conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20858 then
20859 # The compiler can only warn and ignore the option if not recognized
20860 # So say no if there are warnings
20861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20864 lt_cv_prog_compiler_c_o_CXX=yes
20865 fi
20866 fi
20867 chmod u+w . 2>&5
20868 $RM conftest*
20869 # SGI C++ compiler will create directory out/ii_files/ for
20870 # template instantiation
20871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20872 $RM out/* && rmdir out
20873 cd ..
20874 $RM -r conftest
20875 $RM conftest*
20876
20877 fi
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20879 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20880
20881
20882
20883
20884 hard_links="nottested"
20885 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20886 # do not overwrite the value of need_locks provided by the user
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20888 $as_echo_n "checking if we can lock with hard links... " >&6; }
20889 hard_links=yes
20890 $RM conftest*
20891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20892 touch conftest.a
20893 ln conftest.a conftest.b 2>&5 || hard_links=no
20894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20896 $as_echo "$hard_links" >&6; }
20897 if test "$hard_links" = no; then
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20899 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20900 need_locks=warn
20901 fi
20902 else
20903 need_locks=no
20904 fi
20905
20906
20907
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20910
20911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20912 case $host_os in
20913 aix[4-9]*)
20914 # If we're using GNU nm, then we don't want the "-C" option.
20915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20916 # Also, AIX nm treats weak defined symbols like other global defined
20917 # symbols, whereas GNU nm marks them as "W".
20918 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20919 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'
20920 else
20921 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20922 fi
20923 ;;
20924 pw32*)
20925 export_symbols_cmds_CXX="$ltdll_cmds"
20926 ;;
20927 cygwin* | mingw* | cegcc*)
20928 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'
20929 ;;
20930 *)
20931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20932 ;;
20933 esac
20934 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20935
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20937 $as_echo "$ld_shlibs_CXX" >&6; }
20938 test "$ld_shlibs_CXX" = no && can_build_shared=no
20939
20940 with_gnu_ld_CXX=$with_gnu_ld
20941
20942
20943
20944
20945
20946
20947 #
20948 # Do we need to explicitly link libc?
20949 #
20950 case "x$archive_cmds_need_lc_CXX" in
20951 x|xyes)
20952 # Assume -lc should be added
20953 archive_cmds_need_lc_CXX=yes
20954
20955 if test "$enable_shared" = yes && test "$GCC" = yes; then
20956 case $archive_cmds_CXX in
20957 *'~'*)
20958 # FIXME: we may have to deal with multi-command sequences.
20959 ;;
20960 '$CC '*)
20961 # Test whether the compiler implicitly links with -lc since on some
20962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20963 # to ld, don't add -lc before -lgcc.
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20966 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20968 else
20969 $RM conftest*
20970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20971
20972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20973 (eval $ac_compile) 2>&5
20974 ac_status=$?
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; } 2>conftest.err; then
20977 soname=conftest
20978 lib=conftest
20979 libobjs=conftest.$ac_objext
20980 deplibs=
20981 wl=$lt_prog_compiler_wl_CXX
20982 pic_flag=$lt_prog_compiler_pic_CXX
20983 compiler_flags=-v
20984 linker_flags=-v
20985 verstring=
20986 output_objdir=.
20987 libname=conftest
20988 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20989 allow_undefined_flag_CXX=
20990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20991 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20992 ac_status=$?
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }
20995 then
20996 lt_cv_archive_cmds_need_lc_CXX=no
20997 else
20998 lt_cv_archive_cmds_need_lc_CXX=yes
20999 fi
21000 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21001 else
21002 cat conftest.err 1>&5
21003 fi
21004 $RM conftest*
21005
21006 fi
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21008 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21009 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21010 ;;
21011 esac
21012 fi
21013 ;;
21014 esac
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21081
21082 library_names_spec=
21083 libname_spec='lib$name'
21084 soname_spec=
21085 shrext_cmds=".so"
21086 postinstall_cmds=
21087 postuninstall_cmds=
21088 finish_cmds=
21089 finish_eval=
21090 shlibpath_var=
21091 shlibpath_overrides_runpath=unknown
21092 version_type=none
21093 dynamic_linker="$host_os ld.so"
21094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21095 need_lib_prefix=unknown
21096 hardcode_into_libs=no
21097
21098 # when you set need_version to no, make sure it does not cause -set_version
21099 # flags to be left without arguments
21100 need_version=unknown
21101
21102 case $host_os in
21103 aix3*)
21104 version_type=linux
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21106 shlibpath_var=LIBPATH
21107
21108 # AIX 3 has no versioning support, so we append a major version to the name.
21109 soname_spec='${libname}${release}${shared_ext}$major'
21110 ;;
21111
21112 aix[4-9]*)
21113 version_type=linux
21114 need_lib_prefix=no
21115 need_version=no
21116 hardcode_into_libs=yes
21117 if test "$host_cpu" = ia64; then
21118 # AIX 5 supports IA64
21119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21120 shlibpath_var=LD_LIBRARY_PATH
21121 else
21122 # With GCC up to 2.95.x, collect2 would create an import file
21123 # for dependence libraries. The import file would start with
21124 # the line `#! .'. This would cause the generated library to
21125 # depend on `.', always an invalid library. This was fixed in
21126 # development snapshots of GCC prior to 3.0.
21127 case $host_os in
21128 aix4 | aix4.[01] | aix4.[01].*)
21129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21130 echo ' yes '
21131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21132 :
21133 else
21134 can_build_shared=no
21135 fi
21136 ;;
21137 esac
21138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21139 # soname into executable. Probably we can add versioning support to
21140 # collect2, so additional links can be useful in future.
21141 if test "$aix_use_runtimelinking" = yes; then
21142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21143 # instead of lib<name>.a to let people know that these are not
21144 # typical AIX shared libraries.
21145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21146 else
21147 # We preserve .a as extension for shared libraries through AIX4.2
21148 # and later when we are not doing run time linking.
21149 library_names_spec='${libname}${release}.a $libname.a'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21151 fi
21152 shlibpath_var=LIBPATH
21153 fi
21154 ;;
21155
21156 amigaos*)
21157 case $host_cpu in
21158 powerpc)
21159 # Since July 2007 AmigaOS4 officially supports .so libraries.
21160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 ;;
21163 m68k)
21164 library_names_spec='$libname.ixlibrary $libname.a'
21165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21166 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'
21167 ;;
21168 esac
21169 ;;
21170
21171 beos*)
21172 library_names_spec='${libname}${shared_ext}'
21173 dynamic_linker="$host_os ld.so"
21174 shlibpath_var=LIBRARY_PATH
21175 ;;
21176
21177 bsdi[45]*)
21178 version_type=linux
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 soname_spec='${libname}${release}${shared_ext}$major'
21182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21186 # the default ld.so.conf also contains /usr/contrib/lib and
21187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21188 # libtool to hard-code these into programs
21189 ;;
21190
21191 cygwin* | mingw* | pw32* | cegcc*)
21192 version_type=windows
21193 shrext_cmds=".dll"
21194 need_version=no
21195 need_lib_prefix=no
21196
21197 case $GCC,$host_os in
21198 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21199 library_names_spec='$libname.dll.a'
21200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21201 postinstall_cmds='base_file=`basename \${file}`~
21202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21203 dldir=$destdir/`dirname \$dlpath`~
21204 test -d \$dldir || mkdir -p \$dldir~
21205 $install_prog $dir/$dlname \$dldir/$dlname~
21206 chmod a+x \$dldir/$dlname~
21207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21209 fi'
21210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21211 dlpath=$dir/\$dldll~
21212 $RM \$dlpath'
21213 shlibpath_overrides_runpath=yes
21214
21215 case $host_os in
21216 cygwin*)
21217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21219
21220 ;;
21221 mingw* | cegcc*)
21222 # MinGW DLLs use traditional 'lib' prefix
21223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21224 ;;
21225 pw32*)
21226 # pw32 DLLs use 'pw' prefix rather than 'lib'
21227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21228 ;;
21229 esac
21230 ;;
21231
21232 *)
21233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21234 ;;
21235 esac
21236 dynamic_linker='Win32 ld.exe'
21237 # FIXME: first we should search . and the directory the executable is in
21238 shlibpath_var=PATH
21239 ;;
21240
21241 darwin* | rhapsody*)
21242 dynamic_linker="$host_os dyld"
21243 version_type=darwin
21244 need_lib_prefix=no
21245 need_version=no
21246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21247 soname_spec='${libname}${release}${major}$shared_ext'
21248 shlibpath_overrides_runpath=yes
21249 shlibpath_var=DYLD_LIBRARY_PATH
21250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21251
21252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21253 ;;
21254
21255 dgux*)
21256 version_type=linux
21257 need_lib_prefix=no
21258 need_version=no
21259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21260 soname_spec='${libname}${release}${shared_ext}$major'
21261 shlibpath_var=LD_LIBRARY_PATH
21262 ;;
21263
21264 freebsd* | dragonfly*)
21265 # DragonFly does not have aout. When/if they implement a new
21266 # versioning mechanism, adjust this.
21267 if test -x /usr/bin/objformat; then
21268 objformat=`/usr/bin/objformat`
21269 else
21270 case $host_os in
21271 freebsd[23].*) objformat=aout ;;
21272 *) objformat=elf ;;
21273 esac
21274 fi
21275 version_type=freebsd-$objformat
21276 case $version_type in
21277 freebsd-elf*)
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21279 need_version=no
21280 need_lib_prefix=no
21281 ;;
21282 freebsd-*)
21283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21284 need_version=yes
21285 ;;
21286 esac
21287 shlibpath_var=LD_LIBRARY_PATH
21288 case $host_os in
21289 freebsd2.*)
21290 shlibpath_overrides_runpath=yes
21291 ;;
21292 freebsd3.[01]* | freebsdelf3.[01]*)
21293 shlibpath_overrides_runpath=yes
21294 hardcode_into_libs=yes
21295 ;;
21296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21298 shlibpath_overrides_runpath=no
21299 hardcode_into_libs=yes
21300 ;;
21301 *) # from 4.6 on, and DragonFly
21302 shlibpath_overrides_runpath=yes
21303 hardcode_into_libs=yes
21304 ;;
21305 esac
21306 ;;
21307
21308 gnu*)
21309 version_type=linux
21310 need_lib_prefix=no
21311 need_version=no
21312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21313 soname_spec='${libname}${release}${shared_ext}$major'
21314 shlibpath_var=LD_LIBRARY_PATH
21315 hardcode_into_libs=yes
21316 ;;
21317
21318 haiku*)
21319 version_type=linux
21320 need_lib_prefix=no
21321 need_version=no
21322 dynamic_linker="$host_os runtime_loader"
21323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21324 soname_spec='${libname}${release}${shared_ext}$major'
21325 shlibpath_var=LIBRARY_PATH
21326 shlibpath_overrides_runpath=yes
21327 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21328 hardcode_into_libs=yes
21329 ;;
21330
21331 hpux9* | hpux10* | hpux11*)
21332 # Give a soname corresponding to the major version so that dld.sl refuses to
21333 # link against other versions.
21334 version_type=sunos
21335 need_lib_prefix=no
21336 need_version=no
21337 case $host_cpu in
21338 ia64*)
21339 shrext_cmds='.so'
21340 hardcode_into_libs=yes
21341 dynamic_linker="$host_os dld.so"
21342 shlibpath_var=LD_LIBRARY_PATH
21343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21345 soname_spec='${libname}${release}${shared_ext}$major'
21346 if test "X$HPUX_IA64_MODE" = X32; then
21347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21348 else
21349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21350 fi
21351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21352 ;;
21353 hppa*64*)
21354 shrext_cmds='.sl'
21355 hardcode_into_libs=yes
21356 dynamic_linker="$host_os dld.sl"
21357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360 soname_spec='${libname}${release}${shared_ext}$major'
21361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21363 ;;
21364 *)
21365 shrext_cmds='.sl'
21366 dynamic_linker="$host_os dld.sl"
21367 shlibpath_var=SHLIB_PATH
21368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370 soname_spec='${libname}${release}${shared_ext}$major'
21371 ;;
21372 esac
21373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21374 postinstall_cmds='chmod 555 $lib'
21375 # or fails outright, so override atomically:
21376 install_override_mode=555
21377 ;;
21378
21379 interix[3-9]*)
21380 version_type=linux
21381 need_lib_prefix=no
21382 need_version=no
21383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21384 soname_spec='${libname}${release}${shared_ext}$major'
21385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21386 shlibpath_var=LD_LIBRARY_PATH
21387 shlibpath_overrides_runpath=no
21388 hardcode_into_libs=yes
21389 ;;
21390
21391 irix5* | irix6* | nonstopux*)
21392 case $host_os in
21393 nonstopux*) version_type=nonstopux ;;
21394 *)
21395 if test "$lt_cv_prog_gnu_ld" = yes; then
21396 version_type=linux
21397 else
21398 version_type=irix
21399 fi ;;
21400 esac
21401 need_lib_prefix=no
21402 need_version=no
21403 soname_spec='${libname}${release}${shared_ext}$major'
21404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21405 case $host_os in
21406 irix5* | nonstopux*)
21407 libsuff= shlibsuff=
21408 ;;
21409 *)
21410 case $LD in # libtool.m4 will add one of these switches to LD
21411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21412 libsuff= shlibsuff= libmagic=32-bit;;
21413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21414 libsuff=32 shlibsuff=N32 libmagic=N32;;
21415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21417 *) libsuff= shlibsuff= libmagic=never-match;;
21418 esac
21419 ;;
21420 esac
21421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21422 shlibpath_overrides_runpath=no
21423 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21424 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21425 hardcode_into_libs=yes
21426 ;;
21427
21428 # No shared lib support for Linux oldld, aout, or coff.
21429 linux*oldld* | linux*aout* | linux*coff*)
21430 dynamic_linker=no
21431 ;;
21432
21433 # This must be Linux ELF.
21434 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21435 version_type=linux
21436 need_lib_prefix=no
21437 need_version=no
21438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec='${libname}${release}${shared_ext}$major'
21440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21441 shlibpath_var=LD_LIBRARY_PATH
21442 shlibpath_overrides_runpath=no
21443
21444 # Some binutils ld are patched to set DT_RUNPATH
21445 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21446 $as_echo_n "(cached) " >&6
21447 else
21448 lt_cv_shlibpath_overrides_runpath=no
21449 save_LDFLAGS=$LDFLAGS
21450 save_libdir=$libdir
21451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21454 /* end confdefs.h. */
21455
21456 int
21457 main ()
21458 {
21459
21460 ;
21461 return 0;
21462 }
21463 _ACEOF
21464 if ac_fn_cxx_try_link "$LINENO"; then :
21465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21466 lt_cv_shlibpath_overrides_runpath=yes
21467 fi
21468 fi
21469 rm -f core conftest.err conftest.$ac_objext \
21470 conftest$ac_exeext conftest.$ac_ext
21471 LDFLAGS=$save_LDFLAGS
21472 libdir=$save_libdir
21473
21474 fi
21475
21476 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21477
21478 # This implies no fast_install, which is unacceptable.
21479 # Some rework will be needed to allow for fast_install
21480 # before this can be enabled.
21481 hardcode_into_libs=yes
21482
21483 # Append ld.so.conf contents to the search path
21484 if test -f /etc/ld.so.conf; then
21485 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' ' '`
21486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21487 fi
21488
21489 # We used to test for /lib/ld.so.1 and disable shared libraries on
21490 # powerpc, because MkLinux only supported shared libraries with the
21491 # GNU dynamic linker. Since this was broken with cross compilers,
21492 # most powerpc-linux boxes support dynamic linking these days and
21493 # people can always --disable-shared, the test was removed, and we
21494 # assume the GNU/Linux dynamic linker is in use.
21495 dynamic_linker='GNU/Linux ld.so'
21496 ;;
21497
21498 netbsd*)
21499 version_type=sunos
21500 need_lib_prefix=no
21501 need_version=no
21502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21505 dynamic_linker='NetBSD (a.out) ld.so'
21506 else
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 dynamic_linker='NetBSD ld.elf_so'
21510 fi
21511 shlibpath_var=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath=yes
21513 hardcode_into_libs=yes
21514 ;;
21515
21516 newsos6)
21517 version_type=linux
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21519 shlibpath_var=LD_LIBRARY_PATH
21520 shlibpath_overrides_runpath=yes
21521 ;;
21522
21523 *nto* | *qnx*)
21524 version_type=qnx
21525 need_lib_prefix=no
21526 need_version=no
21527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21528 soname_spec='${libname}${release}${shared_ext}$major'
21529 shlibpath_var=LD_LIBRARY_PATH
21530 shlibpath_overrides_runpath=no
21531 hardcode_into_libs=yes
21532 dynamic_linker='ldqnx.so'
21533 ;;
21534
21535 openbsd*)
21536 version_type=sunos
21537 sys_lib_dlsearch_path_spec="/usr/lib"
21538 need_lib_prefix=no
21539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21540 case $host_os in
21541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21542 *) need_version=no ;;
21543 esac
21544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21546 shlibpath_var=LD_LIBRARY_PATH
21547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21548 case $host_os in
21549 openbsd2.[89] | openbsd2.[89].*)
21550 shlibpath_overrides_runpath=no
21551 ;;
21552 *)
21553 shlibpath_overrides_runpath=yes
21554 ;;
21555 esac
21556 else
21557 shlibpath_overrides_runpath=yes
21558 fi
21559 ;;
21560
21561 os2*)
21562 libname_spec='$name'
21563 shrext_cmds=".dll"
21564 need_lib_prefix=no
21565 library_names_spec='$libname${shared_ext} $libname.a'
21566 dynamic_linker='OS/2 ld.exe'
21567 shlibpath_var=LIBPATH
21568 ;;
21569
21570 osf3* | osf4* | osf5*)
21571 version_type=osf
21572 need_lib_prefix=no
21573 need_version=no
21574 soname_spec='${libname}${release}${shared_ext}$major'
21575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 shlibpath_var=LD_LIBRARY_PATH
21577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21579 ;;
21580
21581 rdos*)
21582 dynamic_linker=no
21583 ;;
21584
21585 solaris*)
21586 version_type=linux
21587 need_lib_prefix=no
21588 need_version=no
21589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21590 soname_spec='${libname}${release}${shared_ext}$major'
21591 shlibpath_var=LD_LIBRARY_PATH
21592 shlibpath_overrides_runpath=yes
21593 hardcode_into_libs=yes
21594 # ldd complains unless libraries are executable
21595 postinstall_cmds='chmod +x $lib'
21596 ;;
21597
21598 sunos4*)
21599 version_type=sunos
21600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21602 shlibpath_var=LD_LIBRARY_PATH
21603 shlibpath_overrides_runpath=yes
21604 if test "$with_gnu_ld" = yes; then
21605 need_lib_prefix=no
21606 fi
21607 need_version=yes
21608 ;;
21609
21610 sysv4 | sysv4.3*)
21611 version_type=linux
21612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21613 soname_spec='${libname}${release}${shared_ext}$major'
21614 shlibpath_var=LD_LIBRARY_PATH
21615 case $host_vendor in
21616 sni)
21617 shlibpath_overrides_runpath=no
21618 need_lib_prefix=no
21619 runpath_var=LD_RUN_PATH
21620 ;;
21621 siemens)
21622 need_lib_prefix=no
21623 ;;
21624 motorola)
21625 need_lib_prefix=no
21626 need_version=no
21627 shlibpath_overrides_runpath=no
21628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21629 ;;
21630 esac
21631 ;;
21632
21633 sysv4*MP*)
21634 if test -d /usr/nec ;then
21635 version_type=linux
21636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21637 soname_spec='$libname${shared_ext}.$major'
21638 shlibpath_var=LD_LIBRARY_PATH
21639 fi
21640 ;;
21641
21642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21643 version_type=freebsd-elf
21644 need_lib_prefix=no
21645 need_version=no
21646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21647 soname_spec='${libname}${release}${shared_ext}$major'
21648 shlibpath_var=LD_LIBRARY_PATH
21649 shlibpath_overrides_runpath=yes
21650 hardcode_into_libs=yes
21651 if test "$with_gnu_ld" = yes; then
21652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21653 else
21654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21655 case $host_os in
21656 sco3.2v5*)
21657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21658 ;;
21659 esac
21660 fi
21661 sys_lib_dlsearch_path_spec='/usr/lib'
21662 ;;
21663
21664 tpf*)
21665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21666 version_type=linux
21667 need_lib_prefix=no
21668 need_version=no
21669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670 shlibpath_var=LD_LIBRARY_PATH
21671 shlibpath_overrides_runpath=no
21672 hardcode_into_libs=yes
21673 ;;
21674
21675 uts4*)
21676 version_type=linux
21677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678 soname_spec='${libname}${release}${shared_ext}$major'
21679 shlibpath_var=LD_LIBRARY_PATH
21680 ;;
21681
21682 *)
21683 dynamic_linker=no
21684 ;;
21685 esac
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21687 $as_echo "$dynamic_linker" >&6; }
21688 test "$dynamic_linker" = no && can_build_shared=no
21689
21690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21691 if test "$GCC" = yes; then
21692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21693 fi
21694
21695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21697 fi
21698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21700 fi
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21741 hardcode_action_CXX=
21742 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21743 test -n "$runpath_var_CXX" ||
21744 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21745
21746 # We can hardcode non-existent directories.
21747 if test "$hardcode_direct_CXX" != no &&
21748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21749 # have to relink, otherwise we might link with an installed library
21750 # when we should be linking with a yet-to-be-installed one
21751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21752 test "$hardcode_minus_L_CXX" != no; then
21753 # Linking always hardcodes the temporary library directory.
21754 hardcode_action_CXX=relink
21755 else
21756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21757 hardcode_action_CXX=immediate
21758 fi
21759 else
21760 # We cannot hardcode anything, or else we can only hardcode existing
21761 # directories.
21762 hardcode_action_CXX=unsupported
21763 fi
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21765 $as_echo "$hardcode_action_CXX" >&6; }
21766
21767 if test "$hardcode_action_CXX" = relink ||
21768 test "$inherit_rpath_CXX" = yes; then
21769 # Fast installation is not supported
21770 enable_fast_install=no
21771 elif test "$shlibpath_overrides_runpath" = yes ||
21772 test "$enable_shared" = no; then
21773 # Fast installation is not necessary
21774 enable_fast_install=needless
21775 fi
21776
21777
21778
21779
21780
21781
21782
21783 fi # test -n "$compiler"
21784
21785 CC=$lt_save_CC
21786 LDCXX=$LD
21787 LD=$lt_save_LD
21788 GCC=$lt_save_GCC
21789 with_gnu_ld=$lt_save_with_gnu_ld
21790 lt_cv_path_LDCXX=$lt_cv_path_LD
21791 lt_cv_path_LD=$lt_save_path_LD
21792 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21793 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21794 fi # test "$_lt_caught_CXX_error" != yes
21795
21796 ac_ext=cpp
21797 ac_cpp='$CXXCPP $CPPFLAGS'
21798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817 # Only expand once:
21818
21819
21820
21821
21822
21823 # Identify the assembler which will work hand-in-glove with the newly
21824 # built GCC, so that we can examine its features. This is the assembler
21825 # which will be driven by the driver program.
21826 #
21827 # If build != host, and we aren't building gas in-tree, we identify a
21828 # build->target assembler and hope that it will have the same features
21829 # as the host->target assembler we'll be using.
21830 gcc_cv_gas_major_version=
21831 gcc_cv_gas_minor_version=
21832 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21833
21834 if test "${gcc_cv_as+set}" = set; then :
21835
21836 else
21837
21838 if test -x "$DEFAULT_ASSEMBLER"; then
21839 gcc_cv_as="$DEFAULT_ASSEMBLER"
21840 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21841 && test -f ../gas/Makefile \
21842 && test x$build = x$host; then
21843 gcc_cv_as=../gas/as-new$build_exeext
21844 elif test -x as$build_exeext; then
21845 # Build using assembler in the current directory.
21846 gcc_cv_as=./as$build_exeext
21847 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21848 gcc_cv_as="$AS_FOR_TARGET"
21849 else
21850 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21851 set dummy $AS_FOR_TARGET; ac_word=$2
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21853 $as_echo_n "checking for $ac_word... " >&6; }
21854 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21856 else
21857 case $gcc_cv_as in
21858 [\\/]* | ?:[\\/]*)
21859 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21860 ;;
21861 *)
21862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21863 for as_dir in $PATH
21864 do
21865 IFS=$as_save_IFS
21866 test -z "$as_dir" && as_dir=.
21867 for ac_exec_ext in '' $ac_executable_extensions; do
21868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21869 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21871 break 2
21872 fi
21873 done
21874 done
21875 IFS=$as_save_IFS
21876
21877 ;;
21878 esac
21879 fi
21880 gcc_cv_as=$ac_cv_path_gcc_cv_as
21881 if test -n "$gcc_cv_as"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21883 $as_echo "$gcc_cv_as" >&6; }
21884 else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21887 fi
21888
21889
21890 fi
21891 fi
21892
21893 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21894
21895 case "$ORIGINAL_AS_FOR_TARGET" in
21896 ./as | ./as$build_exeext) ;;
21897 *) ac_config_files="$ac_config_files as:exec-tool.in"
21898 ;;
21899 esac
21900
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21902 $as_echo_n "checking what assembler to use... " >&6; }
21903 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21904 # Single tree build which includes gas. We want to prefer it
21905 # over whatever linker top-level may have detected, since
21906 # we'll use what we're building after installation anyway.
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21908 $as_echo "newly built gas" >&6; }
21909 in_tree_gas=yes
21910 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21911 for f in $gcc_cv_as_bfd_srcdir/configure \
21912 $gcc_cv_as_gas_srcdir/configure \
21913 $gcc_cv_as_gas_srcdir/configure.ac \
21914 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21915 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21916 if test x$gcc_cv_gas_version != x; then
21917 break
21918 fi
21919 done
21920 case $gcc_cv_gas_version in
21921 VERSION=[0-9]*) ;;
21922 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21923 esac
21924 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21925 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21926 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21927 case $gcc_cv_gas_patch_version in
21928 "") gcc_cv_gas_patch_version="0" ;;
21929 esac
21930 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21931 + $gcc_cv_gas_minor_version \) \* 1000 \
21932 + $gcc_cv_gas_patch_version`
21933
21934 in_tree_gas_is_elf=no
21935 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21936 || (grep 'obj_format = multi' ../gas/Makefile \
21937 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21938 then
21939 in_tree_gas_is_elf=yes
21940 fi
21941 else
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21943 $as_echo "$gcc_cv_as" >&6; }
21944 in_tree_gas=no
21945 fi
21946
21947 default_ld=
21948 # Check whether --enable-ld was given.
21949 if test "${enable_ld+set}" = set; then :
21950 enableval=$enable_ld; case "${enableval}" in
21951 no)
21952 default_ld=ld.gold
21953 ;;
21954 esac
21955 fi
21956
21957
21958 install_gold_as_default=no
21959 # Check whether --enable-gold was given.
21960 if test "${enable_gold+set}" = set; then :
21961 enableval=$enable_gold; case "${enableval}" in
21962 default)
21963 install_gold_as_default=yes
21964 ;;
21965 yes)
21966 if test x${default_ld} != x; then
21967 install_gold_as_default=yes
21968 fi
21969 ;;
21970 no)
21971 ;;
21972 *)
21973 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21974 ;;
21975 esac
21976 fi
21977
21978
21979 # Identify the linker which will work hand-in-glove with the newly
21980 # built GCC, so that we can examine its features. This is the linker
21981 # which will be driven by the driver program.
21982 #
21983 # If build != host, and we aren't building gas in-tree, we identify a
21984 # build->target linker and hope that it will have the same features
21985 # as the host->target linker we'll be using.
21986 gcc_cv_gld_major_version=
21987 gcc_cv_gld_minor_version=
21988 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21989 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21990 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21991
21992 if test "${gcc_cv_ld+set}" = set; then :
21993
21994 else
21995
21996 if test -x "$DEFAULT_LINKER"; then
21997 gcc_cv_ld="$DEFAULT_LINKER"
21998 elif test $install_gold_as_default = yes \
21999 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22000 && test -f ../gold/Makefile \
22001 && test x$build = x$host; then
22002 gcc_cv_ld=../gold/ld-new$build_exeext
22003 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22004 && test -f ../ld/Makefile \
22005 && test x$build = x$host; then
22006 gcc_cv_ld=../ld/ld-new$build_exeext
22007 elif test -x collect-ld$build_exeext; then
22008 # Build using linker in the current directory.
22009 gcc_cv_ld=./collect-ld$build_exeext
22010 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22011 gcc_cv_ld="$LD_FOR_TARGET"
22012 else
22013 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22014 set dummy $LD_FOR_TARGET; ac_word=$2
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22016 $as_echo_n "checking for $ac_word... " >&6; }
22017 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22018 $as_echo_n "(cached) " >&6
22019 else
22020 case $gcc_cv_ld in
22021 [\\/]* | ?:[\\/]*)
22022 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22023 ;;
22024 *)
22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22027 do
22028 IFS=$as_save_IFS
22029 test -z "$as_dir" && as_dir=.
22030 for ac_exec_ext in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22034 break 2
22035 fi
22036 done
22037 done
22038 IFS=$as_save_IFS
22039
22040 ;;
22041 esac
22042 fi
22043 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22044 if test -n "$gcc_cv_ld"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22046 $as_echo "$gcc_cv_ld" >&6; }
22047 else
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22050 fi
22051
22052
22053 fi
22054 fi
22055
22056 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22057 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22058 # if the PLUGIN_LD is set ld-new, just have it as ld
22059 # as that is the installed named.
22060 if test x$PLUGIN_LD_SUFFIX = xld-new \
22061 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22062 PLUGIN_LD_SUFFIX=ld
22063 fi
22064
22065 # Check whether --with-plugin-ld was given.
22066 if test "${with_plugin_ld+set}" = set; then :
22067 withval=$with_plugin_ld; if test x"$withval" != x; then
22068 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22069 PLUGIN_LD_SUFFIX="$withval"
22070 fi
22071 fi
22072
22073
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22077 _ACEOF
22078
22079
22080 # Check to see if we are using gold instead of ld
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22082 $as_echo_n "checking whether we are using gold... " >&6; }
22083 ld_is_gold=no
22084 if test x$gcc_cv_ld != x; then
22085 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22086 | grep "GNU gold" > /dev/null; then
22087 ld_is_gold=yes
22088 fi
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22091 $as_echo "$ld_is_gold" >&6; }
22092
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22094 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22095 # Check to see if default ld is not gold, but gold is
22096 # available and has support for split stack. If gcc was configured
22097 # with gold then no checking is done.
22098 #
22099 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22100
22101 # For platforms other than powerpc64*, enable as appropriate.
22102
22103 gold_non_default=no
22104 ld_gold=`which ${gcc_cv_ld}.gold`
22105 # Make sure this gold has minimal split stack support
22106 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22107 ld_vers=`$ld_gold --version | sed 1q`
22108 gold_vers=`echo $ld_vers | sed -n \
22109 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22110 case $target in
22111 # check that the gold version contains the complete split stack support
22112 # on powerpc64 big and little endian
22113 powerpc64*-*-*)
22114 case "$gold_vers" in
22115 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22116 ;;
22117 *) gold_non_default=no
22118 ;;
22119 esac
22120 ;;
22121 esac
22122 fi
22123 if test $gold_non_default = yes; then
22124
22125 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22126
22127 fi
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22130 $as_echo "$gold_non_default" >&6; }
22131
22132 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22133
22134 case "$ORIGINAL_LD_FOR_TARGET" in
22135 ./collect-ld | ./collect-ld$build_exeext) ;;
22136 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22137 ;;
22138 esac
22139
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22141 $as_echo_n "checking what linker to use... " >&6; }
22142 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22143 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22144 # Single tree build which includes ld. We want to prefer it
22145 # over whatever linker top-level may have detected, since
22146 # we'll use what we're building after installation anyway.
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22148 $as_echo "newly built ld" >&6; }
22149 in_tree_ld=yes
22150 in_tree_ld_is_elf=no
22151 if (grep 'EMUL = .*elf' ../ld/Makefile \
22152 || grep 'EMUL = .*linux' ../ld/Makefile \
22153 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22154 in_tree_ld_is_elf=yes
22155 elif test "$ld_is_gold" = yes; then
22156 in_tree_ld_is_elf=yes
22157 fi
22158 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22159 do
22160 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22161 if test x$gcc_cv_gld_version != x; then
22162 break
22163 fi
22164 done
22165 case $gcc_cv_gld_version in
22166 VERSION=[0-9]*) ;;
22167 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22168 esac
22169 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22170 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22171 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22172 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22173 else
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22175 $as_echo "$gcc_cv_ld" >&6; }
22176 in_tree_ld=no
22177 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22178 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22179 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22180 fi
22181
22182
22183
22184
22185 # Figure out what nm we will be using.
22186 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22187 if test "${gcc_cv_nm+set}" = set; then :
22188
22189 else
22190
22191 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22192 && test -f ../binutils/Makefile \
22193 && test x$build = x$host; then
22194 gcc_cv_nm=../binutils/nm-new$build_exeext
22195 elif test -x nm$build_exeext; then
22196 gcc_cv_nm=./nm$build_exeext
22197 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22198 gcc_cv_nm="$NM_FOR_TARGET"
22199 else
22200 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22201 set dummy $NM_FOR_TARGET; ac_word=$2
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22203 $as_echo_n "checking for $ac_word... " >&6; }
22204 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22206 else
22207 case $gcc_cv_nm in
22208 [\\/]* | ?:[\\/]*)
22209 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22210 ;;
22211 *)
22212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22213 for as_dir in $PATH
22214 do
22215 IFS=$as_save_IFS
22216 test -z "$as_dir" && as_dir=.
22217 for ac_exec_ext in '' $ac_executable_extensions; do
22218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22219 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22221 break 2
22222 fi
22223 done
22224 done
22225 IFS=$as_save_IFS
22226
22227 ;;
22228 esac
22229 fi
22230 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22231 if test -n "$gcc_cv_nm"; then
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22233 $as_echo "$gcc_cv_nm" >&6; }
22234 else
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236 $as_echo "no" >&6; }
22237 fi
22238
22239
22240 fi
22241 fi
22242
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22244 $as_echo_n "checking what nm to use... " >&6; }
22245 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22246 # Single tree build which includes binutils.
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22248 $as_echo "newly built nm" >&6; }
22249 in_tree_nm=yes
22250 else
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22253 in_tree_nm=no
22254 fi
22255
22256 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22257
22258 case "$ORIGINAL_NM_FOR_TARGET" in
22259 ./nm | ./nm$build_exeext) ;;
22260 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22261 ;;
22262 esac
22263
22264
22265 # Figure out what objdump we will be using.
22266 if test "${gcc_cv_objdump+set}" = set; then :
22267
22268 else
22269
22270 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22271 && test -f ../binutils/Makefile \
22272 && test x$build = x$host; then
22273 # Single tree build which includes binutils.
22274 gcc_cv_objdump=../binutils/objdump$build_exeext
22275 elif test -x objdump$build_exeext; then
22276 gcc_cv_objdump=./objdump$build_exeext
22277 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22278 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22279 else
22280 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22281 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22283 $as_echo_n "checking for $ac_word... " >&6; }
22284 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22285 $as_echo_n "(cached) " >&6
22286 else
22287 case $gcc_cv_objdump in
22288 [\\/]* | ?:[\\/]*)
22289 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22290 ;;
22291 *)
22292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22293 for as_dir in $PATH
22294 do
22295 IFS=$as_save_IFS
22296 test -z "$as_dir" && as_dir=.
22297 for ac_exec_ext in '' $ac_executable_extensions; do
22298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22299 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22301 break 2
22302 fi
22303 done
22304 done
22305 IFS=$as_save_IFS
22306
22307 ;;
22308 esac
22309 fi
22310 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22311 if test -n "$gcc_cv_objdump"; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22313 $as_echo "$gcc_cv_objdump" >&6; }
22314 else
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22316 $as_echo "no" >&6; }
22317 fi
22318
22319
22320 fi
22321 fi
22322
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22324 $as_echo_n "checking what objdump to use... " >&6; }
22325 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22326 # Single tree build which includes binutils.
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22328 $as_echo "newly built objdump" >&6; }
22329 elif test x$gcc_cv_objdump = x; then
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22331 $as_echo "not found" >&6; }
22332 else
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22334 $as_echo "$gcc_cv_objdump" >&6; }
22335 fi
22336
22337 # Figure out what readelf we will be using.
22338 if test "${gcc_cv_readelf+set}" = set; then :
22339
22340 else
22341
22342 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22343 && test -f ../binutils/Makefile \
22344 && test x$build = x$host; then
22345 # Single tree build which includes binutils.
22346 gcc_cv_readelf=../binutils/readelf$build_exeext
22347 elif test -x readelf$build_exeext; then
22348 gcc_cv_readelf=./readelf$build_exeext
22349 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22350 gcc_cv_readelf="$READELF_FOR_TARGET"
22351 else
22352 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22353 set dummy $READELF_FOR_TARGET; ac_word=$2
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355 $as_echo_n "checking for $ac_word... " >&6; }
22356 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 case $gcc_cv_readelf in
22360 [\\/]* | ?:[\\/]*)
22361 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22362 ;;
22363 *)
22364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22365 for as_dir in $PATH
22366 do
22367 IFS=$as_save_IFS
22368 test -z "$as_dir" && as_dir=.
22369 for ac_exec_ext in '' $ac_executable_extensions; do
22370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22371 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22373 break 2
22374 fi
22375 done
22376 done
22377 IFS=$as_save_IFS
22378
22379 ;;
22380 esac
22381 fi
22382 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22383 if test -n "$gcc_cv_readelf"; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22385 $as_echo "$gcc_cv_readelf" >&6; }
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22388 $as_echo "no" >&6; }
22389 fi
22390
22391
22392 fi
22393 fi
22394
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22396 $as_echo_n "checking what readelf to use... " >&6; }
22397 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22398 # Single tree build which includes binutils.
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22400 $as_echo "newly built readelf" >&6; }
22401 elif test x$gcc_cv_readelf = x; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22403 $as_echo "not found" >&6; }
22404 else
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22406 $as_echo "$gcc_cv_readelf" >&6; }
22407 fi
22408
22409 # Figure out what assembler alignment features are present.
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22411 $as_echo_n "checking assembler flags... " >&6; }
22412 if test "${gcc_cv_as_flags+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 case "$target" in
22416 i[34567]86-*-linux*)
22417 gcc_cv_as_flags=--32
22418 ;;
22419 x86_64-*-linux-gnux32)
22420 gcc_cv_as_flags=--x32
22421 ;;
22422 x86_64-*-linux*)
22423 gcc_cv_as_flags=--64
22424 ;;
22425 powerpc*-*-darwin*)
22426 gcc_cv_as_flags="-arch ppc"
22427 ;;
22428 *)
22429 gcc_cv_as_flags=" "
22430 ;;
22431 esac
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22434 $as_echo "$gcc_cv_as_flags" >&6; }
22435
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22437 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22438 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22439 $as_echo_n "(cached) " >&6
22440 else
22441 gcc_cv_as_balign_and_p2align=no
22442 if test $in_tree_gas = yes; then
22443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22444 then gcc_cv_as_balign_and_p2align=yes
22445 fi
22446 elif test x$gcc_cv_as != x; then
22447 $as_echo '.balign 4
22448 .p2align 2' > conftest.s
22449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22454 test $ac_status = 0; }; }
22455 then
22456 gcc_cv_as_balign_and_p2align=yes
22457 else
22458 echo "configure: failed program was" >&5
22459 cat conftest.s >&5
22460 fi
22461 rm -f conftest.o conftest.s
22462 fi
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22465 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22466 if test $gcc_cv_as_balign_and_p2align = yes; then
22467
22468 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22469
22470 fi
22471
22472
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22474 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22475 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22477 else
22478 gcc_cv_as_max_skip_p2align=no
22479 if test $in_tree_gas = yes; then
22480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22481 then gcc_cv_as_max_skip_p2align=yes
22482 fi
22483 elif test x$gcc_cv_as != x; then
22484 $as_echo '.p2align 4,,7' > conftest.s
22485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490 test $ac_status = 0; }; }
22491 then
22492 gcc_cv_as_max_skip_p2align=yes
22493 else
22494 echo "configure: failed program was" >&5
22495 cat conftest.s >&5
22496 fi
22497 rm -f conftest.o conftest.s
22498 fi
22499 fi
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22501 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22502 if test $gcc_cv_as_max_skip_p2align = yes; then
22503
22504 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22505
22506 fi
22507
22508
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22510 $as_echo_n "checking assembler for .literal16... " >&6; }
22511 if test "${gcc_cv_as_literal16+set}" = set; then :
22512 $as_echo_n "(cached) " >&6
22513 else
22514 gcc_cv_as_literal16=no
22515 if test $in_tree_gas = yes; then
22516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22517 then gcc_cv_as_literal16=yes
22518 fi
22519 elif test x$gcc_cv_as != x; then
22520 $as_echo '.literal16' > conftest.s
22521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22526 test $ac_status = 0; }; }
22527 then
22528 gcc_cv_as_literal16=yes
22529 else
22530 echo "configure: failed program was" >&5
22531 cat conftest.s >&5
22532 fi
22533 rm -f conftest.o conftest.s
22534 fi
22535 fi
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22537 $as_echo "$gcc_cv_as_literal16" >&6; }
22538 if test $gcc_cv_as_literal16 = yes; then
22539
22540 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22541
22542 fi
22543
22544
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22546 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22547 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 gcc_cv_as_subsection_m1=no
22551 if test $in_tree_gas = yes; then
22552 if test $in_tree_gas_is_elf = yes \
22553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22554 then gcc_cv_as_subsection_m1=yes
22555 fi
22556 elif test x$gcc_cv_as != x; then
22557 $as_echo 'conftest_label1: .word 0
22558 .subsection -1
22559 conftest_label2: .word 0
22560 .previous' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 if test x$gcc_cv_nm != x; then
22569 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22570 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22571 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22572 then :
22573 else gcc_cv_as_subsection_m1=yes
22574 fi
22575 rm -f conftest.nm1 conftest.nm2
22576 fi
22577 else
22578 echo "configure: failed program was" >&5
22579 cat conftest.s >&5
22580 fi
22581 rm -f conftest.o conftest.s
22582 fi
22583 fi
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22585 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22586 if test $gcc_cv_as_subsection_m1 = yes; then
22587
22588 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22589
22590 fi
22591
22592
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22594 $as_echo_n "checking assembler for .weak... " >&6; }
22595 if test "${gcc_cv_as_weak+set}" = set; then :
22596 $as_echo_n "(cached) " >&6
22597 else
22598 gcc_cv_as_weak=no
22599 if test $in_tree_gas = yes; then
22600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22601 then gcc_cv_as_weak=yes
22602 fi
22603 elif test x$gcc_cv_as != x; then
22604 $as_echo ' .weak foobar' > conftest.s
22605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22610 test $ac_status = 0; }; }
22611 then
22612 gcc_cv_as_weak=yes
22613 else
22614 echo "configure: failed program was" >&5
22615 cat conftest.s >&5
22616 fi
22617 rm -f conftest.o conftest.s
22618 fi
22619 fi
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22621 $as_echo "$gcc_cv_as_weak" >&6; }
22622 if test $gcc_cv_as_weak = yes; then
22623
22624 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22625
22626 fi
22627
22628
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22630 $as_echo_n "checking assembler for .weakref... " >&6; }
22631 if test "${gcc_cv_as_weakref+set}" = set; then :
22632 $as_echo_n "(cached) " >&6
22633 else
22634 gcc_cv_as_weakref=no
22635 if test $in_tree_gas = yes; then
22636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22637 then gcc_cv_as_weakref=yes
22638 fi
22639 elif test x$gcc_cv_as != x; then
22640 $as_echo ' .weakref foobar, barfnot' > conftest.s
22641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646 test $ac_status = 0; }; }
22647 then
22648 gcc_cv_as_weakref=yes
22649 else
22650 echo "configure: failed program was" >&5
22651 cat conftest.s >&5
22652 fi
22653 rm -f conftest.o conftest.s
22654 fi
22655 fi
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22657 $as_echo "$gcc_cv_as_weakref" >&6; }
22658 if test $gcc_cv_as_weakref = yes; then
22659
22660 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22661
22662 fi
22663
22664
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22666 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22667 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22668 $as_echo_n "(cached) " >&6
22669 else
22670 gcc_cv_as_nsubspa_comdat=no
22671 if test $in_tree_gas = yes; then
22672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22673 then gcc_cv_as_nsubspa_comdat=yes
22674 fi
22675 elif test x$gcc_cv_as != x; then
22676 $as_echo ' .SPACE $TEXT$
22677 .NSUBSPA $CODE$,COMDAT' > conftest.s
22678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }
22684 then
22685 gcc_cv_as_nsubspa_comdat=yes
22686 else
22687 echo "configure: failed program was" >&5
22688 cat conftest.s >&5
22689 fi
22690 rm -f conftest.o conftest.s
22691 fi
22692 fi
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22694 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22695 if test $gcc_cv_as_nsubspa_comdat = yes; then
22696
22697 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22698
22699 fi
22700
22701
22702 # .hidden needs to be supported in both the assembler and the linker,
22703 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22704 # This is irritatingly difficult to feature test for; we have to check the
22705 # date string after the version number. If we've got an in-tree
22706 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22707 # to be safe.
22708 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22709 case "${target}" in
22710 *-*-aix*)
22711 conftest_s=' .globl foobar,hidden'
22712 ;;
22713 *)
22714 conftest_s=' .hidden foobar
22715 foobar:'
22716 ;;
22717 esac
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22719 $as_echo_n "checking assembler for .hidden... " >&6; }
22720 if test "${gcc_cv_as_hidden+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22722 else
22723 gcc_cv_as_hidden=no
22724 if test $in_tree_gas = yes; then
22725 if test $in_tree_gas_is_elf = yes \
22726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22727 then gcc_cv_as_hidden=yes
22728 fi
22729 elif test x$gcc_cv_as != x; then
22730 $as_echo "$conftest_s" > conftest.s
22731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22736 test $ac_status = 0; }; }
22737 then
22738 gcc_cv_as_hidden=yes
22739 else
22740 echo "configure: failed program was" >&5
22741 cat conftest.s >&5
22742 fi
22743 rm -f conftest.o conftest.s
22744 fi
22745 fi
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22747 $as_echo "$gcc_cv_as_hidden" >&6; }
22748
22749
22750 case "${target}" in
22751 *-*-darwin*)
22752 # Darwin as has some visibility support, though with a different syntax.
22753 gcc_cv_as_hidden=yes
22754 ;;
22755 esac
22756
22757 # gnu_indirect_function type is an extension proposed at
22758 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22759 # selection of function implementation
22760 # Check whether --enable-gnu-indirect-function was given.
22761 if test "${enable_gnu_indirect_function+set}" = set; then :
22762 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22763 yes | no) ;;
22764 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22765 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22766 esac
22767 else
22768 enable_gnu_indirect_function="$default_gnu_indirect_function"
22769 fi
22770
22771
22772 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22773
22774 cat >>confdefs.h <<_ACEOF
22775 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22776 _ACEOF
22777
22778
22779
22780 if test $in_tree_ld != yes ; then
22781 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22782 if echo "$ld_ver" | grep GNU > /dev/null; then
22783 if test x"$ld_is_gold" = xyes; then
22784 # GNU gold --version looks like this:
22785 #
22786 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22787 #
22788 # We extract the binutils version which is more familiar and specific
22789 # than the gold version.
22790 ld_vers=`echo $ld_ver | sed -n \
22791 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22792 else
22793 # GNU ld --version looks like this:
22794 #
22795 # GNU ld (GNU Binutils) 2.21.51.20110225
22796 ld_vers=`echo $ld_ver | sed -n \
22797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22798 fi
22799 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'`
22800 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22801 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22802 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22803 else
22804 case "${target}" in
22805 *-*-solaris2*)
22806 # Solaris 2 ld -V output looks like this for a regular version:
22807 #
22808 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22809 #
22810 # but test versions add stuff at the end:
22811 #
22812 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22813 #
22814 # In Solaris 11.4, this was changed to
22815 #
22816 # ld: Solaris ELF Utilities: 11.4-1.3123
22817 #
22818 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22819 # numbers can be used in ld.so.1 feature checks even if a different
22820 # linker is configured.
22821 ld_ver=`$gcc_cv_ld -V 2>&1`
22822 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22823 ld_vers=`echo $ld_ver | sed -n \
22824 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22825 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22826 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22827 fi
22828 ;;
22829 esac
22830 fi
22831 fi
22832
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22834 $as_echo_n "checking linker for .hidden support... " >&6; }
22835 if test "${gcc_cv_ld_hidden+set}" = set; then :
22836 $as_echo_n "(cached) " >&6
22837 else
22838 if test $in_tree_ld = yes ; then
22839 gcc_cv_ld_hidden=no
22840 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 \
22841 && test $in_tree_ld_is_elf = yes; then
22842 gcc_cv_ld_hidden=yes
22843 fi
22844 else
22845 gcc_cv_ld_hidden=yes
22846 if test x"$ld_is_gold" = xyes; then
22847 :
22848 elif echo "$ld_ver" | grep GNU > /dev/null; then
22849 case "${target}" in
22850 mmix-knuth-mmixware)
22851 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22852 gcc_cv_ld_hidden=no
22853 ;;
22854 esac
22855 if test 0"$ld_date" -lt 20020404; then
22856 if test -n "$ld_date"; then
22857 # If there was date string, but was earlier than 2002-04-04, fail
22858 gcc_cv_ld_hidden=no
22859 elif test -z "$ld_vers"; then
22860 # If there was no date string nor ld version number, something is wrong
22861 gcc_cv_ld_hidden=no
22862 else
22863 test -z "$ld_vers_patch" && ld_vers_patch=0
22864 if test "$ld_vers_major" -lt 2; then
22865 gcc_cv_ld_hidden=no
22866 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22867 gcc_cv_ld_hidden="no"
22868 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22869 gcc_cv_ld_hidden=no
22870 fi
22871 fi
22872 fi
22873 else
22874 case "${target}" in
22875 *-*-aix[789]*)
22876 gcc_cv_ld_hidden=yes
22877 ;;
22878 *-*-darwin*)
22879 # Darwin ld has some visibility support.
22880 gcc_cv_ld_hidden=yes
22881 ;;
22882 hppa64*-*-hpux* | ia64*-*-hpux*)
22883 gcc_cv_ld_hidden=yes
22884 ;;
22885 *-*-solaris2.1[0-9]*)
22886 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22887 # .symbolic was only added in Solaris 9 12/02.
22888 gcc_cv_ld_hidden=yes
22889 ;;
22890 *)
22891 gcc_cv_ld_hidden=no
22892 ;;
22893 esac
22894 fi
22895 fi
22896 fi
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22898 $as_echo "$gcc_cv_ld_hidden" >&6; }
22899 libgcc_visibility=no
22900
22901
22902 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22903 libgcc_visibility=yes
22904
22905 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22906
22907 fi
22908
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22910 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22911 gcc_cv_ld_ro_rw_mix=unknown
22912 if test $in_tree_ld = yes ; then
22913 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 \
22914 && test $in_tree_ld_is_elf = yes; then
22915 gcc_cv_ld_ro_rw_mix=read-write
22916 fi
22917 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22918 echo '.section myfoosect, "a"' > conftest1.s
22919 echo '.section myfoosect, "aw"' > conftest2.s
22920 echo '.byte 1' >> conftest2.s
22921 echo '.section myfoosect, "a"' > conftest3.s
22922 echo '.byte 0' >> conftest3.s
22923 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22924 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22925 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22926 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22927 conftest2.o conftest3.o > /dev/null 2>&1; then
22928 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22929 | sed -e '/myfoosect/!d' -e N`
22930 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22931 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22932 gcc_cv_ld_ro_rw_mix=read-only
22933 else
22934 gcc_cv_ld_ro_rw_mix=read-write
22935 fi
22936 fi
22937 fi
22938 rm -f conftest.* conftest[123].*
22939 fi
22940 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22941
22942 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22943
22944 fi
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22946 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22947
22948 # Check whether --enable-initfini-array was given.
22949 if test "${enable_initfini_array+set}" = set; then :
22950 enableval=$enable_initfini_array;
22951 else
22952
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22954 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22955 if test "${gcc_cv_initfini_array+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22957 else
22958 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22959 case "${target}" in
22960 ia64-*)
22961 if test "$cross_compiling" = yes; then :
22962 gcc_cv_initfini_array=no
22963 else
22964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965 /* end confdefs.h. */
22966
22967 #ifndef __ELF__
22968 #error Not an ELF OS
22969 #endif
22970 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22971 if it can be used. */
22972 static int x = -1;
22973 int main (void) { return x; }
22974 int foo (void) { x = 0; }
22975 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22976
22977 _ACEOF
22978 if ac_fn_cxx_try_run "$LINENO"; then :
22979 gcc_cv_initfini_array=yes
22980 else
22981 gcc_cv_initfini_array=no
22982 fi
22983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22984 conftest.$ac_objext conftest.beam conftest.$ac_ext
22985 fi
22986 ;;
22987 *)
22988 gcc_cv_initfini_array=no
22989 if test $in_tree_ld = yes ; then
22990 if test "$gcc_cv_gld_major_version" -eq 2 \
22991 -a "$gcc_cv_gld_minor_version" -ge 22 \
22992 -o "$gcc_cv_gld_major_version" -gt 2 \
22993 && test $in_tree_ld_is_elf = yes; then
22994 gcc_cv_initfini_array=yes
22995 fi
22996 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22997 case $target:$gas in
22998 *:yes)
22999 sh_flags='"a"'
23000 sh_type='%progbits'
23001 ;;
23002 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23003 sh_flags='"a"'
23004 sh_type='@progbits'
23005 ;;
23006 sparc*-*-solaris2*:no)
23007 sh_flags='#alloc'
23008 sh_type='#progbits'
23009 sh_quote='"'
23010 ;;
23011 esac
23012 case "$target:$gnu_ld" in
23013 *:yes)
23014 cat > conftest.s <<EOF
23015 .section .dtors,$sh_flags,$sh_type
23016 .balign 4
23017 .byte 'A', 'A', 'A', 'A'
23018 .section .ctors,$sh_flags,$sh_type
23019 .balign 4
23020 .byte 'B', 'B', 'B', 'B'
23021 .section .fini_array.65530,$sh_flags,$sh_type
23022 .balign 4
23023 .byte 'C', 'C', 'C', 'C'
23024 .section .init_array.65530,$sh_flags,$sh_type
23025 .balign 4
23026 .byte 'D', 'D', 'D', 'D'
23027 .section .dtors.64528,$sh_flags,$sh_type
23028 .balign 4
23029 .byte 'E', 'E', 'E', 'E'
23030 .section .ctors.64528,$sh_flags,$sh_type
23031 .balign 4
23032 .byte 'F', 'F', 'F', 'F'
23033 .section .fini_array.01005,$sh_flags,$sh_type
23034 .balign 4
23035 .byte 'G', 'G', 'G', 'G'
23036 .section .init_array.01005,$sh_flags,$sh_type
23037 .balign 4
23038 .byte 'H', 'H', 'H', 'H'
23039 .text
23040 .globl _start
23041 _start:
23042 EOF
23043 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23044 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23045 && $gcc_cv_objdump -s -j .init_array conftest \
23046 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23047 && $gcc_cv_objdump -s -j .fini_array conftest \
23048 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23049 gcc_cv_initfini_array=yes
23050 fi
23051 ;;
23052 *-*-solaris2*:no)
23053 # When Solaris ld added constructor priority support, it was
23054 # decided to only handle .init_array.N/.fini_array.N since
23055 # there was no need for backwards compatibility with
23056 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23057 # sections with correct execution order resp. to
23058 # .init_array/.fini_array, while gld merges them into
23059 # .init_array/.fini_array.
23060 cat > conftest.s <<EOF
23061 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23062 .align 4
23063 .byte 'C', 'C', 'C', 'C'
23064 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23065 .align 4
23066 .byte 'D', 'D', 'D', 'D'
23067 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23068 .align 4
23069 .byte 'G', 'G', 'G', 'G'
23070 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23071 .align 4
23072 .byte 'H', 'H', 'H', 'H'
23073 .text
23074 .globl _start
23075 _start:
23076 EOF
23077 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23078 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23079 && $gcc_cv_objdump -s -j .init_array conftest \
23080 | grep HHHHDDDD > /dev/null 2>&1 \
23081 && $gcc_cv_objdump -s -j .fini_array conftest \
23082 | grep GGGGCCCC > /dev/null 2>&1; then
23083 gcc_cv_initfini_array=yes
23084 fi
23085 ;;
23086 esac
23087 rm -f conftest conftest.*
23088 fi
23089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h. */
23091
23092 #ifndef __ELF__
23093 # error Not an ELF OS
23094 #endif
23095 #include <stdlib.h>
23096 #if defined __GLIBC_PREREQ
23097 # if __GLIBC_PREREQ (2, 4)
23098 # else
23099 # error GLIBC 2.4 required
23100 # endif
23101 #else
23102 # if defined __sun__ && defined __svr4__
23103 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23104 # else
23105 # error The C library not known to support .init_array/.fini_array
23106 # endif
23107 #endif
23108
23109 _ACEOF
23110 if ac_fn_cxx_try_cpp "$LINENO"; then :
23111
23112 else
23113 gcc_cv_initfini_array=no
23114 fi
23115 rm -f conftest.err conftest.$ac_ext;;
23116 esac
23117 else
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23119 $as_echo_n "checking cross compile... guessing... " >&6; }
23120 gcc_cv_initfini_array=no
23121 fi
23122 fi
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23124 $as_echo "$gcc_cv_initfini_array" >&6; }
23125 enable_initfini_array=$gcc_cv_initfini_array
23126
23127 fi
23128
23129
23130 cat >>confdefs.h <<_ACEOF
23131 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23132 _ACEOF
23133
23134
23135
23136 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23138 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23139 if test "${gcc_cv_as_leb128+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_leb128=no
23143 if test $in_tree_gas = yes; then
23144 if test $in_tree_gas_is_elf = yes \
23145 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23146 then gcc_cv_as_leb128=yes
23147 fi
23148 elif test x$gcc_cv_as != x; then
23149 $as_echo ' .data
23150 .uleb128 L2 - L1
23151 L1:
23152 .uleb128 1280
23153 .sleb128 -1010
23154 L2:' > conftest.s
23155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }
23161 then
23162 # GAS versions before 2.11 do not support uleb128,
23163 # despite appearing to.
23164 # ??? There exists an elf-specific test that will crash
23165 # the assembler. Perhaps it's better to figure out whether
23166 # arbitrary sections are supported and try the test.
23167 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23168 if echo "$as_ver" | grep GNU > /dev/null; then
23169 as_vers=`echo $as_ver | sed -n \
23170 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23171 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23172 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23173 if test $as_major -eq 2 && test $as_minor -lt 11
23174 then :
23175 else gcc_cv_as_leb128=yes
23176 fi
23177 fi
23178 else
23179 echo "configure: failed program was" >&5
23180 cat conftest.s >&5
23181 fi
23182 rm -f conftest.o conftest.s
23183 fi
23184 fi
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23186 $as_echo "$gcc_cv_as_leb128" >&6; }
23187 if test $gcc_cv_as_leb128 = yes; then
23188
23189 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23190
23191 fi
23192 if test $gcc_cv_as_leb128 != yes; then
23193
23194 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23195
23196 fi
23197
23198 # Determine if an .eh_frame section is read-only.
23199 gcc_fn_eh_frame_ro () {
23200 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23201 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23202 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23203 }
23204
23205 # Check if we have assembler support for unwind directives.
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23207 $as_echo_n "checking assembler for cfi directives... " >&6; }
23208 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23210 else
23211 gcc_cv_as_cfi_directive=no
23212 if test x$gcc_cv_as != x; then
23213 $as_echo ' .text
23214 .cfi_startproc
23215 .cfi_offset 0, 0
23216 .cfi_same_value 1
23217 .cfi_def_cfa 1, 2
23218 .cfi_escape 1, 2, 3, 4, 5
23219 .cfi_endproc' > conftest.s
23220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23225 test $ac_status = 0; }; }
23226 then
23227 case "$target" in
23228 *-*-solaris*)
23229 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23230 # read-only and read-write sections, we need to make sure that the
23231 # assembler used emits read-write .eh_frame sections.
23232 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23233 gcc_cv_as_cfi_directive=yes
23234 elif test "x$gcc_cv_objdump" = x; then
23235 # No objdump, err on the side of caution.
23236 gcc_cv_as_cfi_directive=no
23237 else
23238 if test x$gas = xyes; then
23239 as_32_opt="--32"
23240 as_64_opt="--64"
23241 else
23242 as_32_opt="-m32"
23243 as_64_opt="-m64"
23244 fi
23245 case "$target" in
23246 sparc*-*-solaris2.*)
23247 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23248 if gcc_fn_eh_frame_ro $as_32_opt \
23249 || gcc_fn_eh_frame_ro $as_64_opt; then
23250 gcc_cv_as_cfi_directive=no
23251 else
23252 gcc_cv_as_cfi_directive=yes
23253 fi
23254 ;;
23255 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23256 # On Solaris/x86, make sure that GCC and assembler agree on using
23257 # read-only .eh_frame sections for 64-bit.
23258 if gcc_fn_eh_frame_ro $as_32_opt; then
23259 gcc_cv_as_cfi_directive=no
23260 elif gcc_fn_eh_frame_ro $as_64_opt; then
23261 gcc_cv_as_cfi_directive=yes
23262 else
23263 gcc_cv_as_cfi_directive=no
23264 fi
23265 ;;
23266 esac
23267 fi
23268 ;;
23269 *-*-*)
23270 gcc_cv_as_cfi_directive=yes
23271 ;;
23272 esac
23273 else
23274 echo "configure: failed program was" >&5
23275 cat conftest.s >&5
23276 fi
23277 rm -f conftest.o conftest.s
23278 fi
23279 fi
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23281 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23282
23283
23284 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23286 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23287 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23289 else
23290 gcc_cv_as_cfi_advance_working=no
23291 if test x$gcc_cv_as != x; then
23292 $as_echo ' .text
23293 .cfi_startproc
23294 .cfi_adjust_cfa_offset 64
23295 .skip 75040, 0
23296 .cfi_adjust_cfa_offset 128
23297 .cfi_endproc' > conftest.s
23298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; }
23304 then
23305
23306 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23307 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23308 gcc_cv_as_cfi_advance_working=yes
23309 fi
23310
23311 else
23312 echo "configure: failed program was" >&5
23313 cat conftest.s >&5
23314 fi
23315 rm -f conftest.o conftest.s
23316 fi
23317 fi
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23319 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23320
23321
23322 else
23323 # no objdump, err on the side of caution
23324 gcc_cv_as_cfi_advance_working=no
23325 fi
23326
23327
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23330 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23331 _ACEOF
23332
23333
23334
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23336 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23337 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 gcc_cv_as_cfi_personality_directive=no
23341 if test x$gcc_cv_as != x; then
23342 $as_echo ' .text
23343 .cfi_startproc
23344 .cfi_personality 0, symbol
23345 .cfi_endproc' > conftest.s
23346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351 test $ac_status = 0; }; }
23352 then
23353 gcc_cv_as_cfi_personality_directive=yes
23354 else
23355 echo "configure: failed program was" >&5
23356 cat conftest.s >&5
23357 fi
23358 rm -f conftest.o conftest.s
23359 fi
23360 fi
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23362 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23363
23364
23365
23366 cat >>confdefs.h <<_ACEOF
23367 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23368 then echo 1; else echo 0; fi`
23369 _ACEOF
23370
23371
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23373 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23374 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23375 $as_echo_n "(cached) " >&6
23376 else
23377 gcc_cv_as_cfi_sections_directive=no
23378 if test x$gcc_cv_as != x; then
23379 $as_echo ' .text
23380 .cfi_sections .debug_frame, .eh_frame
23381 .cfi_startproc
23382 .cfi_endproc' > conftest.s
23383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }
23389 then
23390 case $target_os in
23391 win32 | pe | cygwin* | mingw32*)
23392 # Need to check that we generated the correct relocation for the
23393 # .debug_frame section. This was fixed for binutils 2.21.
23394 gcc_cv_as_cfi_sections_directive=no
23395 if test "x$gcc_cv_objdump" != x; then
23396 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23397 grep secrel > /dev/null; then
23398 gcc_cv_as_cfi_sections_directive=yes
23399 fi
23400 fi
23401 ;;
23402 *)
23403 gcc_cv_as_cfi_sections_directive=yes
23404 ;;
23405 esac
23406 else
23407 echo "configure: failed program was" >&5
23408 cat conftest.s >&5
23409 fi
23410 rm -f conftest.o conftest.s
23411 fi
23412 fi
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23414 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23415
23416
23417
23418
23419 cat >>confdefs.h <<_ACEOF
23420 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23421 then echo 1; else echo 0; fi`
23422 _ACEOF
23423
23424
23425 # GAS versions up to and including 2.11.0 may mis-optimize
23426 # .eh_frame data.
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23428 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23429 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23431 else
23432 gcc_cv_as_eh_frame=no
23433 if test $in_tree_gas = yes; then
23434 if test $in_tree_gas_is_elf = yes \
23435 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23436 then gcc_cv_as_eh_frame=yes
23437 fi
23438 elif test x$gcc_cv_as != x; then
23439 $as_echo ' .text
23440 .LFB1:
23441 .4byte 0
23442 .L1:
23443 .4byte 0
23444 .LFE1:
23445 .section .eh_frame,"aw",@progbits
23446 __FRAME_BEGIN__:
23447 .4byte .LECIE1-.LSCIE1
23448 .LSCIE1:
23449 .4byte 0x0
23450 .byte 0x1
23451 .ascii "z\0"
23452 .byte 0x1
23453 .byte 0x78
23454 .byte 0x1a
23455 .byte 0x0
23456 .byte 0x4
23457 .4byte 1
23458 .p2align 1
23459 .LECIE1:
23460 .LSFDE1:
23461 .4byte .LEFDE1-.LASFDE1
23462 .LASFDE1:
23463 .4byte .LASFDE1-__FRAME_BEGIN__
23464 .4byte .LFB1
23465 .4byte .LFE1-.LFB1
23466 .byte 0x4
23467 .4byte .LFE1-.LFB1
23468 .byte 0x4
23469 .4byte .L1-.LFB1
23470 .LEFDE1:' > conftest.s
23471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23476 test $ac_status = 0; }; }
23477 then
23478 cat > conftest.lit <<EOF
23479 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23480 0010 01000000 12000000 18000000 00000000 ................
23481 0020 08000000 04080000 0044 .........D
23482 EOF
23483 cat > conftest.big <<EOF
23484 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23485 0010 00000001 00000012 00000018 00000000 ................
23486 0020 00000008 04000000 0844 .........D
23487 EOF
23488 # If the assembler didn't choke, and we can objdump,
23489 # and we got the correct data, then succeed.
23490 # The text in the here-document typically retains its unix-style line
23491 # endings, while the output of objdump will use host line endings.
23492 # Therefore, use diff -b for the comparisons.
23493 if test x$gcc_cv_objdump != x \
23494 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23495 | tail -3 > conftest.got \
23496 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23497 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23498 then
23499 gcc_cv_as_eh_frame=yes
23500 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; }; }; then
23506 gcc_cv_as_eh_frame=buggy
23507 else
23508 # Uh oh, what do we do now?
23509 gcc_cv_as_eh_frame=no
23510 fi
23511 else
23512 echo "configure: failed program was" >&5
23513 cat conftest.s >&5
23514 fi
23515 rm -f conftest.o conftest.s
23516 fi
23517 fi
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23519 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23520
23521
23522
23523 if test $gcc_cv_as_eh_frame = buggy; then
23524
23525 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23526
23527 fi
23528
23529 # Test if the assembler supports the section flag 'e' or #exclude for
23530 # specifying an excluded section.
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23532 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23533 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gcc_cv_as_section_exclude_e=no
23537 if test $in_tree_gas = yes; then
23538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23539 then gcc_cv_as_section_exclude_e=yes
23540 fi
23541 elif test x$gcc_cv_as != x; then
23542 $as_echo '.section foo1,"e"
23543 .byte 0,0,0,0' > conftest.s
23544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }
23550 then
23551 gcc_cv_as_section_exclude_e=yes
23552 else
23553 echo "configure: failed program was" >&5
23554 cat conftest.s >&5
23555 fi
23556 rm -f conftest.o conftest.s
23557 fi
23558 fi
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23560 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23561
23562
23563 if test $gcc_cv_as_section_exclude_e = no; then
23564 case "${target}" in
23565 # Solaris as uses #exclude instead.
23566 *-*-solaris2*)
23567 case "${target}" in
23568 sparc*-*-solaris2*)
23569 conftest_s='.section "foo1", #exclude'
23570 ;;
23571 i?86-*-solaris2* | x86_64-*-solaris2*)
23572 conftest_s='.section foo1, #exclude'
23573 ;;
23574 esac
23575 ;;
23576 esac
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23578 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23579 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 gcc_cv_as_section_exclude_hash=no
23583 if test x$gcc_cv_as != x; then
23584 $as_echo "$conftest_s
23585 .byte 0,0,0,0" > conftest.s
23586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23591 test $ac_status = 0; }; }
23592 then
23593 gcc_cv_as_section_exclude_hash=yes
23594 else
23595 echo "configure: failed program was" >&5
23596 cat conftest.s >&5
23597 fi
23598 rm -f conftest.o conftest.s
23599 fi
23600 fi
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23602 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23603
23604
23605 fi
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23609 _ACEOF
23610
23611
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23613 $as_echo_n "checking assembler for section merging support... " >&6; }
23614 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_shf_merge=no
23618 if test $in_tree_gas = yes; then
23619 if test $in_tree_gas_is_elf = yes \
23620 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23621 then gcc_cv_as_shf_merge=yes
23622 fi
23623 elif test x$gcc_cv_as != x; then
23624 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630 test $ac_status = 0; }; }
23631 then
23632 gcc_cv_as_shf_merge=yes
23633 else
23634 echo "configure: failed program was" >&5
23635 cat conftest.s >&5
23636 fi
23637 rm -f conftest.o conftest.s
23638 fi
23639 fi
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23641 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23642
23643
23644 if test $gcc_cv_as_shf_merge = no; then
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23646 $as_echo_n "checking assembler for section merging support... " >&6; }
23647 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23648 $as_echo_n "(cached) " >&6
23649 else
23650 gcc_cv_as_shf_merge=no
23651 if test $in_tree_gas = yes; then
23652 if test $in_tree_gas_is_elf = yes \
23653 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23654 then gcc_cv_as_shf_merge=yes
23655 fi
23656 elif test x$gcc_cv_as != x; then
23657 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23663 test $ac_status = 0; }; }
23664 then
23665 gcc_cv_as_shf_merge=yes
23666 else
23667 echo "configure: failed program was" >&5
23668 cat conftest.s >&5
23669 fi
23670 rm -f conftest.o conftest.s
23671 fi
23672 fi
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23674 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23675
23676
23677 fi
23678 case "$target" in
23679 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23680 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23681 if test x"$gnu_ld" = xno; then
23682 gcc_cv_as_shf_merge=no
23683 fi
23684 ;;
23685 esac
23686
23687 cat >>confdefs.h <<_ACEOF
23688 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23689 _ACEOF
23690
23691
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23693 $as_echo_n "checking assembler for stabs directive... " >&6; }
23694 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23695 $as_echo_n "(cached) " >&6
23696 else
23697 gcc_cv_as_stabs_directive=no
23698 if test x$gcc_cv_as != x; then
23699 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23706 then
23707 gcc_cv_as_stabs_directive=yes
23708 else
23709 echo "configure: failed program was" >&5
23710 cat conftest.s >&5
23711 fi
23712 rm -f conftest.o conftest.s
23713 fi
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23716 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23717 if test $gcc_cv_as_stabs_directive = yes; then
23718
23719 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23720
23721 fi
23722
23723
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23725 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23726 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23727 $as_echo_n "(cached) " >&6
23728 else
23729 gcc_cv_as_comdat_group=no
23730 if test $in_tree_gas = yes; then
23731 if test $in_tree_gas_is_elf = yes \
23732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23733 then gcc_cv_as_comdat_group=yes
23734 fi
23735 elif test x$gcc_cv_as != x; then
23736 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23742 test $ac_status = 0; }; }
23743 then
23744 gcc_cv_as_comdat_group=yes
23745 else
23746 echo "configure: failed program was" >&5
23747 cat conftest.s >&5
23748 fi
23749 rm -f conftest.o conftest.s
23750 fi
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23753 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23754
23755
23756 if test $gcc_cv_as_comdat_group = yes; then
23757 gcc_cv_as_comdat_group_percent=no
23758 gcc_cv_as_comdat_group_group=no
23759 else
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23761 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23762 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23764 else
23765 gcc_cv_as_comdat_group_percent=no
23766 if test $in_tree_gas = yes; then
23767 if test $in_tree_gas_is_elf = yes \
23768 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23769 then gcc_cv_as_comdat_group_percent=yes
23770 fi
23771 elif test x$gcc_cv_as != x; then
23772 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23779 then
23780 gcc_cv_as_comdat_group_percent=yes
23781 else
23782 echo "configure: failed program was" >&5
23783 cat conftest.s >&5
23784 fi
23785 rm -f conftest.o conftest.s
23786 fi
23787 fi
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23789 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23790
23791
23792 if test $gcc_cv_as_comdat_group_percent = yes; then
23793 gcc_cv_as_comdat_group_group=no
23794 else
23795 case "${target}" in
23796 # Sun as uses a completely different syntax.
23797 *-*-solaris2*)
23798 case "${target}" in
23799 sparc*-*-solaris2*)
23800 conftest_s='
23801 .group foo,".text%foo",#comdat
23802 .section ".text%foo", #alloc,#execinstr,#progbits
23803 .globl foo
23804 foo:
23805 '
23806 ;;
23807 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23808 conftest_s='
23809 .group foo,.text%foo,#comdat
23810 .section .text%foo, "ax", @progbits
23811 .globl foo
23812 foo:
23813 '
23814 ;;
23815 esac
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23817 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23818 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23820 else
23821 gcc_cv_as_comdat_group_group=no
23822 if test x$gcc_cv_as != x; then
23823 $as_echo "$conftest_s" > conftest.s
23824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829 test $ac_status = 0; }; }
23830 then
23831 gcc_cv_as_comdat_group_group=yes
23832 else
23833 echo "configure: failed program was" >&5
23834 cat conftest.s >&5
23835 fi
23836 rm -f conftest.o conftest.s
23837 fi
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23840 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23841
23842
23843 ;;
23844 esac
23845 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23846 gcc_cv_as_comdat_group_group=no
23847 fi
23848 fi
23849 fi
23850 if test x"$ld_is_gold" = xyes; then
23851 comdat_group=yes
23852 elif test $in_tree_ld = yes ; then
23853 comdat_group=no
23854 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 \
23855 && test $in_tree_ld_is_elf = yes; then
23856 comdat_group=yes
23857 fi
23858 elif echo "$ld_ver" | grep GNU > /dev/null; then
23859 comdat_group=yes
23860 if test 0"$ld_date" -lt 20050308; then
23861 if test -n "$ld_date"; then
23862 # If there was date string, but was earlier than 2005-03-08, fail
23863 comdat_group=no
23864 elif test "$ld_vers_major" -lt 2; then
23865 comdat_group=no
23866 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23867 comdat_group=no
23868 fi
23869 fi
23870 else
23871 case "${target}" in
23872 *-*-solaris2.1[1-9]*)
23873 comdat_group=no
23874 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23875 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23876 # version 1.688.
23877 #
23878 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23879 # least ld version 1.2267.
23880 if test "$ld_vers_major" -gt 1; then
23881 comdat_group=yes
23882 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23883 comdat_group=yes
23884 elif test "$ld_vers_minor" -ge 2267; then
23885 comdat_group=yes
23886 fi
23887 ;;
23888 *)
23889 # Assume linkers other than GNU ld don't support COMDAT group.
23890 comdat_group=no
23891 ;;
23892 esac
23893 fi
23894 # Allow overriding the automatic COMDAT group tests above.
23895 # Check whether --enable-comdat was given.
23896 if test "${enable_comdat+set}" = set; then :
23897 enableval=$enable_comdat; comdat_group="$enable_comdat"
23898 fi
23899
23900 if test $comdat_group = no; then
23901 gcc_cv_as_comdat_group=no
23902 gcc_cv_as_comdat_group_percent=no
23903 gcc_cv_as_comdat_group_group=no
23904 fi
23905
23906 cat >>confdefs.h <<_ACEOF
23907 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23908 || test $gcc_cv_as_comdat_group_percent = yes \
23909 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23910 _ACEOF
23911
23912
23913 # Restrict this test to Solaris/x86: other targets define this statically.
23914 case "${target}" in
23915 i?86-*-solaris2* | x86_64-*-solaris2*)
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23917 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23918 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23919 hidden_linkonce=yes
23920 else
23921 case "${target}" in
23922 # Full support for hidden thunks in linkonce sections only appeared in
23923 # Solaris 11/OpenSolaris.
23924 *-*-solaris2.1[1-9]*)
23925 hidden_linkonce=yes
23926 ;;
23927 *)
23928 hidden_linkonce=no
23929 ;;
23930 esac
23931 fi
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23933 $as_echo "$hidden_linkonce" >&6; }
23934
23935 cat >>confdefs.h <<_ACEOF
23936 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23937 _ACEOF
23938
23939 ;;
23940 esac
23941
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23943 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23944 if test "${gcc_cv_as_discriminator+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23946 else
23947 gcc_cv_as_discriminator=no
23948 if test $in_tree_gas = yes; then
23949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23950 then gcc_cv_as_discriminator=yes
23951 fi
23952 elif test x$gcc_cv_as != x; then
23953 $as_echo ' .text
23954 .file 1 "conf.c"
23955 .loc 1 1 0 discriminator 1' > conftest.s
23956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961 test $ac_status = 0; }; }
23962 then
23963 gcc_cv_as_discriminator=yes
23964 else
23965 echo "configure: failed program was" >&5
23966 cat conftest.s >&5
23967 fi
23968 rm -f conftest.o conftest.s
23969 fi
23970 fi
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23972 $as_echo "$gcc_cv_as_discriminator" >&6; }
23973 if test $gcc_cv_as_discriminator = yes; then
23974
23975 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23976
23977 fi
23978
23979
23980 # Thread-local storage - the check is heavily parameterized.
23981 conftest_s=
23982 tls_first_major=
23983 tls_first_minor=
23984 tls_as_opt=
23985 case "$target" in
23986 alpha*-*-*)
23987 conftest_s='
23988 .section ".tdata","awT",@progbits
23989 foo: .long 25
23990 .text
23991 ldq $27,__tls_get_addr($29) !literal!1
23992 lda $16,foo($29) !tlsgd!1
23993 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23994 ldq $27,__tls_get_addr($29) !literal!2
23995 lda $16,foo($29) !tlsldm!2
23996 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23997 ldq $1,foo($29) !gotdtprel
23998 ldah $2,foo($29) !dtprelhi
23999 lda $3,foo($2) !dtprello
24000 lda $4,foo($29) !dtprel
24001 ldq $1,foo($29) !gottprel
24002 ldah $2,foo($29) !tprelhi
24003 lda $3,foo($2) !tprello
24004 lda $4,foo($29) !tprel'
24005 tls_first_major=2
24006 tls_first_minor=13
24007 tls_as_opt=--fatal-warnings
24008 ;;
24009 arc*-*-*)
24010 conftest_s='
24011 add_s r0,r0, @foo@tpoff'
24012 tls_first_major=2
24013 tls_first_minor=23
24014 ;;
24015 cris-*-*|crisv32-*-*)
24016 conftest_s='
24017 .section ".tdata","awT",@progbits
24018 x: .long 25
24019 .text
24020 move.d x:IE,$r10
24021 nop'
24022 tls_first_major=2
24023 tls_first_minor=20
24024 tls_as_opt=--fatal-warnings
24025 ;;
24026 frv*-*-*)
24027 conftest_s='
24028 .section ".tdata","awT",@progbits
24029 x: .long 25
24030 .text
24031 call #gettlsoff(x)'
24032 tls_first_major=2
24033 tls_first_minor=14
24034 ;;
24035 hppa*-*-linux*)
24036 conftest_s='
24037 t1: .reg %r20
24038 t2: .reg %r21
24039 gp: .reg %r19
24040 .section ".tdata","awT",@progbits
24041 foo: .long 25
24042 .text
24043 .align 4
24044 addil LT%foo-$tls_gdidx$,gp
24045 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24046 b __tls_get_addr
24047 nop
24048 addil LT%foo-$tls_ldidx$,gp
24049 b __tls_get_addr
24050 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24051 addil LR%foo-$tls_dtpoff$,%ret0
24052 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24053 mfctl %cr27,%t1
24054 addil LT%foo-$tls_ieoff$,gp
24055 ldw RT%foo-$tls_ieoff$(%r1),%t2
24056 add %t1,%t2,%t3
24057 mfctl %cr27,%t1
24058 addil LR%foo-$tls_leoff$,%t1
24059 ldo RR%foo-$tls_leoff$(%r1),%t2'
24060 tls_first_major=2
24061 tls_first_minor=15
24062 tls_as_opt=--fatal-warnings
24063 ;;
24064 arm*-*-*)
24065 conftest_s='
24066 .section ".tdata","awT",%progbits
24067 foo: .long 25
24068 .text
24069 .word foo(gottpoff)
24070 .word foo(tpoff)
24071 .word foo(tlsgd)
24072 .word foo(tlsldm)
24073 .word foo(tlsldo)'
24074 tls_first_major=2
24075 tls_first_minor=17
24076 ;;
24077 i[34567]86-*-* | x86_64-*-*)
24078 case "$target" in
24079 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24080 on_solaris=yes
24081 ;;
24082 *)
24083 on_solaris=no
24084 ;;
24085 esac
24086 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24087 conftest_s='
24088 .section .tdata,"awt",@progbits'
24089 tls_first_major=0
24090 tls_first_minor=0
24091 tls_section_flag=t
24092
24093 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24094
24095 else
24096 conftest_s='
24097 .section ".tdata","awT",@progbits'
24098 tls_first_major=2
24099 tls_first_minor=14
24100 tls_section_flag=T
24101 tls_as_opt="--fatal-warnings"
24102 fi
24103 case "$target" in
24104 i[34567]86-*-*)
24105 conftest_s="$conftest_s
24106 foo: .long 25
24107 .text
24108 movl %gs:0, %eax
24109 leal foo@tlsgd(,%ebx,1), %eax
24110 leal foo@tlsldm(%ebx), %eax
24111 leal foo@dtpoff(%eax), %edx
24112 movl foo@gottpoff(%ebx), %eax
24113 subl foo@gottpoff(%ebx), %eax
24114 addl foo@gotntpoff(%ebx), %eax
24115 movl foo@indntpoff, %eax
24116 movl \$foo@tpoff, %eax
24117 subl \$foo@tpoff, %eax
24118 leal foo@ntpoff(%ecx), %eax"
24119 ;;
24120 x86_64-*-*)
24121 if test x$on_solaris = xyes; then
24122 case $gas_flag in
24123 yes) tls_as_opt="$tls_as_opt --64" ;;
24124 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24125 esac
24126 fi
24127 conftest_s="$conftest_s
24128 foo: .long 25
24129 .text
24130 movq %fs:0, %rax
24131 leaq foo@tlsgd(%rip), %rdi
24132 leaq foo@tlsld(%rip), %rdi
24133 leaq foo@dtpoff(%rax), %rdx
24134 movq foo@gottpoff(%rip), %rax
24135 movq \$foo@tpoff, %rax"
24136 ;;
24137 esac
24138 ;;
24139 ia64-*-*)
24140 conftest_s='
24141 .section ".tdata","awT",@progbits
24142 foo: data8 25
24143 .text
24144 addl r16 = @ltoff(@dtpmod(foo#)), gp
24145 addl r17 = @ltoff(@dtprel(foo#)), gp
24146 addl r18 = @ltoff(@tprel(foo#)), gp
24147 addl r19 = @dtprel(foo#), gp
24148 adds r21 = @dtprel(foo#), r13
24149 movl r23 = @dtprel(foo#)
24150 addl r20 = @tprel(foo#), gp
24151 adds r22 = @tprel(foo#), r13
24152 movl r24 = @tprel(foo#)'
24153 tls_first_major=2
24154 tls_first_minor=13
24155 tls_as_opt=--fatal-warnings
24156 ;;
24157 microblaze*-*-*)
24158 conftest_s='
24159 .section .tdata,"awT",@progbits
24160 x:
24161 .word 2
24162 .text
24163 addik r5,r20,x@TLSGD
24164 addik r5,r20,x@TLSLDM'
24165 tls_first_major=2
24166 tls_first_minor=20
24167 tls_as_opt='--fatal-warnings'
24168 ;;
24169 mips*-*-*)
24170 conftest_s='
24171 .section .tdata,"awT",@progbits
24172 x:
24173 .word 2
24174 .text
24175 addiu $4, $28, %tlsgd(x)
24176 addiu $4, $28, %tlsldm(x)
24177 lui $4, %dtprel_hi(x)
24178 addiu $4, $4, %dtprel_lo(x)
24179 lw $4, %gottprel(x)($28)
24180 lui $4, %tprel_hi(x)
24181 addiu $4, $4, %tprel_lo(x)'
24182 tls_first_major=2
24183 tls_first_minor=16
24184 tls_as_opt='-32 --fatal-warnings'
24185 ;;
24186 m68k-*-*)
24187 conftest_s='
24188 .section .tdata,"awT",@progbits
24189 x:
24190 .word 2
24191 .text
24192 foo:
24193 move.l x@TLSGD(%a5),%a0
24194 move.l x@TLSLDM(%a5),%a0
24195 move.l x@TLSLDO(%a5),%a0
24196 move.l x@TLSIE(%a5),%a0
24197 move.l x@TLSLE(%a5),%a0'
24198 tls_first_major=2
24199 tls_first_minor=19
24200 tls_as_opt='--fatal-warnings'
24201 ;;
24202 nios2-*-*)
24203 conftest_s='
24204 .section ".tdata","awT",@progbits'
24205 tls_first_major=2
24206 tls_first_minor=23
24207 tls_as_opt="--fatal-warnings"
24208 ;;
24209 aarch64*-*-*)
24210 conftest_s='
24211 .section ".tdata","awT",%progbits
24212 foo: .long 25
24213 .text
24214 adrp x0, :tlsgd:x
24215 add x0, x0, #:tlsgd_lo12:x
24216 bl __tls_get_addr
24217 nop'
24218 tls_first_major=2
24219 tls_first_minor=20
24220 tls_as_opt='--fatal-warnings'
24221 ;;
24222 powerpc-ibm-aix*)
24223 conftest_s='
24224 .extern __get_tpointer
24225 .toc
24226 LC..1:
24227 .tc a[TC],a[TL]@le
24228 .csect .text[PR]
24229 .tlstest:
24230 lwz 9,LC..1(2)
24231 bla __get_tpointer
24232 lwzx 3,9,3
24233 .globl a
24234 .csect a[TL],4
24235 a:
24236 .space 4'
24237 tls_first_major=0
24238 tls_first_minor=0
24239 ;;
24240 powerpc64*-*-*)
24241 conftest_s='
24242 .section ".tdata","awT",@progbits
24243 .align 3
24244 ld0: .space 8
24245 ld1: .space 8
24246 x1: .space 8
24247 x2: .space 8
24248 x3: .space 8
24249 .text
24250 addi 3,2,ld0@got@tlsgd
24251 bl .__tls_get_addr
24252 nop
24253 addi 3,2,ld1@toc
24254 bl .__tls_get_addr
24255 nop
24256 addi 3,2,x1@got@tlsld
24257 bl .__tls_get_addr
24258 nop
24259 addi 9,3,x1@dtprel
24260 bl .__tls_get_addr
24261 nop
24262 addis 9,3,x2@dtprel@ha
24263 addi 9,9,x2@dtprel@l
24264 bl .__tls_get_addr
24265 nop
24266 ld 9,x3@got@dtprel(2)
24267 add 9,9,3
24268 bl .__tls_get_addr
24269 nop'
24270 tls_first_major=2
24271 tls_first_minor=14
24272 tls_as_opt="-a64 --fatal-warnings"
24273 ;;
24274 powerpc*-*-*)
24275 conftest_s='
24276 .section ".tdata","awT",@progbits
24277 .align 2
24278 ld0: .space 4
24279 ld1: .space 4
24280 x1: .space 4
24281 x2: .space 4
24282 x3: .space 4
24283 .text
24284 addi 3,31,ld0@got@tlsgd
24285 bl __tls_get_addr
24286 addi 3,31,x1@got@tlsld
24287 bl __tls_get_addr
24288 addi 9,3,x1@dtprel
24289 addis 9,3,x2@dtprel@ha
24290 addi 9,9,x2@dtprel@l
24291 lwz 9,x3@got@tprel(31)
24292 add 9,9,x@tls
24293 addi 9,2,x1@tprel
24294 addis 9,2,x2@tprel@ha
24295 addi 9,9,x2@tprel@l'
24296 tls_first_major=2
24297 tls_first_minor=14
24298 tls_as_opt="-a32 --fatal-warnings"
24299 ;;
24300 riscv*-*-*)
24301 conftest_s='
24302 .section .tdata,"awT",@progbits
24303 x: .word 2
24304 .text
24305 la.tls.gd a0,x
24306 call __tls_get_addr'
24307 tls_first_major=2
24308 tls_first_minor=21
24309 tls_as_opt='--fatal-warnings'
24310 ;;
24311 s390-*-*)
24312 conftest_s='
24313 .section ".tdata","awT",@progbits
24314 foo: .long 25
24315 .text
24316 .long foo@TLSGD
24317 .long foo@TLSLDM
24318 .long foo@DTPOFF
24319 .long foo@NTPOFF
24320 .long foo@GOTNTPOFF
24321 .long foo@INDNTPOFF
24322 l %r1,foo@GOTNTPOFF(%r12)
24323 l %r1,0(%r1):tls_load:foo
24324 bas %r14,0(%r1,%r13):tls_gdcall:foo
24325 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24326 tls_first_major=2
24327 tls_first_minor=14
24328 tls_as_opt="-m31 --fatal-warnings"
24329 ;;
24330 s390x-*-*)
24331 conftest_s='
24332 .section ".tdata","awT",@progbits
24333 foo: .long 25
24334 .text
24335 .quad foo@TLSGD
24336 .quad foo@TLSLDM
24337 .quad foo@DTPOFF
24338 .quad foo@NTPOFF
24339 .quad foo@GOTNTPOFF
24340 lg %r1,foo@GOTNTPOFF(%r12)
24341 larl %r1,foo@INDNTPOFF
24342 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24343 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24344 tls_first_major=2
24345 tls_first_minor=14
24346 tls_as_opt="-m64 -Aesame --fatal-warnings"
24347 ;;
24348 sh-*-* | sh[123456789lbe]*-*-*)
24349 conftest_s='
24350 .section ".tdata","awT",@progbits
24351 foo: .long 25
24352 .text
24353 .long foo@TLSGD
24354 .long foo@TLSLDM
24355 .long foo@DTPOFF
24356 .long foo@GOTTPOFF
24357 .long foo@TPOFF'
24358 tls_first_major=2
24359 tls_first_minor=13
24360 tls_as_opt=--fatal-warnings
24361 ;;
24362 sparc*-*-*)
24363 case "$target" in
24364 sparc*-sun-solaris2.*)
24365 on_solaris=yes
24366 ;;
24367 *)
24368 on_solaris=no
24369 ;;
24370 esac
24371 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24372 conftest_s='
24373 .section ".tdata",#alloc,#write,#tls'
24374 tls_first_major=0
24375 tls_first_minor=0
24376 else
24377 conftest_s='
24378 .section ".tdata","awT",@progbits'
24379 tls_first_major=2
24380 tls_first_minor=14
24381 tls_as_opt="-32 --fatal-warnings"
24382 fi
24383 conftest_s="$conftest_s
24384 foo: .long 25
24385 .text
24386 sethi %tgd_hi22(foo), %o0
24387 add %o0, %tgd_lo10(foo), %o1
24388 add %l7, %o1, %o0, %tgd_add(foo)
24389 call __tls_get_addr, %tgd_call(foo)
24390 sethi %tldm_hi22(foo), %l1
24391 add %l1, %tldm_lo10(foo), %l2
24392 add %l7, %l2, %o0, %tldm_add(foo)
24393 call __tls_get_addr, %tldm_call(foo)
24394 sethi %tldo_hix22(foo), %l3
24395 xor %l3, %tldo_lox10(foo), %l4
24396 add %o0, %l4, %l5, %tldo_add(foo)
24397 sethi %tie_hi22(foo), %o3
24398 add %o3, %tie_lo10(foo), %o3
24399 ld [%l7 + %o3], %o2, %tie_ld(foo)
24400 add %g7, %o2, %o4, %tie_add(foo)
24401 sethi %tle_hix22(foo), %l1
24402 xor %l1, %tle_lox10(foo), %o5
24403 ld [%g7 + %o5], %o1"
24404 ;;
24405 tilepro*-*-*)
24406 conftest_s='
24407 .section ".tdata","awT",@progbits
24408 foo: .long 25
24409 .text
24410 addli r0, zero, tls_gd(foo)
24411 auli r0, zero, tls_gd_ha16(foo)
24412 addli r0, r0, tls_gd_lo16(foo)
24413 jal __tls_get_addr
24414 addli r0, zero, tls_ie(foo)
24415 auli r0, r0, tls_ie_ha16(foo)
24416 addli r0, r0, tls_ie_lo16(foo)'
24417 tls_first_major=2
24418 tls_first_minor=22
24419 tls_as_opt="--fatal-warnings"
24420 ;;
24421 tilegx*-*-*)
24422 conftest_s='
24423 .section ".tdata","awT",@progbits
24424 foo: .long 25
24425 .text
24426 shl16insli r0, zero, hw0_last_tls_gd(foo)
24427 shl16insli r0, zero, hw1_last_tls_gd(foo)
24428 shl16insli r0, r0, hw0_tls_gd(foo)
24429 jal __tls_get_addr
24430 shl16insli r0, zero, hw1_last_tls_ie(foo)
24431 shl16insli r0, r0, hw0_tls_ie(foo)'
24432 tls_first_major=2
24433 tls_first_minor=22
24434 tls_as_opt="--fatal-warnings"
24435 ;;
24436 xtensa*-*-*)
24437 conftest_s='
24438 .section ".tdata","awT",@progbits
24439 foo: .long 25
24440 .text
24441 movi a8, foo@TLSFUNC
24442 movi a10, foo@TLSARG
24443 callx8.tls a8, foo@TLSCALL'
24444 tls_first_major=2
24445 tls_first_minor=19
24446 ;;
24447 esac
24448 set_have_as_tls=no
24449 if test "x$enable_tls" = xno ; then
24450 : # TLS explicitly disabled.
24451 elif test "x$enable_tls" = xyes ; then
24452 set_have_as_tls=yes # TLS explicitly enabled.
24453 elif test -z "$tls_first_major"; then
24454 : # If we don't have a check, assume no support.
24455 else
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24457 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24458 if test "${gcc_cv_as_tls+set}" = set; then :
24459 $as_echo_n "(cached) " >&6
24460 else
24461 gcc_cv_as_tls=no
24462 if test $in_tree_gas = yes; then
24463 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24464 then gcc_cv_as_tls=yes
24465 fi
24466 elif test x$gcc_cv_as != x; then
24467 $as_echo "$conftest_s" > conftest.s
24468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; }
24474 then
24475 gcc_cv_as_tls=yes
24476 else
24477 echo "configure: failed program was" >&5
24478 cat conftest.s >&5
24479 fi
24480 rm -f conftest.o conftest.s
24481 fi
24482 fi
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24484 $as_echo "$gcc_cv_as_tls" >&6; }
24485 if test $gcc_cv_as_tls = yes; then
24486 set_have_as_tls=yes
24487 fi
24488
24489 fi
24490 if test $set_have_as_tls = yes ; then
24491
24492 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24493
24494 fi
24495
24496 # Target-specific assembler checks.
24497
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24499 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24500 gcc_cv_ld_static_dynamic=no
24501 gcc_cv_ld_static_option='-Bstatic'
24502 gcc_cv_ld_dynamic_option='-Bdynamic'
24503 if test $in_tree_ld = yes ; then
24504 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
24505 gcc_cv_ld_static_dynamic=yes
24506 fi
24507 elif test x$gcc_cv_ld != x; then
24508 # Check if linker supports -Bstatic/-Bdynamic option
24509 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24510 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24511 gcc_cv_ld_static_dynamic=yes
24512 else
24513 case "$target" in
24514 # AIX ld uses -b flags
24515 *-*-aix4.[23]* | *-*-aix[5-9]*)
24516 gcc_cv_ld_static_dynamic=yes
24517 gcc_cv_ld_static_option="-bstatic"
24518 gcc_cv_ld_dynamic_option="-bdynamic"
24519 ;;
24520 # HP-UX ld uses -a flags to select between shared and archive.
24521 *-*-hpux*)
24522 if test x"$gnu_ld" = xno; then
24523 gcc_cv_ld_static_dynamic=yes
24524 gcc_cv_ld_static_option="-aarchive_shared"
24525 gcc_cv_ld_dynamic_option="-adefault"
24526 fi
24527 ;;
24528 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24529 *-*-solaris2*)
24530 gcc_cv_ld_static_dynamic=yes
24531 ;;
24532 esac
24533 fi
24534 fi
24535 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24536
24537 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24538
24539
24540 cat >>confdefs.h <<_ACEOF
24541 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24542 _ACEOF
24543
24544
24545 cat >>confdefs.h <<_ACEOF
24546 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24547 _ACEOF
24548
24549 fi
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24551 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24552
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24554 $as_echo_n "checking linker --version-script option... " >&6; }
24555 gcc_cv_ld_version_script=no
24556 ld_version_script_option=''
24557 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24558 gcc_cv_ld_version_script=yes
24559 ld_version_script_option='--version-script'
24560 elif test x$gcc_cv_ld != x; then
24561 case "$target" in
24562 # Solaris 2 ld always supports -M. It also supports a subset of
24563 # --version-script since Solaris 11.4, but requires
24564 # -z gnu-version-script-compat to activate.
24565 *-*-solaris2*)
24566 gcc_cv_ld_version_script=yes
24567 ld_version_script_option='-M'
24568 ;;
24569 esac
24570 fi
24571 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24573 $as_echo "$gcc_cv_ld_version_script" >&6; }
24574
24575
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24577 $as_echo_n "checking linker soname option... " >&6; }
24578 gcc_cv_ld_soname=no
24579 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24580 gcc_cv_ld_soname=yes
24581 ld_soname_option='-soname'
24582 elif test x$gcc_cv_ld != x; then
24583 case "$target" in
24584 *-*-darwin*)
24585 gcc_cv_ld_soname=yes
24586 ld_soname_option='-install_name'
24587 ;;
24588 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24589 # ld compatiblity since some Solaris 10 update.
24590 *-*-solaris2*)
24591 gcc_cv_ld_soname=yes
24592 ld_soname_option='-h'
24593 ;;
24594 esac
24595 fi
24596 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24598 $as_echo "$gcc_cv_ld_soname" >&6; }
24599
24600
24601 if test x"$demangler_in_ld" = xyes; then
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24603 $as_echo_n "checking linker --demangle support... " >&6; }
24604 gcc_cv_ld_demangle=no
24605 if test $in_tree_ld = yes; then
24606 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 \
24607 gcc_cv_ld_demangle=yes
24608 fi
24609 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24610 # Check if the GNU linker supports --demangle option
24611 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24612 gcc_cv_ld_demangle=yes
24613 fi
24614 fi
24615 if test x"$gcc_cv_ld_demangle" = xyes; then
24616
24617 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24618
24619 fi
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24621 $as_echo "$gcc_cv_ld_demangle" >&6; }
24622 fi
24623
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24625 $as_echo_n "checking linker plugin support... " >&6; }
24626 gcc_cv_lto_plugin=0
24627 if test -f liblto_plugin.la; then
24628 save_ld_ver="$ld_ver"
24629 save_ld_vers_major="$ld_vers_major"
24630 save_ld_vers_minor="$ld_vers_minor"
24631 save_ld_is_gold="$ld_is_gold"
24632
24633 ld_is_gold=no
24634
24635 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24636 ld_ver="GNU ld"
24637 # FIXME: ld_is_gold?
24638 ld_vers_major="$gcc_cv_gld_major_version"
24639 ld_vers_minor="$gcc_cv_gld_minor_version"
24640 else
24641 # Determine plugin linker version.
24642 # FIXME: Partial duplicate from above, generalize.
24643 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24644 if echo "$ld_ver" | grep GNU > /dev/null; then
24645 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24646 ld_is_gold=yes
24647 ld_vers=`echo $ld_ver | sed -n \
24648 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24649 else
24650 ld_vers=`echo $ld_ver | sed -n \
24651 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24652 fi
24653 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24654 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24655 fi
24656 fi
24657
24658 # Determine plugin support.
24659 if echo "$ld_ver" | grep GNU > /dev/null; then
24660 # Require GNU ld or gold 2.21+ for plugin support by default.
24661 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24662 gcc_cv_lto_plugin=2
24663 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24664 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24665 gcc_cv_lto_plugin=1
24666 fi
24667 fi
24668
24669 ld_ver="$save_ld_ver"
24670 ld_vers_major="$save_ld_vers_major"
24671 ld_vers_minor="$save_ld_vers_minor"
24672 ld_is_gold="$save_ld_is_gold"
24673 fi
24674
24675 cat >>confdefs.h <<_ACEOF
24676 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24677 _ACEOF
24678
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24680 $as_echo "$gcc_cv_lto_plugin" >&6; }
24681
24682 # Target OS-specific assembler checks.
24683
24684 case "$target_os" in
24685 darwin*)
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24687 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24688 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690 else
24691 gcc_cv_as_mmacosx_version_min=no
24692 if test x$gcc_cv_as != x; then
24693 $as_echo '.text' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24700 then
24701 gcc_cv_as_mmacosx_version_min=yes
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24705 fi
24706 rm -f conftest.o conftest.s
24707 fi
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24710 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24711 if test $gcc_cv_as_mmacosx_version_min = yes; then
24712
24713 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24714
24715 fi
24716
24717 ;;
24718 esac
24719
24720 # Target CPU-specific assembler checks.
24721
24722 case "$target" in
24723 aarch64*-*-*)
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24725 $as_echo_n "checking assembler for -mabi option... " >&6; }
24726 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24727 $as_echo_n "(cached) " >&6
24728 else
24729 gcc_cv_as_aarch64_mabi=no
24730 if test x$gcc_cv_as != x; then
24731 $as_echo '.text' > conftest.s
24732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24737 test $ac_status = 0; }; }
24738 then
24739 gcc_cv_as_aarch64_mabi=yes
24740 else
24741 echo "configure: failed program was" >&5
24742 cat conftest.s >&5
24743 fi
24744 rm -f conftest.o conftest.s
24745 fi
24746 fi
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24748 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24749
24750
24751 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24752
24753 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24754
24755 else
24756 if test x$with_abi = xilp32; then
24757 as_fn_error "Assembler does not support -mabi=ilp32.\
24758 Upgrade the Assembler." "$LINENO" 5
24759 fi
24760 if test x"$with_multilib_list" = xdefault; then
24761 TM_MULTILIB_CONFIG=lp64
24762 else
24763 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24764 for aarch64_multilib in ${aarch64_multilibs}; do
24765 case ${aarch64_multilib} in
24766 ilp32)
24767 as_fn_error "Assembler does not support -mabi=ilp32.\
24768 Upgrade the Assembler." "$LINENO" 5
24769 ;;
24770 *)
24771 ;;
24772 esac
24773 done
24774 fi
24775 fi
24776 # Check if we have binutils support for relocations types needed by -fpic
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24778 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24779 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24780 $as_echo_n "(cached) " >&6
24781 else
24782 gcc_cv_as_aarch64_picreloc=no
24783 if test x$gcc_cv_as != x; then
24784 $as_echo '
24785 .text
24786 ldr x0, [x2, #:gotpage_lo15:globalsym]
24787 ' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24794 then
24795 gcc_cv_as_aarch64_picreloc=yes
24796 else
24797 echo "configure: failed program was" >&5
24798 cat conftest.s >&5
24799 fi
24800 rm -f conftest.o conftest.s
24801 fi
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24804 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24805 if test $gcc_cv_as_aarch64_picreloc = yes; then
24806
24807 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24808
24809 fi
24810
24811 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24812 # Check whether --enable-fix-cortex-a53-835769 was given.
24813 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24814 enableval=$enable_fix_cortex_a53_835769;
24815 case $enableval in
24816 yes)
24817 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24818 ;;
24819 no)
24820 ;;
24821 *)
24822 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24823 Valid choices are 'yes' and 'no'." "$LINENO" 5
24824 ;;
24825
24826 esac
24827
24828 fi
24829
24830 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24831 # Check whether --enable-fix-cortex-a53-843419 was given.
24832 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24833 enableval=$enable_fix_cortex_a53_843419;
24834 case $enableval in
24835 yes)
24836 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24837 ;;
24838 no)
24839 ;;
24840 *)
24841 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24842 Valid choices are 'yes' and 'no'." "$LINENO" 5
24843 ;;
24844
24845 esac
24846
24847 fi
24848
24849 ;;
24850
24851 # All TARGET_ABI_OSF targets.
24852 alpha*-*-linux* | alpha*-*-*bsd*)
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24854 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24855 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_alpha_explicit_relocs=no
24859 if test $in_tree_gas = yes; then
24860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24861 then gcc_cv_as_alpha_explicit_relocs=yes
24862 fi
24863 elif test x$gcc_cv_as != x; then
24864 $as_echo ' .set nomacro
24865 .text
24866 extbl $3, $2, $3 !lituse_bytoff!1
24867 ldq $2, a($29) !literal!1
24868 ldq $4, b($29) !literal!2
24869 ldq_u $3, 0($2) !lituse_base!1
24870 ldq $27, f($29) !literal!5
24871 jsr $26, ($27), f !lituse_jsr!5
24872 ldah $29, 0($26) !gpdisp!3
24873 lda $0, c($29) !gprel
24874 ldah $1, d($29) !gprelhigh
24875 lda $1, d($1) !gprellow
24876 lda $29, 0($29) !gpdisp!3' > conftest.s
24877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24883 then
24884 gcc_cv_as_alpha_explicit_relocs=yes
24885 else
24886 echo "configure: failed program was" >&5
24887 cat conftest.s >&5
24888 fi
24889 rm -f conftest.o conftest.s
24890 fi
24891 fi
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24893 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24894 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24895
24896 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24897
24898 fi
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24901 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24902 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 gcc_cv_as_alpha_jsrdirect_relocs=no
24906 if test $in_tree_gas = yes; then
24907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24908 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24909 fi
24910 elif test x$gcc_cv_as != x; then
24911 $as_echo ' .set nomacro
24912 .text
24913 ldq $27, a($29) !literal!1
24914 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 then
24922 gcc_cv_as_alpha_jsrdirect_relocs=yes
24923 else
24924 echo "configure: failed program was" >&5
24925 cat conftest.s >&5
24926 fi
24927 rm -f conftest.o conftest.s
24928 fi
24929 fi
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24931 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24932 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24933
24934 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24935
24936 fi
24937
24938 ;;
24939
24940 avr-*-*)
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24942 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24943 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 gcc_cv_as_avr_mlink_relax=no
24947 if test x$gcc_cv_as != x; then
24948 $as_echo '.text' > conftest.s
24949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24954 test $ac_status = 0; }; }
24955 then
24956 gcc_cv_as_avr_mlink_relax=yes
24957 else
24958 echo "configure: failed program was" >&5
24959 cat conftest.s >&5
24960 fi
24961 rm -f conftest.o conftest.s
24962 fi
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24965 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24966 if test $gcc_cv_as_avr_mlink_relax = yes; then
24967
24968 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24969
24970 fi
24971
24972
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24974 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24975 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_avr_mrmw=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo '.text' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -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_avr_mrmw=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_avr_mrmw" >&5
24997 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24998 if test $gcc_cv_as_avr_mrmw = yes; then
24999
25000 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25001
25002 fi
25003
25004
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25006 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25007 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25008 $as_echo_n "(cached) " >&6
25009 else
25010 gcc_cv_as_avr_mgccisr=no
25011 if test x$gcc_cv_as != x; then
25012 $as_echo '.text
25013 __gcc_isr 1
25014 __gcc_isr 2
25015 __gcc_isr 0,r24
25016 ' > conftest.s
25017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25023 then
25024 gcc_cv_as_avr_mgccisr=yes
25025 else
25026 echo "configure: failed program was" >&5
25027 cat conftest.s >&5
25028 fi
25029 rm -f conftest.o conftest.s
25030 fi
25031 fi
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25033 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25034 if test $gcc_cv_as_avr_mgccisr = yes; then
25035
25036 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25037
25038 fi
25039
25040
25041 # Check how default linker description file implements .rodata for
25042 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25043 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25045 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25046 cat > conftest.s <<EOF
25047 .section .rodata,"a",@progbits
25048 .global xxvaryy
25049 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25050 xxvaryy:
25051 .word 1
25052 EOF
25053 rm -f conftest.nm
25054 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25060 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25066 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25072 if test -s conftest.nm
25073 then
25074 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25076 $as_echo "yes" >&6; }
25077
25078 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25079
25080 else
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25082 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25083 echo "$as_me: nm output was" >&5
25084 cat conftest.nm >&5
25085 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25087 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25088 fi
25089 else
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25091 $as_echo "test failed" >&6; }
25092 echo "$as_me: failed program was" >&5
25093 cat conftest.s >&5
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25095 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25096 fi
25097 rm -f conftest.s conftest.o conftest.elf conftest.nm
25098 ;;
25099
25100 cris-*-*)
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25102 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25103 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_cris_no_mul_bug=no
25107 if test $in_tree_gas = yes; then
25108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25109 then gcc_cv_as_cris_no_mul_bug=yes
25110 fi
25111 elif test x$gcc_cv_as != x; then
25112 $as_echo '.text' > conftest.s
25113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118 test $ac_status = 0; }; }
25119 then
25120 gcc_cv_as_cris_no_mul_bug=yes
25121 else
25122 echo "configure: failed program was" >&5
25123 cat conftest.s >&5
25124 fi
25125 rm -f conftest.o conftest.s
25126 fi
25127 fi
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25129 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25130 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25131
25132 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25133
25134 fi
25135
25136 ;;
25137
25138 sparc*-*-*)
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25140 $as_echo_n "checking assembler for .register... " >&6; }
25141 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25142 $as_echo_n "(cached) " >&6
25143 else
25144 gcc_cv_as_sparc_register_op=no
25145 if test x$gcc_cv_as != x; then
25146 $as_echo '.register %g2, #scratch' > conftest.s
25147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152 test $ac_status = 0; }; }
25153 then
25154 gcc_cv_as_sparc_register_op=yes
25155 else
25156 echo "configure: failed program was" >&5
25157 cat conftest.s >&5
25158 fi
25159 rm -f conftest.o conftest.s
25160 fi
25161 fi
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25163 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25164 if test $gcc_cv_as_sparc_register_op = yes; then
25165
25166 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25167
25168 fi
25169
25170
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25172 $as_echo_n "checking assembler for -relax option... " >&6; }
25173 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 gcc_cv_as_sparc_relax=no
25177 if test x$gcc_cv_as != x; then
25178 $as_echo '.text' > conftest.s
25179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25182 ac_status=$?
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25185 then
25186 gcc_cv_as_sparc_relax=yes
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25190 fi
25191 rm -f conftest.o conftest.s
25192 fi
25193 fi
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25195 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25196 if test $gcc_cv_as_sparc_relax = yes; then
25197
25198 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25199
25200 fi
25201
25202
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25204 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25205 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25207 else
25208 gcc_cv_as_sparc_gotdata_op=no
25209 if test x$gcc_cv_as != x; then
25210 $as_echo '.text
25211 .align 4
25212 foo:
25213 nop
25214 bar:
25215 sethi %gdop_hix22(foo), %g1
25216 xor %g1, %gdop_lox10(foo), %g1
25217 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25224 then
25225 if test x$gcc_cv_ld != x \
25226 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25227 if test x$gcc_cv_objdump != x; then
25228 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25229 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25230 gcc_cv_as_sparc_gotdata_op=no
25231 else
25232 gcc_cv_as_sparc_gotdata_op=yes
25233 fi
25234 fi
25235 fi
25236 rm -f conftest
25237 else
25238 echo "configure: failed program was" >&5
25239 cat conftest.s >&5
25240 fi
25241 rm -f conftest.o conftest.s
25242 fi
25243 fi
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25245 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25246 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25247
25248 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25249
25250 fi
25251
25252
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25254 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25255 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_sparc_ua_pcrel=no
25259 if test x$gcc_cv_as != x; then
25260 $as_echo '.text
25261 foo:
25262 nop
25263 .data
25264 .align 4
25265 .byte 0
25266 .uaword %r_disp32(foo)' > conftest.s
25267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25272 test $ac_status = 0; }; }
25273 then
25274 if test x$gcc_cv_ld != x \
25275 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25276 gcc_cv_as_sparc_ua_pcrel=yes
25277 fi
25278 rm -f conftest
25279 else
25280 echo "configure: failed program was" >&5
25281 cat conftest.s >&5
25282 fi
25283 rm -f conftest.o conftest.s
25284 fi
25285 fi
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25287 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25288 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25289
25290 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25291
25292
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25294 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25295 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25296 $as_echo_n "(cached) " >&6
25297 else
25298 gcc_cv_as_sparc_ua_pcrel_hidden=no
25299 if test x$gcc_cv_as != x; then
25300 $as_echo '.data
25301 .align 4
25302 .byte 0x31
25303 .uaword %r_disp32(foo)
25304 .byte 0x32, 0x33, 0x34
25305 .global foo
25306 .hidden foo
25307 foo:
25308 .skip 4' > conftest.s
25309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25315 then
25316 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25317 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25318 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25319 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25320 if $gcc_cv_objdump -R conftest 2> /dev/null \
25321 | grep 'DISP32' > /dev/null 2>&1; then
25322 :
25323 else
25324 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25325 fi
25326 fi
25327 rm -f conftest
25328 else
25329 echo "configure: failed program was" >&5
25330 cat conftest.s >&5
25331 fi
25332 rm -f conftest.o conftest.s
25333 fi
25334 fi
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25336 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25337 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25338
25339 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25340
25341 fi
25342
25343
25344 fi
25345 # unaligned pcrel relocs
25346
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25348 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25349 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_sparc_offsetable_lo10=no
25353 if test x$gcc_cv_as != x; then
25354 $as_echo '.text
25355 or %g1, %lo(ab) + 12, %g1
25356 or %g1, %lo(ab + 12), %g1' > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 if test x$gcc_cv_objdump != x \
25365 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25366 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25367 gcc_cv_as_sparc_offsetable_lo10=yes
25368 fi
25369 else
25370 echo "configure: failed program was" >&5
25371 cat conftest.s >&5
25372 fi
25373 rm -f conftest.o conftest.s
25374 fi
25375 fi
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25377 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25378 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25379
25380 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25381
25382 fi
25383
25384
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25386 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25387 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25390 gcc_cv_as_sparc_fmaf=no
25391 if test x$gcc_cv_as != x; then
25392 $as_echo '.text
25393 .register %g2, #scratch
25394 .register %g3, #scratch
25395 .align 4
25396 fmaddd %f0, %f2, %f4, %f6
25397 addxccc %g1, %g2, %g3
25398 fsrl32 %f2, %f4, %f8
25399 fnaddd %f10, %f12, %f14' > conftest.s
25400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 then
25407 gcc_cv_as_sparc_fmaf=yes
25408 else
25409 echo "configure: failed program was" >&5
25410 cat conftest.s >&5
25411 fi
25412 rm -f conftest.o conftest.s
25413 fi
25414 fi
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25416 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25417 if test $gcc_cv_as_sparc_fmaf = yes; then
25418
25419 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25420
25421 fi
25422
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25425 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25426 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_sparc_sparc4=no
25430 if test x$gcc_cv_as != x; then
25431 $as_echo '.text
25432 .register %g2, #scratch
25433 .register %g3, #scratch
25434 .align 4
25435 cxbe %g2, %g3, 1f
25436 1: cwbneg %g2, %g3, 1f
25437 1: sha1
25438 md5
25439 aes_kexpand0 %f4, %f6, %f8
25440 des_round %f38, %f40, %f42, %f44
25441 camellia_f %f54, %f56, %f58, %f60
25442 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25448 test $ac_status = 0; }; }
25449 then
25450 gcc_cv_as_sparc_sparc4=yes
25451 else
25452 echo "configure: failed program was" >&5
25453 cat conftest.s >&5
25454 fi
25455 rm -f conftest.o conftest.s
25456 fi
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25459 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25460 if test $gcc_cv_as_sparc_sparc4 = yes; then
25461
25462 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25463
25464 fi
25465
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25468 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25469 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_sparc_sparc5=no
25473 if test x$gcc_cv_as != x; then
25474 $as_echo '.text
25475 .register %g2, #scratch
25476 .register %g3, #scratch
25477 .align 4
25478 subxc %g1, %g2, %g3
25479 fpadd8 %f0, %f2, %f4' > conftest.s
25480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482 (eval $ac_try) 2>&5
25483 ac_status=$?
25484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485 test $ac_status = 0; }; }
25486 then
25487 gcc_cv_as_sparc_sparc5=yes
25488 else
25489 echo "configure: failed program was" >&5
25490 cat conftest.s >&5
25491 fi
25492 rm -f conftest.o conftest.s
25493 fi
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25496 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25497 if test $gcc_cv_as_sparc_sparc5 = yes; then
25498
25499 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25500
25501 fi
25502
25503
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25505 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25506 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25507 $as_echo_n "(cached) " >&6
25508 else
25509 gcc_cv_as_sparc_sparc6=no
25510 if test x$gcc_cv_as != x; then
25511 $as_echo '.text
25512 .register %g2, #scratch
25513 .register %g3, #scratch
25514 .align 4
25515 rd %entropy, %g1
25516 fpsll64x %f0, %f2, %f4' > conftest.s
25517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522 test $ac_status = 0; }; }
25523 then
25524 gcc_cv_as_sparc_sparc6=yes
25525 else
25526 echo "configure: failed program was" >&5
25527 cat conftest.s >&5
25528 fi
25529 rm -f conftest.o conftest.s
25530 fi
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25533 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25534 if test $gcc_cv_as_sparc_sparc6 = yes; then
25535
25536 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25537
25538 fi
25539
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25542 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25543 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25544 $as_echo_n "(cached) " >&6
25545 else
25546 gcc_cv_as_sparc_leon=no
25547 if test x$gcc_cv_as != x; then
25548 $as_echo '.text
25549 .register %g2, #scratch
25550 .register %g3, #scratch
25551 .align 4
25552 smac %g2, %g3, %g1
25553 umac %g2, %g3, %g1
25554 casa [%g2] 0xb, %g3, %g1' > conftest.s
25555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 then
25562 gcc_cv_as_sparc_leon=yes
25563 else
25564 echo "configure: failed program was" >&5
25565 cat conftest.s >&5
25566 fi
25567 rm -f conftest.o conftest.s
25568 fi
25569 fi
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25571 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25572 if test $gcc_cv_as_sparc_leon = yes; then
25573
25574 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25575
25576 fi
25577
25578 ;;
25579
25580 i[34567]86-*-* | x86_64-*-*)
25581 case $target_os in
25582 cygwin*)
25583 # Full C++ conformance when using a shared libstdc++-v3 requires some
25584 # support from the Cygwin DLL, which in more recent versions exports
25585 # wrappers to aid in interposing and redirecting operators new, delete,
25586 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25587 # are configuring for a version of Cygwin that exports the wrappers.
25588 if test x$host = x$target && test x$host_cpu = xi686; then
25589 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25590 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25591 gcc_ac_cygwin_dll_wrappers=yes
25592 else
25593 gcc_ac_cygwin_dll_wrappers=no
25594 fi
25595
25596 else
25597 # Can't check presence of libc functions during cross-compile, so
25598 # we just have to assume we're building for an up-to-date target.
25599 gcc_ac_cygwin_dll_wrappers=yes
25600 fi
25601
25602 cat >>confdefs.h <<_ACEOF
25603 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25604 _ACEOF
25605
25606 esac
25607 case $target_os in
25608 cygwin* | pe | mingw32*)
25609 # Recent binutils allows the three-operand form of ".comm" on PE. This
25610 # definition is used unconditionally to initialise the default state of
25611 # the target option variable that governs usage of the feature.
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25613 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25614 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_comm_has_align=no
25618 if test $in_tree_gas = yes; then
25619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25620 then gcc_cv_as_comm_has_align=yes
25621 fi
25622 elif test x$gcc_cv_as != x; then
25623 $as_echo '.comm foo,1,32' > conftest.s
25624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25630 then
25631 gcc_cv_as_comm_has_align=yes
25632 else
25633 echo "configure: failed program was" >&5
25634 cat conftest.s >&5
25635 fi
25636 rm -f conftest.o conftest.s
25637 fi
25638 fi
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25640 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25641
25642
25643
25644 cat >>confdefs.h <<_ACEOF
25645 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25646 _ACEOF
25647
25648 # Used for DWARF 2 in PE
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25650 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25651 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 gcc_cv_as_ix86_pe_secrel32=no
25655 if test $in_tree_gas = yes; then
25656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25657 then gcc_cv_as_ix86_pe_secrel32=yes
25658 fi
25659 elif test x$gcc_cv_as != x; then
25660 $as_echo '.text
25661 foo: nop
25662 .data
25663 .secrel32 foo' > conftest.s
25664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25670 then
25671 if test x$gcc_cv_ld != x \
25672 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25673 gcc_cv_as_ix86_pe_secrel32=yes
25674 fi
25675 rm -f conftest
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25679 fi
25680 rm -f conftest.o conftest.s
25681 fi
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25684 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25685 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25686
25687 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25688
25689 fi
25690
25691 # Test if the assembler supports the extended form of the .section
25692 # directive that specifies section alignment. LTO support uses this,
25693 # but normally only after installation, so we warn but don't fail the
25694 # configure if LTO is enabled but the assembler does not support it.
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25696 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25697 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_section_has_align=no
25701 if test $in_tree_gas = yes; then
25702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25703 then gcc_cv_as_section_has_align=yes
25704 fi
25705 elif test x$gcc_cv_as != x; then
25706 $as_echo '.section lto_test,"dr0"' > conftest.s
25707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; }
25713 then
25714 gcc_cv_as_section_has_align=yes
25715 else
25716 echo "configure: failed program was" >&5
25717 cat conftest.s >&5
25718 fi
25719 rm -f conftest.o conftest.s
25720 fi
25721 fi
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25723 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25724
25725
25726 if test x$gcc_cv_as_section_has_align != xyes; then
25727 case ",$enable_languages," in
25728 *,lto,*)
25729 { $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
25730 $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;}
25731 ;;
25732 esac
25733 fi
25734 ;;
25735 esac
25736
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25738 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25739 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25740 $as_echo_n "(cached) " >&6
25741 else
25742 gcc_cv_as_ix86_xbrace_comment=no
25743 if test x$gcc_cv_as != x; then
25744 $as_echo '.text' > conftest.s
25745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25751 then
25752 gcc_cv_as_ix86_xbrace_comment=yes
25753 else
25754 echo "configure: failed program was" >&5
25755 cat conftest.s >&5
25756 fi
25757 rm -f conftest.o conftest.s
25758 fi
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25761 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25762 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25763
25764 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25765
25766 fi
25767
25768
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25770 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25771 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25772 $as_echo_n "(cached) " >&6
25773 else
25774 gcc_cv_as_ix86_filds=no
25775 if test x$gcc_cv_as != x; then
25776 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25782 test $ac_status = 0; }; }
25783 then
25784 gcc_cv_as_ix86_filds=yes
25785 else
25786 echo "configure: failed program was" >&5
25787 cat conftest.s >&5
25788 fi
25789 rm -f conftest.o conftest.s
25790 fi
25791 fi
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25793 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25794 if test $gcc_cv_as_ix86_filds = yes; then
25795
25796 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25797
25798 fi
25799
25800
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25802 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25803 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25805 else
25806 gcc_cv_as_ix86_fildq=no
25807 if test x$gcc_cv_as != x; then
25808 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25814 test $ac_status = 0; }; }
25815 then
25816 gcc_cv_as_ix86_fildq=yes
25817 else
25818 echo "configure: failed program was" >&5
25819 cat conftest.s >&5
25820 fi
25821 rm -f conftest.o conftest.s
25822 fi
25823 fi
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25825 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25826 if test $gcc_cv_as_ix86_fildq = yes; then
25827
25828 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25829
25830 fi
25831
25832
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25834 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25835 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25836 $as_echo_n "(cached) " >&6
25837 else
25838 gcc_cv_as_ix86_cmov_sun_syntax=no
25839 if test x$gcc_cv_as != x; then
25840 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846 test $ac_status = 0; }; }
25847 then
25848 gcc_cv_as_ix86_cmov_sun_syntax=yes
25849 else
25850 echo "configure: failed program was" >&5
25851 cat conftest.s >&5
25852 fi
25853 rm -f conftest.o conftest.s
25854 fi
25855 fi
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25857 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25858 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25859
25860 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25861
25862 fi
25863
25864
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25866 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25867 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25869 else
25870 gcc_cv_as_ix86_ffreep=no
25871 if test x$gcc_cv_as != x; then
25872 $as_echo 'ffreep %st(1)' > conftest.s
25873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25878 test $ac_status = 0; }; }
25879 then
25880 gcc_cv_as_ix86_ffreep=yes
25881 else
25882 echo "configure: failed program was" >&5
25883 cat conftest.s >&5
25884 fi
25885 rm -f conftest.o conftest.s
25886 fi
25887 fi
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25889 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25890 if test $gcc_cv_as_ix86_ffreep = yes; then
25891
25892 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25893
25894 fi
25895
25896
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25898 $as_echo_n "checking assembler for .quad directive... " >&6; }
25899 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25901 else
25902 gcc_cv_as_ix86_quad=no
25903 if test x$gcc_cv_as != x; then
25904 $as_echo '.quad 0' > conftest.s
25905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25908 ac_status=$?
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; }
25911 then
25912 gcc_cv_as_ix86_quad=yes
25913 else
25914 echo "configure: failed program was" >&5
25915 cat conftest.s >&5
25916 fi
25917 rm -f conftest.o conftest.s
25918 fi
25919 fi
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25921 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25922 if test $gcc_cv_as_ix86_quad = yes; then
25923
25924 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25925
25926 fi
25927
25928
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25930 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25931 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_ix86_sahf=no
25935 if test x$gcc_cv_as != x; then
25936 $as_echo '.code64
25937 sahf' > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 gcc_cv_as_ix86_sahf=yes
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25949 fi
25950 rm -f conftest.o conftest.s
25951 fi
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25954 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25955 if test $gcc_cv_as_ix86_sahf = yes; then
25956
25957 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25958
25959 fi
25960
25961
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25963 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25964 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 gcc_cv_as_ix86_interunit_movq=no
25968 if test x$gcc_cv_as != x; then
25969 $as_echo '.code64
25970 movq %mm0, %rax
25971 movq %rax, %xmm0' > conftest.s
25972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25978 then
25979 gcc_cv_as_ix86_interunit_movq=yes
25980 else
25981 echo "configure: failed program was" >&5
25982 cat conftest.s >&5
25983 fi
25984 rm -f conftest.o conftest.s
25985 fi
25986 fi
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25988 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25989
25990
25991
25992 cat >>confdefs.h <<_ACEOF
25993 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25994 _ACEOF
25995
25996
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25998 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25999 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26001 else
26002 gcc_cv_as_ix86_hle=no
26003 if test x$gcc_cv_as != x; then
26004 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26007 (eval $ac_try) 2>&5
26008 ac_status=$?
26009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }; }
26011 then
26012 gcc_cv_as_ix86_hle=yes
26013 else
26014 echo "configure: failed program was" >&5
26015 cat conftest.s >&5
26016 fi
26017 rm -f conftest.o conftest.s
26018 fi
26019 fi
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26021 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26022 if test $gcc_cv_as_ix86_hle = yes; then
26023
26024 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26025
26026 fi
26027
26028
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26030 $as_echo_n "checking assembler for swap suffix... " >&6; }
26031 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26033 else
26034 gcc_cv_as_ix86_swap=no
26035 if test x$gcc_cv_as != x; then
26036 $as_echo 'movl.s %esp, %ebp' > conftest.s
26037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26043 then
26044 gcc_cv_as_ix86_swap=yes
26045 else
26046 echo "configure: failed program was" >&5
26047 cat conftest.s >&5
26048 fi
26049 rm -f conftest.o conftest.s
26050 fi
26051 fi
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26053 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26054 if test $gcc_cv_as_ix86_swap = yes; then
26055
26056 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26057
26058 fi
26059
26060
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26062 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26063 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26064 $as_echo_n "(cached) " >&6
26065 else
26066 gcc_cv_as_ix86_diff_sect_delta=no
26067 if test x$gcc_cv_as != x; then
26068 $as_echo '.section .rodata
26069 .L1:
26070 .long .L2-.L1
26071 .long .L3-.L1
26072 .text
26073 .L3: nop
26074 .L2: nop' > conftest.s
26075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26078 ac_status=$?
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; }
26081 then
26082 gcc_cv_as_ix86_diff_sect_delta=yes
26083 else
26084 echo "configure: failed program was" >&5
26085 cat conftest.s >&5
26086 fi
26087 rm -f conftest.o conftest.s
26088 fi
26089 fi
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26091 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26092 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26093
26094 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26095
26096 fi
26097
26098
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26100 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26101 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26103 else
26104 gcc_cv_as_ix86_rep_lock_prefix=no
26105 if test x$gcc_cv_as != x; then
26106 $as_echo 'rep movsl
26107 rep ret
26108 rep nop
26109 rep bsf %ecx, %eax
26110 rep bsr %ecx, %eax
26111 lock addl %edi, (%eax,%esi)
26112 lock orl $0, (%esp)' > conftest.s
26113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }
26119 then
26120 gcc_cv_as_ix86_rep_lock_prefix=yes
26121 else
26122 echo "configure: failed program was" >&5
26123 cat conftest.s >&5
26124 fi
26125 rm -f conftest.o conftest.s
26126 fi
26127 fi
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26129 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26130 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26131
26132 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26133
26134 fi
26135
26136
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26138 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26139 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_ix86_ud2=no
26143 if test x$gcc_cv_as != x; then
26144 $as_echo 'ud2' > conftest.s
26145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26150 test $ac_status = 0; }; }
26151 then
26152 gcc_cv_as_ix86_ud2=yes
26153 else
26154 echo "configure: failed program was" >&5
26155 cat conftest.s >&5
26156 fi
26157 rm -f conftest.o conftest.s
26158 fi
26159 fi
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26161 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26162 if test $gcc_cv_as_ix86_ud2 = yes; then
26163
26164 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26165
26166 fi
26167
26168
26169 # Enforce 32-bit output with gas and gld.
26170 if test x$gas = xyes; then
26171 as_ix86_gas_32_opt="--32"
26172 fi
26173 if echo "$ld_ver" | grep GNU > /dev/null; then
26174 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26175 ld_ix86_gld_32_opt="-melf_i386_sol2"
26176 else
26177 ld_ix86_gld_32_opt="-melf_i386"
26178 fi
26179 fi
26180
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26182 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26183 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_as_ix86_tlsgdplt=no
26187 if test x$gcc_cv_as != x; then
26188 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26195 then
26196 if test x$gcc_cv_ld != x \
26197 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26198 gcc_cv_as_ix86_tlsgdplt=yes
26199 fi
26200 rm -f conftest
26201 else
26202 echo "configure: failed program was" >&5
26203 cat conftest.s >&5
26204 fi
26205 rm -f conftest.o conftest.s
26206 fi
26207 fi
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26209 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26210 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26211
26212 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26213
26214 fi
26215
26216
26217 conftest_s='
26218 .section .tdata,"aw'$tls_section_flag'",@progbits
26219 tls_ld:
26220 .section .text,"ax",@progbits
26221 call tls_ld@tlsldmplt'
26222
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26224 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26225 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26227 else
26228 gcc_cv_as_ix86_tlsldmplt=no
26229 if test x$gcc_cv_as != x; then
26230 $as_echo "$conftest_s" > conftest.s
26231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26236 test $ac_status = 0; }; }
26237 then
26238 if test x$gcc_cv_ld != x \
26239 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26240 gcc_cv_as_ix86_tlsldmplt=yes
26241 fi
26242 rm -f conftest
26243 else
26244 echo "configure: failed program was" >&5
26245 cat conftest.s >&5
26246 fi
26247 rm -f conftest.o conftest.s
26248 fi
26249 fi
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26251 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26252
26253
26254
26255 cat >>confdefs.h <<_ACEOF
26256 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26257 _ACEOF
26258
26259
26260 conftest_s='
26261 .section .text,"ax",@progbits
26262 .globl _start
26263 .type _start, @function
26264 _start:
26265 leal value@tlsldm(%ebx), %eax
26266 call ___tls_get_addr@plt
26267
26268 .section .tdata,"aw'$tls_section_flag'",@progbits
26269 .type value, @object
26270 value:'
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26272 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26273 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26274 $as_echo_n "(cached) " >&6
26275 else
26276 gcc_cv_as_ix86_tlsldm=no
26277 if test x$gcc_cv_as != x; then
26278 $as_echo "$conftest_s" > conftest.s
26279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; }
26285 then
26286 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26287 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26288 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26289 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26290 gcc_cv_as_ix86_tlsldm=yes
26291 fi
26292 fi
26293 rm -f conftest
26294 else
26295 echo "configure: failed program was" >&5
26296 cat conftest.s >&5
26297 fi
26298 rm -f conftest.o conftest.s
26299 fi
26300 fi
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26302 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26303
26304
26305
26306 cat >>confdefs.h <<_ACEOF
26307 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26308 _ACEOF
26309
26310
26311 conftest_s='
26312 .data
26313 bar:
26314 .byte 1
26315 .text
26316 .global _start
26317 _start:
26318 cmpl $0, bar@GOT
26319 jmp *_start@GOT'
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26321 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26322 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26323 $as_echo_n "(cached) " >&6
26324 else
26325 gcc_cv_as_ix86_got32x=no
26326 if test x$gcc_cv_as != x; then
26327 $as_echo "$conftest_s" > conftest.s
26328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26330 (eval $ac_try) 2>&5
26331 ac_status=$?
26332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26333 test $ac_status = 0; }; }
26334 then
26335 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26336 && test x$gcc_cv_readelf != x \
26337 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26338 | grep R_386_GOT32X > /dev/null 2>&1 \
26339 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26340 if $gcc_cv_objdump -dw conftest 2>&1 \
26341 | grep 0xffffff > /dev/null 2>&1; then
26342 gcc_cv_as_ix86_got32x=no
26343 else
26344 gcc_cv_as_ix86_got32x=yes
26345 fi
26346 fi
26347 rm -f conftest
26348 else
26349 echo "configure: failed program was" >&5
26350 cat conftest.s >&5
26351 fi
26352 rm -f conftest.o conftest.s
26353 fi
26354 fi
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26356 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26357
26358
26359
26360 cat >>confdefs.h <<_ACEOF
26361 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26362 _ACEOF
26363
26364
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26366 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26367 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26368 $as_echo_n "(cached) " >&6
26369 else
26370 gcc_cv_as_ix86_gotoff_in_data=no
26371 if test $in_tree_gas = yes; then
26372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26373 then gcc_cv_as_ix86_gotoff_in_data=yes
26374 fi
26375 elif test x$gcc_cv_as != x; then
26376 $as_echo ' .text
26377 .L0:
26378 nop
26379 .data
26380 .long .L0@GOTOFF' > conftest.s
26381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26387 then
26388 gcc_cv_as_ix86_gotoff_in_data=yes
26389 else
26390 echo "configure: failed program was" >&5
26391 cat conftest.s >&5
26392 fi
26393 rm -f conftest.o conftest.s
26394 fi
26395 fi
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26397 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26398
26399
26400
26401 cat >>confdefs.h <<_ACEOF
26402 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26403 _ACEOF
26404
26405
26406 conftest_s='
26407 .section .text,"ax",@progbits
26408 .globl _start
26409 .type _start, @function
26410 _start:
26411 leal ld@tlsldm(%ecx), %eax
26412 call *___tls_get_addr@GOT(%ecx)
26413 leal gd@tlsgd(%ecx), %eax
26414 call *___tls_get_addr@GOT(%ecx)
26415
26416 .section .tdata,"aw'$tls_section_flag'",@progbits
26417 .type ld, @object
26418 ld:
26419 .byte 0
26420 .globl gd
26421 .type gd, @object
26422 gd:
26423 .byte 0'
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26425 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26426 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26429 gcc_cv_as_ix86_tls_get_addr_via_got=no
26430 if test x$gcc_cv_as != x; then
26431 $as_echo "$conftest_s" > conftest.s
26432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437 test $ac_status = 0; }; }
26438 then
26439 if test x$gcc_cv_ld != x \
26440 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26441 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26442 fi
26443 rm -f conftest
26444 else
26445 echo "configure: failed program was" >&5
26446 cat conftest.s >&5
26447 fi
26448 rm -f conftest.o conftest.s
26449 fi
26450 fi
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26452 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26453
26454
26455
26456 cat >>confdefs.h <<_ACEOF
26457 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26458 _ACEOF
26459
26460 ;;
26461
26462 ia64*-*-*)
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26464 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26465 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26466 $as_echo_n "(cached) " >&6
26467 else
26468 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26469 if test $in_tree_gas = yes; then
26470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26471 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26472 fi
26473 elif test x$gcc_cv_as != x; then
26474 $as_echo ' .text
26475 addl r15 = @ltoffx(x#), gp
26476 ;;
26477 ld8.mov r16 = [r15], x#' > conftest.s
26478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26483 test $ac_status = 0; }; }
26484 then
26485 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26486 else
26487 echo "configure: failed program was" >&5
26488 cat conftest.s >&5
26489 fi
26490 rm -f conftest.o conftest.s
26491 fi
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26494 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26495 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26496
26497 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26498
26499 fi
26500
26501
26502 ;;
26503
26504 powerpc*-*-*)
26505
26506 case $target in
26507 *-*-darwin*)
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26509 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26510 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26511 $as_echo_n "(cached) " >&6
26512 else
26513 gcc_cv_as_machine_directive=no
26514 if test x$gcc_cv_as != x; then
26515 $as_echo ' .machine ppc7400' > conftest.s
26516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26521 test $ac_status = 0; }; }
26522 then
26523 gcc_cv_as_machine_directive=yes
26524 else
26525 echo "configure: failed program was" >&5
26526 cat conftest.s >&5
26527 fi
26528 rm -f conftest.o conftest.s
26529 fi
26530 fi
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26532 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26533
26534
26535 if test x$gcc_cv_as_machine_directive != xyes; then
26536 echo "*** This target requires an assembler supporting \".machine\"" >&2
26537 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26538 test x$build = x$target && exit 1
26539 fi
26540 ;;
26541 esac
26542
26543 case $target in
26544 *-*-aix*) conftest_s=' .machine "pwr5"
26545 .csect .text[PR]
26546 mfcr 3,128';;
26547 *-*-darwin*) conftest_s=' .text
26548 mfcr r3,128';;
26549 *) conftest_s=' .machine power4
26550 .text
26551 mfcr 3,128';;
26552 esac
26553
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26555 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26556 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26558 else
26559 gcc_cv_as_powerpc_mfcrf=no
26560 if test $in_tree_gas = yes; then
26561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26562 then gcc_cv_as_powerpc_mfcrf=yes
26563 fi
26564 elif test x$gcc_cv_as != x; then
26565 $as_echo "$conftest_s" > conftest.s
26566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26572 then
26573 gcc_cv_as_powerpc_mfcrf=yes
26574 else
26575 echo "configure: failed program was" >&5
26576 cat conftest.s >&5
26577 fi
26578 rm -f conftest.o conftest.s
26579 fi
26580 fi
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26582 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26583 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26584
26585 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26586
26587 fi
26588
26589
26590 case $target in
26591 *-*-aix*) conftest_s=' .machine "pwr5"
26592 .csect .text[PR]
26593 popcntb 3,3';;
26594 *) conftest_s=' .machine power5
26595 .text
26596 popcntb 3,3';;
26597 esac
26598
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26600 $as_echo_n "checking assembler for popcntb support... " >&6; }
26601 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26602 $as_echo_n "(cached) " >&6
26603 else
26604 gcc_cv_as_powerpc_popcntb=no
26605 if test $in_tree_gas = yes; then
26606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26607 then gcc_cv_as_powerpc_popcntb=yes
26608 fi
26609 elif test x$gcc_cv_as != x; then
26610 $as_echo "$conftest_s" > conftest.s
26611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26616 test $ac_status = 0; }; }
26617 then
26618 gcc_cv_as_powerpc_popcntb=yes
26619 else
26620 echo "configure: failed program was" >&5
26621 cat conftest.s >&5
26622 fi
26623 rm -f conftest.o conftest.s
26624 fi
26625 fi
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26627 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26628 if test $gcc_cv_as_powerpc_popcntb = yes; then
26629
26630 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26631
26632 fi
26633
26634
26635 case $target in
26636 *-*-aix*) conftest_s=' .machine "pwr5x"
26637 .csect .text[PR]
26638 frin 1,1';;
26639 *) conftest_s=' .machine power5
26640 .text
26641 frin 1,1';;
26642 esac
26643
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26645 $as_echo_n "checking assembler for fp round support... " >&6; }
26646 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26647 $as_echo_n "(cached) " >&6
26648 else
26649 gcc_cv_as_powerpc_fprnd=no
26650 if test $in_tree_gas = yes; then
26651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26652 then gcc_cv_as_powerpc_fprnd=yes
26653 fi
26654 elif test x$gcc_cv_as != x; then
26655 $as_echo "$conftest_s" > conftest.s
26656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26661 test $ac_status = 0; }; }
26662 then
26663 gcc_cv_as_powerpc_fprnd=yes
26664 else
26665 echo "configure: failed program was" >&5
26666 cat conftest.s >&5
26667 fi
26668 rm -f conftest.o conftest.s
26669 fi
26670 fi
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26672 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26673 if test $gcc_cv_as_powerpc_fprnd = yes; then
26674
26675 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26676
26677 fi
26678
26679
26680 case $target in
26681 *-*-aix*) conftest_s=' .machine "pwr6"
26682 .csect .text[PR]
26683 mffgpr 1,3';;
26684 *) conftest_s=' .machine power6
26685 .text
26686 mffgpr 1,3';;
26687 esac
26688
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26690 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26691 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_powerpc_mfpgpr=no
26695 if test $in_tree_gas = yes; then
26696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26697 then gcc_cv_as_powerpc_mfpgpr=yes
26698 fi
26699 elif test x$gcc_cv_as != x; then
26700 $as_echo "$conftest_s" > conftest.s
26701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; }
26707 then
26708 gcc_cv_as_powerpc_mfpgpr=yes
26709 else
26710 echo "configure: failed program was" >&5
26711 cat conftest.s >&5
26712 fi
26713 rm -f conftest.o conftest.s
26714 fi
26715 fi
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26717 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26718 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26719
26720 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26721
26722 fi
26723
26724
26725 case $target in
26726 *-*-aix*) conftest_s=' .csect .text[PR]
26727 LCF..0:
26728 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26729 *-*-darwin*)
26730 conftest_s=' .text
26731 LCF0:
26732 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26733 *) conftest_s=' .text
26734 .LCF0:
26735 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26736 esac
26737
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26739 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26740 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26741 $as_echo_n "(cached) " >&6
26742 else
26743 gcc_cv_as_powerpc_rel16=no
26744 if test $in_tree_gas = yes; then
26745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26746 then gcc_cv_as_powerpc_rel16=yes
26747 fi
26748 elif test x$gcc_cv_as != x; then
26749 $as_echo "$conftest_s" > conftest.s
26750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26752 (eval $ac_try) 2>&5
26753 ac_status=$?
26754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26755 test $ac_status = 0; }; }
26756 then
26757 gcc_cv_as_powerpc_rel16=yes
26758 else
26759 echo "configure: failed program was" >&5
26760 cat conftest.s >&5
26761 fi
26762 rm -f conftest.o conftest.s
26763 fi
26764 fi
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26766 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26767 if test $gcc_cv_as_powerpc_rel16 = yes; then
26768
26769 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26770
26771 fi
26772
26773
26774 case $target in
26775 *-*-aix*) conftest_s=' .machine "pwr6"
26776 .csect .text[PR]
26777 cmpb 3,4,5';;
26778 *) conftest_s=' .machine power6
26779 .text
26780 cmpb 3,4,5';;
26781 esac
26782
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26784 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26785 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26786 $as_echo_n "(cached) " >&6
26787 else
26788 gcc_cv_as_powerpc_cmpb=no
26789 if test $in_tree_gas = yes; then
26790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26791 then gcc_cv_as_powerpc_cmpb=yes
26792 fi
26793 elif test x$gcc_cv_as != x; then
26794 $as_echo "$conftest_s" > conftest.s
26795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26797 (eval $ac_try) 2>&5
26798 ac_status=$?
26799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26800 test $ac_status = 0; }; }
26801 then
26802 gcc_cv_as_powerpc_cmpb=yes
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_powerpc_cmpb" >&5
26811 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26812 if test $gcc_cv_as_powerpc_cmpb = yes; then
26813
26814 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26815
26816 fi
26817
26818
26819 case $target in
26820 *-*-aix*) conftest_s=' .machine "pwr6"
26821 .csect .text[PR]
26822 dadd 1,2,3';;
26823 *) conftest_s=' .machine power6
26824 .text
26825 dadd 1,2,3';;
26826 esac
26827
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26829 $as_echo_n "checking assembler for decimal float support... " >&6; }
26830 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26831 $as_echo_n "(cached) " >&6
26832 else
26833 gcc_cv_as_powerpc_dfp=no
26834 if test $in_tree_gas = yes; then
26835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26836 then gcc_cv_as_powerpc_dfp=yes
26837 fi
26838 elif test x$gcc_cv_as != x; then
26839 $as_echo "$conftest_s" > conftest.s
26840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26846 then
26847 gcc_cv_as_powerpc_dfp=yes
26848 else
26849 echo "configure: failed program was" >&5
26850 cat conftest.s >&5
26851 fi
26852 rm -f conftest.o conftest.s
26853 fi
26854 fi
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26856 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26857 if test $gcc_cv_as_powerpc_dfp = yes; then
26858
26859 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26860
26861 fi
26862
26863
26864 case $target in
26865 *-*-aix*) conftest_s=' .machine "pwr7"
26866 .csect .text[PR]
26867 lxvd2x 1,2,3';;
26868 *) conftest_s=' .machine power7
26869 .text
26870 lxvd2x 1,2,3';;
26871 esac
26872
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26874 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26875 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26876 $as_echo_n "(cached) " >&6
26877 else
26878 gcc_cv_as_powerpc_vsx=no
26879 if test $in_tree_gas = yes; then
26880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26881 then gcc_cv_as_powerpc_vsx=yes
26882 fi
26883 elif test x$gcc_cv_as != x; then
26884 $as_echo "$conftest_s" > conftest.s
26885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26891 then
26892 gcc_cv_as_powerpc_vsx=yes
26893 else
26894 echo "configure: failed program was" >&5
26895 cat conftest.s >&5
26896 fi
26897 rm -f conftest.o conftest.s
26898 fi
26899 fi
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26901 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26902 if test $gcc_cv_as_powerpc_vsx = yes; then
26903
26904 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26905
26906 fi
26907
26908
26909 case $target in
26910 *-*-aix*) conftest_s=' .machine "pwr7"
26911 .csect .text[PR]
26912 popcntd 3,3';;
26913 *) conftest_s=' .machine power7
26914 .text
26915 popcntd 3,3';;
26916 esac
26917
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26919 $as_echo_n "checking assembler for popcntd support... " >&6; }
26920 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26921 $as_echo_n "(cached) " >&6
26922 else
26923 gcc_cv_as_powerpc_popcntd=no
26924 if test $in_tree_gas = yes; then
26925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26926 then gcc_cv_as_powerpc_popcntd=yes
26927 fi
26928 elif test x$gcc_cv_as != x; then
26929 $as_echo "$conftest_s" > conftest.s
26930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26935 test $ac_status = 0; }; }
26936 then
26937 gcc_cv_as_powerpc_popcntd=yes
26938 else
26939 echo "configure: failed program was" >&5
26940 cat conftest.s >&5
26941 fi
26942 rm -f conftest.o conftest.s
26943 fi
26944 fi
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26946 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26947 if test $gcc_cv_as_powerpc_popcntd = yes; then
26948
26949 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26950
26951 fi
26952
26953
26954 case $target in
26955 *-*-aix*) conftest_s=' .machine "pwr8"
26956 .csect .text[PR]';;
26957 *) conftest_s=' .machine power8
26958 .text';;
26959 esac
26960
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26962 $as_echo_n "checking assembler for power8 support... " >&6; }
26963 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26964 $as_echo_n "(cached) " >&6
26965 else
26966 gcc_cv_as_powerpc_power8=no
26967 if test $in_tree_gas = yes; then
26968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26969 then gcc_cv_as_powerpc_power8=yes
26970 fi
26971 elif test x$gcc_cv_as != x; then
26972 $as_echo "$conftest_s" > conftest.s
26973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
26977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26978 test $ac_status = 0; }; }
26979 then
26980 gcc_cv_as_powerpc_power8=yes
26981 else
26982 echo "configure: failed program was" >&5
26983 cat conftest.s >&5
26984 fi
26985 rm -f conftest.o conftest.s
26986 fi
26987 fi
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26989 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26990 if test $gcc_cv_as_powerpc_power8 = yes; then
26991
26992 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26993
26994 fi
26995
26996
26997 case $target in
26998 *-*-aix*) conftest_s=' .machine "pwr9"
26999 .csect .text[PR]';;
27000 *) conftest_s=' .machine power9
27001 .text';;
27002 esac
27003
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
27005 $as_echo_n "checking assembler for power9 support... " >&6; }
27006 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
27007 $as_echo_n "(cached) " >&6
27008 else
27009 gcc_cv_as_powerpc_power9=no
27010 if test $in_tree_gas = yes; then
27011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27012 then gcc_cv_as_powerpc_power9=yes
27013 fi
27014 elif test x$gcc_cv_as != x; then
27015 $as_echo "$conftest_s" > conftest.s
27016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27018 (eval $ac_try) 2>&5
27019 ac_status=$?
27020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27021 test $ac_status = 0; }; }
27022 then
27023 gcc_cv_as_powerpc_power9=yes
27024 else
27025 echo "configure: failed program was" >&5
27026 cat conftest.s >&5
27027 fi
27028 rm -f conftest.o conftest.s
27029 fi
27030 fi
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
27032 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
27033 if test $gcc_cv_as_powerpc_power9 = yes; then
27034
27035 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
27036
27037 fi
27038
27039
27040 case $target in
27041 *-*-aix*) conftest_s=' .csect .text[PR]
27042 lwsync';;
27043 *) conftest_s=' .text
27044 lwsync';;
27045 esac
27046
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
27048 $as_echo_n "checking assembler for lwsync support... " >&6; }
27049 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_powerpc_lwsync=no
27053 if test $in_tree_gas = yes; then
27054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27055 then gcc_cv_as_powerpc_lwsync=yes
27056 fi
27057 elif test x$gcc_cv_as != x; then
27058 $as_echo "$conftest_s" > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 gcc_cv_as_powerpc_lwsync=yes
27067 else
27068 echo "configure: failed program was" >&5
27069 cat conftest.s >&5
27070 fi
27071 rm -f conftest.o conftest.s
27072 fi
27073 fi
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
27075 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
27076 if test $gcc_cv_as_powerpc_lwsync = yes; then
27077
27078 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
27079
27080 fi
27081
27082
27083 case $target in
27084 *-*-aix*) conftest_s=' .machine "476"
27085 .csect .text[PR]
27086 dci 0';;
27087 *) conftest_s=' .machine "476"
27088 .text
27089 dci 0';;
27090 esac
27091
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
27093 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
27094 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
27095 $as_echo_n "(cached) " >&6
27096 else
27097 gcc_cv_as_powerpc_dci=no
27098 if test $in_tree_gas = yes; then
27099 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
27100 then gcc_cv_as_powerpc_dci=yes
27101 fi
27102 elif test x$gcc_cv_as != x; then
27103 $as_echo "$conftest_s" > conftest.s
27104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27110 then
27111 gcc_cv_as_powerpc_dci=yes
27112 else
27113 echo "configure: failed program was" >&5
27114 cat conftest.s >&5
27115 fi
27116 rm -f conftest.o conftest.s
27117 fi
27118 fi
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27120 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27121 if test $gcc_cv_as_powerpc_dci = yes; then
27122
27123 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27124
27125 fi
27126
27127
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27129 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27130 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27131 $as_echo_n "(cached) " >&6
27132 else
27133 gcc_cv_as_powerpc_gnu_attribute=no
27134 if test $in_tree_gas = yes; then
27135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27136 then gcc_cv_as_powerpc_gnu_attribute=yes
27137 fi
27138 elif test x$gcc_cv_as != x; then
27139 $as_echo '.gnu_attribute 4,1' > conftest.s
27140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27145 test $ac_status = 0; }; }
27146 then
27147 gcc_cv_as_powerpc_gnu_attribute=yes
27148 else
27149 echo "configure: failed program was" >&5
27150 cat conftest.s >&5
27151 fi
27152 rm -f conftest.o conftest.s
27153 fi
27154 fi
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27156 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27157 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27158
27159 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27160
27161 fi
27162
27163
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27165 $as_echo_n "checking assembler for tls marker support... " >&6; }
27166 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27167 $as_echo_n "(cached) " >&6
27168 else
27169 gcc_cv_as_powerpc_tls_markers=no
27170 if test $in_tree_gas = yes; then
27171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27172 then gcc_cv_as_powerpc_tls_markers=yes
27173 fi
27174 elif test x$gcc_cv_as != x; then
27175 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27178 (eval $ac_try) 2>&5
27179 ac_status=$?
27180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27181 test $ac_status = 0; }; }
27182 then
27183 gcc_cv_as_powerpc_tls_markers=yes
27184 else
27185 echo "configure: failed program was" >&5
27186 cat conftest.s >&5
27187 fi
27188 rm -f conftest.o conftest.s
27189 fi
27190 fi
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27192 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27193 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27194
27195 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27196
27197 fi
27198
27199
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27201 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27202 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27203 $as_echo_n "(cached) " >&6
27204 else
27205 gcc_cv_as_powerpc_entry_markers=no
27206 if test $in_tree_gas = yes; then
27207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27208 then gcc_cv_as_powerpc_entry_markers=yes
27209 fi
27210 elif test x$gcc_cv_as != x; then
27211 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27214 (eval $ac_try) 2>&5
27215 ac_status=$?
27216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27217 test $ac_status = 0; }; }
27218 then
27219 gcc_cv_as_powerpc_entry_markers=yes
27220 else
27221 echo "configure: failed program was" >&5
27222 cat conftest.s >&5
27223 fi
27224 rm -f conftest.o conftest.s
27225 fi
27226 fi
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27228 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27229 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27230
27231 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27232
27233 fi
27234
27235
27236 case $target in
27237 *-*-aix*)
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27239 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27240 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27241 $as_echo_n "(cached) " >&6
27242 else
27243 gcc_cv_as_aix_ref=no
27244 if test $in_tree_gas = yes; then
27245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27246 then gcc_cv_as_aix_ref=yes
27247 fi
27248 elif test x$gcc_cv_as != x; then
27249 $as_echo ' .csect stuff[rw]
27250 stuff:
27251 .long 1
27252 .extern sym
27253 .ref sym
27254 ' > conftest.s
27255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27257 (eval $ac_try) 2>&5
27258 ac_status=$?
27259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260 test $ac_status = 0; }; }
27261 then
27262 gcc_cv_as_aix_ref=yes
27263 else
27264 echo "configure: failed program was" >&5
27265 cat conftest.s >&5
27266 fi
27267 rm -f conftest.o conftest.s
27268 fi
27269 fi
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27271 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27272 if test $gcc_cv_as_aix_ref = yes; then
27273
27274 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27275
27276 fi
27277
27278
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27280 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27281 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27282 $as_echo_n "(cached) " >&6
27283 else
27284 gcc_cv_as_aix_dwloc=no
27285 if test $in_tree_gas = yes; then
27286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27287 then gcc_cv_as_aix_dwloc=yes
27288 fi
27289 elif test x$gcc_cv_as != x; then
27290 $as_echo ' .dwsect 0xA0000
27291 Lframe..0:
27292 .vbyte 4,Lframe..0
27293 ' > conftest.s
27294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27297 ac_status=$?
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27300 then
27301 gcc_cv_as_aix_dwloc=yes
27302 else
27303 echo "configure: failed program was" >&5
27304 cat conftest.s >&5
27305 fi
27306 rm -f conftest.o conftest.s
27307 fi
27308 fi
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27310 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27311 if test $gcc_cv_as_aix_dwloc = yes; then
27312
27313 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27314
27315 fi
27316
27317 ;;
27318 esac
27319 ;;
27320
27321 mips*-*-*)
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27323 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27324 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27325 $as_echo_n "(cached) " >&6
27326 else
27327 gcc_cv_as_mips_explicit_relocs=no
27328 if test $in_tree_gas = yes; then
27329 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27330 then gcc_cv_as_mips_explicit_relocs=yes
27331 fi
27332 elif test x$gcc_cv_as != x; then
27333 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27336 (eval $ac_try) 2>&5
27337 ac_status=$?
27338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339 test $ac_status = 0; }; }
27340 then
27341 gcc_cv_as_mips_explicit_relocs=yes
27342 else
27343 echo "configure: failed program was" >&5
27344 cat conftest.s >&5
27345 fi
27346 rm -f conftest.o conftest.s
27347 fi
27348 fi
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27350 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27351 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27352 if test x$target_cpu_default = x
27353 then target_cpu_default=MASK_EXPLICIT_RELOCS
27354 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27355 fi
27356 fi
27357
27358
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27360 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27361 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27362 $as_echo_n "(cached) " >&6
27363 else
27364 gcc_cv_as_mips_no_shared=no
27365 if test $in_tree_gas = yes; then
27366 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27367 then gcc_cv_as_mips_no_shared=yes
27368 fi
27369 elif test x$gcc_cv_as != x; then
27370 $as_echo 'nop' > conftest.s
27371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; }
27377 then
27378 gcc_cv_as_mips_no_shared=yes
27379 else
27380 echo "configure: failed program was" >&5
27381 cat conftest.s >&5
27382 fi
27383 rm -f conftest.o conftest.s
27384 fi
27385 fi
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27387 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27388 if test $gcc_cv_as_mips_no_shared = yes; then
27389
27390 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27391
27392 fi
27393
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27396 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27397 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27398 $as_echo_n "(cached) " >&6
27399 else
27400 gcc_cv_as_mips_gnu_attribute=no
27401 if test $in_tree_gas = yes; then
27402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27403 then gcc_cv_as_mips_gnu_attribute=yes
27404 fi
27405 elif test x$gcc_cv_as != x; then
27406 $as_echo '.gnu_attribute 4,1' > conftest.s
27407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27412 test $ac_status = 0; }; }
27413 then
27414 gcc_cv_as_mips_gnu_attribute=yes
27415 else
27416 echo "configure: failed program was" >&5
27417 cat conftest.s >&5
27418 fi
27419 rm -f conftest.o conftest.s
27420 fi
27421 fi
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27423 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27424 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27425
27426 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27427
27428 fi
27429
27430
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27432 $as_echo_n "checking assembler for .module support... " >&6; }
27433 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27434 $as_echo_n "(cached) " >&6
27435 else
27436 gcc_cv_as_mips_dot_module=no
27437 if test x$gcc_cv_as != x; then
27438 $as_echo '.module mips2
27439 .module fp=xx' > conftest.s
27440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27445 test $ac_status = 0; }; }
27446 then
27447 gcc_cv_as_mips_dot_module=yes
27448 else
27449 echo "configure: failed program was" >&5
27450 cat conftest.s >&5
27451 fi
27452 rm -f conftest.o conftest.s
27453 fi
27454 fi
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27456 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27457 if test $gcc_cv_as_mips_dot_module = yes; then
27458
27459 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27460
27461 fi
27462
27463 if test x$gcc_cv_as_mips_dot_module = xno \
27464 && test x$with_fp_32 != x; then
27465 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27466 fi
27467
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27469 $as_echo_n "checking assembler for .micromips support... " >&6; }
27470 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27471 $as_echo_n "(cached) " >&6
27472 else
27473 gcc_cv_as_micromips_support=no
27474 if test x$gcc_cv_as != x; then
27475 $as_echo '.set micromips' > conftest.s
27476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27481 test $ac_status = 0; }; }
27482 then
27483 gcc_cv_as_micromips_support=yes
27484 else
27485 echo "configure: failed program was" >&5
27486 cat conftest.s >&5
27487 fi
27488 rm -f conftest.o conftest.s
27489 fi
27490 fi
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27492 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27493 if test $gcc_cv_as_micromips_support = yes; then
27494
27495 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27496
27497 fi
27498
27499
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27501 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27502 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27503 $as_echo_n "(cached) " >&6
27504 else
27505 gcc_cv_as_mips_dtprelword=no
27506 if test $in_tree_gas = yes; then
27507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27508 then gcc_cv_as_mips_dtprelword=yes
27509 fi
27510 elif test x$gcc_cv_as != x; then
27511 $as_echo '.section .tdata,"awT",@progbits
27512 x:
27513 .word 2
27514 .text
27515 .dtprelword x+0x8000' > conftest.s
27516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27518 (eval $ac_try) 2>&5
27519 ac_status=$?
27520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27521 test $ac_status = 0; }; }
27522 then
27523 gcc_cv_as_mips_dtprelword=yes
27524 else
27525 echo "configure: failed program was" >&5
27526 cat conftest.s >&5
27527 fi
27528 rm -f conftest.o conftest.s
27529 fi
27530 fi
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27532 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27533 if test $gcc_cv_as_mips_dtprelword = yes; then
27534
27535 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27536
27537 fi
27538
27539
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27541 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27542 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27543 $as_echo_n "(cached) " >&6
27544 else
27545 gcc_cv_as_mips_dspr1_mult=no
27546 if test x$gcc_cv_as != x; then
27547 $as_echo ' .set mips32r2
27548 .set nodspr2
27549 .set dsp
27550 madd $ac3,$4,$5
27551 maddu $ac3,$4,$5
27552 msub $ac3,$4,$5
27553 msubu $ac3,$4,$5
27554 mult $ac3,$4,$5
27555 multu $ac3,$4,$5' > conftest.s
27556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27558 (eval $ac_try) 2>&5
27559 ac_status=$?
27560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27561 test $ac_status = 0; }; }
27562 then
27563 gcc_cv_as_mips_dspr1_mult=yes
27564 else
27565 echo "configure: failed program was" >&5
27566 cat conftest.s >&5
27567 fi
27568 rm -f conftest.o conftest.s
27569 fi
27570 fi
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27572 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27573 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27574
27575 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27576
27577 fi
27578
27579
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27581 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27582 gcc_cv_as_ld_jalr_reloc=no
27583 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27584 if test $in_tree_ld = yes ; then
27585 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 \
27586 && test $in_tree_ld_is_elf = yes; then
27587 gcc_cv_as_ld_jalr_reloc=yes
27588 fi
27589 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27590 echo ' .ent x' > conftest.s
27591 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27592 echo ' lw $25,%call16(y)($28)' >> conftest.s
27593 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27594 echo '1: jalr $25' >> conftest.s
27595 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27596 echo '1: jalr $25' >> conftest.s
27597 echo ' .end x' >> conftest.s
27598 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27599 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27600 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27601 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27602 gcc_cv_as_ld_jalr_reloc=yes
27603 fi
27604 fi
27605 rm -f conftest.*
27606 fi
27607 fi
27608 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27609 if test x$target_cpu_default = x; then
27610 target_cpu_default=MASK_RELAX_PIC_CALLS
27611 else
27612 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27613 fi
27614 fi
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27616 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27617
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27619 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27620 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27621 $as_echo_n "(cached) " >&6
27622 else
27623 gcc_cv_ld_mips_personality_relaxation=no
27624 if test $in_tree_ld = yes ; then
27625 if test "$gcc_cv_gld_major_version" -eq 2 \
27626 -a "$gcc_cv_gld_minor_version" -ge 21 \
27627 -o "$gcc_cv_gld_major_version" -gt 2; then
27628 gcc_cv_ld_mips_personality_relaxation=yes
27629 fi
27630 elif test x$gcc_cv_as != x \
27631 -a x$gcc_cv_ld != x \
27632 -a x$gcc_cv_readelf != x ; then
27633 cat > conftest.s <<EOF
27634 .cfi_startproc
27635 .cfi_personality 0x80,indirect_ptr
27636 .ent test
27637 test:
27638 nop
27639 .end test
27640 .cfi_endproc
27641
27642 .section .data,"aw",@progbits
27643 indirect_ptr:
27644 .dc.a personality
27645 EOF
27646 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27647 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27648 if $gcc_cv_readelf -d conftest 2>&1 \
27649 | grep TEXTREL > /dev/null 2>&1; then
27650 :
27651 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27652 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27653 :
27654 else
27655 gcc_cv_ld_mips_personality_relaxation=yes
27656 fi
27657 fi
27658 fi
27659 rm -f conftest.s conftest.o conftest
27660 fi
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27662 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27663 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27664
27665 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27666
27667 fi
27668
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27670 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27671 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27672 $as_echo_n "(cached) " >&6
27673 else
27674 gcc_cv_as_mips_nan=no
27675 if test x$gcc_cv_as != x; then
27676 $as_echo '' > conftest.s
27677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27679 (eval $ac_try) 2>&5
27680 ac_status=$?
27681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27682 test $ac_status = 0; }; }
27683 then
27684 gcc_cv_as_mips_nan=yes
27685 else
27686 echo "configure: failed program was" >&5
27687 cat conftest.s >&5
27688 fi
27689 rm -f conftest.o conftest.s
27690 fi
27691 fi
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27693 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27694 if test $gcc_cv_as_mips_nan = yes; then
27695
27696 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27697
27698 fi
27699
27700 if test x$gcc_cv_as_mips_nan = xno \
27701 && test x$with_nan != x; then
27702 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27703 fi
27704 ;;
27705 s390*-*-*)
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27707 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27708 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 gcc_cv_as_s390_gnu_attribute=no
27712 if test $in_tree_gas = yes; then
27713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27714 then gcc_cv_as_s390_gnu_attribute=yes
27715 fi
27716 elif test x$gcc_cv_as != x; then
27717 $as_echo '.gnu_attribute 8,1' > conftest.s
27718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; }
27724 then
27725 gcc_cv_as_s390_gnu_attribute=yes
27726 else
27727 echo "configure: failed program was" >&5
27728 cat conftest.s >&5
27729 fi
27730 rm -f conftest.o conftest.s
27731 fi
27732 fi
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27734 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27735 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27736
27737 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27738
27739 fi
27740
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27742 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27743 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27744 $as_echo_n "(cached) " >&6
27745 else
27746 gcc_cv_as_s390_machine_machinemode=no
27747 if test $in_tree_gas = yes; then
27748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27749 then gcc_cv_as_s390_machine_machinemode=yes
27750 fi
27751 elif test x$gcc_cv_as != x; then
27752 $as_echo ' .machinemode push
27753 .machinemode pop
27754 .machine push
27755 .machine pop' > conftest.s
27756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27758 (eval $ac_try) 2>&5
27759 ac_status=$?
27760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27761 test $ac_status = 0; }; }
27762 then
27763 gcc_cv_as_s390_machine_machinemode=yes
27764 else
27765 echo "configure: failed program was" >&5
27766 cat conftest.s >&5
27767 fi
27768 rm -f conftest.o conftest.s
27769 fi
27770 fi
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27772 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27773 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27774
27775 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27776
27777 fi
27778
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27780 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27781 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27782 $as_echo_n "(cached) " >&6
27783 else
27784 gcc_cv_as_s390_architecture_modifiers=no
27785 if test $in_tree_gas = yes; then
27786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27787 then gcc_cv_as_s390_architecture_modifiers=yes
27788 fi
27789 elif test x$gcc_cv_as != x; then
27790 $as_echo ' .machine z13+vx ' > conftest.s
27791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27796 test $ac_status = 0; }; }
27797 then
27798 gcc_cv_as_s390_architecture_modifiers=yes
27799 else
27800 echo "configure: failed program was" >&5
27801 cat conftest.s >&5
27802 fi
27803 rm -f conftest.o conftest.s
27804 fi
27805 fi
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27807 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27808 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27809
27810 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27811
27812 fi
27813
27814 ;;
27815 esac
27816
27817 # Mips and HP-UX need the GNU assembler.
27818 # Linux on IA64 might be able to use the Intel assembler.
27819
27820 case "$target" in
27821 mips*-*-* | *-*-hpux* )
27822 if test x$gas_flag = xyes \
27823 || test x"$host" != x"$build" \
27824 || test ! -x "$gcc_cv_as" \
27825 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27826 :
27827 else
27828 echo "*** This configuration requires the GNU assembler" >&2
27829 exit 1
27830 fi
27831 ;;
27832 esac
27833
27834 # ??? Not all targets support dwarf2 debug_line, even within a version
27835 # of gas. Moreover, we need to emit a valid instruction to trigger any
27836 # info to the output file. So, as supported targets are added to gas 2.11,
27837 # add some instruction here to (also) show we expect this might work.
27838 # ??? Once 2.11 is released, probably need to add first known working
27839 # version to the per-target configury.
27840 case "$cpu_type" in
27841 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27842 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27843 | tilegx | tilepro | visium | xstormy16 | xtensa)
27844 insn="nop"
27845 ;;
27846 ia64 | s390)
27847 insn="nop 0"
27848 ;;
27849 mmix)
27850 insn="swym 0"
27851 ;;
27852 esac
27853 if test x"$insn" != x; then
27854 conftest_s="\
27855 .file 1 \"conftest.s\"
27856 .loc 1 3 0
27857 $insn"
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27859 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27860 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27861 $as_echo_n "(cached) " >&6
27862 else
27863 gcc_cv_as_dwarf2_debug_line=no
27864 if test $in_tree_gas = yes; then
27865 if test $in_tree_gas_is_elf = yes \
27866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27867 then gcc_cv_as_dwarf2_debug_line=yes
27868 fi
27869 elif test x$gcc_cv_as != x; then
27870 $as_echo "$conftest_s" > conftest.s
27871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27873 (eval $ac_try) 2>&5
27874 ac_status=$?
27875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27876 test $ac_status = 0; }; }
27877 then
27878 if test x$gcc_cv_objdump != x \
27879 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27880 | grep debug_line > /dev/null 2>&1; then
27881 gcc_cv_as_dwarf2_debug_line=yes
27882 fi
27883 else
27884 echo "configure: failed program was" >&5
27885 cat conftest.s >&5
27886 fi
27887 rm -f conftest.o conftest.s
27888 fi
27889 fi
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27891 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27892
27893
27894
27895 # The .debug_line file table must be in the exact order that
27896 # we specified the files, since these indices are also used
27897 # by DW_AT_decl_file. Approximate this test by testing if
27898 # the assembler bitches if the same index is assigned twice.
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27900 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27901 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27902 $as_echo_n "(cached) " >&6
27903 else
27904 gcc_cv_as_dwarf2_file_buggy=no
27905 if test x$gcc_cv_as != x; then
27906 $as_echo ' .file 1 "foo.s"
27907 .file 1 "bar.s"' > conftest.s
27908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27910 (eval $ac_try) 2>&5
27911 ac_status=$?
27912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27913 test $ac_status = 0; }; }
27914 then
27915 gcc_cv_as_dwarf2_file_buggy=yes
27916 else
27917 echo "configure: failed program was" >&5
27918 cat conftest.s >&5
27919 fi
27920 rm -f conftest.o conftest.s
27921 fi
27922 fi
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27924 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27925
27926
27927
27928 if test $gcc_cv_as_dwarf2_debug_line = yes \
27929 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27930
27931 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27932
27933
27934 if test $gcc_cv_as_leb128 = yes; then
27935 conftest_s="\
27936 .file 1 \"conftest.s\"
27937 .loc 1 3 0 view .LVU1
27938 $insn
27939 .data
27940 .uleb128 .LVU1
27941 .uleb128 .LVU1
27942 "
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27944 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27945 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27946 $as_echo_n "(cached) " >&6
27947 else
27948 gcc_cv_as_dwarf2_debug_view=no
27949 if test $in_tree_gas = yes; then
27950 if test $in_tree_gas_is_elf = yes \
27951 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27952 then gcc_cv_as_dwarf2_debug_view=yes
27953 fi
27954 elif test x$gcc_cv_as != x; then
27955 $as_echo "$conftest_s" > conftest.s
27956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27961 test $ac_status = 0; }; }
27962 then
27963 gcc_cv_as_dwarf2_debug_view=yes
27964 else
27965 echo "configure: failed program was" >&5
27966 cat conftest.s >&5
27967 fi
27968 rm -f conftest.o conftest.s
27969 fi
27970 fi
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27972 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27973 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27974
27975 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27976
27977 fi
27978
27979 fi
27980 fi
27981
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27983 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27984 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27985 $as_echo_n "(cached) " >&6
27986 else
27987 gcc_cv_as_gdwarf2_flag=no
27988 if test $in_tree_gas = yes; then
27989 if test $in_tree_gas_is_elf = yes \
27990 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27991 then gcc_cv_as_gdwarf2_flag=yes
27992 fi
27993 elif test x$gcc_cv_as != x; then
27994 $as_echo "$insn" > conftest.s
27995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28000 test $ac_status = 0; }; }
28001 then
28002 gcc_cv_as_gdwarf2_flag=yes
28003 else
28004 echo "configure: failed program was" >&5
28005 cat conftest.s >&5
28006 fi
28007 rm -f conftest.o conftest.s
28008 fi
28009 fi
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28011 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28012 if test $gcc_cv_as_gdwarf2_flag = yes; then
28013
28014 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28015
28016 fi
28017
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28020 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28021 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
28022 $as_echo_n "(cached) " >&6
28023 else
28024 gcc_cv_as_gstabs_flag=no
28025 if test $in_tree_gas = yes; then
28026 if test $in_tree_gas_is_elf = yes \
28027 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28028 then gcc_cv_as_gstabs_flag=yes
28029 fi
28030 elif test x$gcc_cv_as != x; then
28031 $as_echo "$insn" > conftest.s
28032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28038 then
28039 gcc_cv_as_gstabs_flag=yes
28040 else
28041 echo "configure: failed program was" >&5
28042 cat conftest.s >&5
28043 fi
28044 rm -f conftest.o conftest.s
28045 fi
28046 fi
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28048 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28049 if test $gcc_cv_as_gstabs_flag = yes; then
28050
28051 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28052
28053 fi
28054
28055
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28057 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28058 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
28059 $as_echo_n "(cached) " >&6
28060 else
28061 gcc_cv_as_debug_prefix_map_flag=no
28062 if test $in_tree_gas = yes; then
28063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28064 then gcc_cv_as_debug_prefix_map_flag=yes
28065 fi
28066 elif test x$gcc_cv_as != x; then
28067 $as_echo "$insn" > conftest.s
28068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28073 test $ac_status = 0; }; }
28074 then
28075 gcc_cv_as_debug_prefix_map_flag=yes
28076 else
28077 echo "configure: failed program was" >&5
28078 cat conftest.s >&5
28079 fi
28080 rm -f conftest.o conftest.s
28081 fi
28082 fi
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28084 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28085 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28086
28087 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28088
28089 fi
28090
28091 fi
28092
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28094 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28095 if test "${gcc_cv_as_compress_debug+set}" = set; then :
28096 $as_echo_n "(cached) " >&6
28097 else
28098 gcc_cv_as_compress_debug=no
28099 if test x$gcc_cv_as != x; then
28100 $as_echo '' > conftest.s
28101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28106 test $ac_status = 0; }; }
28107 then
28108 # gas compiled without zlib cannot compress debug sections and warns
28109 # about it, but still exits successfully. So check for this, too.
28110 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28111 then
28112 gcc_cv_as_compress_debug=0
28113 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28114 # defaulting to the ELF gABI format.
28115 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28116 then
28117 gcc_cv_as_compress_debug=2
28118 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28119 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28120 # Before binutils 2.26, gas only supported --compress-debug-options and
28121 # emitted the traditional GNU format.
28122 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28123 then
28124 gcc_cv_as_compress_debug=1
28125 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28126 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28127 else
28128 gcc_cv_as_compress_debug=0
28129 fi
28130 else
28131 echo "configure: failed program was" >&5
28132 cat conftest.s >&5
28133 fi
28134 rm -f conftest.o conftest.s
28135 fi
28136 fi
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28138 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28139
28140
28141
28142 cat >>confdefs.h <<_ACEOF
28143 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28144 _ACEOF
28145
28146
28147 cat >>confdefs.h <<_ACEOF
28148 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28149 _ACEOF
28150
28151
28152 cat >>confdefs.h <<_ACEOF
28153 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28154 _ACEOF
28155
28156
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28158 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28159 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28160 $as_echo_n "(cached) " >&6
28161 else
28162 gcc_cv_as_lcomm_with_alignment=no
28163 if test x$gcc_cv_as != x; then
28164 $as_echo '.lcomm bar,4,16' > conftest.s
28165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28167 (eval $ac_try) 2>&5
28168 ac_status=$?
28169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28170 test $ac_status = 0; }; }
28171 then
28172 gcc_cv_as_lcomm_with_alignment=yes
28173 else
28174 echo "configure: failed program was" >&5
28175 cat conftest.s >&5
28176 fi
28177 rm -f conftest.o conftest.s
28178 fi
28179 fi
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28181 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28182 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28183
28184 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28185
28186 fi
28187
28188
28189 if test x$with_sysroot = x && test x$host = x$target \
28190 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28191 && test "$prefix" != "NONE"; then
28192
28193 cat >>confdefs.h <<_ACEOF
28194 #define PREFIX_INCLUDE_DIR "$prefix/include"
28195 _ACEOF
28196
28197 fi
28198
28199 # Determine the version of glibc, if any, used on the target.
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28201 $as_echo_n "checking for target glibc version... " >&6; }
28202
28203 # Check whether --with-glibc-version was given.
28204 if test "${with_glibc_version+set}" = set; then :
28205 withval=$with_glibc_version;
28206 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28207 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28208 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28209 else
28210 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28211 fi
28212 else
28213
28214 glibc_version_major=0
28215 glibc_version_minor=0
28216 if test -f $target_header_dir/features.h \
28217 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28218 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28219 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28220 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28221 fi
28222 fi
28223
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28225 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28226
28227 cat >>confdefs.h <<_ACEOF
28228 #define TARGET_GLIBC_MAJOR $glibc_version_major
28229 _ACEOF
28230
28231
28232 cat >>confdefs.h <<_ACEOF
28233 #define TARGET_GLIBC_MINOR $glibc_version_minor
28234 _ACEOF
28235
28236
28237 # Check whether --enable-gnu-unique-object was given.
28238 if test "${enable_gnu_unique_object+set}" = set; then :
28239 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28240 yes | no) ;;
28241 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28242 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28243 esac
28244 else
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28246 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28247 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28248 $as_echo_n "(cached) " >&6
28249 else
28250 gcc_cv_as_gnu_unique_object=no
28251 if test $in_tree_gas = yes; then
28252 if test $in_tree_gas_is_elf = yes \
28253 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28254 then gcc_cv_as_gnu_unique_object=yes
28255 fi
28256 elif test x$gcc_cv_as != x; then
28257 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28260 (eval $ac_try) 2>&5
28261 ac_status=$?
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; }
28264 then
28265 gcc_cv_as_gnu_unique_object=yes
28266 else
28267 echo "configure: failed program was" >&5
28268 cat conftest.s >&5
28269 fi
28270 rm -f conftest.o conftest.s
28271 fi
28272 fi
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28274 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28275 if test $gcc_cv_as_gnu_unique_object = yes; then
28276 # We need to unquote above to to use the definition from config.gcc.
28277 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28278
28279 if test $glibc_version_major -gt 2 \
28280 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28281 enable_gnu_unique_object=yes
28282 fi
28283
28284 fi
28285
28286 fi
28287
28288 if test x$enable_gnu_unique_object = xyes; then
28289
28290 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28291
28292 fi
28293
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28295 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28296 if test "${gcc_cv_as_line_zero+set}" = set; then :
28297 $as_echo_n "(cached) " >&6
28298 else
28299 gcc_cv_as_line_zero=no
28300 if test $in_tree_gas = yes; then
28301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28302 then gcc_cv_as_line_zero=yes
28303 fi
28304 elif test "x$gcc_cv_as" != x; then
28305 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28306 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28308 (eval $ac_try) 2>&5
28309 ac_status=$?
28310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28311 test $ac_status = 0; }; } &&
28312 test "x`cat conftest.out`" = x
28313 then
28314 gcc_cv_as_line_zero=yes
28315 else
28316 echo "configure: failed program was" >&5
28317 cat conftest.s >&5
28318 echo "configure: error output was" >&5
28319 cat conftest.out >&5
28320 fi
28321 rm -f conftest.o conftest.s conftest.out
28322 fi
28323 fi
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28325 $as_echo "$gcc_cv_as_line_zero" >&6; }
28326 if test "x$gcc_cv_as_line_zero" = xyes; then
28327
28328 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28329
28330 fi
28331
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28333 $as_echo_n "checking support for thin archives... " >&6; }
28334 thin_archive_support=no
28335 echo 'int main (void) { return 0; }' > conftest.c
28336 if ($AR --version | sed 1q | grep "GNU ar" \
28337 && $CC $CFLAGS -c conftest.c \
28338 && $AR rcT conftest.a conftest.o \
28339 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28340 thin_archive_support=yes
28341 fi
28342 rm -f conftest.c conftest.o conftest.a conftest
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28344 $as_echo "$thin_archive_support" >&6; }
28345
28346
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28348 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28349 gcc_cv_ld_eh_frame_hdr=no
28350 if test $in_tree_ld = yes ; then
28351 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 \
28352 && test $in_tree_ld_is_elf = yes; then
28353 gcc_cv_ld_eh_frame_hdr=yes
28354 fi
28355 elif test x$gcc_cv_ld != x; then
28356 if echo "$ld_ver" | grep GNU > /dev/null; then
28357 # Check if linker supports --eh-frame-hdr option
28358 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28359 gcc_cv_ld_eh_frame_hdr=yes
28360 fi
28361 else
28362 case "$target" in
28363 *-*-solaris2*)
28364 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28365 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28366 gcc_cv_ld_eh_frame_hdr=yes
28367 fi
28368 ;;
28369 esac
28370 fi
28371 fi
28372
28373 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28374
28375 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28376
28377 fi
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28379 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28382 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28383 gcc_cv_ld_eh_frame_ciev3=no
28384 if test $in_tree_ld = yes ; then
28385 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 \
28386 && test $in_tree_ld_is_elf = yes; then
28387 gcc_cv_ld_eh_frame_ciev3=yes
28388 fi
28389 elif test x$gcc_cv_ld != x; then
28390 if echo "$ld_ver" | grep GNU > /dev/null; then
28391 gcc_cv_ld_eh_frame_ciev3=yes
28392 if test 0"$ld_date" -lt 20040513; then
28393 if test -n "$ld_date"; then
28394 # If there was date string, but was earlier than 2004-05-13, fail
28395 gcc_cv_ld_eh_frame_ciev3=no
28396 elif test "$ld_vers_major" -lt 2; then
28397 gcc_cv_ld_eh_frame_ciev3=no
28398 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28399 gcc_cv_ld_eh_frame_ciev3=no
28400 fi
28401 fi
28402 else
28403 case "$target" in
28404 *-*-solaris2*)
28405 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28406 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28407 gcc_cv_ld_eh_frame_ciev3=yes
28408 fi
28409 ;;
28410 esac
28411 fi
28412 fi
28413
28414 cat >>confdefs.h <<_ACEOF
28415 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28416 _ACEOF
28417
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28419 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28420
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28422 $as_echo_n "checking linker position independent executable support... " >&6; }
28423 gcc_cv_ld_pie=no
28424 if test $in_tree_ld = yes ; then
28425 case "$target" in
28426 # Full PIE support on Solaris was only introduced in gld 2.26.
28427 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28428 *) gcc_gld_pie_min_version=15 ;;
28429 esac
28430 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28431 && test $in_tree_ld_is_elf = yes; then
28432 gcc_cv_ld_pie=yes
28433 fi
28434 elif test x$gcc_cv_ld != x; then
28435 # Check if linker supports -pie option
28436 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28437 gcc_cv_ld_pie=yes
28438 case "$target" in
28439 *-*-solaris2*)
28440 if echo "$ld_ver" | grep GNU > /dev/null \
28441 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28442 gcc_cv_ld_pie=no
28443 fi
28444 ;;
28445 esac
28446 else
28447 case "$target" in
28448 *-*-solaris2.1[1-9]*)
28449 # Solaris 11.3 added PIE support.
28450 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28451 gcc_cv_ld_pie=yes
28452 fi
28453 ;;
28454 esac
28455 fi
28456 fi
28457 if test x"$gcc_cv_ld_pie" = xyes; then
28458
28459 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28460
28461 fi
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28463 $as_echo "$gcc_cv_ld_pie" >&6; }
28464
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28466 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28467 gcc_cv_ld_pie_copyreloc=no
28468 if test $gcc_cv_ld_pie = yes ; then
28469 if test $in_tree_ld = yes ; then
28470 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
28471 gcc_cv_ld_pie_copyreloc=yes
28472 fi
28473 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28474 # Check if linker supports -pie option with copy reloc
28475 case "$target" in
28476 i?86-*-linux* | x86_64-*-linux*)
28477 cat > conftest1.s <<EOF
28478 .globl a_glob
28479 .data
28480 .type a_glob, @object
28481 .size a_glob, 4
28482 a_glob:
28483 .long 2
28484 EOF
28485 cat > conftest2.s <<EOF
28486 .text
28487 .globl main
28488 .type main, @function
28489 main:
28490 movl %eax, a_glob(%rip)
28491 .size main, .-main
28492 .globl ptr
28493 .section .data.rel,"aw",@progbits
28494 .type ptr, @object
28495 ptr:
28496 .quad a_glob
28497 EOF
28498 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28499 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28500 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28501 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28502 gcc_cv_ld_pie_copyreloc=yes
28503 fi
28504 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28505 ;;
28506 esac
28507 fi
28508 fi
28509
28510 cat >>confdefs.h <<_ACEOF
28511 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28512 _ACEOF
28513
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28515 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28516
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28518 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28519 gcc_cv_ld_eh_gc_sections=no
28520 if test $in_tree_ld = yes ; then
28521 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 \
28522 && test $in_tree_ld_is_elf = yes; then
28523 gcc_cv_ld_eh_gc_sections=yes
28524 fi
28525 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28526 cat > conftest.s <<EOF
28527 .section .text
28528 .globl _start
28529 .type _start, @function
28530 _start:
28531 .long foo
28532 .size _start, .-_start
28533 .section .text.foo,"ax",@progbits
28534 .type foo, @function
28535 foo:
28536 .long 0
28537 .size foo, .-foo
28538 .section .gcc_except_table.foo,"a",@progbits
28539 .L0:
28540 .long 0
28541 .section .eh_frame,"a",@progbits
28542 .long .L0
28543 EOF
28544 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28545 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28546 | grep "gc-sections option ignored" > /dev/null; then
28547 gcc_cv_ld_eh_gc_sections=no
28548 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28549 | grep gcc_except_table > /dev/null; then
28550 gcc_cv_ld_eh_gc_sections=yes
28551 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28552 if test x$gcc_cv_as_comdat_group != xyes; then
28553 gcc_cv_ld_eh_gc_sections=no
28554 cat > conftest.s <<EOF
28555 .section .text
28556 .globl _start
28557 .type _start, @function
28558 _start:
28559 .long foo
28560 .size _start, .-_start
28561 .section .gnu.linkonce.t.foo,"ax",@progbits
28562 .type foo, @function
28563 foo:
28564 .long 0
28565 .size foo, .-foo
28566 .section .gcc_except_table.foo,"a",@progbits
28567 .L0:
28568 .long 0
28569 .section .eh_frame,"a",@progbits
28570 .long .L0
28571 EOF
28572 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28573 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28574 | grep "gc-sections option ignored" > /dev/null; then
28575 gcc_cv_ld_eh_gc_sections=no
28576 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28577 | grep gcc_except_table > /dev/null; then
28578 gcc_cv_ld_eh_gc_sections=yes
28579 fi
28580 fi
28581 fi
28582 fi
28583 fi
28584 rm -f conftest.s conftest.o conftest
28585 fi
28586 case "$target" in
28587 hppa*-*-linux*)
28588 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28589 gcc_cv_ld_eh_gc_sections=no
28590 ;;
28591 esac
28592 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28593
28594 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28595
28596 fi
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28598 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28599
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28601 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28602 gcc_cv_ld_eh_gc_sections_bug=no
28603 if test $in_tree_ld = yes ; then
28604 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 \
28605 && test $in_tree_ld_is_elf = yes; then
28606 gcc_cv_ld_eh_gc_sections_bug=yes
28607 fi
28608 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
28609 gcc_cv_ld_eh_gc_sections_bug=yes
28610 cat > conftest.s <<EOF
28611 .section .text
28612 .globl _start
28613 .type _start, @function
28614 _start:
28615 .long foo
28616 .size _start, .-_start
28617 .section .text.startup.foo,"ax",@progbits
28618 .type foo, @function
28619 foo:
28620 .long 0
28621 .size foo, .-foo
28622 .section .gcc_except_table.foo,"a",@progbits
28623 .L0:
28624 .long 0
28625 .section .eh_frame,"a",@progbits
28626 .long .L0
28627 EOF
28628 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28629 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28630 | grep "gc-sections option ignored" > /dev/null; then
28631 :
28632 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28633 | grep gcc_except_table > /dev/null; then
28634 gcc_cv_ld_eh_gc_sections_bug=no
28635 fi
28636 fi
28637 rm -f conftest.s conftest.o conftest
28638 fi
28639 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28640
28641 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28642
28643 fi
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28645 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28646
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28648 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28649 # gold/gld support compressed debug sections since binutils 2.19/2.21
28650 # In binutils 2.26, gld gained support for the ELF gABI format.
28651 if test $in_tree_ld = yes ; then
28652 gcc_cv_ld_compress_debug=0
28653 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 \
28654 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28655 gcc_cv_ld_compress_debug=2
28656 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28657 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28658 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28659 gcc_cv_ld_compress_debug=3
28660 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28661 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 \
28662 && test $in_tree_ld_is_elf = yes; then
28663 gcc_cv_ld_compress_debug=1
28664 fi
28665 elif echo "$ld_ver" | grep GNU > /dev/null; then
28666 if test "$ld_vers_major" -lt 2 \
28667 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28668 gcc_cv_ld_compress_debug=0
28669 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28670 gcc_cv_ld_compress_debug=1
28671 else
28672 gcc_cv_ld_compress_debug=3
28673 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28674 fi
28675 if test $ld_is_gold = yes; then
28676 gcc_cv_ld_compress_debug=2
28677 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28678 fi
28679 else
28680 case "${target}" in
28681 *-*-solaris2*)
28682 # Introduced in Solaris 11.2.
28683 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28684 gcc_cv_ld_compress_debug=3
28685 gcc_cv_ld_compress_debug_option="-z compress-sections"
28686 else
28687 gcc_cv_ld_compress_debug=0
28688 fi
28689 ;;
28690 *)
28691 # Assume linkers other than GNU ld don't support compessed debug
28692 # sections.
28693 gcc_cv_ld_compress_debug=0
28694 ;;
28695 esac
28696 fi
28697
28698 cat >>confdefs.h <<_ACEOF
28699 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28700 _ACEOF
28701
28702
28703 cat >>confdefs.h <<_ACEOF
28704 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28705 _ACEOF
28706
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28708 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28709
28710 if test x"$ld64_flag" = x"yes"; then
28711
28712 # Set defaults for possibly untestable items.
28713 gcc_cv_ld64_export_dynamic=0
28714
28715 if test "$build" = "$host"; then
28716 darwin_try_test=1
28717 else
28718 darwin_try_test=0
28719 fi
28720
28721 # On Darwin, because of FAT library support, it is often possible to execute
28722 # exes from compatible archs even when the host differs from the build system.
28723 case "$build","$host" in
28724 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28725 darwin_try_test=1;;
28726 *) ;;
28727 esac
28728
28729 # If the configurer specified a minimum ld64 version to be supported, then use
28730 # that to determine feature support.
28731 if test x"${gcc_cv_ld64_version}" != x; then
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28733 $as_echo_n "checking ld64 specified version... " >&6; }
28734 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28736 $as_echo "$gcc_cv_ld64_major" >&6; }
28737 if test "$gcc_cv_ld64_major" -ge 236; then
28738 gcc_cv_ld64_export_dynamic=1
28739 fi
28740 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28741 # If the version was not specified, try to find it.
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28743 $as_echo_n "checking linker version... " >&6; }
28744 if test x"${gcc_cv_ld64_version}" = x; then
28745 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28746 fi
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28748 $as_echo "$gcc_cv_ld64_version" >&6; }
28749
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28751 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28752 gcc_cv_ld64_export_dynamic=1
28753 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28754 gcc_cv_ld64_export_dynamic=0
28755 fi
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28757 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28758 fi
28759
28760 if test x"${gcc_cv_ld64_version}" != x; then
28761
28762 cat >>confdefs.h <<_ACEOF
28763 #define LD64_VERSION "${gcc_cv_ld64_version}"
28764 _ACEOF
28765
28766 fi
28767
28768
28769 cat >>confdefs.h <<_ACEOF
28770 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28771 _ACEOF
28772
28773 fi
28774
28775 # --------
28776 # UNSORTED
28777 # --------
28778
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28780 $as_echo_n "checking linker --as-needed support... " >&6; }
28781 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28782 $as_echo_n "(cached) " >&6
28783 else
28784 gcc_cv_ld_as_needed=no
28785 gcc_cv_ld_as_needed_option='--as-needed'
28786 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28787 if test $in_tree_ld = yes ; then
28788 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 \
28789 && test $in_tree_ld_is_elf = yes; then
28790 gcc_cv_ld_as_needed=yes
28791 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28792 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28793 gcc_cv_ld_no_as_needed_option='--pop-state'
28794 fi
28795 fi
28796 elif test x$gcc_cv_ld != x; then
28797 # Check if linker supports --as-needed and --no-as-needed options
28798 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28799 gcc_cv_ld_as_needed=yes
28800 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28801 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28802 && echo "$ld_ver" | grep GNU > /dev/null \
28803 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28804 # Use these options only when both ld.bfd and ld.gold support
28805 # --push-state/--pop-state, which unfortunately wasn't added
28806 # at the same time.
28807 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28808 gcc_cv_ld_no_as_needed_option='--pop-state'
28809 fi
28810 fi
28811 case "$target:$gnu_ld" in
28812 *-*-solaris2*:no)
28813 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28814 # forms.
28815 gcc_cv_ld_as_needed=yes
28816 gcc_cv_ld_as_needed_option="-z ignore"
28817 gcc_cv_ld_no_as_needed_option="-z record"
28818 ;;
28819 esac
28820 fi
28821 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28822 # dl_iterate_phdr, i.e. since Solaris 11.
28823 case "$target" in
28824 *-*-solaris2.1[1-9]*)
28825 case "$target" in
28826 i?86-*-* | x86_64-*-*)
28827 if echo "$ld_ver" | grep GNU > /dev/null; then
28828 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28829 gcc_cv_ld_as_needed=no
28830 fi
28831 ;;
28832 esac
28833 ;;
28834 *-*-solaris2*)
28835 gcc_cv_ld_as_needed=no
28836 ;;
28837 esac
28838
28839 fi
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28841 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28842 if test x"$gcc_cv_ld_as_needed" = xyes; then
28843
28844 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28845
28846
28847 cat >>confdefs.h <<_ACEOF
28848 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28849 _ACEOF
28850
28851
28852 cat >>confdefs.h <<_ACEOF
28853 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28854 _ACEOF
28855
28856 fi
28857
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28859 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28860 saved_LDFLAGS="$LDFLAGS"
28861 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28862 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28864 /* end confdefs.h. */
28865 int main(void) {return 0;}
28866 _ACEOF
28867 if ac_fn_cxx_try_link "$LINENO"; then :
28868 gcc_cv_ld_clearcap=yes; break
28869 else
28870 gcc_cv_ld_clearcap=no
28871 fi
28872 rm -f core conftest.err conftest.$ac_objext \
28873 conftest$ac_exeext conftest.$ac_ext
28874 done
28875 LDFLAGS="$saved_LDFLAGS"
28876 if test "x$gcc_cv_ld_clearcap" = xyes; then
28877
28878 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28879
28880 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28881
28882 fi
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28884 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28885
28886 case "$target" in
28887 powerpc*-*-*)
28888 case "$target" in
28889 *le-*-linux*)
28890 emul_name="-melf32lppc"
28891 ;;
28892 *)
28893 emul_name="-melf32ppc"
28894 ;;
28895 esac
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28897 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28898 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28899 $as_echo_n "(cached) " >&6
28900 else
28901 gcc_cv_ld_ppc_attr=no
28902 if test x"$ld_is_gold" = xyes; then
28903 gcc_cv_ld_ppc_attr=yes
28904 elif test $in_tree_ld = yes ; then
28905 if test "$gcc_cv_gld_major_version" -eq 2 \
28906 -a "$gcc_cv_gld_minor_version" -ge 28 \
28907 -o "$gcc_cv_gld_major_version" -gt 2; then
28908 gcc_cv_ld_ppc_attr=yes
28909 fi
28910 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28911 # check that merging the long double .gnu_attribute doesn't warn
28912 cat > conftest1.s <<EOF
28913 .gnu_attribute 4,1
28914 EOF
28915 cat > conftest2.s <<EOF
28916 .gnu_attribute 4,9
28917 EOF
28918 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28919 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28920 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28921 && test ! -s conftest.err; then
28922 gcc_cv_ld_ppc_attr=yes
28923 fi
28924 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28925 fi
28926
28927 fi
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28929 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28930 if test x$gcc_cv_ld_ppc_attr = xyes; then
28931
28932 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28933
28934 fi
28935 ;;
28936 esac
28937
28938 case "$target:$tm_file" in
28939 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28940 case "$target" in
28941 *le-*-linux*)
28942 emul_name="-melf64lppc"
28943 ;;
28944 *-*-linux*)
28945 emul_name="-melf64ppc"
28946 ;;
28947 *-*-freebsd*)
28948 emul_name="-melf64ppc_fbsd"
28949 ;;
28950 esac
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28952 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28953 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28954 $as_echo_n "(cached) " >&6
28955 else
28956 gcc_cv_ld_no_dot_syms=no
28957 if test x"$ld_is_gold" = xyes; then
28958 gcc_cv_ld_no_dot_syms=yes
28959 elif test $in_tree_ld = yes ; then
28960 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
28961 gcc_cv_ld_no_dot_syms=yes
28962 fi
28963 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28964 cat > conftest1.s <<EOF
28965 .text
28966 bl .foo
28967 EOF
28968 cat > conftest2.s <<EOF
28969 .section ".opd","aw"
28970 .align 3
28971 .globl foo
28972 .type foo,@function
28973 foo:
28974 .quad .LEfoo,.TOC.@tocbase,0
28975 .text
28976 .LEfoo:
28977 blr
28978 .size foo,.-.LEfoo
28979 EOF
28980 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28981 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28982 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28983 gcc_cv_ld_no_dot_syms=yes
28984 fi
28985 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28986 fi
28987
28988 fi
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28990 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28991 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28992
28993 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28994
28995 fi
28996
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28998 $as_echo_n "checking linker large toc support... " >&6; }
28999 if test "${gcc_cv_ld_large_toc+set}" = set; then :
29000 $as_echo_n "(cached) " >&6
29001 else
29002 gcc_cv_ld_large_toc=no
29003 if test x"$ld_is_gold" = xyes; then
29004 gcc_cv_ld_large_toc=yes
29005 elif test $in_tree_ld = yes ; then
29006 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
29007 gcc_cv_ld_large_toc=yes
29008 fi
29009 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29010 cat > conftest.s <<EOF
29011 .section ".tbss","awT",@nobits
29012 .align 3
29013 ie0: .space 8
29014 .global _start
29015 .text
29016 _start:
29017 addis 9,13,ie0@got@tprel@ha
29018 ld 9,ie0@got@tprel@l(9)
29019 EOF
29020 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29021 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29022 gcc_cv_ld_large_toc=yes
29023 fi
29024 rm -f conftest conftest.o conftest.s
29025 fi
29026
29027 fi
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29029 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29030 if test x"$gcc_cv_ld_large_toc" = xyes; then
29031
29032 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29033
29034 fi
29035
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29037 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29038 if test "${gcc_cv_ld_toc_align+set}" = set; then :
29039 $as_echo_n "(cached) " >&6
29040 else
29041 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29042 cat > conftest.s <<EOF
29043 .global _start
29044 .text
29045 _start:
29046 addis 9,2,x@got@ha
29047 .section .data.rel.ro,"aw",@progbits
29048 .p2align 16
29049 .space 32768
29050 x: .quad .TOC.
29051 EOF
29052 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29053 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29054 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
29055 fi
29056 rm -f conftest conftest.o conftest.s
29057 fi
29058
29059 fi
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29061 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29062 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29063
29064 cat >>confdefs.h <<_ACEOF
29065 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29066 _ACEOF
29067
29068 fi
29069 ;;
29070 esac
29071
29072 case "$target" in
29073 *-*-aix*)
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29075 $as_echo_n "checking linker large toc support... " >&6; }
29076 if test "${gcc_cv_ld_large_toc+set}" = set; then :
29077 $as_echo_n "(cached) " >&6
29078 else
29079 gcc_cv_ld_large_toc=no
29080 if test x$gcc_cv_as != x ; then
29081 cat > conftest.s <<EOF
29082 .toc
29083 LC..1:
29084 .tc a[TC],a[RW]
29085 .extern a[RW]
29086 .csect .text[PR]
29087 .largetoctest:
29088 addis 9,LC..1@u(2)
29089 ld 3,LC..1@l(9)
29090 EOF
29091 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29092 gcc_cv_ld_large_toc=yes
29093 fi
29094 rm -f conftest conftest.o conftest.s
29095 fi
29096
29097 fi
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29099 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29100 if test x"$gcc_cv_ld_large_toc" = xyes; then
29101
29102 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29103
29104 fi
29105 ;;
29106 esac
29107
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29109 $as_echo_n "checking linker --build-id support... " >&6; }
29110 if test "${gcc_cv_ld_buildid+set}" = set; then :
29111 $as_echo_n "(cached) " >&6
29112 else
29113 gcc_cv_ld_buildid=no
29114 if test $in_tree_ld = yes ; then
29115 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29116 "$gcc_cv_gld_minor_version" -ge 18 -o \
29117 "$gcc_cv_gld_major_version" -gt 2 \
29118 && test $in_tree_ld_is_elf = yes; then
29119 gcc_cv_ld_buildid=yes
29120 fi
29121 elif test x$gcc_cv_ld != x; then
29122 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29123 gcc_cv_ld_buildid=yes
29124 fi
29125 fi
29126 fi
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29128 $as_echo "$gcc_cv_ld_buildid" >&6; }
29129 if test x"$gcc_cv_ld_buildid" = xyes; then
29130
29131 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29132
29133 fi
29134
29135 # Check whether --enable-linker-build-id was given.
29136 if test "${enable_linker_build_id+set}" = set; then :
29137 enableval=$enable_linker_build_id;
29138 else
29139 enable_linker_build_id=no
29140 fi
29141
29142
29143 if test x"$enable_linker_build_id" = xyes; then
29144 if test x"$gcc_cv_ld_buildid" = xyes; then
29145
29146 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29147
29148 else
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29150 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29151 fi
29152 fi
29153
29154 # In binutils 2.21, GNU ld gained support for new emulations fully
29155 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29157 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29158 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
29159 $as_echo_n "(cached) " >&6
29160 else
29161 gcc_cv_ld_sol2_emulation=no
29162 if test $in_tree_ld = yes ; then
29163 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29164 "$gcc_cv_gld_minor_version" -ge 21 -o \
29165 "$gcc_cv_gld_major_version" -gt 2 \
29166 && test $in_tree_ld_is_elf = yes; then
29167 gcc_cv_ld_sol2_emulation=yes
29168 fi
29169 elif test x$gcc_cv_ld != x; then
29170 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29171 grep _sol2 > /dev/null; then
29172 gcc_cv_ld_sol2_emulation=yes
29173 fi
29174 fi
29175 fi
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29177 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29178 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29179
29180 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29181
29182 fi
29183
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29185 $as_echo_n "checking linker --sysroot support... " >&6; }
29186 if test "${gcc_cv_ld_sysroot+set}" = set; then :
29187 $as_echo_n "(cached) " >&6
29188 else
29189 gcc_cv_ld_sysroot=no
29190 if test $in_tree_ld = yes ; then
29191 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
29192 gcc_cv_ld_sysroot=yes
29193 fi
29194 elif test x$gcc_cv_ld != x; then
29195 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29196 gcc_cv_ld_sysroot=yes
29197 fi
29198 fi
29199 fi
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29201 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29202 if test x"$gcc_cv_ld_sysroot" = xyes; then
29203
29204 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29205
29206 fi
29207
29208 case $target in
29209 *-*-solaris2*)
29210 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29212 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29213 if test "${gcc_cv_solaris_crts+set}" = set; then :
29214 $as_echo_n "(cached) " >&6
29215 else
29216 gcc_cv_solaris_crts=no
29217 if test x$host != x$target; then
29218 if test "x$with_sysroot" = xyes; then
29219 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29220 else
29221 target_sysroot="${with_sysroot}"
29222 fi
29223 fi
29224 target_libdir="$target_sysroot/usr/lib"
29225 # At the time they were added, gcrt1.o became a symlink for backwards
29226 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29227 case $target in
29228 i?86-*-solaris2* | x86_64-*-solaris2*)
29229 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29230 ;;
29231 sparc*-*-solaris2*)
29232 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29233 ;;
29234 esac
29235 fi
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29237 $as_echo "$gcc_cv_solaris_crts" >&6; }
29238 ;;
29239 esac
29240 if test x$gcc_cv_solaris_crts = xyes; then
29241
29242 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29243
29244 fi
29245
29246 # Check whether --enable-libssp was given.
29247 if test "${enable_libssp+set}" = set; then :
29248 enableval=$enable_libssp; case "${enableval}" in
29249 yes|no)
29250 ;;
29251 *)
29252 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29253 ;;
29254 esac
29255 fi
29256
29257
29258 # Test for stack protector support in target C library.
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29260 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29261 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29262 $as_echo_n "(cached) " >&6
29263 else
29264 gcc_cv_libc_provides_ssp=no
29265 if test "x$enable_libssp" = "xno"; then
29266 gcc_cv_libc_provides_ssp=yes
29267 elif test "x$enable_libssp" = "xyes"; then
29268 gcc_cv_libc_provides_ssp=no
29269 else
29270 case "$target" in
29271 *-*-musl*)
29272 # All versions of musl provide stack protector
29273 gcc_cv_libc_provides_ssp=yes;;
29274 *-*-linux* | *-*-kfreebsd*-gnu)
29275 # glibc 2.4 and later provides __stack_chk_fail and
29276 # either __stack_chk_guard, or TLS access to stack guard canary.
29277
29278 if test $glibc_version_major -gt 2 \
29279 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29280 gcc_cv_libc_provides_ssp=yes
29281 else
29282
29283 if test -f $target_header_dir/features.h \
29284 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29285 $target_header_dir/features.h > /dev/null; then
29286 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29287 $target_header_dir/features.h > /dev/null && \
29288 test -f $target_header_dir/bits/uClibc_config.h && \
29289 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29290 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29291 gcc_cv_libc_provides_ssp=yes
29292 fi
29293 # all versions of Bionic support stack protector
29294 elif test -f $target_header_dir/sys/cdefs.h \
29295 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29296 $target_header_dir/sys/cdefs.h > /dev/null; then
29297 gcc_cv_libc_provides_ssp=yes
29298 fi
29299 fi
29300 ;;
29301 *-*-gnu*)
29302 # Avoid complicated tests (see
29303 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29304 # simply assert that glibc does provide this, which is true for all
29305 # realistically usable GNU/Hurd configurations.
29306 # All supported versions of musl provide it as well
29307 gcc_cv_libc_provides_ssp=yes;;
29308 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29309 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29310 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29311 gcc_cv_libc_provides_ssp=yes
29312 else
29313 echo "no __stack_chk_fail on this target"
29314 fi
29315
29316 ;;
29317 *) gcc_cv_libc_provides_ssp=no ;;
29318 esac
29319 fi
29320 fi
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29322 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29323
29324 if test x$gcc_cv_libc_provides_ssp = xyes; then
29325
29326 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29327
29328 fi
29329
29330 # Check whether --enable-default-ssp was given.
29331 # Check whether --enable-default-ssp was given.
29332 if test "${enable_default_ssp+set}" = set; then :
29333 enableval=$enable_default_ssp;
29334 if test x$gcc_cv_libc_provides_ssp = xyes; then
29335 case "$target" in
29336 ia64*-*-*) enable_default_ssp=no ;;
29337 *) enable_default_ssp=$enableval ;;
29338 esac
29339 else
29340 enable_default_ssp=no
29341 fi
29342 else
29343 enable_default_ssp=no
29344 fi
29345
29346 if test x$enable_default_ssp = xyes ; then
29347
29348 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29349
29350 fi
29351
29352
29353 # Test for <sys/sdt.h> on the target.
29354
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29356 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29357 have_sys_sdt_h=no
29358 if test -f $target_header_dir/sys/sdt.h; then
29359 have_sys_sdt_h=yes
29360
29361 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29362
29363 fi
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29365 $as_echo "$have_sys_sdt_h" >&6; }
29366
29367 # Check if TFmode long double should be used by default or not.
29368 # Some glibc targets used DFmode long double, but with glibc 2.4
29369 # and later they can use TFmode.
29370 case "$target" in
29371 powerpc*-*-linux* | \
29372 sparc*-*-linux* | \
29373 s390*-*-linux* | \
29374 alpha*-*-linux*)
29375
29376 # Check whether --with-long-double-128 was given.
29377 if test "${with_long_double_128+set}" = set; then :
29378 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29379 else
29380
29381 if test $glibc_version_major -gt 2 \
29382 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29383 gcc_cv_target_ldbl128=yes
29384 else
29385
29386 gcc_cv_target_ldbl128=no
29387 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29388 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29389 && gcc_cv_target_ldbl128=yes
29390
29391 fi
29392 fi
29393
29394 ;;
29395 esac
29396 if test x$gcc_cv_target_ldbl128 = xyes; then
29397
29398 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29399
29400 fi
29401
29402 # Check if TFmode long double target should use the IBM extended double or IEEE
29403 # 128-bit floating point formats if long doubles are 128-bits long. The long
29404 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29405 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29406 # libgcc.
29407
29408 # Check whether --with-long-double-format was given.
29409 if test "${with_long_double_format+set}" = set; then :
29410 withval=$with_long_double_format;
29411 case "$target:$with_long_double_format" in
29412 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29413 :
29414 ;;
29415 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29416 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29417 case "$with_cpu" in
29418 power7 | power8 | power9 | power1*)
29419 :
29420 ;;
29421 *)
29422 as_fn_error "Configuration option --with-long-double-format is only \
29423 supported if the default cpu is power7 or newer" "$LINENO" 5
29424 with_long_double_format=""
29425 ;;
29426 esac
29427 ;;
29428 xpowerpc64*-*-linux*:*)
29429 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29430 with_long_double_format=""
29431 ;;
29432 *)
29433 as_fn_error "Configure option --with-long-double-format is only supported \
29434 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29435 with_long_double_format=""
29436 ;;
29437 esac
29438 fi
29439
29440
29441 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29442 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29443 gcc_cv_libc_provides_hwcap_in_tcb=no
29444 case "$target" in
29445 powerpc*-*-linux*)
29446
29447 if test $glibc_version_major -gt 2 \
29448 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29449 gcc_cv_libc_provides_hwcap_in_tcb=yes
29450 fi
29451 ;;
29452 esac
29453 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29454
29455 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29456
29457 fi
29458
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29460 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29461 gcc_cv_target_dl_iterate_phdr=unknown
29462 case "$target" in
29463 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29464 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29465 # libdl there, both complicating its use and breaking compatibility
29466 # between Solaris 10 updates.
29467 *-*-solaris2.1[1-9]*)
29468 # <link.h> needs both a dl_iterate_phdr declaration and support for
29469 # compilation with largefile support.
29470 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29471 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29472 gcc_cv_target_dl_iterate_phdr=yes
29473 else
29474 gcc_cv_target_dl_iterate_phdr=no
29475 fi
29476 ;;
29477 *-*-dragonfly* | *-*-freebsd*)
29478 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29479 gcc_cv_target_dl_iterate_phdr=yes
29480 else
29481 gcc_cv_target_dl_iterate_phdr=no
29482 fi
29483 ;;
29484 *-linux-musl*)
29485 gcc_cv_target_dl_iterate_phdr=yes
29486 ;;
29487 esac
29488
29489 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29490
29491 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29492
29493 fi
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29495 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29496
29497 # We no longer support different GC mechanisms. Emit an error if
29498 # the user configures with --with-gc.
29499
29500 # Check whether --with-gc was given.
29501 if test "${with_gc+set}" = set; then :
29502 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29503 fi
29504
29505
29506 # Libraries to use on the host. This will normally be set by the top
29507 # level Makefile. Here we simply capture the value for our Makefile.
29508 if test -z "${HOST_LIBS+set}"; then
29509 HOST_LIBS=
29510 fi
29511
29512
29513 # Use the system's zlib library.
29514
29515 # Use the system's zlib library.
29516 zlibdir="-L\$(top_builddir)/../zlib"
29517 zlibinc="-I\$(top_srcdir)/../zlib"
29518
29519 # Check whether --with-system-zlib was given.
29520 if test "${with_system_zlib+set}" = set; then :
29521 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29522 zlibdir=
29523 zlibinc=
29524 fi
29525
29526 fi
29527
29528
29529
29530
29531
29532
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29534 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29535 # Check whether --enable-maintainer-mode was given.
29536 if test "${enable_maintainer_mode+set}" = set; then :
29537 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29538 else
29539 maintainer_mode=no
29540 fi
29541
29542
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29544 $as_echo "$maintainer_mode" >&6; }
29545
29546 if test "$maintainer_mode" = "yes"; then
29547 MAINT=''
29548 else
29549 MAINT='#'
29550 fi
29551
29552
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29554 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29555 # Check whether --enable-link-mutex was given.
29556 if test "${enable_link_mutex+set}" = set; then :
29557 enableval=$enable_link_mutex; do_link_mutex=$enableval
29558 else
29559 do_link_mutex=no
29560 fi
29561
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29563 $as_echo "$do_link_mutex" >&6; }
29564
29565 if test "$do_link_mutex" = "yes"; then
29566 DO_LINK_MUTEX=true
29567 else
29568 DO_LINK_MUTEX=false
29569 fi
29570
29571
29572 # --------------
29573 # Language hooks
29574 # --------------
29575
29576 # Make empty files to contain the specs and options for each language.
29577 # Then add #include lines to for a compiler that has specs and/or options.
29578
29579 subdirs=
29580 lang_opt_files=
29581 lang_specs_files=
29582 lang_tree_files=
29583 # These (without "all_") are set in each config-lang.in.
29584 # `language' must be a single word so is spelled singularly.
29585 all_languages=
29586 all_compilers=
29587 all_outputs='Makefile'
29588 # List of language makefile fragments.
29589 all_lang_makefrags=
29590 # Additional files for gengtype
29591 all_gtfiles="$target_gtfiles"
29592
29593 # These are the languages that are set in --enable-languages,
29594 # and are available in the GCC tree.
29595 all_selected_languages=
29596
29597 # Add the language fragments.
29598 # Languages are added via two mechanisms. Some information must be
29599 # recorded in makefile variables, these are defined in config-lang.in.
29600 # We accumulate them and plug them into the main Makefile.
29601 # The other mechanism is a set of hooks for each of the main targets
29602 # like `clean', `install', etc.
29603
29604 language_hooks="Make-hooks"
29605
29606 for lang in ${srcdir}/*/config-lang.in
29607 do
29608 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29609
29610 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29611 if test "x$lang_alias" = x
29612 then
29613 echo "$lang doesn't set \$language." 1>&2
29614 exit 1
29615 fi
29616 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29617 subdirs="$subdirs $subdir"
29618
29619 # $gcc_subdir is where the gcc integration files are to be found
29620 # for a language, both for internal compiler purposes (compiler
29621 # sources implementing front-end to GCC tree converters), and for
29622 # build infrastructure purposes (Make-lang.in, etc.)
29623 #
29624 # This will be <subdir> (relative to $srcdir) if a line like
29625 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29626 # is found in <langdir>/config-lang.in, and will remain <langdir>
29627 # otherwise.
29628 #
29629 # Except for the language alias (fetched above), the regular
29630 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29631 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29632 # only this and the language alias.
29633
29634 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29635 if [ "$gcc_subdir" = "" ]; then
29636 gcc_subdir="$subdir"
29637 fi
29638
29639 case ",$enable_languages," in
29640 *,$lang_alias,*)
29641 all_selected_languages="$all_selected_languages $lang_alias"
29642 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29643 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29644 fi
29645 ;;
29646 esac
29647
29648 language=
29649 boot_language=
29650 compilers=
29651 outputs=
29652 gtfiles=
29653 subdir_requires=
29654 . ${srcdir}/$gcc_subdir/config-lang.in
29655 if test "x$language" = x
29656 then
29657 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29658 exit 1
29659 fi
29660
29661 ok=:
29662 case ",$enable_languages," in
29663 *,$lang_alias,*) ;;
29664 *)
29665 for i in $subdir_requires; do
29666 test -f "${srcdir}/$i/config-lang.in" && continue
29667 ok=false
29668 break
29669 done
29670 ;;
29671 esac
29672 $ok || continue
29673
29674 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29675 if test -f $srcdir/$gcc_subdir/lang.opt; then
29676 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29677 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29678 fi
29679 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29680 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29681 fi
29682 all_languages="$all_languages $language"
29683 all_compilers="$all_compilers $compilers"
29684 all_outputs="$all_outputs $outputs"
29685 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29686 case ",$enable_languages," in
29687 *,lto,*)
29688
29689 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29690
29691 enable_lto=yes
29692
29693 ;;
29694 *) ;;
29695 esac
29696 done
29697
29698 check_languages=
29699 for language in $all_selected_languages
29700 do
29701 check_languages="$check_languages check-$language"
29702 done
29703
29704 # We link each language in with a set of hooks, reached indirectly via
29705 # lang.${target}. Only do so for selected languages.
29706
29707 rm -f Make-hooks
29708 touch Make-hooks
29709 target_list="all.cross start.encap rest.encap tags \
29710 install-common install-man install-info install-pdf install-html dvi \
29711 pdf html uninstall info man srcextra srcman srcinfo \
29712 mostlyclean clean distclean maintainer-clean install-plugin"
29713
29714 for t in $target_list
29715 do
29716 x=
29717 for lang in $all_selected_languages
29718 do
29719 x="$x $lang.$t"
29720 done
29721 echo "lang.$t: $x" >> Make-hooks
29722 done
29723
29724 # --------
29725 # Option include files
29726 # --------
29727
29728 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29729 option_includes="option-includes.mk"
29730
29731
29732 # --------
29733 # UNSORTED
29734 # --------
29735
29736 # Create .gdbinit.
29737
29738 echo "dir ." > .gdbinit
29739 echo "dir ${srcdir}" >> .gdbinit
29740 if test x$gdb_needs_out_file_path = xyes
29741 then
29742 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29743 fi
29744 if test "x$subdirs" != x; then
29745 for s in $subdirs
29746 do
29747 echo "dir ${srcdir}/$s" >> .gdbinit
29748 done
29749 fi
29750 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29751 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29752
29753 # Put a breakpoint on __asan_report_error to help with debugging buffer
29754 # overflow.
29755 case "$CFLAGS" in
29756 *-fsanitize=address*)
29757 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29758 ;;
29759 esac
29760
29761 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29762
29763
29764
29765 # Find a directory in which to install a shared libgcc.
29766
29767 # Check whether --enable-version-specific-runtime-libs was given.
29768 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29769 enableval=$enable_version_specific_runtime_libs;
29770 fi
29771
29772
29773 # Substitute configuration variables
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836 # Echo link setup.
29837 if test x${build} = x${host} ; then
29838 if test x${host} = x${target} ; then
29839 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29840 else
29841 echo "Links are now set up to build a cross-compiler" 1>&2
29842 echo " from ${host} to ${target}." 1>&2
29843 fi
29844 else
29845 if test x${host} = x${target} ; then
29846 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29847 echo " for ${target}." 1>&2
29848 else
29849 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29850 echo " from ${host} to ${target}." 1>&2
29851 fi
29852 fi
29853
29854
29855
29856
29857
29858
29859 if test "x${ISLLIBS}" != "x" ; then
29860
29861 $as_echo "#define HAVE_isl 1" >>confdefs.h
29862
29863 fi
29864
29865 # Check for plugin support
29866 # Check whether --enable-plugin was given.
29867 if test "${enable_plugin+set}" = set; then :
29868 enableval=$enable_plugin; enable_plugin=$enableval
29869 else
29870 enable_plugin=yes; default_plugin=yes
29871 fi
29872
29873
29874 pluginlibs=
29875 plugin_check=yes
29876
29877 case "${host}" in
29878 *-*-mingw*)
29879 # Since plugin support under MinGW is not as straightforward as on
29880 # other platforms (e.g., we have to link import library, etc), we
29881 # only enable it if explicitly requested.
29882 if test x"$default_plugin" = x"yes"; then
29883 enable_plugin=no
29884 elif test x"$enable_plugin" = x"yes"; then
29885 # Use make's target variable to derive import library name.
29886 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29887 plugin_check=no
29888 fi
29889 ;;
29890 *-*-darwin*)
29891 if test x$build = x$host; then
29892 export_sym_check="nm${exeext} -g"
29893 elif test x$host = x$target; then
29894 export_sym_check="$gcc_cv_nm -g"
29895 else
29896 export_sym_check=
29897 fi
29898 ;;
29899 *)
29900 if test x$build = x$host; then
29901 export_sym_check="objdump${exeext} -T"
29902 elif test x$host = x$target; then
29903 export_sym_check="$gcc_cv_objdump -T"
29904 else
29905 export_sym_check=
29906 fi
29907 ;;
29908 esac
29909
29910 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29911
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29913 $as_echo_n "checking for exported symbols... " >&6; }
29914 if test "x$export_sym_check" != x; then
29915 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29916 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29917 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29918 : # No need to use a flag
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29920 $as_echo "yes" >&6; }
29921 else
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29923 $as_echo "yes" >&6; }
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29925 $as_echo_n "checking for -rdynamic... " >&6; }
29926 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29927 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29928 plugin_rdynamic=yes
29929 pluginlibs="-rdynamic"
29930 else
29931 plugin_rdynamic=no
29932 enable_plugin=no
29933 fi
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29935 $as_echo "$plugin_rdynamic" >&6; }
29936 fi
29937 else
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29939 $as_echo "unable to check" >&6; }
29940 fi
29941
29942 # Check -ldl
29943 saved_LIBS="$LIBS"
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29945 $as_echo_n "checking for library containing dlopen... " >&6; }
29946 if test "${ac_cv_search_dlopen+set}" = set; then :
29947 $as_echo_n "(cached) " >&6
29948 else
29949 ac_func_search_save_LIBS=$LIBS
29950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29951 /* end confdefs.h. */
29952
29953 /* Override any GCC internal prototype to avoid an error.
29954 Use char because int might match the return type of a GCC
29955 builtin and then its argument prototype would still apply. */
29956 #ifdef __cplusplus
29957 extern "C"
29958 #endif
29959 char dlopen ();
29960 int
29961 main ()
29962 {
29963 return dlopen ();
29964 ;
29965 return 0;
29966 }
29967 _ACEOF
29968 for ac_lib in '' dl; do
29969 if test -z "$ac_lib"; then
29970 ac_res="none required"
29971 else
29972 ac_res=-l$ac_lib
29973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29974 fi
29975 if ac_fn_cxx_try_link "$LINENO"; then :
29976 ac_cv_search_dlopen=$ac_res
29977 fi
29978 rm -f core conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext
29980 if test "${ac_cv_search_dlopen+set}" = set; then :
29981 break
29982 fi
29983 done
29984 if test "${ac_cv_search_dlopen+set}" = set; then :
29985
29986 else
29987 ac_cv_search_dlopen=no
29988 fi
29989 rm conftest.$ac_ext
29990 LIBS=$ac_func_search_save_LIBS
29991 fi
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29993 $as_echo "$ac_cv_search_dlopen" >&6; }
29994 ac_res=$ac_cv_search_dlopen
29995 if test "$ac_res" != no; then :
29996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29997
29998 fi
29999
30000 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30001 pluginlibs="$pluginlibs -ldl"
30002 fi
30003 LIBS="$saved_LIBS"
30004
30005 # Check that we can build shared objects with -fPIC -shared
30006 saved_LDFLAGS="$LDFLAGS"
30007 saved_CFLAGS="$CFLAGS"
30008 case "${host}" in
30009 *-*-darwin*)
30010 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30011 CFLAGS="$CFLAGS -fPIC"
30012 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30013 ;;
30014 *)
30015 CFLAGS="$CFLAGS -fPIC"
30016 LDFLAGS="$LDFLAGS -fPIC -shared"
30017 ;;
30018 esac
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30020 $as_echo_n "checking for -fPIC -shared... " >&6; }
30021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30022 /* end confdefs.h. */
30023 extern int X;
30024 int
30025 main ()
30026 {
30027 return X == 0;
30028 ;
30029 return 0;
30030 }
30031 _ACEOF
30032 if ac_fn_cxx_try_link "$LINENO"; then :
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30034 $as_echo "yes" >&6; }; have_pic_shared=yes
30035 else
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30037 $as_echo "no" >&6; }; have_pic_shared=no
30038 fi
30039 rm -f core conftest.err conftest.$ac_objext \
30040 conftest$ac_exeext conftest.$ac_ext
30041 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30042 pluginlibs=
30043 enable_plugin=no
30044 fi
30045 LDFLAGS="$saved_LDFLAGS"
30046 CFLAGS="$saved_CFLAGS"
30047
30048 # If plugin support had been requested but not available, fail.
30049 if test x"$enable_plugin" = x"no" ; then
30050 if test x"$default_plugin" != x"yes"; then
30051 as_fn_error "
30052 Building GCC with plugin support requires a host that supports
30053 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30054 fi
30055 fi
30056 fi
30057
30058
30059
30060 if test x"$enable_plugin" = x"yes"; then
30061
30062 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30063
30064 fi
30065
30066
30067 # Enable --enable-host-shared
30068 # Check whether --enable-host-shared was given.
30069 if test "${enable_host_shared+set}" = set; then :
30070 enableval=$enable_host_shared; PICFLAG=-fPIC
30071 else
30072 PICFLAG=
30073 fi
30074
30075
30076
30077
30078
30079 # Check whether --enable-libquadmath-support was given.
30080 if test "${enable_libquadmath_support+set}" = set; then :
30081 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30082 else
30083 ENABLE_LIBQUADMATH_SUPPORT=yes
30084 fi
30085
30086 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30087
30088 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30089
30090 fi
30091
30092
30093 # Specify what hash style to use by default.
30094
30095 # Check whether --with-linker-hash-style was given.
30096 if test "${with_linker_hash_style+set}" = set; then :
30097 withval=$with_linker_hash_style; case x"$withval" in
30098 xsysv)
30099 LINKER_HASH_STYLE=sysv
30100 ;;
30101 xgnu)
30102 LINKER_HASH_STYLE=gnu
30103 ;;
30104 xboth)
30105 LINKER_HASH_STYLE=both
30106 ;;
30107 *)
30108 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30109 ;;
30110 esac
30111 else
30112 LINKER_HASH_STYLE=''
30113 fi
30114
30115 if test x"${LINKER_HASH_STYLE}" != x; then
30116
30117 cat >>confdefs.h <<_ACEOF
30118 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30119 _ACEOF
30120
30121 fi
30122
30123 # Specify what should be the default of -fdiagnostics-color option.
30124
30125 # Check whether --with-diagnostics-color was given.
30126 if test "${with_diagnostics_color+set}" = set; then :
30127 withval=$with_diagnostics_color; case x"$withval" in
30128 xnever)
30129 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30130 ;;
30131 xauto)
30132 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30133 ;;
30134 xauto-if-env)
30135 DIAGNOSTICS_COLOR_DEFAULT=-1
30136 ;;
30137 xalways)
30138 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30139 ;;
30140 *)
30141 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30142 ;;
30143 esac
30144 else
30145 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30146 fi
30147
30148
30149 cat >>confdefs.h <<_ACEOF
30150 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30151 _ACEOF
30152
30153
30154 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30155 # of jit/jit-playback.c.
30156 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30157 echo "gcc_driver_version: ${gcc_driver_version}"
30158 cat > gcc-driver-name.h <<EOF
30159 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30160 EOF
30161
30162 # Check whether --enable-default-pie was given.
30163 # Check whether --enable-default-pie was given.
30164 if test "${enable_default_pie+set}" = set; then :
30165 enableval=$enable_default_pie; enable_default_pie=$enableval
30166 else
30167 enable_default_pie=no
30168 fi
30169
30170 if test x$enable_default_pie = xyes ; then
30171
30172 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30173
30174 fi
30175
30176
30177 # Check if -fno-PIE works.
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30179 $as_echo_n "checking for -fno-PIE option... " >&6; }
30180 if test "${gcc_cv_c_no_fpie+set}" = set; then :
30181 $as_echo_n "(cached) " >&6
30182 else
30183 saved_CXXFLAGS="$CXXFLAGS"
30184 CXXFLAGS="$CXXFLAGS -fno-PIE"
30185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30186 /* end confdefs.h. */
30187 int main(void) {return 0;}
30188 _ACEOF
30189 if ac_fn_cxx_try_compile "$LINENO"; then :
30190 gcc_cv_c_no_fpie=yes
30191 else
30192 gcc_cv_c_no_fpie=no
30193 fi
30194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30195 CXXFLAGS="$saved_CXXFLAGS"
30196 fi
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30198 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30199 if test "$gcc_cv_c_no_fpie" = "yes"; then
30200 NO_PIE_CFLAGS="-fno-PIE"
30201 fi
30202
30203
30204 # Check if -no-pie works.
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30206 $as_echo_n "checking for -no-pie option... " >&6; }
30207 if test "${gcc_cv_no_pie+set}" = set; then :
30208 $as_echo_n "(cached) " >&6
30209 else
30210 saved_LDFLAGS="$LDFLAGS"
30211 LDFLAGS="$LDFLAGS -no-pie"
30212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30213 /* end confdefs.h. */
30214 int main(void) {return 0;}
30215 _ACEOF
30216 if ac_fn_cxx_try_link "$LINENO"; then :
30217 gcc_cv_no_pie=yes
30218 else
30219 gcc_cv_no_pie=no
30220 fi
30221 rm -f core conftest.err conftest.$ac_objext \
30222 conftest$ac_exeext conftest.$ac_ext
30223 LDFLAGS="$saved_LDFLAGS"
30224 fi
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30226 $as_echo "$gcc_cv_no_pie" >&6; }
30227 if test "$gcc_cv_no_pie" = "yes"; then
30228 NO_PIE_FLAG="-no-pie"
30229 fi
30230
30231
30232 # Check linker supports '-z bndplt'
30233 ld_bndplt_support=no
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30235 $as_echo_n "checking linker -z bndplt option... " >&6; }
30236 if test x"$ld_is_gold" = xno; then
30237 if test $in_tree_ld = yes ; then
30238 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
30239 ld_bndplt_support=yes
30240 fi
30241 elif test x$gcc_cv_ld != x; then
30242 # Check if linker supports -a bndplt option
30243 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30244 ld_bndplt_support=yes
30245 fi
30246 fi
30247 fi
30248 if test x"$ld_bndplt_support" = xyes; then
30249
30250 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30251
30252 fi
30253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30254 $as_echo "$ld_bndplt_support" >&6; }
30255
30256 # Check linker supports '--push-state'/'--pop-state'
30257 ld_pushpopstate_support=no
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30259 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30260 if test x"$ld_is_gold" = xno; then
30261 if test $in_tree_ld = yes ; then
30262 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
30263 ld_pushpopstate_support=yes
30264 fi
30265 elif test x$gcc_cv_ld != x; then
30266 # Check if linker supports --push-state/--pop-state options
30267 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30268 ld_pushpopstate_support=yes
30269 fi
30270 fi
30271 fi
30272 if test x"$ld_pushpopstate_support" = xyes; then
30273
30274 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30275
30276 fi
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30278 $as_echo "$ld_pushpopstate_support" >&6; }
30279
30280 # Configure the subdirectories
30281 # AC_CONFIG_SUBDIRS($subdirs)
30282
30283 # Create the Makefile
30284 # and configure language subdirectories
30285 ac_config_files="$ac_config_files $all_outputs"
30286
30287
30288 ac_config_commands="$ac_config_commands default"
30289
30290 cat >confcache <<\_ACEOF
30291 # This file is a shell script that caches the results of configure
30292 # tests run on this system so they can be shared between configure
30293 # scripts and configure runs, see configure's option --config-cache.
30294 # It is not useful on other systems. If it contains results you don't
30295 # want to keep, you may remove or edit it.
30296 #
30297 # config.status only pays attention to the cache file if you give it
30298 # the --recheck option to rerun configure.
30299 #
30300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30302 # following values.
30303
30304 _ACEOF
30305
30306 # The following way of writing the cache mishandles newlines in values,
30307 # but we know of no workaround that is simple, portable, and efficient.
30308 # So, we kill variables containing newlines.
30309 # Ultrix sh set writes to stderr and can't be redirected directly,
30310 # and sets the high bit in the cache file unless we assign to the vars.
30311 (
30312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30313 eval ac_val=\$$ac_var
30314 case $ac_val in #(
30315 *${as_nl}*)
30316 case $ac_var in #(
30317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30319 esac
30320 case $ac_var in #(
30321 _ | IFS | as_nl) ;; #(
30322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30323 *) { eval $ac_var=; unset $ac_var;} ;;
30324 esac ;;
30325 esac
30326 done
30327
30328 (set) 2>&1 |
30329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30330 *${as_nl}ac_space=\ *)
30331 # `set' does not quote correctly, so add quotes: double-quote
30332 # substitution turns \\\\ into \\, and sed turns \\ into \.
30333 sed -n \
30334 "s/'/'\\\\''/g;
30335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30336 ;; #(
30337 *)
30338 # `set' quotes correctly as required by POSIX, so do not add quotes.
30339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30340 ;;
30341 esac |
30342 sort
30343 ) |
30344 sed '
30345 /^ac_cv_env_/b end
30346 t clear
30347 :clear
30348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30349 t end
30350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30351 :end' >>confcache
30352 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30353 if test -w "$cache_file"; then
30354 test "x$cache_file" != "x/dev/null" &&
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30356 $as_echo "$as_me: updating cache $cache_file" >&6;}
30357 cat confcache >$cache_file
30358 else
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30360 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30361 fi
30362 fi
30363 rm -f confcache
30364
30365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30366 # Let make expand exec_prefix.
30367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30368
30369 DEFS=-DHAVE_CONFIG_H
30370
30371 ac_libobjs=
30372 ac_ltlibobjs=
30373 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30374 # 1. Remove the extension, and $U if already installed.
30375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30376 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30378 # will be set to the directory where LIBOBJS objects are built.
30379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30381 done
30382 LIBOBJS=$ac_libobjs
30383
30384 LTLIBOBJS=$ac_ltlibobjs
30385
30386
30387
30388
30389 : ${CONFIG_STATUS=./config.status}
30390 ac_write_fail=0
30391 ac_clean_files_save=$ac_clean_files
30392 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30394 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30395 as_write_fail=0
30396 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30397 #! $SHELL
30398 # Generated by $as_me.
30399 # Run this file to recreate the current configuration.
30400 # Compiler output produced by configure, useful for debugging
30401 # configure, is in config.log if it exists.
30402
30403 debug=false
30404 ac_cs_recheck=false
30405 ac_cs_silent=false
30406
30407 SHELL=\${CONFIG_SHELL-$SHELL}
30408 export SHELL
30409 _ASEOF
30410 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30411 ## -------------------- ##
30412 ## M4sh Initialization. ##
30413 ## -------------------- ##
30414
30415 # Be more Bourne compatible
30416 DUALCASE=1; export DUALCASE # for MKS sh
30417 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30418 emulate sh
30419 NULLCMD=:
30420 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30421 # is contrary to our usage. Disable this feature.
30422 alias -g '${1+"$@"}'='"$@"'
30423 setopt NO_GLOB_SUBST
30424 else
30425 case `(set -o) 2>/dev/null` in #(
30426 *posix*) :
30427 set -o posix ;; #(
30428 *) :
30429 ;;
30430 esac
30431 fi
30432
30433
30434 as_nl='
30435 '
30436 export as_nl
30437 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30438 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30441 # Prefer a ksh shell builtin over an external printf program on Solaris,
30442 # but without wasting forks for bash or zsh.
30443 if test -z "$BASH_VERSION$ZSH_VERSION" \
30444 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30445 as_echo='print -r --'
30446 as_echo_n='print -rn --'
30447 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30448 as_echo='printf %s\n'
30449 as_echo_n='printf %s'
30450 else
30451 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30452 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30453 as_echo_n='/usr/ucb/echo -n'
30454 else
30455 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30456 as_echo_n_body='eval
30457 arg=$1;
30458 case $arg in #(
30459 *"$as_nl"*)
30460 expr "X$arg" : "X\\(.*\\)$as_nl";
30461 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30462 esac;
30463 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30464 '
30465 export as_echo_n_body
30466 as_echo_n='sh -c $as_echo_n_body as_echo'
30467 fi
30468 export as_echo_body
30469 as_echo='sh -c $as_echo_body as_echo'
30470 fi
30471
30472 # The user is always right.
30473 if test "${PATH_SEPARATOR+set}" != set; then
30474 PATH_SEPARATOR=:
30475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30476 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30477 PATH_SEPARATOR=';'
30478 }
30479 fi
30480
30481
30482 # IFS
30483 # We need space, tab and new line, in precisely that order. Quoting is
30484 # there to prevent editors from complaining about space-tab.
30485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30486 # splitting by setting IFS to empty value.)
30487 IFS=" "" $as_nl"
30488
30489 # Find who we are. Look in the path if we contain no directory separator.
30490 case $0 in #((
30491 *[\\/]* ) as_myself=$0 ;;
30492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30493 for as_dir in $PATH
30494 do
30495 IFS=$as_save_IFS
30496 test -z "$as_dir" && as_dir=.
30497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30498 done
30499 IFS=$as_save_IFS
30500
30501 ;;
30502 esac
30503 # We did not find ourselves, most probably we were run as `sh COMMAND'
30504 # in which case we are not to be found in the path.
30505 if test "x$as_myself" = x; then
30506 as_myself=$0
30507 fi
30508 if test ! -f "$as_myself"; then
30509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30510 exit 1
30511 fi
30512
30513 # Unset variables that we do not need and which cause bugs (e.g. in
30514 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30515 # suppresses any "Segmentation fault" message there. '((' could
30516 # trigger a bug in pdksh 5.2.14.
30517 for as_var in BASH_ENV ENV MAIL MAILPATH
30518 do eval test x\${$as_var+set} = xset \
30519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30520 done
30521 PS1='$ '
30522 PS2='> '
30523 PS4='+ '
30524
30525 # NLS nuisances.
30526 LC_ALL=C
30527 export LC_ALL
30528 LANGUAGE=C
30529 export LANGUAGE
30530
30531 # CDPATH.
30532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30533
30534
30535 # as_fn_error ERROR [LINENO LOG_FD]
30536 # ---------------------------------
30537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30539 # script with status $?, using 1 if that was 0.
30540 as_fn_error ()
30541 {
30542 as_status=$?; test $as_status -eq 0 && as_status=1
30543 if test "$3"; then
30544 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30546 fi
30547 $as_echo "$as_me: error: $1" >&2
30548 as_fn_exit $as_status
30549 } # as_fn_error
30550
30551
30552 # as_fn_set_status STATUS
30553 # -----------------------
30554 # Set $? to STATUS, without forking.
30555 as_fn_set_status ()
30556 {
30557 return $1
30558 } # as_fn_set_status
30559
30560 # as_fn_exit STATUS
30561 # -----------------
30562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30563 as_fn_exit ()
30564 {
30565 set +e
30566 as_fn_set_status $1
30567 exit $1
30568 } # as_fn_exit
30569
30570 # as_fn_unset VAR
30571 # ---------------
30572 # Portably unset VAR.
30573 as_fn_unset ()
30574 {
30575 { eval $1=; unset $1;}
30576 }
30577 as_unset=as_fn_unset
30578 # as_fn_append VAR VALUE
30579 # ----------------------
30580 # Append the text in VALUE to the end of the definition contained in VAR. Take
30581 # advantage of any shell optimizations that allow amortized linear growth over
30582 # repeated appends, instead of the typical quadratic growth present in naive
30583 # implementations.
30584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30585 eval 'as_fn_append ()
30586 {
30587 eval $1+=\$2
30588 }'
30589 else
30590 as_fn_append ()
30591 {
30592 eval $1=\$$1\$2
30593 }
30594 fi # as_fn_append
30595
30596 # as_fn_arith ARG...
30597 # ------------------
30598 # Perform arithmetic evaluation on the ARGs, and store the result in the
30599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30600 # must be portable across $(()) and expr.
30601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30602 eval 'as_fn_arith ()
30603 {
30604 as_val=$(( $* ))
30605 }'
30606 else
30607 as_fn_arith ()
30608 {
30609 as_val=`expr "$@" || test $? -eq 1`
30610 }
30611 fi # as_fn_arith
30612
30613
30614 if expr a : '\(a\)' >/dev/null 2>&1 &&
30615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30616 as_expr=expr
30617 else
30618 as_expr=false
30619 fi
30620
30621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30622 as_basename=basename
30623 else
30624 as_basename=false
30625 fi
30626
30627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30628 as_dirname=dirname
30629 else
30630 as_dirname=false
30631 fi
30632
30633 as_me=`$as_basename -- "$0" ||
30634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30635 X"$0" : 'X\(//\)$' \| \
30636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30637 $as_echo X/"$0" |
30638 sed '/^.*\/\([^/][^/]*\)\/*$/{
30639 s//\1/
30640 q
30641 }
30642 /^X\/\(\/\/\)$/{
30643 s//\1/
30644 q
30645 }
30646 /^X\/\(\/\).*/{
30647 s//\1/
30648 q
30649 }
30650 s/.*/./; q'`
30651
30652 # Avoid depending upon Character Ranges.
30653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30656 as_cr_digits='0123456789'
30657 as_cr_alnum=$as_cr_Letters$as_cr_digits
30658
30659 ECHO_C= ECHO_N= ECHO_T=
30660 case `echo -n x` in #(((((
30661 -n*)
30662 case `echo 'xy\c'` in
30663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30664 xy) ECHO_C='\c';;
30665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30666 ECHO_T=' ';;
30667 esac;;
30668 *)
30669 ECHO_N='-n';;
30670 esac
30671
30672 rm -f conf$$ conf$$.exe conf$$.file
30673 if test -d conf$$.dir; then
30674 rm -f conf$$.dir/conf$$.file
30675 else
30676 rm -f conf$$.dir
30677 mkdir conf$$.dir 2>/dev/null
30678 fi
30679 if (echo >conf$$.file) 2>/dev/null; then
30680 if ln -s conf$$.file conf$$ 2>/dev/null; then
30681 as_ln_s='ln -s'
30682 # ... but there are two gotchas:
30683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30685 # In both cases, we have to default to `cp -p'.
30686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30687 as_ln_s='cp -p'
30688 elif ln conf$$.file conf$$ 2>/dev/null; then
30689 as_ln_s=ln
30690 else
30691 as_ln_s='cp -p'
30692 fi
30693 else
30694 as_ln_s='cp -p'
30695 fi
30696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30697 rmdir conf$$.dir 2>/dev/null
30698
30699
30700 # as_fn_mkdir_p
30701 # -------------
30702 # Create "$as_dir" as a directory, including parents if necessary.
30703 as_fn_mkdir_p ()
30704 {
30705
30706 case $as_dir in #(
30707 -*) as_dir=./$as_dir;;
30708 esac
30709 test -d "$as_dir" || eval $as_mkdir_p || {
30710 as_dirs=
30711 while :; do
30712 case $as_dir in #(
30713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30714 *) as_qdir=$as_dir;;
30715 esac
30716 as_dirs="'$as_qdir' $as_dirs"
30717 as_dir=`$as_dirname -- "$as_dir" ||
30718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30719 X"$as_dir" : 'X\(//\)[^/]' \| \
30720 X"$as_dir" : 'X\(//\)$' \| \
30721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30722 $as_echo X"$as_dir" |
30723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30724 s//\1/
30725 q
30726 }
30727 /^X\(\/\/\)[^/].*/{
30728 s//\1/
30729 q
30730 }
30731 /^X\(\/\/\)$/{
30732 s//\1/
30733 q
30734 }
30735 /^X\(\/\).*/{
30736 s//\1/
30737 q
30738 }
30739 s/.*/./; q'`
30740 test -d "$as_dir" && break
30741 done
30742 test -z "$as_dirs" || eval "mkdir $as_dirs"
30743 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30744
30745
30746 } # as_fn_mkdir_p
30747 if mkdir -p . 2>/dev/null; then
30748 as_mkdir_p='mkdir -p "$as_dir"'
30749 else
30750 test -d ./-p && rmdir ./-p
30751 as_mkdir_p=false
30752 fi
30753
30754 if test -x / >/dev/null 2>&1; then
30755 as_test_x='test -x'
30756 else
30757 if ls -dL / >/dev/null 2>&1; then
30758 as_ls_L_option=L
30759 else
30760 as_ls_L_option=
30761 fi
30762 as_test_x='
30763 eval sh -c '\''
30764 if test -d "$1"; then
30765 test -d "$1/.";
30766 else
30767 case $1 in #(
30768 -*)set "./$1";;
30769 esac;
30770 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30771 ???[sx]*):;;*)false;;esac;fi
30772 '\'' sh
30773 '
30774 fi
30775 as_executable_p=$as_test_x
30776
30777 # Sed expression to map a string onto a valid CPP name.
30778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30779
30780 # Sed expression to map a string onto a valid variable name.
30781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30782
30783
30784 exec 6>&1
30785 ## ----------------------------------- ##
30786 ## Main body of $CONFIG_STATUS script. ##
30787 ## ----------------------------------- ##
30788 _ASEOF
30789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30790
30791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30792 # Save the log message, to keep $0 and so on meaningful, and to
30793 # report actual input values of CONFIG_FILES etc. instead of their
30794 # values after options handling.
30795 ac_log="
30796 This file was extended by $as_me, which was
30797 generated by GNU Autoconf 2.64. Invocation command line was
30798
30799 CONFIG_FILES = $CONFIG_FILES
30800 CONFIG_HEADERS = $CONFIG_HEADERS
30801 CONFIG_LINKS = $CONFIG_LINKS
30802 CONFIG_COMMANDS = $CONFIG_COMMANDS
30803 $ $0 $@
30804
30805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30806 "
30807
30808 _ACEOF
30809
30810 case $ac_config_files in *"
30811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30812 esac
30813
30814 case $ac_config_headers in *"
30815 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30816 esac
30817
30818
30819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30820 # Files that config.status was made for.
30821 config_files="$ac_config_files"
30822 config_headers="$ac_config_headers"
30823 config_links="$ac_config_links"
30824 config_commands="$ac_config_commands"
30825
30826 _ACEOF
30827
30828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30829 ac_cs_usage="\
30830 \`$as_me' instantiates files and other configuration actions
30831 from templates according to the current configuration. Unless the files
30832 and actions are specified as TAGs, all are instantiated by default.
30833
30834 Usage: $0 [OPTION]... [TAG]...
30835
30836 -h, --help print this help, then exit
30837 -V, --version print version number and configuration settings, then exit
30838 -q, --quiet, --silent
30839 do not print progress messages
30840 -d, --debug don't remove temporary files
30841 --recheck update $as_me by reconfiguring in the same conditions
30842 --file=FILE[:TEMPLATE]
30843 instantiate the configuration file FILE
30844 --header=FILE[:TEMPLATE]
30845 instantiate the configuration header FILE
30846
30847 Configuration files:
30848 $config_files
30849
30850 Configuration headers:
30851 $config_headers
30852
30853 Configuration links:
30854 $config_links
30855
30856 Configuration commands:
30857 $config_commands
30858
30859 Report bugs to the package provider."
30860
30861 _ACEOF
30862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30863 ac_cs_version="\\
30864 config.status
30865 configured by $0, generated by GNU Autoconf 2.64,
30866 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30867
30868 Copyright (C) 2009 Free Software Foundation, Inc.
30869 This config.status script is free software; the Free Software Foundation
30870 gives unlimited permission to copy, distribute and modify it."
30871
30872 ac_pwd='$ac_pwd'
30873 srcdir='$srcdir'
30874 AWK='$AWK'
30875 test -n "\$AWK" || AWK=awk
30876 _ACEOF
30877
30878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30879 # The default lists apply if the user does not specify any file.
30880 ac_need_defaults=:
30881 while test $# != 0
30882 do
30883 case $1 in
30884 --*=*)
30885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30887 ac_shift=:
30888 ;;
30889 *)
30890 ac_option=$1
30891 ac_optarg=$2
30892 ac_shift=shift
30893 ;;
30894 esac
30895
30896 case $ac_option in
30897 # Handling of the options.
30898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30899 ac_cs_recheck=: ;;
30900 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30901 $as_echo "$ac_cs_version"; exit ;;
30902 --debug | --debu | --deb | --de | --d | -d )
30903 debug=: ;;
30904 --file | --fil | --fi | --f )
30905 $ac_shift
30906 case $ac_optarg in
30907 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30908 esac
30909 as_fn_append CONFIG_FILES " '$ac_optarg'"
30910 ac_need_defaults=false;;
30911 --header | --heade | --head | --hea )
30912 $ac_shift
30913 case $ac_optarg in
30914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30915 esac
30916 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30917 ac_need_defaults=false;;
30918 --he | --h)
30919 # Conflict between --help and --header
30920 as_fn_error "ambiguous option: \`$1'
30921 Try \`$0 --help' for more information.";;
30922 --help | --hel | -h )
30923 $as_echo "$ac_cs_usage"; exit ;;
30924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30926 ac_cs_silent=: ;;
30927
30928 # This is an error.
30929 -*) as_fn_error "unrecognized option: \`$1'
30930 Try \`$0 --help' for more information." ;;
30931
30932 *) as_fn_append ac_config_targets " $1"
30933 ac_need_defaults=false ;;
30934
30935 esac
30936 shift
30937 done
30938
30939 ac_configure_extra_args=
30940
30941 if $ac_cs_silent; then
30942 exec 6>/dev/null
30943 ac_configure_extra_args="$ac_configure_extra_args --silent"
30944 fi
30945
30946 _ACEOF
30947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30948 if \$ac_cs_recheck; then
30949 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30950 shift
30951 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30952 CONFIG_SHELL='$SHELL'
30953 export CONFIG_SHELL
30954 exec "\$@"
30955 fi
30956
30957 _ACEOF
30958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30959 exec 5>>config.log
30960 {
30961 echo
30962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30963 ## Running $as_me. ##
30964 _ASBOX
30965 $as_echo "$ac_log"
30966 } >&5
30967
30968 _ACEOF
30969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30970 #
30971 # INIT-COMMANDS
30972 #
30973 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30974 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30975 subdirs='$subdirs'
30976
30977 _ACEOF
30978
30979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30980
30981 # Handling of arguments.
30982 for ac_config_target in $ac_config_targets
30983 do
30984 case $ac_config_target in
30985 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30986 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30987 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30988 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30989 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30990 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30991 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30992 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30993 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30994
30995 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30996 esac
30997 done
30998
30999
31000 # If the user did not use the arguments to specify the items to instantiate,
31001 # then the envvar interface is used. Set only those that are not.
31002 # We use the long form for the default assignment because of an extremely
31003 # bizarre bug on SunOS 4.1.3.
31004 if $ac_need_defaults; then
31005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31007 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31009 fi
31010
31011 # Have a temporary directory for convenience. Make it in the build tree
31012 # simply because there is no reason against having it here, and in addition,
31013 # creating and moving files from /tmp can sometimes cause problems.
31014 # Hook for its removal unless debugging.
31015 # Note that there is a small window in which the directory will not be cleaned:
31016 # after its creation but before its name has been assigned to `$tmp'.
31017 $debug ||
31018 {
31019 tmp=
31020 trap 'exit_status=$?
31021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31022 ' 0
31023 trap 'as_fn_exit 1' 1 2 13 15
31024 }
31025 # Create a (secure) tmp directory for tmp files.
31026
31027 {
31028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31029 test -n "$tmp" && test -d "$tmp"
31030 } ||
31031 {
31032 tmp=./conf$$-$RANDOM
31033 (umask 077 && mkdir "$tmp")
31034 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31035
31036 # Set up the scripts for CONFIG_FILES section.
31037 # No need to generate them if there are no CONFIG_FILES.
31038 # This happens for instance with `./config.status config.h'.
31039 if test -n "$CONFIG_FILES"; then
31040
31041 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31042 ac_cs_awk_getline=:
31043 ac_cs_awk_pipe_init=
31044 ac_cs_awk_read_file='
31045 while ((getline aline < (F[key])) > 0)
31046 print(aline)
31047 close(F[key])'
31048 ac_cs_awk_pipe_fini=
31049 else
31050 ac_cs_awk_getline=false
31051 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31052 ac_cs_awk_read_file='
31053 print "|#_!!_#|"
31054 print "cat " F[key] " &&"
31055 '$ac_cs_awk_pipe_init
31056 # The final `:' finishes the AND list.
31057 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31058 fi
31059 ac_cr=`echo X | tr X '\015'`
31060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31061 # But we know of no other shell where ac_cr would be empty at this
31062 # point, so we can use a bashism as a fallback.
31063 if test "x$ac_cr" = x; then
31064 eval ac_cr=\$\'\\r\'
31065 fi
31066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31068 ac_cs_awk_cr='\r'
31069 else
31070 ac_cs_awk_cr=$ac_cr
31071 fi
31072
31073 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31074 _ACEOF
31075
31076 # Create commands to substitute file output variables.
31077 {
31078 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31079 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31080 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31081 echo "_ACAWK" &&
31082 echo "_ACEOF"
31083 } >conf$$files.sh &&
31084 . ./conf$$files.sh ||
31085 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31086 rm -f conf$$files.sh
31087
31088 {
31089 echo "cat >conf$$subs.awk <<_ACEOF" &&
31090 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31091 echo "_ACEOF"
31092 } >conf$$subs.sh ||
31093 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31094 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31095 ac_delim='%!_!# '
31096 for ac_last_try in false false false false false :; do
31097 . ./conf$$subs.sh ||
31098 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31099
31100 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31101 if test $ac_delim_n = $ac_delim_num; then
31102 break
31103 elif $ac_last_try; then
31104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31105 else
31106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31107 fi
31108 done
31109 rm -f conf$$subs.sh
31110
31111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31112 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31113 _ACEOF
31114 sed -n '
31115 h
31116 s/^/S["/; s/!.*/"]=/
31117 p
31118 g
31119 s/^[^!]*!//
31120 :repl
31121 t repl
31122 s/'"$ac_delim"'$//
31123 t delim
31124 :nl
31125 h
31126 s/\(.\{148\}\).*/\1/
31127 t more1
31128 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31129 p
31130 n
31131 b repl
31132 :more1
31133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31134 p
31135 g
31136 s/.\{148\}//
31137 t nl
31138 :delim
31139 h
31140 s/\(.\{148\}\).*/\1/
31141 t more2
31142 s/["\\]/\\&/g; s/^/"/; s/$/"/
31143 p
31144 b
31145 :more2
31146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31147 p
31148 g
31149 s/.\{148\}//
31150 t delim
31151 ' <conf$$subs.awk | sed '
31152 /^[^""]/{
31153 N
31154 s/\n//
31155 }
31156 ' >>$CONFIG_STATUS || ac_write_fail=1
31157 rm -f conf$$subs.awk
31158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31159 _ACAWK
31160 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31161 for (key in S) S_is_set[key] = 1
31162 FS = "\a"
31163 \$ac_cs_awk_pipe_init
31164 }
31165 {
31166 line = $ 0
31167 nfields = split(line, field, "@")
31168 substed = 0
31169 len = length(field[1])
31170 for (i = 2; i < nfields; i++) {
31171 key = field[i]
31172 keylen = length(key)
31173 if (S_is_set[key]) {
31174 value = S[key]
31175 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31176 len += length(value) + length(field[++i])
31177 substed = 1
31178 } else
31179 len += 1 + keylen
31180 }
31181 if (nfields == 3 && !substed) {
31182 key = field[2]
31183 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31184 \$ac_cs_awk_read_file
31185 next
31186 }
31187 }
31188 print line
31189 }
31190 \$ac_cs_awk_pipe_fini
31191 _ACAWK
31192 _ACEOF
31193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31194 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31196 else
31197 cat
31198 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31199 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31200 _ACEOF
31201
31202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31204 # trailing colons and then remove the whole line if VPATH becomes empty
31205 # (actually we leave an empty line to preserve line numbers).
31206 if test "x$srcdir" = x.; then
31207 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31208 s/:*\$(srcdir):*/:/
31209 s/:*\${srcdir}:*/:/
31210 s/:*@srcdir@:*/:/
31211 s/^\([^=]*=[ ]*\):*/\1/
31212 s/:*$//
31213 s/^[^=]*=[ ]*$//
31214 }'
31215 fi
31216
31217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31218 fi # test -n "$CONFIG_FILES"
31219
31220 # Set up the scripts for CONFIG_HEADERS section.
31221 # No need to generate them if there are no CONFIG_HEADERS.
31222 # This happens for instance with `./config.status Makefile'.
31223 if test -n "$CONFIG_HEADERS"; then
31224 cat >"$tmp/defines.awk" <<\_ACAWK ||
31225 BEGIN {
31226 _ACEOF
31227
31228 # Transform confdefs.h into an awk script `defines.awk', embedded as
31229 # here-document in config.status, that substitutes the proper values into
31230 # config.h.in to produce config.h.
31231
31232 # Create a delimiter string that does not exist in confdefs.h, to ease
31233 # handling of long lines.
31234 ac_delim='%!_!# '
31235 for ac_last_try in false false :; do
31236 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31237 if test -z "$ac_t"; then
31238 break
31239 elif $ac_last_try; then
31240 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31241 else
31242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31243 fi
31244 done
31245
31246 # For the awk script, D is an array of macro values keyed by name,
31247 # likewise P contains macro parameters if any. Preserve backslash
31248 # newline sequences.
31249
31250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31251 sed -n '
31252 s/.\{148\}/&'"$ac_delim"'/g
31253 t rset
31254 :rset
31255 s/^[ ]*#[ ]*define[ ][ ]*/ /
31256 t def
31257 d
31258 :def
31259 s/\\$//
31260 t bsnl
31261 s/["\\]/\\&/g
31262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31263 D["\1"]=" \3"/p
31264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31265 d
31266 :bsnl
31267 s/["\\]/\\&/g
31268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31269 D["\1"]=" \3\\\\\\n"\\/p
31270 t cont
31271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31272 t cont
31273 d
31274 :cont
31275 n
31276 s/.\{148\}/&'"$ac_delim"'/g
31277 t clear
31278 :clear
31279 s/\\$//
31280 t bsnlc
31281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31282 d
31283 :bsnlc
31284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31285 b cont
31286 ' <confdefs.h | sed '
31287 s/'"$ac_delim"'/"\\\
31288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31289
31290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31291 for (key in D) D_is_set[key] = 1
31292 FS = "\a"
31293 }
31294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31295 line = \$ 0
31296 split(line, arg, " ")
31297 if (arg[1] == "#") {
31298 defundef = arg[2]
31299 mac1 = arg[3]
31300 } else {
31301 defundef = substr(arg[1], 2)
31302 mac1 = arg[2]
31303 }
31304 split(mac1, mac2, "(") #)
31305 macro = mac2[1]
31306 prefix = substr(line, 1, index(line, defundef) - 1)
31307 if (D_is_set[macro]) {
31308 # Preserve the white space surrounding the "#".
31309 print prefix "define", macro P[macro] D[macro]
31310 next
31311 } else {
31312 # Replace #undef with comments. This is necessary, for example,
31313 # in the case of _POSIX_SOURCE, which is predefined and required
31314 # on some systems where configure will not decide to define it.
31315 if (defundef == "undef") {
31316 print "/*", prefix defundef, macro, "*/"
31317 next
31318 }
31319 }
31320 }
31321 { print }
31322 _ACAWK
31323 _ACEOF
31324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31325 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31326 fi # test -n "$CONFIG_HEADERS"
31327
31328
31329 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31330 shift
31331 for ac_tag
31332 do
31333 case $ac_tag in
31334 :[FHLC]) ac_mode=$ac_tag; continue;;
31335 esac
31336 case $ac_mode$ac_tag in
31337 :[FHL]*:*);;
31338 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31339 :[FH]-) ac_tag=-:-;;
31340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31341 esac
31342 ac_save_IFS=$IFS
31343 IFS=:
31344 set x $ac_tag
31345 IFS=$ac_save_IFS
31346 shift
31347 ac_file=$1
31348 shift
31349
31350 case $ac_mode in
31351 :L) ac_source=$1;;
31352 :[FH])
31353 ac_file_inputs=
31354 for ac_f
31355 do
31356 case $ac_f in
31357 -) ac_f="$tmp/stdin";;
31358 *) # Look for the file first in the build tree, then in the source tree
31359 # (if the path is not absolute). The absolute path cannot be DOS-style,
31360 # because $ac_f cannot contain `:'.
31361 test -f "$ac_f" ||
31362 case $ac_f in
31363 [\\/$]*) false;;
31364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31365 esac ||
31366 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31367 esac
31368 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31369 as_fn_append ac_file_inputs " '$ac_f'"
31370 done
31371
31372 # Let's still pretend it is `configure' which instantiates (i.e., don't
31373 # use $as_me), people would be surprised to read:
31374 # /* config.h. Generated by config.status. */
31375 configure_input='Generated from '`
31376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31377 `' by configure.'
31378 if test x"$ac_file" != x-; then
31379 configure_input="$ac_file. $configure_input"
31380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31381 $as_echo "$as_me: creating $ac_file" >&6;}
31382 fi
31383 # Neutralize special characters interpreted by sed in replacement strings.
31384 case $configure_input in #(
31385 *\&* | *\|* | *\\* )
31386 ac_sed_conf_input=`$as_echo "$configure_input" |
31387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31388 *) ac_sed_conf_input=$configure_input;;
31389 esac
31390
31391 case $ac_tag in
31392 *:-:* | *:-) cat >"$tmp/stdin" \
31393 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31394 esac
31395 ;;
31396 esac
31397
31398 ac_dir=`$as_dirname -- "$ac_file" ||
31399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31400 X"$ac_file" : 'X\(//\)[^/]' \| \
31401 X"$ac_file" : 'X\(//\)$' \| \
31402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31403 $as_echo X"$ac_file" |
31404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31405 s//\1/
31406 q
31407 }
31408 /^X\(\/\/\)[^/].*/{
31409 s//\1/
31410 q
31411 }
31412 /^X\(\/\/\)$/{
31413 s//\1/
31414 q
31415 }
31416 /^X\(\/\).*/{
31417 s//\1/
31418 q
31419 }
31420 s/.*/./; q'`
31421 as_dir="$ac_dir"; as_fn_mkdir_p
31422 ac_builddir=.
31423
31424 case "$ac_dir" in
31425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31426 *)
31427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31428 # A ".." for each directory in $ac_dir_suffix.
31429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31430 case $ac_top_builddir_sub in
31431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31433 esac ;;
31434 esac
31435 ac_abs_top_builddir=$ac_pwd
31436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31437 # for backward compatibility:
31438 ac_top_builddir=$ac_top_build_prefix
31439
31440 case $srcdir in
31441 .) # We are building in place.
31442 ac_srcdir=.
31443 ac_top_srcdir=$ac_top_builddir_sub
31444 ac_abs_top_srcdir=$ac_pwd ;;
31445 [\\/]* | ?:[\\/]* ) # Absolute name.
31446 ac_srcdir=$srcdir$ac_dir_suffix;
31447 ac_top_srcdir=$srcdir
31448 ac_abs_top_srcdir=$srcdir ;;
31449 *) # Relative name.
31450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31451 ac_top_srcdir=$ac_top_build_prefix$srcdir
31452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31453 esac
31454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31455
31456
31457 case $ac_mode in
31458 :F)
31459 #
31460 # CONFIG_FILE
31461 #
31462
31463 _ACEOF
31464
31465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31466 # If the template does not know about datarootdir, expand it.
31467 # FIXME: This hack should be removed a few years after 2.60.
31468 ac_datarootdir_hack=; ac_datarootdir_seen=
31469 ac_sed_dataroot='
31470 /datarootdir/ {
31471 p
31472 q
31473 }
31474 /@datadir@/p
31475 /@docdir@/p
31476 /@infodir@/p
31477 /@localedir@/p
31478 /@mandir@/p'
31479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31480 *datarootdir*) ac_datarootdir_seen=yes;;
31481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31484 _ACEOF
31485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31486 ac_datarootdir_hack='
31487 s&@datadir@&$datadir&g
31488 s&@docdir@&$docdir&g
31489 s&@infodir@&$infodir&g
31490 s&@localedir@&$localedir&g
31491 s&@mandir@&$mandir&g
31492 s&\\\${datarootdir}&$datarootdir&g' ;;
31493 esac
31494 _ACEOF
31495
31496 # Neutralize VPATH when `$srcdir' = `.'.
31497 # Shell code in configure.ac might set extrasub.
31498 # FIXME: do we really want to maintain this feature?
31499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31500 ac_sed_extra="$ac_vpsub
31501 $extrasub
31502 _ACEOF
31503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31504 :t
31505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31506 s|@configure_input@|$ac_sed_conf_input|;t t
31507 s&@top_builddir@&$ac_top_builddir_sub&;t t
31508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31509 s&@srcdir@&$ac_srcdir&;t t
31510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31511 s&@top_srcdir@&$ac_top_srcdir&;t t
31512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31513 s&@builddir@&$ac_builddir&;t t
31514 s&@abs_builddir@&$ac_abs_builddir&;t t
31515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31516 $ac_datarootdir_hack
31517 "
31518 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31519 if $ac_cs_awk_getline; then
31520 $AWK -f "$tmp/subs.awk"
31521 else
31522 $AWK -f "$tmp/subs.awk" | $SHELL
31523 fi >$tmp/out \
31524 || as_fn_error "could not create $ac_file" "$LINENO" 5
31525
31526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31527 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31530 which seems to be undefined. Please make sure it is defined." >&5
31531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31532 which seems to be undefined. Please make sure it is defined." >&2;}
31533
31534 rm -f "$tmp/stdin"
31535 case $ac_file in
31536 -) cat "$tmp/out" && rm -f "$tmp/out";;
31537 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31538 esac \
31539 || as_fn_error "could not create $ac_file" "$LINENO" 5
31540 ;;
31541 :H)
31542 #
31543 # CONFIG_HEADER
31544 #
31545 if test x"$ac_file" != x-; then
31546 {
31547 $as_echo "/* $configure_input */" \
31548 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31549 } >"$tmp/config.h" \
31550 || as_fn_error "could not create $ac_file" "$LINENO" 5
31551 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31554 else
31555 rm -f "$ac_file"
31556 mv "$tmp/config.h" "$ac_file" \
31557 || as_fn_error "could not create $ac_file" "$LINENO" 5
31558 fi
31559 else
31560 $as_echo "/* $configure_input */" \
31561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31562 || as_fn_error "could not create -" "$LINENO" 5
31563 fi
31564 ;;
31565 :L)
31566 #
31567 # CONFIG_LINK
31568 #
31569
31570 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31571 :
31572 else
31573 # Prefer the file from the source tree if names are identical.
31574 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31575 ac_source=$srcdir/$ac_source
31576 fi
31577
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31579 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31580
31581 if test ! -r "$ac_source"; then
31582 as_fn_error "$ac_source: file not found" "$LINENO" 5
31583 fi
31584 rm -f "$ac_file"
31585
31586 # Try a relative symlink, then a hard link, then a copy.
31587 case $srcdir in
31588 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31589 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31590 esac
31591 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31592 ln "$ac_source" "$ac_file" 2>/dev/null ||
31593 cp -p "$ac_source" "$ac_file" ||
31594 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31595 fi
31596 ;;
31597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31598 $as_echo "$as_me: executing $ac_file commands" >&6;}
31599 ;;
31600 esac
31601
31602
31603 case $ac_file$ac_mode in
31604 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31605 "gccdepdir":C)
31606 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31607 for lang in $subdirs c-family common
31608 do
31609 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31610 done ;;
31611 "as":F) chmod +x as ;;
31612 "collect-ld":F) chmod +x collect-ld ;;
31613 "nm":F) chmod +x nm ;;
31614 "default":C)
31615 case ${CONFIG_HEADERS} in
31616 *auto-host.h:config.in*)
31617 echo > cstamp-h ;;
31618 esac
31619 # Make sure all the subdirs exist.
31620 for d in $subdirs doc build common c-family
31621 do
31622 test -d $d || mkdir $d
31623 done
31624 ;;
31625
31626 esac
31627 done # for ac_tag
31628
31629
31630 as_fn_exit 0
31631 _ACEOF
31632 ac_clean_files=$ac_clean_files_save
31633
31634 test $ac_write_fail = 0 ||
31635 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31636
31637
31638 # configure is writing to config.log, and then calls config.status.
31639 # config.status does its own redirection, appending to config.log.
31640 # Unfortunately, on DOS this fails, as config.log is still kept open
31641 # by configure, so config.status won't be able to write to it; its
31642 # output is simply discarded. So we exec the FD to /dev/null,
31643 # effectively closing config.log, so it can be properly (re)opened and
31644 # appended to by config.status. When coming back to configure, we
31645 # need to make the FD available again.
31646 if test "$no_create" != yes; then
31647 ac_cs_success=:
31648 ac_config_status_args=
31649 test "$silent" = yes &&
31650 ac_config_status_args="$ac_config_status_args --quiet"
31651 exec 5>/dev/null
31652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31653 exec 5>>config.log
31654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31655 # would make configure fail if this is the last instruction.
31656 $ac_cs_success || as_fn_exit $?
31657 fi
31658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31661 fi
31662
31663