]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
* configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
[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 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
722 ALL
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
752 AR
753 NM
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
766 LN
767 LN_S
768 AWK
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
798 CPP
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
807 CXX
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 host_noncanonical
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files='option_includes
877 language_hooks'
878 ac_user_opts='
879 enable_option_checking
880 with_build_libsubdir
881 with_local_prefix
882 with_native_system_header_dir
883 with_build_sysroot
884 with_sysroot
885 with_gxx_include_dir
886 with_cpp_install_dir
887 enable_generated_files_in_srcdir
888 with_gnu_ld
889 with_ld
890 with_demangler_in_ld
891 with_gnu_as
892 with_as
893 enable_largefile
894 enable_build_format_warnings
895 enable_werror_always
896 enable_checking
897 enable_coverage
898 enable_gather_detailed_mem_stats
899 enable_valgrind_annotations
900 with_stabs
901 enable_multilib
902 enable_multiarch
903 enable___cxa_atexit
904 enable_decimal_float
905 enable_fixed_point
906 enable_threads
907 enable_tls
908 enable_vtable_verify
909 enable_objc_gc
910 with_dwarf2
911 enable_shared
912 with_specs
913 with_pkgversion
914 with_bugurl
915 enable_languages
916 with_multilib_list
917 enable_rpath
918 with_libiconv_prefix
919 enable_sjlj_exceptions
920 enable_secureplt
921 enable_leading_mingw64_underscores
922 enable_cld
923 enable_frame_pointer
924 enable_win32_registry
925 enable_static
926 with_pic
927 enable_fast_install
928 enable_libtool_lock
929 enable_ld
930 enable_gold
931 with_plugin_ld
932 enable_gnu_indirect_function
933 enable_initfini_array
934 enable_comdat
935 enable_fix_cortex_a53_835769
936 enable_fix_cortex_a53_843419
937 with_glibc_version
938 enable_gnu_unique_object
939 enable_linker_build_id
940 enable_default_ssp
941 with_long_double_128
942 with_gc
943 with_system_zlib
944 enable_maintainer_mode
945 enable_link_mutex
946 enable_version_specific_runtime_libs
947 enable_plugin
948 enable_host_shared
949 enable_libquadmath_support
950 with_linker_hash_style
951 with_diagnostics_color
952 enable_default_pie
953 '
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
957 CC
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
962 CXX
963 CXXFLAGS
964 CCC
965 CXXCPP
966 CPP
967 GMPLIBS
968 GMPINC
969 ISLLIBS
970 ISLINC'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1030 fi
1031
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
1042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1067
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1090
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1095
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1100
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1116
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1125
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1129
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1136
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1141
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1147
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1154
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1159
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1164
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1171
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1176
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1183
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1188
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1192
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1196
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1200
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1209
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1214
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1221
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1228
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1245
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1250
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1255
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1259
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1265
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1276
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1281
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1286
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1293
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1298
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1301
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1304
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1320
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1336
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1340
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1347
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1354
1355 -*) as_fn_error "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information."
1357 ;;
1358
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1368
1369 *)
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 ;;
1376
1377 esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error "missing argument to $ac_option"
1383 fi
1384
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1391 fi
1392
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1398 do
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1429 fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1462 q
1463 }
1464 /^X\(\/\/\)$/{
1465 s//\1/
1466 q
1467 }
1468 /^X\(\/\).*/{
1469 s//\1/
1470 q
1471 }
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1476 fi
1477 else
1478 ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1566
1567 cat <<\_ACEOF
1568
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1573
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 --target=TARGET configure for building compilers for TARGET [HOST]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582
1583 cat <<\_ACEOF
1584
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --enable-generated-files-in-srcdir
1590 put copies of generated files in source dir intended
1591 for creating source tarballs for users without
1592 texinfo bison or flex
1593 --disable-largefile omit support for large files
1594 --disable-build-format-warnings
1595 don't use -Wformat while building GCC
1596 --enable-werror-always enable -Werror despite compiler version
1597 --enable-checking[=LIST]
1598 enable expensive run-time checks. With LIST, enable
1599 only specific categories of checks. Categories are:
1600 yes,no,all,none,release. Flags are:
1601 assert,df,extra,fold,gc,gcac,gimple,misc,
1602 rtlflag,rtl,runtime,tree,valgrind,types
1603 --enable-coverage[=LEVEL]
1604 enable compiler's code coverage collection. Use to
1605 measure compiler performance and locate unused parts
1606 of the compiler. With LEVEL, specify optimization.
1607 Values are opt, noopt, default is noopt
1608 --enable-gather-detailed-mem-stats
1609 enable detailed memory allocation stats gathering
1610 --enable-valgrind-annotations
1611 enable valgrind runtime interaction
1612 --enable-multilib enable library support for multiple ABIs
1613 --enable-multiarch enable support for multiarch paths
1614 --enable-__cxa_atexit enable __cxa_atexit for C++
1615 --enable-decimal-float={no,yes,bid,dpd}
1616 enable decimal float extension to C. Selecting 'bid'
1617 or 'dpd' choses which decimal floating point format
1618 to use
1619 --enable-fixed-point enable fixed-point arithmetic extension to C
1620 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1621 package
1622 --enable-tls enable or disable generation of tls code overriding
1623 the assembler check for tls support
1624 --enable-vtable-verify enable vtable verification feature
1625 --enable-objc-gc enable the use of Boehm's garbage collector with the
1626 GNU Objective-C runtime
1627 --disable-shared don't provide a shared libgcc
1628 --enable-languages=LIST specify which front-ends to build
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-sjlj-exceptions
1631 arrange to use setjmp/longjmp exception handling
1632 --enable-secureplt enable -msecure-plt by default for PowerPC
1633 --enable-leading-mingw64-underscores
1634 enable leading underscores on 64 bit mingw targets
1635 --enable-cld enable -mcld by default for 32bit x86
1636 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1637 x86
1638 --disable-win32-registry
1639 disable lookup of installation paths in the Registry
1640 on Windows hosts
1641 --enable-win32-registry enable registry lookup (default)
1642 --enable-win32-registry=KEY
1643 use KEY instead of GCC version as the last portion
1644 of the registry key
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1651 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1652 --enable-gnu-indirect-function
1653 enable the use of the @gnu_indirect_function to
1654 glibc systems
1655 --enable-initfini-array use .init_array/.fini_array sections
1656 --enable-comdat enable COMDAT group support
1657
1658 --enable-fix-cortex-a53-835769
1659 enable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661 --disable-fix-cortex-a53-835769
1662 disable workaround for AArch64 Cortex-A53 erratum
1663 835769 by default
1664
1665
1666 --enable-fix-cortex-a53-843419
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669 --disable-fix-cortex-a53-843419
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 843419 by default
1672
1673 --enable-gnu-unique-object
1674 enable the use of the @gnu_unique_object ELF
1675 extension on glibc systems
1676 --enable-linker-build-id
1677 compiler will always pass --build-id to linker
1678 --enable-default-ssp enable Stack Smashing Protection as default
1679 --enable-maintainer-mode
1680 enable make rules and dependencies not useful (and
1681 sometimes confusing) to the casual installer
1682 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1683 thrashing on the build machine
1684 --enable-version-specific-runtime-libs
1685 specify that runtime libraries should be installed
1686 in a compiler-specific directory
1687 --enable-plugin enable plugin support
1688 --enable-host-shared build host code as shared libraries
1689 --disable-libquadmath-support
1690 disable libquadmath support for Fortran
1691 --enable-default-pie enable Position Independent Executable as default
1692
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-build-libsubdir=DIR Directory where to find libraries for build system
1697 --with-local-prefix=DIR specifies directory to put local include
1698 --with-native-system-header-dir=dir
1699 use dir as the directory to look for standard
1700 system header files in. Defaults to /usr/include.
1701 --with-build-sysroot=sysroot
1702 use sysroot as the system root during the build
1703 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1704 --with-gxx-include-dir=DIR
1705 specifies directory to put g++ header files
1706 --with-cpp-install-dir=DIR
1707 install the user visible C preprocessor in DIR
1708 (relative to PREFIX) as well as PREFIX/bin
1709 --with-gnu-ld arrange to work with GNU ld
1710 --with-ld arrange to use the specified ld (full pathname)
1711 --with-demangler-in-ld try to use demangler in GNU ld
1712 --with-gnu-as arrange to work with GNU as
1713 --with-as arrange to use the specified as (full pathname)
1714 --with-stabs arrange to use stabs instead of host debug format
1715 --with-dwarf2 force the default debug format to be DWARF 2
1716 --with-specs=SPECS add SPECS to driver command-line processing
1717 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1718 --with-bugurl=URL Direct users to URL to report a bug
1719 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1720 --with-gnu-ld assume the C compiler uses GNU ld default=no
1721 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1722 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-plugin-ld=[ARG] specify the plugin linker
1727 --with-glibc-version=M.N
1728 assume GCC used with glibc version M.N or later
1729 --with-long-double-128 use 128-bit long double by default
1730 --with-gc={page,zone} this option is not supported anymore. It used to
1731 choose the garbage collection mechanism to use with
1732 the compiler
1733 --with-system-zlib use installed libz
1734 --with-linker-hash-style={sysv,gnu,both}
1735 specify the linker hash style
1736 --with-diagnostics-color={never,auto,auto-if-env,always}
1737 specify the default of -fdiagnostics-color option
1738 auto-if-env stands for -fdiagnostics-color=auto if
1739 GCC_COLOR environment variable is present and
1740 -fdiagnostics-color=never otherwise
1741
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1753 CPP C preprocessor
1754 GMPLIBS How to link GMP
1755 GMPINC How to find GMP include files
1756 ISLLIBS How to link isl
1757 ISLINC How to find isl include files
1758
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1761
1762 Report bugs to the package provider.
1763 _ACEOF
1764 ac_status=$?
1765 fi
1766
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1772 continue
1773 ac_builddir=.
1774
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *)
1778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1790
1791 case $srcdir in
1792 .) # We are building in place.
1793 ac_srcdir=.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1800 *) # Relative name.
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 configure
1826 generated by GNU Autoconf 2.64
1827
1828 Copyright (C) 2009 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832 exit
1833 fi
1834
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1838
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1874
1875 } # ac_fn_c_try_compile
1876
1877 # ac_fn_cxx_try_compile LINENO
1878 # ----------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_compile ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext
1884 if { { ac_try="$ac_compile"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.$ac_objext; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1912
1913 } # ac_fn_cxx_try_compile
1914
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1934 fi
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946 fi
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 return $ac_retval
1949
1950 } # ac_fn_cxx_try_cpp
1951
1952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # ---------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1956 # accordingly.
1957 ac_fn_cxx_check_header_mongrel ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 else
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_cxx_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1980 else
1981 ac_header_compiler=no
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1986
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_cxx_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1996 else
1997 ac_header_preproc=no
1998 fi
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2002
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2005 yes:no: )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011 no:yes:* )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 esac
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 eval "$3=\$ac_header_compiler"
2030 fi
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 fi
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_cxx_check_header_mongrel
2038
2039 # ac_fn_cxx_try_run LINENO
2040 # ------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2042 # that executables *can* be run.
2043 ac_fn_cxx_try_run ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_link"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2057 { { case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_try") 2>&5
2064 ac_status=$?
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; }; }; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: program exited with status $ac_status" >&5
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=$ac_status
2074 fi
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
2078
2079 } # ac_fn_cxx_try_run
2080
2081 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists and can be compiled using the include files in
2084 # INCLUDES, setting the cache variable VAR accordingly.
2085 ac_fn_cxx_check_header_compile ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109
2110 } # ac_fn_cxx_check_header_compile
2111
2112 # ac_fn_c_try_cpp LINENO
2113 # ----------------------
2114 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_c_try_cpp ()
2116 {
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } >/dev/null && {
2134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143 fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2146
2147 } # ac_fn_c_try_cpp
2148
2149 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2150 # ----------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_cxx_compute_int ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 int
2179 main ()
2180 {
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2183
2184 ;
2185 return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_cxx_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2195 fi
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2225
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_cxx_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2237 fi
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2259
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2283 int
2284 main ()
2285 {
2286
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2291 {
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2296 }
2297 else
2298 {
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2303 }
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2307
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_cxx_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2316 fi
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2320
2321 fi
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 return $ac_retval
2324
2325 } # ac_fn_cxx_compute_int
2326
2327 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2328 # ---------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_cxx_check_type ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=no"
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $4
2343 int
2344 main ()
2345 {
2346 if (sizeof ($2))
2347 return 0;
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 if (sizeof (($2)))
2360 return 0;
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366
2367 else
2368 eval "$3=yes"
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378
2379 } # ac_fn_cxx_check_type
2380
2381 # ac_fn_c_find_intX_t LINENO BITS VAR
2382 # -----------------------------------
2383 # Finds a signed integer type with width BITS, setting cache variable VAR
2384 # accordingly.
2385 ac_fn_c_find_intX_t ()
2386 {
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2389 $as_echo_n "checking for int$2_t... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 eval "$3=no"
2394 for ac_type in int$2_t 'int' 'long int' \
2395 'long long int' 'short int' 'signed char'; do
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $ac_includes_default
2399 int
2400 main ()
2401 {
2402 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2403 test_array [0] = 0
2404
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2417 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2418 test_array [0] = 0
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2425
2426 else
2427 case $ac_type in #(
2428 int$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2439
2440 else
2441 break
2442 fi
2443 done
2444 fi
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449
2450 } # ac_fn_c_find_intX_t
2451
2452 # ac_fn_cxx_try_link LINENO
2453 # -------------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_cxx_try_link ()
2456 {
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { { ac_try="$ac_link"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2467 ac_status=$?
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2472 fi
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 $as_test_x conftest$ac_exeext
2480 }; then :
2481 ac_retval=0
2482 else
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 ac_retval=1
2487 fi
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 return $ac_retval
2495
2496 } # ac_fn_cxx_try_link
2497
2498 # ac_fn_c_find_uintX_t LINENO BITS VAR
2499 # ------------------------------------
2500 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2501 # accordingly.
2502 ac_fn_c_find_uintX_t ()
2503 {
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2506 $as_echo_n "checking for uint$2_t... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 eval "$3=no"
2511 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2520 test_array [0] = 0
2521
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2527 case $ac_type in #(
2528 uint$2_t) :
2529 eval "$3=yes" ;; #(
2530 *) :
2531 eval "$3=\$ac_type" ;;
2532 esac
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 eval as_val=\$$3
2536 if test "x$as_val" = x""no; then :
2537
2538 else
2539 break
2540 fi
2541 done
2542 fi
2543 eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547
2548 } # ac_fn_c_find_uintX_t
2549
2550 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2551 # ------------------------------------------------
2552 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2553 ac_fn_cxx_check_header_preproc ()
2554 {
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 #include <$2>
2564 _ACEOF
2565 if ac_fn_cxx_try_cpp "$LINENO"; then :
2566 eval "$3=yes"
2567 else
2568 eval "$3=no"
2569 fi
2570 rm -f conftest.err conftest.$ac_ext
2571 fi
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576
2577 } # ac_fn_cxx_check_header_preproc
2578
2579 # ac_fn_cxx_check_func LINENO FUNC VAR
2580 # ------------------------------------
2581 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2582 ac_fn_cxx_check_func ()
2583 {
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2594 #define $2 innocuous_$2
2595
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $2 (); below.
2598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599 <limits.h> exists even on freestanding compilers. */
2600
2601 #ifdef __STDC__
2602 # include <limits.h>
2603 #else
2604 # include <assert.h>
2605 #endif
2606
2607 #undef $2
2608
2609 /* Override any GCC internal prototype to avoid an error.
2610 Use char because int might match the return type of a GCC
2611 builtin and then its argument prototype would still apply. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 char $2 ();
2616 /* The GNU C library defines this for functions which it implements
2617 to always fail with ENOSYS. Some functions are actually named
2618 something starting with __ and the normal name is an alias. */
2619 #if defined __stub_$2 || defined __stub___$2
2620 choke me
2621 #endif
2622
2623 int
2624 main ()
2625 {
2626 return $2 ();
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_cxx_try_link "$LINENO"; then :
2632 eval "$3=yes"
2633 else
2634 eval "$3=no"
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2638 fi
2639 eval ac_res=\$$3
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2643
2644 } # ac_fn_cxx_check_func
2645
2646 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2647 # --------------------------------------
2648 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649 ac_fn_cxx_check_decl ()
2650 {
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2661 $4
2662 int
2663 main ()
2664 {
2665 #ifndef $as_decl_name
2666 #ifdef __cplusplus
2667 (void) $as_decl_use;
2668 #else
2669 (void) $as_decl_name;
2670 #endif
2671 #endif
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679 else
2680 eval "$3=no"
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688
2689 } # ac_fn_cxx_check_decl
2690
2691 # ac_fn_c_try_link LINENO
2692 # -----------------------
2693 # Try to link conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_c_try_link ()
2695 {
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { { ac_try="$ac_link"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_link") 2>conftest.err
2706 ac_status=$?
2707 if test -s conftest.err; then
2708 grep -v '^ *+' conftest.err >conftest.er1
2709 cat conftest.er1 >&5
2710 mv -f conftest.er1 conftest.err
2711 fi
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest$ac_exeext && {
2717 test "$cross_compiling" = yes ||
2718 $as_test_x conftest$ac_exeext
2719 }; then :
2720 ac_retval=0
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 ac_retval=1
2726 fi
2727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2729 # interfere with the next link command; also delete a directory that is
2730 # left behind by Apple's compiler. We do this before executing the actions.
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 return $ac_retval
2734
2735 } # ac_fn_c_try_link
2736
2737 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2738 # ----------------------------------------------
2739 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2740 ac_fn_c_check_header_preproc ()
2741 {
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 #include <$2>
2751 _ACEOF
2752 if ac_fn_c_try_cpp "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2756 fi
2757 rm -f conftest.err conftest.$ac_ext
2758 fi
2759 eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2763
2764 } # ac_fn_c_check_header_preproc
2765
2766 # ac_fn_c_check_func LINENO FUNC VAR
2767 # ----------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_c_check_func ()
2770 {
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2781 #define $2 innocuous_$2
2782
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $2 (); below.
2785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 <limits.h> exists even on freestanding compilers. */
2787
2788 #ifdef __STDC__
2789 # include <limits.h>
2790 #else
2791 # include <assert.h>
2792 #endif
2793
2794 #undef $2
2795
2796 /* Override any GCC internal prototype to avoid an error.
2797 Use char because int might match the return type of a GCC
2798 builtin and then its argument prototype would still apply. */
2799 #ifdef __cplusplus
2800 extern "C"
2801 #endif
2802 char $2 ();
2803 /* The GNU C library defines this for functions which it implements
2804 to always fail with ENOSYS. Some functions are actually named
2805 something starting with __ and the normal name is an alias. */
2806 #if defined __stub_$2 || defined __stub___$2
2807 choke me
2808 #endif
2809
2810 int
2811 main ()
2812 {
2813 return $2 ();
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_link "$LINENO"; then :
2819 eval "$3=yes"
2820 else
2821 eval "$3=no"
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext \
2824 conftest$ac_exeext conftest.$ac_ext
2825 fi
2826 eval ac_res=\$$3
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2830
2831 } # ac_fn_c_check_func
2832 cat >config.log <<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2835
2836 It was created by $as_me, which was
2837 generated by GNU Autoconf 2.64. Invocation command line was
2838
2839 $ $0 $@
2840
2841 _ACEOF
2842 exec 5>>config.log
2843 {
2844 cat <<_ASUNAME
2845 ## --------- ##
2846 ## Platform. ##
2847 ## --------- ##
2848
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2854
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2857
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2865
2866 _ASUNAME
2867
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 $as_echo "PATH: $as_dir"
2874 done
2875 IFS=$as_save_IFS
2876
2877 } >&5
2878
2879 cat >&5 <<_ACEOF
2880
2881
2882 ## ----------- ##
2883 ## Core tests. ##
2884 ## ----------- ##
2885
2886 _ACEOF
2887
2888
2889 # Keep a trace of the command line.
2890 # Strip out --no-create and --no-recursion so they do not pile up.
2891 # Strip out --silent because we don't want to record it for future runs.
2892 # Also quote any args containing shell meta-characters.
2893 # Make two passes to allow for proper duplicate-argument suppression.
2894 ac_configure_args=
2895 ac_configure_args0=
2896 ac_configure_args1=
2897 ac_must_keep_next=false
2898 for ac_pass in 1 2
2899 do
2900 for ac_arg
2901 do
2902 case $ac_arg in
2903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2905 | -silent | --silent | --silen | --sile | --sil)
2906 continue ;;
2907 *\'*)
2908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 esac
2910 case $ac_pass in
2911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2912 2)
2913 as_fn_append ac_configure_args1 " '$ac_arg'"
2914 if test $ac_must_keep_next = true; then
2915 ac_must_keep_next=false # Got value, back to normal.
2916 else
2917 case $ac_arg in
2918 *=* | --config-cache | -C | -disable-* | --disable-* \
2919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2921 | -with-* | --with-* | -without-* | --without-* | --x)
2922 case "$ac_configure_args0 " in
2923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2924 esac
2925 ;;
2926 -* ) ac_must_keep_next=true ;;
2927 esac
2928 fi
2929 as_fn_append ac_configure_args " '$ac_arg'"
2930 ;;
2931 esac
2932 done
2933 done
2934 { ac_configure_args0=; unset ac_configure_args0;}
2935 { ac_configure_args1=; unset ac_configure_args1;}
2936
2937 # When interrupted or exit'd, cleanup temporary files, and complete
2938 # config.log. We remove comments because anyway the quotes in there
2939 # would cause problems or look ugly.
2940 # WARNING: Use '\'' to represent an apostrophe within the trap.
2941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2942 trap 'exit_status=$?
2943 # Save into config.log some information that might help in debugging.
2944 {
2945 echo
2946
2947 cat <<\_ASBOX
2948 ## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##
2951 _ASBOX
2952 echo
2953 # The following way of writing the cache mishandles newlines in values,
2954 (
2955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2956 eval ac_val=\$$ac_var
2957 case $ac_val in #(
2958 *${as_nl}*)
2959 case $ac_var in #(
2960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2962 esac
2963 case $ac_var in #(
2964 _ | IFS | as_nl) ;; #(
2965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2966 *) { eval $ac_var=; unset $ac_var;} ;;
2967 esac ;;
2968 esac
2969 done
2970 (set) 2>&1 |
2971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2972 *${as_nl}ac_space=\ *)
2973 sed -n \
2974 "s/'\''/'\''\\\\'\'''\''/g;
2975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2976 ;; #(
2977 *)
2978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2979 ;;
2980 esac |
2981 sort
2982 )
2983 echo
2984
2985 cat <<\_ASBOX
2986 ## ----------------- ##
2987 ## Output variables. ##
2988 ## ----------------- ##
2989 _ASBOX
2990 echo
2991 for ac_var in $ac_subst_vars
2992 do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in
2995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2996 esac
2997 $as_echo "$ac_var='\''$ac_val'\''"
2998 done | sort
2999 echo
3000
3001 if test -n "$ac_subst_files"; then
3002 cat <<\_ASBOX
3003 ## ------------------- ##
3004 ## File substitutions. ##
3005 ## ------------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_files
3009 do
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3017 fi
3018
3019 if test -s confdefs.h; then
3020 cat <<\_ASBOX
3021 ## ----------- ##
3022 ## confdefs.h. ##
3023 ## ----------- ##
3024 _ASBOX
3025 echo
3026 cat confdefs.h
3027 echo
3028 fi
3029 test "$ac_signal" != 0 &&
3030 $as_echo "$as_me: caught signal $ac_signal"
3031 $as_echo "$as_me: exit $exit_status"
3032 } >&5
3033 rm -f core *.core core.conftest.* &&
3034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3035 exit $exit_status
3036 ' 0
3037 for ac_signal in 1 2 13 15; do
3038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3039 done
3040 ac_signal=0
3041
3042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3043 rm -f -r conftest* confdefs.h
3044
3045 $as_echo "/* confdefs.h */" > confdefs.h
3046
3047 # Predefined preprocessor variables.
3048
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_NAME "$PACKAGE_NAME"
3051 _ACEOF
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3055 _ACEOF
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3059 _ACEOF
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_STRING "$PACKAGE_STRING"
3063 _ACEOF
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3067 _ACEOF
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_URL "$PACKAGE_URL"
3071 _ACEOF
3072
3073
3074 # Let the site file select an alternate cache file if it wants to.
3075 # Prefer an explicitly selected file to automatically selected ones.
3076 ac_site_file1=NONE
3077 ac_site_file2=NONE
3078 if test -n "$CONFIG_SITE"; then
3079 ac_site_file1=$CONFIG_SITE
3080 elif test "x$prefix" != xNONE; then
3081 ac_site_file1=$prefix/share/config.site
3082 ac_site_file2=$prefix/etc/config.site
3083 else
3084 ac_site_file1=$ac_default_prefix/share/config.site
3085 ac_site_file2=$ac_default_prefix/etc/config.site
3086 fi
3087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3088 do
3089 test "x$ac_site_file" = xNONE && continue
3090 if test -r "$ac_site_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3093 sed 's/^/| /' "$ac_site_file" >&5
3094 . "$ac_site_file"
3095 fi
3096 done
3097
3098 if test -r "$cache_file"; then
3099 # Some versions of bash will fail to source /dev/null (special
3100 # files actually), so we avoid doing that.
3101 if test -f "$cache_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3103 $as_echo "$as_me: loading cache $cache_file" >&6;}
3104 case $cache_file in
3105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3106 *) . "./$cache_file";;
3107 esac
3108 fi
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3111 $as_echo "$as_me: creating cache $cache_file" >&6;}
3112 >$cache_file
3113 fi
3114
3115 # Check that the precious variables saved in the cache have kept the same
3116 # value.
3117 ac_cache_corrupted=false
3118 for ac_var in $ac_precious_vars; do
3119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3120 eval ac_new_set=\$ac_env_${ac_var}_set
3121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3122 eval ac_new_val=\$ac_env_${ac_var}_value
3123 case $ac_old_set,$ac_new_set in
3124 set,)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3127 ac_cache_corrupted=: ;;
3128 ,set)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3131 ac_cache_corrupted=: ;;
3132 ,);;
3133 *)
3134 if test "x$ac_old_val" != "x$ac_new_val"; then
3135 # differences in whitespace do not lead to failure.
3136 ac_old_val_w=`echo x $ac_old_val`
3137 ac_new_val_w=`echo x $ac_new_val`
3138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3141 ac_cache_corrupted=:
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3145 eval $ac_var=\$ac_old_val
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3151 fi;;
3152 esac
3153 # Pass precious variables to config.status.
3154 if test "$ac_new_set" = set; then
3155 case $ac_new_val in
3156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 *) ac_arg=$ac_var=$ac_new_val ;;
3158 esac
3159 case " $ac_configure_args " in
3160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3162 esac
3163 fi
3164 done
3165 if $ac_cache_corrupted; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3170 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3171 fi
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183
3184
3185
3186
3187 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3188
3189
3190 gcc_version=`cat $srcdir/BASE-VER`
3191
3192 # Determine the host, build, and target systems
3193 ac_aux_dir=
3194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3195 for ac_t in install-sh install.sh shtool; do
3196 if test -f "$ac_dir/$ac_t"; then
3197 ac_aux_dir=$ac_dir
3198 ac_install_sh="$ac_aux_dir/$ac_t -c"
3199 break 2
3200 fi
3201 done
3202 done
3203 if test -z "$ac_aux_dir"; then
3204 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3205 fi
3206
3207 # These three variables are undocumented and unsupported,
3208 # and are intended to be withdrawn in a future Autoconf release.
3209 # They can cause serious problems if a builder's source tree is in a directory
3210 # whose full name contains unusual characters.
3211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3214
3215
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3218 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if test "${ac_cv_build+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3232
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3252
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if test "${ac_cv_host+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261 else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 fi
3265
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3269 case $ac_cv_host in
3270 *-*-*) ;;
3271 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3272 esac
3273 host=$ac_cv_host
3274 ac_save_IFS=$IFS; IFS='-'
3275 set x $ac_cv_host
3276 shift
3277 host_cpu=$1
3278 host_vendor=$2
3279 shift; shift
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3282 host_os=$*
3283 IFS=$ac_save_IFS
3284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3285
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3288 $as_echo_n "checking target system type... " >&6; }
3289 if test "${ac_cv_target+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test "x$target_alias" = x; then
3293 ac_cv_target=$ac_cv_host
3294 else
3295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 fi
3298
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3301 $as_echo "$ac_cv_target" >&6; }
3302 case $ac_cv_target in
3303 *-*-*) ;;
3304 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3305 esac
3306 target=$ac_cv_target
3307 ac_save_IFS=$IFS; IFS='-'
3308 set x $ac_cv_target
3309 shift
3310 target_cpu=$1
3311 target_vendor=$2
3312 shift; shift
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3315 target_os=$*
3316 IFS=$ac_save_IFS
3317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3318
3319
3320 # The aliases save the names the user supplied, while $host etc.
3321 # will get canonicalized.
3322 test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3324 NONENONEs,x,x, &&
3325 program_prefix=${target_alias}-
3326
3327 # Determine the noncanonical host name, for Ada.
3328 case ${build_alias} in
3329 "") build_noncanonical=${build} ;;
3330 *) build_noncanonical=${build_alias} ;;
3331 esac
3332
3333 case ${host_alias} in
3334 "") host_noncanonical=${build_noncanonical} ;;
3335 *) host_noncanonical=${host_alias} ;;
3336 esac
3337
3338
3339
3340
3341 # Determine the noncanonical target name, for directory use.
3342 case ${target_alias} in
3343 "") target_noncanonical=${host_noncanonical} ;;
3344 *) target_noncanonical=${target_alias} ;;
3345 esac
3346
3347
3348
3349
3350 # Used for constructing correct paths for offload compilers.
3351 real_target_noncanonical=${target_noncanonical}
3352 accel_dir_suffix=
3353
3354 # Determine the target- and build-specific subdirectories
3355
3356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3357 # have matching libraries, they should use host libraries: Makefile.tpl
3358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3359 # However, they still use the build modules, because the corresponding
3360 # host modules (e.g. bison) are only built for the host when bootstrap
3361 # finishes. So:
3362 # - build_subdir is where we find build modules, and never changes.
3363 # - build_libsubdir is where we find build libraries, and can be overridden.
3364
3365 # Prefix 'build-' so this never conflicts with target_subdir.
3366 build_subdir="build-${build_noncanonical}"
3367
3368 # Check whether --with-build-libsubdir was given.
3369 if test "${with_build_libsubdir+set}" = set; then :
3370 withval=$with_build_libsubdir; build_libsubdir="$withval"
3371 else
3372 build_libsubdir="$build_subdir"
3373 fi
3374
3375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3376 if ( test $srcdir = . && test -d gcc ) \
3377 || test -d $srcdir/../host-${host_noncanonical}; then
3378 host_subdir="host-${host_noncanonical}"
3379 else
3380 host_subdir=.
3381 fi
3382 # No prefix.
3383 target_subdir=${target_noncanonical}
3384
3385
3386 # Set program_transform_name
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3396
3397
3398 # Check for bogus environment variables.
3399 # Test if LIBRARY_PATH contains the notation for the current directory
3400 # since this would lead to problems installing/building glibc.
3401 # LIBRARY_PATH contains the current directory if one of the following
3402 # is true:
3403 # - one of the terminals (":" and ";") is the first or last sign
3404 # - two terminals occur directly after each other
3405 # - the path contains an element with a dot in it
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3407 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3408 case ${LIBRARY_PATH} in
3409 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3410 library_path_setting="contains current directory"
3411 ;;
3412 *)
3413 library_path_setting="ok"
3414 ;;
3415 esac
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3417 $as_echo "$library_path_setting" >&6; }
3418 if test "$library_path_setting" != "ok"; then
3419 as_fn_error "
3420 *** LIBRARY_PATH shouldn't contain the current directory when
3421 *** building gcc. Please change the environment variable
3422 *** and run configure again." "$LINENO" 5
3423 fi
3424
3425 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3426 # since this would lead to problems installing/building glibc.
3427 # GCC_EXEC_PREFIX contains the current directory if one of the following
3428 # is true:
3429 # - one of the terminals (":" and ";") is the first or last sign
3430 # - two terminals occur directly after each other
3431 # - the path contains an element with a dot in it
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3433 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3434 case ${GCC_EXEC_PREFIX} in
3435 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3436 gcc_exec_prefix_setting="contains current directory"
3437 ;;
3438 *)
3439 gcc_exec_prefix_setting="ok"
3440 ;;
3441 esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3443 $as_echo "$gcc_exec_prefix_setting" >&6; }
3444 if test "$gcc_exec_prefix_setting" != "ok"; then
3445 as_fn_error "
3446 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3447 *** building gcc. Please change the environment variable
3448 *** and run configure again." "$LINENO" 5
3449 fi
3450
3451 # -----------
3452 # Directories
3453 # -----------
3454
3455 # Specify the local prefix
3456 local_prefix=
3457
3458 # Check whether --with-local-prefix was given.
3459 if test "${with_local_prefix+set}" = set; then :
3460 withval=$with_local_prefix; case "${withval}" in
3461 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3462 no) ;;
3463 *) local_prefix=$with_local_prefix ;;
3464 esac
3465 fi
3466
3467
3468 # Default local prefix if it is empty
3469 if test x$local_prefix = x; then
3470 local_prefix=/usr/local
3471 fi
3472
3473
3474 # Check whether --with-native-system-header-dir was given.
3475 if test "${with_native_system_header_dir+set}" = set; then :
3476 withval=$with_native_system_header_dir;
3477 case ${with_native_system_header_dir} in
3478 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3479 /* | [A-Za-z]:[\\/]*) ;;
3480 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3481 esac
3482 configured_native_system_header_dir="${withval}"
3483
3484 else
3485 configured_native_system_header_dir=
3486 fi
3487
3488
3489
3490 # Check whether --with-build-sysroot was given.
3491 if test "${with_build_sysroot+set}" = set; then :
3492 withval=$with_build_sysroot; if test x"$withval" != x ; then
3493 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3494 fi
3495 else
3496 SYSROOT_CFLAGS_FOR_TARGET=
3497 fi
3498
3499
3500
3501 if test "x$prefix" = xNONE; then
3502 test_prefix=/usr/local
3503 else
3504 test_prefix=$prefix
3505 fi
3506 if test "x$exec_prefix" = xNONE; then
3507 test_exec_prefix=$test_prefix
3508 else
3509 test_exec_prefix=$exec_prefix
3510 fi
3511
3512
3513 # Check whether --with-sysroot was given.
3514 if test "${with_sysroot+set}" = set; then :
3515 withval=$with_sysroot;
3516 case ${with_sysroot} in
3517 /) ;;
3518 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3519 esac
3520 case ${with_sysroot} in
3521 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3522 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3523 esac
3524
3525 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3526 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3527
3528 case ${TARGET_SYSTEM_ROOT} in
3529 "${test_prefix}"|"${test_prefix}/"*|\
3530 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3531 '${prefix}'|'${prefix}/'*|\
3532 '${exec_prefix}'|'${exec_prefix}/'*)
3533 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3534 TARGET_SYSTEM_ROOT_DEFINE="$t"
3535 ;;
3536 esac
3537
3538 else
3539
3540 TARGET_SYSTEM_ROOT=
3541 TARGET_SYSTEM_ROOT_DEFINE=
3542 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543
3544 fi
3545
3546
3547
3548
3549
3550 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3551 # passed in by the toplevel make and thus we'd get different behavior
3552 # depending on where we built the sources.
3553 gcc_gxx_include_dir=
3554 # Specify the g++ header file directory
3555
3556 # Check whether --with-gxx-include-dir was given.
3557 if test "${with_gxx_include_dir+set}" = set; then :
3558 withval=$with_gxx_include_dir; case "${withval}" in
3559 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3560 no) ;;
3561 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3562 esac
3563 fi
3564
3565
3566 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3567 if test x${gcc_gxx_include_dir} = x; then
3568 if test x${enable_version_specific_runtime_libs} = xyes; then
3569 gcc_gxx_include_dir='${libsubdir}/include/c++'
3570 else
3571 libstdcxx_incdir='include/c++/$(version)'
3572 if test x$host != x$target; then
3573 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3574 fi
3575 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3576 fi
3577 fi
3578
3579 gcc_gxx_include_dir_add_sysroot=0
3580 if test "${with_sysroot+set}" = set; then
3581 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3582 if test "${gcc_gxx_without_sysroot}"; then
3583 if test x${with_sysroot} != x/; then
3584 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3585 fi
3586 gcc_gxx_include_dir_add_sysroot=1
3587 fi
3588 fi
3589
3590
3591 # Check whether --with-cpp_install_dir was given.
3592 if test "${with_cpp_install_dir+set}" = set; then :
3593 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3594 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3595 elif test x$withval != xno; then
3596 cpp_install_dir=$withval
3597 fi
3598 fi
3599
3600
3601 # We would like to our source tree to be readonly. However when releases or
3602 # pre-releases are generated, the flex/bison generated files as well as the
3603 # various formats of manuals need to be included along with the rest of the
3604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3605 # just that.
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3608 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3609 # Check whether --enable-generated-files-in-srcdir was given.
3610 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3611 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3612 else
3613 generated_files_in_srcdir=no
3614 fi
3615
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3618 $as_echo "$generated_files_in_srcdir" >&6; }
3619
3620 if test "$generated_files_in_srcdir" = "yes"; then
3621 GENINSRC=''
3622 else
3623 GENINSRC='#'
3624 fi
3625
3626
3627 # -------------------
3628 # Find default linker
3629 # -------------------
3630
3631 # With GNU ld
3632
3633 # Check whether --with-gnu-ld was given.
3634 if test "${with_gnu_ld+set}" = set; then :
3635 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3636 else
3637 gnu_ld_flag=no
3638 fi
3639
3640
3641 # With pre-defined ld
3642
3643 # Check whether --with-ld was given.
3644 if test "${with_ld+set}" = set; then :
3645 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3646 fi
3647
3648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3649 if test ! -x "$DEFAULT_LINKER"; then
3650 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3652 gnu_ld_flag=yes
3653 fi
3654
3655 cat >>confdefs.h <<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3657 _ACEOF
3658
3659 fi
3660
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3664 if test x"$gnu_ld_flag" = x"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3670 fi
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676 # With demangler in GNU ld
3677
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3681 else
3682 demangler_in_ld=yes
3683 fi
3684
3685
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3689
3690 # With GNU as
3691
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3695 else
3696 gas_flag=no
3697 fi
3698
3699
3700
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3704 fi
3705
3706 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3710 gas_flag=yes
3711 fi
3712
3713 cat >>confdefs.h <<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3715 _ACEOF
3716
3717 fi
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3722 if test x"$gas_flag" = x"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3728 fi
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734 # ---------------
3735 # Find C compiler
3736 # ---------------
3737
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3742 #
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3746
3747 # Find the native compiler
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 fi
3792 if test -z "$ac_cv_prog_CC"; then
3793 ac_ct_CC=$CC
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3840 fi
3841 else
3842 CC="$ac_cv_prog_CC"
3843 fi
3844
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 fi
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 ac_prog_rejected=no
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected=yes
3907 continue
3908 fi
3909 ac_cv_prog_CC="cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy $ac_cv_prog_CC
3920 shift
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3925 shift
3926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3927 fi
3928 fi
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in cl.exe
3945 do
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 test -n "$CC" && break
3984 done
3985 fi
3986 if test -z "$CC"; then
3987 ac_ct_CC=$CC
3988 for ac_prog in cl.exe
3989 do
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 test -n "$ac_ct_CC" && break
4028 done
4029
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 CC=$ac_ct_CC
4040 fi
4041 fi
4042
4043 fi
4044
4045
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4050
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 set X $ac_compile
4054 ac_compiler=$2
4055 for ac_option in --version -v -V -qversion; do
4056 { { ac_try="$ac_compiler $ac_option >&5"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 ac_status=$?
4065 if test -s conftest.err; then
4066 sed '10a\
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4071 fi
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 done
4075
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4091 # of exeext.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4095
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4098
4099 ac_rmfiles=
4100 for ac_file in $ac_files
4101 do
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4105 esac
4106 done
4107 rm -f $ac_rmfiles
4108
4109 if { { ac_try="$ac_link_default"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4124 # Autoconf.
4125 for ac_file in $ac_files ''
4126 do
4127 test -f "$ac_file" || continue
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4130 ;;
4131 [ab].out )
4132 # We found the default executable, but exeext='' is most
4133 # certainly right.
4134 break;;
4135 *.* )
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4137 then :; else
4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4139 fi
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4144 # actually working.
4145 break;;
4146 * )
4147 break;;
4148 esac
4149 done
4150 test "$ac_cv_exeext" = no && ac_cv_exeext=
4151
4152 else
4153 ac_file=''
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status 77
4164 as_fn_error "C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4166 fi
4167 ac_exeext=$ac_cv_exeext
4168
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile, use \`--host'.
4195 See \`config.log' for more details." "$LINENO" 5; }
4196 fi
4197 fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4201
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe'), while it won't with
4227 # `rm'.
4228 for ac_file in conftest.exe conftest conftest.*; do
4229 test -f "$ac_file" || continue
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4233 break;;
4234 * ) break;;
4235 esac
4236 done
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error "cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4242 fi
4243 rm -f conftest$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4246
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257
4258 int
4259 main ()
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details." "$LINENO" 5; }
4294 fi
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308
4309 int
4310 main ()
4311 {
4312 #ifndef __GNUC__
4313 choke me
4314 #endif
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_compiler_gnu=yes
4322 else
4323 ac_compiler_gnu=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332 GCC=yes
4333 else
4334 GCC=
4335 fi
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4345 ac_cv_prog_cc_g=no
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main ()
4352 {
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 else
4361 CFLAGS=""
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364
4365 int
4366 main ()
4367 {
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374
4375 else
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main ()
4383 {
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_g=yes
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4408 fi
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4414 fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 ac_cv_prog_cc_c89=no
4422 ac_save_CC=$CC
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4435 {
4436 return p[i];
4437 }
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4439 {
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4446 }
4447
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4456
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4461
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4468 int
4469 main ()
4470 {
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4478 do
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4488
4489 fi
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4492 x)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4498 *)
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4504
4505 fi
4506
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513 ac_ext=cpp
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4520 CXX=$CCC
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4524 do
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 CXX=$ac_cv_prog_CXX
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 test -n "$CXX" && break
4563 done
4564 fi
4565 if test -z "$CXX"; then
4566 ac_ct_CXX=$CXX
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4568 do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 test -n "$ac_ct_CXX" && break
4607 done
4608
4609 if test "x$ac_ct_CXX" = x; then
4610 CXX="g++"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CXX=$ac_ct_CXX
4619 fi
4620 fi
4621
4622 fi
4623 fi
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4644 fi
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656
4657 int
4658 main ()
4659 {
4660 #ifndef __GNUC__
4661 choke me
4662 #endif
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670 else
4671 ac_compiler_gnu=no
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4675
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4680 GXX=yes
4681 else
4682 GXX=
4683 fi
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag=yes
4693 ac_cv_prog_cxx_g=no
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 else
4709 CXXFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712
4713 int
4714 main ()
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4722
4723 else
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 CXXFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_cv_prog_cxx_g=yes
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4753 CXXFLAGS="-g -O2"
4754 else
4755 CXXFLAGS="-g"
4756 fi
4757 else
4758 if test "$GXX" = yes; then
4759 CXXFLAGS="-O2"
4760 else
4761 CXXFLAGS=
4762 fi
4763 fi
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769
4770
4771
4772
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 GNATBIND=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 fi
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850 if test "x$ac_ct_GNATBIND" = x; then
4851 GNATBIND="no"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 GNATBIND=$ac_ct_GNATBIND
4860 fi
4861 else
4862 GNATBIND="$ac_cv_prog_GNATBIND"
4863 fi
4864
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 GNATMAKE=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903 fi
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942 if test "x$ac_ct_GNATMAKE" = x; then
4943 GNATMAKE="no"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 GNATMAKE=$ac_ct_GNATMAKE
4952 fi
4953 else
4954 GNATMAKE="$ac_cv_prog_GNATMAKE"
4955 fi
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat >conftest.adb <<EOF
4963 procedure conftest is begin null; end conftest;
4964 EOF
4965 acx_cv_cc_gcc_supports_ada=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x"$errors" = x && test -f conftest.$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada=yes
4977 fi
4978 rm -f conftest.*
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4982
4983 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4984 have_gnat=yes
4985 else
4986 have_gnat=no
4987 fi
4988
4989
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4996
4997
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5000 case "$CC" in
5001 */prev-gcc/xgcc*) ;;
5002 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5004 esac
5005
5006
5007
5008 # Determine PICFLAG for target gnatlib.
5009
5010
5011
5012
5013 case "${target}" in
5014 # PIC is the default on some targets or must not be used.
5015 *-*-darwin*)
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5017 case "${CFLAGS}" in
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5021 # libs.
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET=-fno-common ;;
5024 esac
5025 ;;
5026 alpha*-dec-osf5*)
5027 # PIC is the default.
5028 ;;
5029 hppa*64*-*-hpux*)
5030 # PIC is the default for 64-bit PA HP-UX.
5031 ;;
5032 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5033 ;;
5034 i[34567]86-*-mingw* | x86_64-*-mingw*)
5035 ;;
5036 i[34567]86-*-nto-qnx*)
5037 # QNX uses GNU C++, but need to define -shared option too, otherwise
5038 # it will coredump.
5039 PICFLAG_FOR_TARGET='-fPIC -shared'
5040 ;;
5041 i[34567]86-pc-msdosdjgpp*)
5042 # DJGPP does not support shared libraries at all.
5043 ;;
5044 ia64*-*-hpux*)
5045 # On IA64 HP-UX, PIC is the default but the pic flag
5046 # sets the default TLS model and affects inlining.
5047 PICFLAG_FOR_TARGET=-fPIC
5048 ;;
5049 mips-sgi-irix6*)
5050 # PIC is the default.
5051 ;;
5052 rs6000-ibm-aix* | powerpc-ibm-aix*)
5053 # All AIX code is PIC.
5054 ;;
5055
5056 # Some targets support both -fPIC and -fpic, but prefer the latter.
5057 # FIXME: Why?
5058 i[34567]86-*-* | x86_64-*-*)
5059 PICFLAG_FOR_TARGET=-fpic
5060 ;;
5061 # FIXME: Override -fPIC default in libgcc only?
5062 sh-*-linux* | sh[2346lbe]*-*-linux*)
5063 PICFLAG_FOR_TARGET=-fpic
5064 ;;
5065 # FIXME: Simplify to sh*-*-netbsd*?
5066 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5067 PICFLAG_FOR_TARGET=-fpic
5068 ;;
5069 # Default to -fPIC unless specified otherwise.
5070 *)
5071 PICFLAG_FOR_TARGET=-fPIC
5072 ;;
5073 esac
5074
5075 # If the user explicitly uses -fpic/-fPIC, keep that.
5076 case "${CFLAGS_FOR_TARGET}" in
5077 *-fpic*)
5078 PICFLAG_FOR_TARGET=-fpic
5079 ;;
5080 *-fPIC*)
5081 PICFLAG_FOR_TARGET=-fPIC
5082 ;;
5083 esac
5084
5085
5086
5087 # -------------------------
5088 # Check C compiler features
5089 # -------------------------
5090
5091
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5098 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5099 if test -z "$CXXCPP"; then
5100 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 # Double quotes because CXXCPP needs to be expanded
5104 for CXXCPP in "$CXX -E" "/lib/cpp"
5105 do
5106 ac_preproc_ok=false
5107 for ac_cxx_preproc_warn_flag in '' yes
5108 do
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122 Syntax error
5123 _ACEOF
5124 if ac_fn_cxx_try_cpp "$LINENO"; then :
5125
5126 else
5127 # Broken: fails on valid input.
5128 continue
5129 fi
5130 rm -f conftest.err conftest.$ac_ext
5131
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if ac_fn_cxx_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5140 continue
5141 else
5142 # Passes both tests.
5143 ac_preproc_ok=:
5144 break
5145 fi
5146 rm -f conftest.err conftest.$ac_ext
5147
5148 done
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then :
5152 break
5153 fi
5154
5155 done
5156 ac_cv_prog_CXXCPP=$CXXCPP
5157
5158 fi
5159 CXXCPP=$ac_cv_prog_CXXCPP
5160 else
5161 ac_cv_prog_CXXCPP=$CXXCPP
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5164 $as_echo "$CXXCPP" >&6; }
5165 ac_preproc_ok=false
5166 for ac_cxx_preproc_warn_flag in '' yes
5167 do
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #ifdef __STDC__
5177 # include <limits.h>
5178 #else
5179 # include <assert.h>
5180 #endif
5181 Syntax error
5182 _ACEOF
5183 if ac_fn_cxx_try_cpp "$LINENO"; then :
5184
5185 else
5186 # Broken: fails on valid input.
5187 continue
5188 fi
5189 rm -f conftest.err conftest.$ac_ext
5190
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5196 _ACEOF
5197 if ac_fn_cxx_try_cpp "$LINENO"; then :
5198 # Broken: success on invalid input.
5199 continue
5200 else
5201 # Passes both tests.
5202 ac_preproc_ok=:
5203 break
5204 fi
5205 rm -f conftest.err conftest.$ac_ext
5206
5207 done
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.err conftest.$ac_ext
5210 if $ac_preproc_ok; then :
5211
5212 else
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5216 See \`config.log' for more details." "$LINENO" 5; }
5217 fi
5218
5219 ac_ext=cpp
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5227 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5228 if test "${ac_cv_path_GREP+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -z "$GREP"; then
5232 ac_path_GREP_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_prog in grep ggrep; do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5242 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5243 # Check for GNU ac_path_GREP and select it if it is found.
5244 # Check for GNU $ac_path_GREP
5245 case `"$ac_path_GREP" --version 2>&1` in
5246 *GNU*)
5247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5248 *)
5249 ac_count=0
5250 $as_echo_n 0123456789 >"conftest.in"
5251 while :
5252 do
5253 cat "conftest.in" "conftest.in" >"conftest.tmp"
5254 mv "conftest.tmp" "conftest.in"
5255 cp "conftest.in" "conftest.nl"
5256 $as_echo 'GREP' >> "conftest.nl"
5257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259 as_fn_arith $ac_count + 1 && ac_count=$as_val
5260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5261 # Best one so far, save it but keep looking for a better one
5262 ac_cv_path_GREP="$ac_path_GREP"
5263 ac_path_GREP_max=$ac_count
5264 fi
5265 # 10*(2^10) chars as input seems more than enough
5266 test $ac_count -gt 10 && break
5267 done
5268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 esac
5270
5271 $ac_path_GREP_found && break 3
5272 done
5273 done
5274 done
5275 IFS=$as_save_IFS
5276 if test -z "$ac_cv_path_GREP"; then
5277 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5278 fi
5279 else
5280 ac_cv_path_GREP=$GREP
5281 fi
5282
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5285 $as_echo "$ac_cv_path_GREP" >&6; }
5286 GREP="$ac_cv_path_GREP"
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5290 $as_echo_n "checking for egrep... " >&6; }
5291 if test "${ac_cv_path_EGREP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5295 then ac_cv_path_EGREP="$GREP -E"
5296 else
5297 if test -z "$EGREP"; then
5298 ac_path_EGREP_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in egrep; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5308 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5309 # Check for GNU ac_path_EGREP and select it if it is found.
5310 # Check for GNU $ac_path_EGREP
5311 case `"$ac_path_EGREP" --version 2>&1` in
5312 *GNU*)
5313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5314 *)
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo 'EGREP' >> "conftest.nl"
5323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_EGREP="$ac_path_EGREP"
5329 ac_path_EGREP_max=$ac_count
5330 fi
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5336
5337 $ac_path_EGREP_found && break 3
5338 done
5339 done
5340 done
5341 IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_EGREP"; then
5343 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5344 fi
5345 else
5346 ac_cv_path_EGREP=$EGREP
5347 fi
5348
5349 fi
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5352 $as_echo "$ac_cv_path_EGREP" >&6; }
5353 EGREP="$ac_cv_path_EGREP"
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5357 $as_echo_n "checking for ANSI C header files... " >&6; }
5358 if test "${ac_cv_header_stdc+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <stdlib.h>
5364 #include <stdarg.h>
5365 #include <string.h>
5366 #include <float.h>
5367
5368 int
5369 main ()
5370 {
5371
5372 ;
5373 return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_cxx_try_compile "$LINENO"; then :
5377 ac_cv_header_stdc=yes
5378 else
5379 ac_cv_header_stdc=no
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382
5383 if test $ac_cv_header_stdc = yes; then
5384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <string.h>
5388
5389 _ACEOF
5390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "memchr" >/dev/null 2>&1; then :
5392
5393 else
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -f conftest*
5397
5398 fi
5399
5400 if test $ac_cv_header_stdc = yes; then
5401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <stdlib.h>
5405
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "free" >/dev/null 2>&1; then :
5409
5410 else
5411 ac_cv_header_stdc=no
5412 fi
5413 rm -f conftest*
5414
5415 fi
5416
5417 if test $ac_cv_header_stdc = yes; then
5418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5419 if test "$cross_compiling" = yes; then :
5420 :
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #include <ctype.h>
5425 #include <stdlib.h>
5426 #if ((' ' & 0x0FF) == 0x020)
5427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5429 #else
5430 # define ISLOWER(c) \
5431 (('a' <= (c) && (c) <= 'i') \
5432 || ('j' <= (c) && (c) <= 'r') \
5433 || ('s' <= (c) && (c) <= 'z'))
5434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #endif
5436
5437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5438 int
5439 main ()
5440 {
5441 int i;
5442 for (i = 0; i < 256; i++)
5443 if (XOR (islower (i), ISLOWER (i))
5444 || toupper (i) != TOUPPER (i))
5445 return 2;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_cxx_try_run "$LINENO"; then :
5450
5451 else
5452 ac_cv_header_stdc=no
5453 fi
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5455 conftest.$ac_objext conftest.beam conftest.$ac_ext
5456 fi
5457
5458 fi
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5461 $as_echo "$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5463
5464 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5465
5466 fi
5467
5468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5470 inttypes.h stdint.h unistd.h
5471 do :
5472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5474 "
5475 eval as_val=\$$as_ac_Header
5476 if test "x$as_val" = x""yes; then :
5477 cat >>confdefs.h <<_ACEOF
5478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479 _ACEOF
5480
5481 fi
5482
5483 done
5484
5485
5486
5487 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5488 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5489 MINIX=yes
5490 else
5491 MINIX=
5492 fi
5493
5494
5495 if test "$MINIX" = yes; then
5496
5497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498
5499
5500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501
5502
5503 $as_echo "#define _MINIX 1" >>confdefs.h
5504
5505 fi
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5510 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515
5516 # define __EXTENSIONS__ 1
5517 $ac_includes_default
5518 int
5519 main ()
5520 {
5521
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 if ac_fn_cxx_try_compile "$LINENO"; then :
5527 ac_cv_safe_to_define___extensions__=yes
5528 else
5529 ac_cv_safe_to_define___extensions__=no
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5535 test $ac_cv_safe_to_define___extensions__ = yes &&
5536 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5537
5538 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5539
5540 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5541
5542 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5543
5544 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5556 CPP=
5557 fi
5558 if test -z "$CPP"; then
5559 if test "${ac_cv_prog_CPP+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 # Double quotes because CPP needs to be expanded
5563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564 do
5565 ac_preproc_ok=false
5566 for ac_c_preproc_warn_flag in '' yes
5567 do
5568 # Use a header file that comes with gcc, so configuring glibc
5569 # with a fresh cross-compiler works.
5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 # <limits.h> exists even on freestanding compilers.
5572 # On the NeXT, cc -E runs the code through the compiler's parser,
5573 # not just through cpp. "Syntax error" is here to catch this case.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581 Syntax error
5582 _ACEOF
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5584
5585 else
5586 # Broken: fails on valid input.
5587 continue
5588 fi
5589 rm -f conftest.err conftest.$ac_ext
5590
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598 # Broken: success on invalid input.
5599 continue
5600 else
5601 # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5604 fi
5605 rm -f conftest.err conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611 break
5612 fi
5613
5614 done
5615 ac_cv_prog_CPP=$CPP
5616
5617 fi
5618 CPP=$ac_cv_prog_CPP
5619 else
5620 ac_cv_prog_CPP=$CPP
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5624 ac_preproc_ok=false
5625 for ac_c_preproc_warn_flag in '' yes
5626 do
5627 # Use a header file that comes with gcc, so configuring glibc
5628 # with a fresh cross-compiler works.
5629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 # <limits.h> exists even on freestanding compilers.
5631 # On the NeXT, cc -E runs the code through the compiler's parser,
5632 # not just through cpp. "Syntax error" is here to catch this case.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #ifdef __STDC__
5636 # include <limits.h>
5637 #else
5638 # include <assert.h>
5639 #endif
5640 Syntax error
5641 _ACEOF
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5643
5644 else
5645 # Broken: fails on valid input.
5646 continue
5647 fi
5648 rm -f conftest.err conftest.$ac_ext
5649
5650 # OK, works on sane cases. Now check whether nonexistent headers
5651 # can be detected and how.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657 # Broken: success on invalid input.
5658 continue
5659 else
5660 # Passes both tests.
5661 ac_preproc_ok=:
5662 break
5663 fi
5664 rm -f conftest.err conftest.$ac_ext
5665
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5670
5671 else
5672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details." "$LINENO" 5; }
5676 fi
5677
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5685 $as_echo_n "checking for inline... " >&6; }
5686 if test "${ac_cv_c_inline+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 ac_cv_c_inline=no
5690 for ac_kw in inline __inline__ __inline; do
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #ifndef __cplusplus
5694 typedef int foo_t;
5695 static $ac_kw foo_t static_foo () {return 0; }
5696 $ac_kw foo_t foo () {return 0; }
5697 #endif
5698
5699 _ACEOF
5700 if ac_fn_cxx_try_compile "$LINENO"; then :
5701 ac_cv_c_inline=$ac_kw
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 test "$ac_cv_c_inline" != no && break
5705 done
5706
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5709 $as_echo "$ac_cv_c_inline" >&6; }
5710
5711 case $ac_cv_c_inline in
5712 inline | yes) ;;
5713 *)
5714 case $ac_cv_c_inline in
5715 no) ac_val=;;
5716 *) ac_val=$ac_cv_c_inline;;
5717 esac
5718 cat >>confdefs.h <<_ACEOF
5719 #ifndef __cplusplus
5720 #define inline $ac_val
5721 #endif
5722 _ACEOF
5723 ;;
5724 esac
5725
5726
5727 # Check whether --enable-largefile was given.
5728 if test "${enable_largefile+set}" = set; then :
5729 enableval=$enable_largefile;
5730 fi
5731
5732 if test "$enable_largefile" != no; then
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5735 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5736 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 ac_cv_sys_largefile_CC=no
5740 if test "$GCC" != yes; then
5741 ac_save_CC=$CC
5742 while :; do
5743 # IRIX 6.2 and later do not support large files by default,
5744 # so use the C compiler's -n32 option if that helps.
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5755 ? 1 : -1];
5756 int
5757 main ()
5758 {
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_cxx_try_compile "$LINENO"; then :
5765 break
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext
5768 CC="$CC -n32"
5769 if ac_fn_cxx_try_compile "$LINENO"; then :
5770 ac_cv_sys_largefile_CC=' -n32'; break
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext
5773 break
5774 done
5775 CC=$ac_save_CC
5776 rm -f conftest.$ac_ext
5777 fi
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5780 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5781 if test "$ac_cv_sys_largefile_CC" != no; then
5782 CC=$CC$ac_cv_sys_largefile_CC
5783 fi
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5786 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5787 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 while :; do
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_cxx_try_compile "$LINENO"; then :
5811 ac_cv_sys_file_offset_bits=no; break
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #define _FILE_OFFSET_BITS 64
5817 #include <sys/types.h>
5818 /* Check that off_t can represent 2**63 - 1 correctly.
5819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5820 since some C++ compilers masquerading as C compilers
5821 incorrectly reject 9223372036854775807. */
5822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5824 && LARGE_OFF_T % 2147483647 == 1)
5825 ? 1 : -1];
5826 int
5827 main ()
5828 {
5829
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_cxx_try_compile "$LINENO"; then :
5835 ac_cv_sys_file_offset_bits=64; break
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cv_sys_file_offset_bits=unknown
5839 break
5840 done
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5843 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5844 case $ac_cv_sys_file_offset_bits in #(
5845 no | unknown) ;;
5846 *)
5847 cat >>confdefs.h <<_ACEOF
5848 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5849 _ACEOF
5850 ;;
5851 esac
5852 rm -rf conftest*
5853 if test $ac_cv_sys_file_offset_bits = unknown; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5855 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5856 if test "${ac_cv_sys_large_files+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 while :; do
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <sys/types.h>
5863 /* Check that off_t can represent 2**63 - 1 correctly.
5864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5865 since some C++ compilers masquerading as C compilers
5866 incorrectly reject 9223372036854775807. */
5867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5869 && LARGE_OFF_T % 2147483647 == 1)
5870 ? 1 : -1];
5871 int
5872 main ()
5873 {
5874
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_cxx_try_compile "$LINENO"; then :
5880 ac_cv_sys_large_files=no; break
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #define _LARGE_FILES 1
5886 #include <sys/types.h>
5887 /* Check that off_t can represent 2**63 - 1 correctly.
5888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889 since some C++ compilers masquerading as C compilers
5890 incorrectly reject 9223372036854775807. */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893 && LARGE_OFF_T % 2147483647 == 1)
5894 ? 1 : -1];
5895 int
5896 main ()
5897 {
5898
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_cxx_try_compile "$LINENO"; then :
5904 ac_cv_sys_large_files=1; break
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 ac_cv_sys_large_files=unknown
5908 break
5909 done
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5912 $as_echo "$ac_cv_sys_large_files" >&6; }
5913 case $ac_cv_sys_large_files in #(
5914 no | unknown) ;;
5915 *)
5916 cat >>confdefs.h <<_ACEOF
5917 #define _LARGE_FILES $ac_cv_sys_large_files
5918 _ACEOF
5919 ;;
5920 esac
5921 rm -rf conftest*
5922 fi
5923 fi
5924
5925
5926 # sizeof(char) is 1 by definition.
5927 # The cast to long int works around a bug in the HP C Compiler
5928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5930 # This bug is HP SR number 8606223364.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5932 $as_echo_n "checking size of void *... " >&6; }
5933 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5937
5938 else
5939 if test "$ac_cv_type_void_p" = yes; then
5940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5942 { as_fn_set_status 77
5943 as_fn_error "cannot compute sizeof (void *)
5944 See \`config.log' for more details." "$LINENO" 5; }; }
5945 else
5946 ac_cv_sizeof_void_p=0
5947 fi
5948 fi
5949
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5952 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5953
5954
5955
5956 cat >>confdefs.h <<_ACEOF
5957 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5958 _ACEOF
5959
5960
5961 # The cast to long int works around a bug in the HP C Compiler
5962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5964 # This bug is HP SR number 8606223364.
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5966 $as_echo_n "checking size of short... " >&6; }
5967 if test "${ac_cv_sizeof_short+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5971
5972 else
5973 if test "$ac_cv_type_short" = yes; then
5974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5976 { as_fn_set_status 77
5977 as_fn_error "cannot compute sizeof (short)
5978 See \`config.log' for more details." "$LINENO" 5; }; }
5979 else
5980 ac_cv_sizeof_short=0
5981 fi
5982 fi
5983
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5986 $as_echo "$ac_cv_sizeof_short" >&6; }
5987
5988
5989
5990 cat >>confdefs.h <<_ACEOF
5991 #define SIZEOF_SHORT $ac_cv_sizeof_short
5992 _ACEOF
5993
5994
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6000 $as_echo_n "checking size of int... " >&6; }
6001 if test "${ac_cv_sizeof_int+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6005
6006 else
6007 if test "$ac_cv_type_int" = yes; then
6008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (int)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6013 else
6014 ac_cv_sizeof_int=0
6015 fi
6016 fi
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6020 $as_echo "$ac_cv_sizeof_int" >&6; }
6021
6022
6023
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF_INT $ac_cv_sizeof_int
6026 _ACEOF
6027
6028
6029 # The cast to long int works around a bug in the HP C Compiler
6030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6032 # This bug is HP SR number 8606223364.
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6034 $as_echo_n "checking size of long... " >&6; }
6035 if test "${ac_cv_sizeof_long+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6039
6040 else
6041 if test "$ac_cv_type_long" = yes; then
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 { as_fn_set_status 77
6045 as_fn_error "cannot compute sizeof (long)
6046 See \`config.log' for more details." "$LINENO" 5; }; }
6047 else
6048 ac_cv_sizeof_long=0
6049 fi
6050 fi
6051
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6054 $as_echo "$ac_cv_sizeof_long" >&6; }
6055
6056
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define SIZEOF_LONG $ac_cv_sizeof_long
6060 _ACEOF
6061
6062
6063 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6064 if test "x$ac_cv_type_long_long" = x""yes; then :
6065
6066 cat >>confdefs.h <<_ACEOF
6067 #define HAVE_LONG_LONG 1
6068 _ACEOF
6069
6070 # The cast to long int works around a bug in the HP C Compiler
6071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6073 # This bug is HP SR number 8606223364.
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6075 $as_echo_n "checking size of long long... " >&6; }
6076 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6080
6081 else
6082 if test "$ac_cv_type_long_long" = yes; then
6083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6085 { as_fn_set_status 77
6086 as_fn_error "cannot compute sizeof (long long)
6087 See \`config.log' for more details." "$LINENO" 5; }; }
6088 else
6089 ac_cv_sizeof_long_long=0
6090 fi
6091 fi
6092
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6095 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6096
6097
6098
6099 cat >>confdefs.h <<_ACEOF
6100 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6101 _ACEOF
6102
6103
6104 fi
6105
6106 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6107 case $ac_cv_c_int8_t in #(
6108 no|yes) ;; #(
6109 *)
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define int8_t $ac_cv_c_int8_t
6113 _ACEOF
6114 ;;
6115 esac
6116
6117 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6118 case $ac_cv_c_int16_t in #(
6119 no|yes) ;; #(
6120 *)
6121
6122 cat >>confdefs.h <<_ACEOF
6123 #define int16_t $ac_cv_c_int16_t
6124 _ACEOF
6125 ;;
6126 esac
6127
6128 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6129 case $ac_cv_c_int32_t in #(
6130 no|yes) ;; #(
6131 *)
6132
6133 cat >>confdefs.h <<_ACEOF
6134 #define int32_t $ac_cv_c_int32_t
6135 _ACEOF
6136 ;;
6137 esac
6138
6139 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6140 case $ac_cv_c_int64_t in #(
6141 no|yes) ;; #(
6142 *)
6143
6144 cat >>confdefs.h <<_ACEOF
6145 #define int64_t $ac_cv_c_int64_t
6146 _ACEOF
6147 ;;
6148 esac
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6152 $as_echo_n "checking for long long int... " >&6; }
6153 if test "${ac_cv_type_long_long_int+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158
6159 /* For now, do not test the preprocessor; as of 2007 there are too many
6160 implementations with broken preprocessors. Perhaps this can
6161 be revisited in 2012. In the meantime, code should not expect
6162 #if to work with literals wider than 32 bits. */
6163 /* Test literals. */
6164 long long int ll = 9223372036854775807ll;
6165 long long int nll = -9223372036854775807LL;
6166 unsigned long long int ull = 18446744073709551615ULL;
6167 /* Test constant expressions. */
6168 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6169 ? 1 : -1)];
6170 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6171 ? 1 : -1)];
6172 int i = 63;
6173 int
6174 main ()
6175 {
6176 /* Test availability of runtime routines for shift and division. */
6177 long long int llmax = 9223372036854775807ll;
6178 unsigned long long int ullmax = 18446744073709551615ull;
6179 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6180 | (llmax / ll) | (llmax % ll)
6181 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6182 | (ullmax / ull) | (ullmax % ull));
6183 ;
6184 return 0;
6185 }
6186
6187 _ACEOF
6188 if ac_fn_cxx_try_link "$LINENO"; then :
6189 if test "$cross_compiling" = yes; then :
6190 ac_cv_type_long_long_int=yes
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <limits.h>
6195 #ifndef LLONG_MAX
6196 # define HALF \
6197 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6198 # define LLONG_MAX (HALF - 1 + HALF)
6199 #endif
6200 int
6201 main ()
6202 {
6203 long long int n = 1;
6204 int i;
6205 for (i = 0; ; i++)
6206 {
6207 long long int m = n << i;
6208 if (m >> i != n)
6209 return 1;
6210 if (LLONG_MAX / 2 < m)
6211 break;
6212 }
6213 return 0;
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_cxx_try_run "$LINENO"; then :
6219 ac_cv_type_long_long_int=yes
6220 else
6221 ac_cv_type_long_long_int=no
6222 fi
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6224 conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 fi
6226
6227 else
6228 ac_cv_type_long_long_int=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6234 $as_echo "$ac_cv_type_long_long_int" >&6; }
6235 if test $ac_cv_type_long_long_int = yes; then
6236
6237 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6238
6239 fi
6240
6241
6242
6243 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6244 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6245
6246 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6247
6248 else
6249 test $ac_cv_type_long_long_int = yes \
6250 && ac_type='long long int' \
6251 || ac_type='long int'
6252
6253 cat >>confdefs.h <<_ACEOF
6254 #define intmax_t $ac_type
6255 _ACEOF
6256
6257 fi
6258
6259
6260
6261 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6263
6264 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6265
6266 else
6267 for ac_type in 'int' 'long int' 'long long int'; do
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 test_array [0] = 0
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_cxx_try_compile "$LINENO"; then :
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define intptr_t $ac_type
6285 _ACEOF
6286
6287 ac_type=
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 test -z "$ac_type" && break
6291 done
6292 fi
6293
6294
6295 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6296 case $ac_cv_c_uint8_t in #(
6297 no|yes) ;; #(
6298 *)
6299
6300 $as_echo "#define _UINT8_T 1" >>confdefs.h
6301
6302
6303 cat >>confdefs.h <<_ACEOF
6304 #define uint8_t $ac_cv_c_uint8_t
6305 _ACEOF
6306 ;;
6307 esac
6308
6309 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6310 case $ac_cv_c_uint16_t in #(
6311 no|yes) ;; #(
6312 *)
6313
6314
6315 cat >>confdefs.h <<_ACEOF
6316 #define uint16_t $ac_cv_c_uint16_t
6317 _ACEOF
6318 ;;
6319 esac
6320
6321 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6322 case $ac_cv_c_uint32_t in #(
6323 no|yes) ;; #(
6324 *)
6325
6326 $as_echo "#define _UINT32_T 1" >>confdefs.h
6327
6328
6329 cat >>confdefs.h <<_ACEOF
6330 #define uint32_t $ac_cv_c_uint32_t
6331 _ACEOF
6332 ;;
6333 esac
6334
6335 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6336 case $ac_cv_c_uint64_t in #(
6337 no|yes) ;; #(
6338 *)
6339
6340 $as_echo "#define _UINT64_T 1" >>confdefs.h
6341
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define uint64_t $ac_cv_c_uint64_t
6345 _ACEOF
6346 ;;
6347 esac
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6351 $as_echo_n "checking for unsigned long long int... " >&6; }
6352 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357
6358 /* For now, do not test the preprocessor; as of 2007 there are too many
6359 implementations with broken preprocessors. Perhaps this can
6360 be revisited in 2012. In the meantime, code should not expect
6361 #if to work with literals wider than 32 bits. */
6362 /* Test literals. */
6363 long long int ll = 9223372036854775807ll;
6364 long long int nll = -9223372036854775807LL;
6365 unsigned long long int ull = 18446744073709551615ULL;
6366 /* Test constant expressions. */
6367 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6368 ? 1 : -1)];
6369 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6370 ? 1 : -1)];
6371 int i = 63;
6372 int
6373 main ()
6374 {
6375 /* Test availability of runtime routines for shift and division. */
6376 long long int llmax = 9223372036854775807ll;
6377 unsigned long long int ullmax = 18446744073709551615ull;
6378 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6379 | (llmax / ll) | (llmax % ll)
6380 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6381 | (ullmax / ull) | (ullmax % ull));
6382 ;
6383 return 0;
6384 }
6385
6386 _ACEOF
6387 if ac_fn_cxx_try_link "$LINENO"; then :
6388 ac_cv_type_unsigned_long_long_int=yes
6389 else
6390 ac_cv_type_unsigned_long_long_int=no
6391 fi
6392 rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6396 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6397 if test $ac_cv_type_unsigned_long_long_int = yes; then
6398
6399 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6400
6401 fi
6402
6403
6404
6405 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6406 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6407
6408 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6409
6410 else
6411 test $ac_cv_type_unsigned_long_long_int = yes \
6412 && ac_type='unsigned long long int' \
6413 || ac_type='unsigned long int'
6414
6415 cat >>confdefs.h <<_ACEOF
6416 #define uintmax_t $ac_type
6417 _ACEOF
6418
6419 fi
6420
6421
6422
6423 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6425
6426 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6427
6428 else
6429 for ac_type in 'unsigned int' 'unsigned long int' \
6430 'unsigned long long int'; do
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 $ac_includes_default
6434 int
6435 main ()
6436 {
6437 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6438 test_array [0] = 0
6439
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_cxx_try_compile "$LINENO"; then :
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define uintptr_t $ac_type
6448 _ACEOF
6449
6450 ac_type=
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 test -z "$ac_type" && break
6454 done
6455 fi
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6471 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6472 fi
6473
6474 # check what underlying integer type int64_t uses
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6476 $as_echo_n "checking for int64_t underlying type... " >&6; }
6477 if test "${ac_cv_int64_t_type+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 #ifdef HAVE_STDINT_H
6485 #include <stdint.h>
6486 #endif
6487 template <typename T> struct X { };
6488 template <>
6489 struct X<long> { typedef long t; };
6490
6491 int
6492 main ()
6493 {
6494 X<int64_t>::t x;
6495 ;
6496 return 0;
6497 }
6498 _ACEOF
6499 if ac_fn_cxx_try_compile "$LINENO"; then :
6500 ac_cv_int64_t_type=long
6501 else
6502 ac_cv_int64_t_type="long long"
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6507 $as_echo "$ac_cv_int64_t_type" >&6; }
6508 if test "$ac_cv_int64_t_type" = "long"; then
6509
6510 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6511
6512 else
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 long> { typedef long 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
6533 else
6534 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6540 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6541 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547
6548 #include <utility>
6549
6550 int
6551 main ()
6552 {
6553 int a, b; std::swap(a,b);
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 if ac_fn_cxx_try_compile "$LINENO"; then :
6559 ac_cv_std_swap_in_utility=yes
6560 else
6561 ac_cv_std_swap_in_utility=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6566 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6567 if test $ac_cv_std_swap_in_utility = yes; then
6568
6569 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6570
6571 fi
6572
6573 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6574 # If the host compiler is affected by the bug, and we build with optimization
6575 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6576 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6577 # Since there is no reliable feature check for the presence of this bug,
6578 # we simply use a GCC version number check. (This should never trigger for
6579 # stages 2 or 3 of a native bootstrap.)
6580 aliasing_flags=
6581 if test "$GCC" = yes; then
6582 saved_CXXFLAGS="$CXXFLAGS"
6583
6584 # The following test compilation will succeed if and only if $CXX accepts
6585 # -fno-strict-aliasing *and* is older than GCC 4.3.
6586 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6588 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591
6592 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6593 #error compiler not affected by placement new aliasing bug
6594 #endif
6595
6596 _ACEOF
6597 if ac_fn_cxx_try_compile "$LINENO"; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6599 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605
6606 CXXFLAGS="$saved_CXXFLAGS"
6607 fi
6608
6609
6610
6611
6612 # ---------------------
6613 # Warnings and checking
6614 # ---------------------
6615
6616 # Check $CC warning features (if it's GCC).
6617 # We want to use -pedantic, but we don't want warnings about
6618 # * 'long long'
6619 # * variadic macros
6620 # * overlong strings
6621 # * C++11 narrowing conversions in { }
6622 # So, we only use -pedantic if we can disable those warnings.
6623
6624 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6625 # Check whether --enable-build-format-warnings was given.
6626 if test "${enable_build_format_warnings+set}" = set; then :
6627 enableval=$enable_build_format_warnings;
6628 else
6629 enable_build_format_warnings=yes
6630 fi
6631
6632 if test $enable_build_format_warnings = no; then :
6633 wf_opt=-Wno-format
6634 else
6635 wf_opt=
6636 fi
6637 ac_ext=cpp
6638 ac_cpp='$CXXCPP $CPPFLAGS'
6639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6642
6643 loose_warn=
6644 save_CXXFLAGS="$CXXFLAGS"
6645 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6655 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CXXFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662
6663 int
6664 main ()
6665 {
6666
6667 ;
6668 return 0;
6669 }
6670 _ACEOF
6671 if ac_fn_cxx_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677
6678 fi
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6684 fi
6685 done
6686 CXXFLAGS="$save_CXXFLAGS"
6687 ac_ext=cpp
6688 ac_cpp='$CXXCPP $CPPFLAGS'
6689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6692
6693
6694
6695 ac_ext=c
6696 ac_cpp='$CPP $CPPFLAGS'
6697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6700
6701 c_loose_warn=
6702 save_CFLAGS="$CFLAGS"
6703 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6704 # Do the check with the no- prefix removed since gcc silently
6705 # accepts any -Wno-* option on purpose
6706 case $real_option in
6707 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6708 *) option=$real_option ;;
6709 esac
6710 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6713 $as_echo_n "checking whether $CC supports $option... " >&6; }
6714 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 CFLAGS="$option"
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720
6721 int
6722 main ()
6723 {
6724
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 eval "$as_acx_Woption=yes"
6731 else
6732 eval "$as_acx_Woption=no"
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736 fi
6737 eval ac_res=\$$as_acx_Woption
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6739 $as_echo "$ac_res" >&6; }
6740 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6741 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6742 fi
6743 done
6744 CFLAGS="$save_CFLAGS"
6745 ac_ext=cpp
6746 ac_cpp='$CXXCPP $CPPFLAGS'
6747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6750
6751
6752 ac_ext=cpp
6753 ac_cpp='$CXXCPP $CPPFLAGS'
6754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6757
6758 strict_warn=
6759 save_CXXFLAGS="$CXXFLAGS"
6760 for real_option in -Wmissing-format-attribute; do
6761 # Do the check with the no- prefix removed since gcc silently
6762 # accepts any -Wno-* option on purpose
6763 case $real_option in
6764 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6765 *) option=$real_option ;;
6766 esac
6767 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6770 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6771 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 CXXFLAGS="$option"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_cxx_try_compile "$LINENO"; then :
6787 eval "$as_acx_Woption=yes"
6788 else
6789 eval "$as_acx_Woption=no"
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 fi
6794 eval ac_res=\$$as_acx_Woption
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6798 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6799 fi
6800 done
6801 CXXFLAGS="$save_CXXFLAGS"
6802 ac_ext=cpp
6803 ac_cpp='$CXXCPP $CPPFLAGS'
6804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807
6808
6809 ac_ext=cpp
6810 ac_cpp='$CXXCPP $CPPFLAGS'
6811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814
6815 save_CXXFLAGS="$CXXFLAGS"
6816 for real_option in -Woverloaded-virtual; do
6817 # Do the check with the no- prefix removed since gcc silently
6818 # accepts any -Wno-* option on purpose
6819 case $real_option in
6820 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6821 *) option=$real_option ;;
6822 esac
6823 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6824
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6826 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6827 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 CXXFLAGS="$option"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833
6834 int
6835 main ()
6836 {
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_cxx_try_compile "$LINENO"; then :
6843 eval "$as_acx_Woption=yes"
6844 else
6845 eval "$as_acx_Woption=no"
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848
6849 fi
6850 eval ac_res=\$$as_acx_Woption
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6852 $as_echo "$ac_res" >&6; }
6853 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6854 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6855 fi
6856 done
6857 CXXFLAGS="$save_CXXFLAGS"
6858 ac_ext=cpp
6859 ac_cpp='$CXXCPP $CPPFLAGS'
6860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6863
6864
6865 ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870
6871 c_strict_warn=
6872 save_CFLAGS="$CFLAGS"
6873 for real_option in -Wold-style-definition -Wc++-compat; do
6874 # Do the check with the no- prefix removed since gcc silently
6875 # accepts any -Wno-* option on purpose
6876 case $real_option in
6877 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6878 *) option=$real_option ;;
6879 esac
6880 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6881
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6883 $as_echo_n "checking whether $CC supports $option... " >&6; }
6884 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 CFLAGS="$option"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890
6891 int
6892 main ()
6893 {
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 eval "$as_acx_Woption=yes"
6901 else
6902 eval "$as_acx_Woption=no"
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905
6906 fi
6907 eval ac_res=\$$as_acx_Woption
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6909 $as_echo "$ac_res" >&6; }
6910 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6911 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6912 fi
6913 done
6914 CFLAGS="$save_CFLAGS"
6915 ac_ext=cpp
6916 ac_cpp='$CXXCPP $CPPFLAGS'
6917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6920
6921
6922 ac_ext=cpp
6923 ac_cpp='$CXXCPP $CPPFLAGS'
6924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6927
6928 # Do the check with the no- prefix removed from the warning options
6929 # since gcc silently accepts any -Wno-* option on purpose
6930 if test "$GXX" = yes; then :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6932 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6933 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 save_CXXFLAGS="$CXXFLAGS"
6937 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_cxx_try_compile "$LINENO"; then :
6950 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6951 else
6952 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CXXFLAGS="$save_CXXFLAGS"
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6958 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6959 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6960 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6961 fi
6962
6963 fi
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 ac_ext=cpp
6972 ac_cpp='$CXXCPP $CPPFLAGS'
6973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976
6977 # Check whether --enable-werror-always was given.
6978 if test "${enable_werror_always+set}" = set; then :
6979 enableval=$enable_werror_always;
6980 else
6981 enable_werror_always=no
6982 fi
6983
6984 if test $enable_werror_always = yes; then :
6985 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6986 fi
6987
6988 ac_ext=cpp
6989 ac_cpp='$CXXCPP $CPPFLAGS'
6990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6993
6994
6995
6996 # The above macros do nothing if the compiler is not GCC. However, the
6997 # Makefile has more goo to add other flags, so these variables are used
6998 # to enable warnings only for GCC.
6999 warn_cflags=
7000 warn_cxxflags=
7001 if test "x$GCC" = "xyes"; then
7002 warn_cflags='$(GCC_WARN_CFLAGS)'
7003 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7004 fi
7005
7006
7007
7008 # Disable exceptions and RTTI if building with g++
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
7015 noexception_flags=
7016 save_CFLAGS="$CFLAGS"
7017 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7018 # Do the check with the no- prefix removed since gcc silently
7019 # accepts any -Wno-* option on purpose
7020 case $real_option in
7021 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7022 *) option=$real_option ;;
7023 esac
7024 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7027 $as_echo_n "checking whether $CC supports $option... " >&6; }
7028 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 CFLAGS="$option"
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034
7035 int
7036 main ()
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 eval "$as_acx_Woption=yes"
7045 else
7046 eval "$as_acx_Woption=no"
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049
7050 fi
7051 eval ac_res=\$$as_acx_Woption
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7055 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7056 fi
7057 done
7058 CFLAGS="$save_CFLAGS"
7059 ac_ext=cpp
7060 ac_cpp='$CXXCPP $CPPFLAGS'
7061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7064
7065
7066
7067 # Enable expensive internal checks
7068 is_release=
7069 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7070 is_release=yes
7071 fi
7072
7073 # Check whether --enable-checking was given.
7074 if test "${enable_checking+set}" = set; then :
7075 enableval=$enable_checking; ac_checking_flags="${enableval}"
7076 else
7077
7078 # Determine the default checks.
7079 if test x$is_release = x ; then
7080 ac_checking_flags=yes,extra
7081 else
7082 ac_checking_flags=release
7083 fi
7084 fi
7085
7086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7087 for check in release $ac_checking_flags
7088 do
7089 case $check in
7090 # these set all the flags to specific states
7091 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7092 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7093 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7094 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7095 ac_tree_checking=1 ; ac_valgrind_checking= ;
7096 ac_types_checking=1 ;;
7097 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7098 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7099 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7100 ac_rtlflag_checking= ; ac_runtime_checking= ;
7101 ac_tree_checking= ; ac_valgrind_checking= ;
7102 ac_types_checking= ;;
7103 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7104 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7105 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7106 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7107 ac_tree_checking=1 ; ac_valgrind_checking= ;
7108 ac_types_checking=1 ;;
7109 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7110 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7111 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7112 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7113 ac_tree_checking= ; ac_valgrind_checking= ;
7114 ac_types_checking= ;;
7115 # these enable particular checks
7116 assert) ac_assert_checking=1 ;;
7117 df) ac_df_checking=1 ;;
7118 extra) ac_extra_checking=1 ;;
7119 fold) ac_fold_checking=1 ;;
7120 gc) ac_gc_checking=1 ;;
7121 gcac) ac_gc_always_collect=1 ;;
7122 gimple) ac_gimple_checking=1 ;;
7123 misc) ac_checking=1 ;;
7124 rtl) ac_rtl_checking=1 ;;
7125 rtlflag) ac_rtlflag_checking=1 ;;
7126 runtime) ac_runtime_checking=1 ;;
7127 tree) ac_tree_checking=1 ;;
7128 types) ac_types_checking=1 ;;
7129 valgrind) ac_valgrind_checking=1 ;;
7130 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7131 esac
7132 done
7133 IFS="$ac_save_IFS"
7134
7135 nocommon_flag=""
7136 if test x$ac_checking != x ; then
7137 if test x$ac_extra_checking != x ; then
7138 ac_checking=2
7139 fi
7140
7141 cat >>confdefs.h <<_ACEOF
7142 #define CHECKING_P $ac_checking
7143 _ACEOF
7144
7145 nocommon_flag=-fno-common
7146 else
7147 $as_echo "#define CHECKING_P 0" >>confdefs.h
7148
7149 fi
7150
7151 if test x$ac_df_checking != x ; then
7152
7153 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7154
7155 fi
7156 if test x$ac_assert_checking != x ; then
7157
7158 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7159
7160 fi
7161 if test x$ac_gimple_checking != x ; then
7162
7163 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7164
7165 fi
7166
7167 if test x$ac_runtime_checking != x ; then
7168
7169 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7170
7171 fi
7172 if test x$ac_tree_checking != x ; then
7173
7174 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7175
7176 TREECHECKING=yes
7177 fi
7178 if test x$ac_types_checking != x ; then
7179
7180 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7181
7182 fi
7183
7184 if test x$ac_rtl_checking != x ; then
7185
7186 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7187
7188 fi
7189 if test x$ac_rtlflag_checking != x ; then
7190
7191 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7192
7193 fi
7194 if test x$ac_gc_checking != x ; then
7195
7196 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7197
7198 fi
7199 if test x$ac_gc_always_collect != x ; then
7200
7201 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7202
7203 fi
7204 if test x$ac_fold_checking != x ; then
7205
7206 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7207
7208 fi
7209 valgrind_path_defines=
7210 valgrind_command=
7211
7212 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7213 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7214 have_valgrind_h=yes
7215 else
7216 have_valgrind_h=no
7217 fi
7218
7219
7220
7221 # It is certainly possible that there's valgrind but no valgrind.h.
7222 # GCC relies on making annotations so we must have both.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <valgrind/memcheck.h>
7228 #ifndef VALGRIND_DISCARD
7229 #error VALGRIND_DISCARD not defined
7230 #endif
7231 _ACEOF
7232 if ac_fn_cxx_try_cpp "$LINENO"; then :
7233 gcc_cv_header_valgrind_memcheck_h=yes
7234 else
7235 gcc_cv_header_valgrind_memcheck_h=no
7236 fi
7237 rm -f conftest.err conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7241 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #include <memcheck.h>
7245 #ifndef VALGRIND_DISCARD
7246 #error VALGRIND_DISCARD not defined
7247 #endif
7248 _ACEOF
7249 if ac_fn_cxx_try_cpp "$LINENO"; then :
7250 gcc_cv_header_memcheck_h=yes
7251 else
7252 gcc_cv_header_memcheck_h=no
7253 fi
7254 rm -f conftest.err conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7256 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7257 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7258
7259 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7260
7261 fi
7262 if test $gcc_cv_header_memcheck_h = yes; then
7263
7264 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7265
7266 fi
7267
7268 if test x$ac_valgrind_checking != x ; then
7269
7270 # Prepare PATH_SEPARATOR.
7271 # The user is always right.
7272 if test "${PATH_SEPARATOR+set}" != set; then
7273 echo "#! /bin/sh" >conf$$.sh
7274 echo "exit 0" >>conf$$.sh
7275 chmod +x conf$$.sh
7276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7277 PATH_SEPARATOR=';'
7278 else
7279 PATH_SEPARATOR=:
7280 fi
7281 rm -f conf$$.sh
7282 fi
7283
7284 # Find out how to test for executable files. Don't use a zero-byte file,
7285 # as systems may use methods other than mode bits to determine executability.
7286 cat >conf$$.file <<_ASEOF
7287 #! /bin/sh
7288 exit 0
7289 _ASEOF
7290 chmod +x conf$$.file
7291 if test -x conf$$.file >/dev/null 2>&1; then
7292 ac_executable_p="test -x"
7293 else
7294 ac_executable_p="test -f"
7295 fi
7296 rm -f conf$$.file
7297
7298 # Extract the first word of "valgrind", so it can be a program name with args.
7299 set dummy valgrind; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 case "$valgrind_path" in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7308 ;;
7309 *)
7310 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7311 for ac_dir in $PATH; do
7312 IFS="$ac_save_IFS"
7313 test -z "$ac_dir" && ac_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7316 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7317 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7318 break 2
7319 fi
7320 fi
7321 done
7322 done
7323 IFS="$ac_save_IFS"
7324 ;;
7325 esac
7326 fi
7327 valgrind_path="$ac_cv_path_valgrind_path"
7328 if test -n "$valgrind_path"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7330 $as_echo "$valgrind_path" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336 if test "x$valgrind_path" = "x" \
7337 || (test $have_valgrind_h = no \
7338 && test $gcc_cv_header_memcheck_h = no \
7339 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7340 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7341 fi
7342 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7343 valgrind_command="$valgrind_path -q"
7344
7345 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7346
7347 fi
7348
7349
7350
7351 # Enable code coverage collection
7352 # Check whether --enable-coverage was given.
7353 if test "${enable_coverage+set}" = set; then :
7354 enableval=$enable_coverage; case "${enableval}" in
7355 yes|noopt)
7356 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7357 ;;
7358 opt)
7359 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7360 ;;
7361 no)
7362 # a.k.a. --disable-coverage
7363 coverage_flags=""
7364 ;;
7365 *)
7366 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7367 ;;
7368 esac
7369 else
7370 coverage_flags=""
7371 fi
7372
7373
7374
7375 # Check whether --enable-gather-detailed-mem-stats was given.
7376 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7377 enableval=$enable_gather_detailed_mem_stats;
7378 else
7379 enable_gather_detailed_mem_stats=no
7380 fi
7381
7382 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7383
7384 cat >>confdefs.h <<_ACEOF
7385 #define GATHER_STATISTICS $gather_stats
7386 _ACEOF
7387
7388
7389 # Check whether --enable-valgrind-annotations was given.
7390 if test "${enable_valgrind_annotations+set}" = set; then :
7391 enableval=$enable_valgrind_annotations;
7392 else
7393 enable_valgrind_annotations=no
7394 fi
7395
7396 if test x$enable_valgrind_annotations != xno \
7397 || test x$ac_valgrind_checking != x; then
7398 if (test $have_valgrind_h = no \
7399 && test $gcc_cv_header_memcheck_h = no \
7400 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7401 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7402 fi
7403
7404 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7405
7406 fi
7407
7408 # -------------------------------
7409 # Miscenalleous configure options
7410 # -------------------------------
7411
7412 # With stabs
7413
7414 # Check whether --with-stabs was given.
7415 if test "${with_stabs+set}" = set; then :
7416 withval=$with_stabs; stabs="$with_stabs"
7417 else
7418 stabs=no
7419 fi
7420
7421
7422 # Determine whether or not multilibs are enabled.
7423 # Check whether --enable-multilib was given.
7424 if test "${enable_multilib+set}" = set; then :
7425 enableval=$enable_multilib;
7426 else
7427 enable_multilib=yes
7428 fi
7429
7430
7431
7432 # Determine whether or not multiarch is enabled.
7433 # Check whether --enable-multiarch was given.
7434 if test "${enable_multiarch+set}" = set; then :
7435 enableval=$enable_multiarch; case "${enableval}" in
7436 yes|no|auto) enable_multiarch=$enableval;;
7437 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7438 esac
7439 else
7440 enable_multiarch=auto
7441 fi
7442
7443 if test x${enable_multiarch} = xauto; then
7444 if test x${with_native_system_header_dir} != x; then
7445 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7446 enable_multiarch=no
7447 fi
7448 if test x$host != x$target && test "x$with_sysroot" = x; then
7449 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7450 enable_multiarch=no
7451 fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7454 $as_echo_n "checking for multiarch configuration... " >&6; }
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7457 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7458
7459 # needed for setting the multiarch name for soft-float/hard-float ABIs
7460
7461
7462
7463 # Enable __cxa_atexit for C++.
7464 # Check whether --enable-__cxa_atexit was given.
7465 if test "${enable___cxa_atexit+set}" = set; then :
7466 enableval=$enable___cxa_atexit;
7467 fi
7468
7469
7470 # Enable C extension for decimal float if target supports it.
7471
7472 # Check whether --enable-decimal-float was given.
7473 if test "${enable_decimal_float+set}" = set; then :
7474 enableval=$enable_decimal_float;
7475 case $enable_decimal_float in
7476 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7477 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7478 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7479 esac
7480
7481 else
7482
7483 case $target in
7484 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7485 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7486 i?86*-*-mingw* | x86_64*-*-mingw* | \
7487 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7488 enable_decimal_float=yes
7489 ;;
7490 *)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7492 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7493 enable_decimal_float=no
7494 ;;
7495 esac
7496
7497 fi
7498
7499
7500 # x86's use BID format instead of DPD
7501 case x$enable_decimal_float in
7502 xyes)
7503 case $target in
7504 i?86*-*-* | x86_64*-*-*)
7505 enable_decimal_float=bid
7506 ;;
7507 *)
7508 enable_decimal_float=dpd
7509 ;;
7510 esac
7511 default_decimal_float=$enable_decimal_float
7512 ;;
7513 xno)
7514 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7515 # dependency on libdecnumber.
7516 default_decimal_float=dpd
7517 ;;
7518 esac
7519
7520
7521
7522
7523 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_DECIMAL_FLOAT $dfp
7527 _ACEOF
7528
7529
7530 # Use default_decimal_float for dependency.
7531 enable_decimal_float=$default_decimal_float
7532
7533 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_DECIMAL_BID_FORMAT $bid
7537 _ACEOF
7538
7539
7540 # Enable C extension for fixed-point arithmetic.
7541 # Check whether --enable-fixed-point was given.
7542 if test "${enable_fixed_point+set}" = set; then :
7543 enableval=$enable_fixed_point;
7544 else
7545
7546 case $target in
7547 arm*)
7548 enable_fixed_point=yes
7549 ;;
7550
7551 mips*-*-*)
7552 enable_fixed_point=yes
7553 ;;
7554 *)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7556 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7557 enable_fixed_point=no
7558 ;;
7559 esac
7560
7561 fi
7562
7563
7564
7565 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7566
7567 cat >>confdefs.h <<_ACEOF
7568 #define ENABLE_FIXED_POINT $fixedpoint
7569 _ACEOF
7570
7571
7572 # Enable threads
7573 # Pass with no value to take the default
7574 # Pass with a value to specify a thread package
7575 # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577 enableval=$enable_threads;
7578 else
7579 enable_threads=''
7580 fi
7581
7582
7583 # Check whether --enable-tls was given.
7584 if test "${enable_tls+set}" = set; then :
7585 enableval=$enable_tls;
7586 case $enable_tls in
7587 yes | no) ;;
7588 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7590 esac
7591
7592 else
7593 enable_tls=''
7594 fi
7595
7596
7597 # Check whether --enable-vtable-verify was given.
7598 if test "${enable_vtable_verify+set}" = set; then :
7599 enableval=$enable_vtable_verify;
7600 else
7601 enable_vtable_verify=no
7602 fi
7603
7604 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7605
7606 cat >>confdefs.h <<_ACEOF
7607 #define ENABLE_VTABLE_VERIFY $vtable_verify
7608 _ACEOF
7609
7610
7611 # Check whether --enable-objc-gc was given.
7612 if test "${enable_objc_gc+set}" = set; then :
7613 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7614 objc_boehm_gc=''
7615 else
7616 objc_boehm_gc=1
7617 fi
7618 else
7619 objc_boehm_gc=''
7620 fi
7621
7622
7623
7624 # Check whether --with-dwarf2 was given.
7625 if test "${with_dwarf2+set}" = set; then :
7626 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7627 else
7628 dwarf2=no
7629 fi
7630
7631
7632 # Check whether --enable-shared was given.
7633 if test "${enable_shared+set}" = set; then :
7634 enableval=$enable_shared;
7635 case $enable_shared in
7636 yes | no) ;;
7637 *)
7638 enable_shared=no
7639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7640 for pkg in $enableval; do
7641 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7642 enable_shared=yes
7643 fi
7644 done
7645 IFS="$ac_save_ifs"
7646 ;;
7647 esac
7648
7649 else
7650 enable_shared=yes
7651 fi
7652
7653
7654
7655
7656 # Check whether --with-specs was given.
7657 if test "${with_specs+set}" = set; then :
7658 withval=$with_specs; CONFIGURE_SPECS=$withval
7659 else
7660 CONFIGURE_SPECS=
7661
7662 fi
7663
7664
7665
7666
7667
7668 # Check whether --with-pkgversion was given.
7669 if test "${with_pkgversion+set}" = set; then :
7670 withval=$with_pkgversion; case "$withval" in
7671 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7672 no) PKGVERSION= ;;
7673 *) PKGVERSION="($withval) " ;;
7674 esac
7675 else
7676 PKGVERSION="(GCC) "
7677
7678 fi
7679
7680
7681
7682
7683
7684 # Check whether --with-bugurl was given.
7685 if test "${with_bugurl+set}" = set; then :
7686 withval=$with_bugurl; case "$withval" in
7687 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7688 no) BUGURL=
7689 ;;
7690 *) BUGURL="$withval"
7691 ;;
7692 esac
7693 else
7694 BUGURL="http://gcc.gnu.org/bugs.html"
7695
7696 fi
7697
7698 case ${BUGURL} in
7699 "")
7700 REPORT_BUGS_TO=
7701 REPORT_BUGS_TEXI=
7702 ;;
7703 *)
7704 REPORT_BUGS_TO="<$BUGURL>"
7705 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7706 ;;
7707 esac;
7708
7709
7710
7711
7712 # Sanity check enable_languages in case someone does not run the toplevel
7713 # configure # script.
7714 # Check whether --enable-languages was given.
7715 if test "${enable_languages+set}" = set; then :
7716 enableval=$enable_languages; case ,${enable_languages}, in
7717 ,,|,yes,)
7718 # go safe -- we cannot be much sure without the toplevel
7719 # configure's
7720 # analysis of which target libs are present and usable
7721 enable_languages=c
7722 ;;
7723 *,all,*)
7724 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7725 ;;
7726 *,c,*)
7727 ;;
7728 *)
7729 enable_languages=c,${enable_languages}
7730 ;;
7731 esac
7732 else
7733 enable_languages=c
7734 fi
7735
7736
7737 if test x"$enable_as_accelerator_for" != x; then
7738
7739 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7740
7741 enable_as_accelerator=yes
7742 case "${target}" in
7743 *-intelmicemul-*)
7744 # In this case we expect offload compiler to be built as native, so we
7745 # need to rename the driver to avoid clashes with host's drivers.
7746 program_transform_name="s&^&${target}-&" ;;
7747 esac
7748 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7749 program_transform_name=`echo $program_transform_name | sed $sedscript`
7750 accel_dir_suffix=/accel/${target_noncanonical}
7751 real_target_noncanonical=${enable_as_accelerator_for}
7752 fi
7753
7754
7755
7756
7757 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7758 tgt=`echo $tgt | sed 's/=.*//'`
7759
7760 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7761 enable_hsa=1
7762 else
7763 enable_offloading=1
7764 fi
7765
7766 if test x"$offload_targets" = x; then
7767 offload_targets=$tgt
7768 else
7769 offload_targets="$offload_targets,$tgt"
7770 fi
7771 done
7772
7773 cat >>confdefs.h <<_ACEOF
7774 #define OFFLOAD_TARGETS "$offload_targets"
7775 _ACEOF
7776
7777 if test x"$enable_offloading" != x; then
7778
7779 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7780
7781 else
7782
7783 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7784
7785 fi
7786
7787 if test x"$enable_hsa" = x1 ; then
7788
7789 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7790
7791 fi
7792
7793
7794 # Check whether --with-multilib-list was given.
7795 if test "${with_multilib_list+set}" = set; then :
7796 withval=$with_multilib_list; :
7797 else
7798 with_multilib_list=default
7799 fi
7800
7801
7802 # -------------------------
7803 # Checks for other programs
7804 # -------------------------
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7808 set x ${MAKE-make}
7809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7810 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat >conftest.make <<\_ACEOF
7814 SHELL = /bin/sh
7815 all:
7816 @echo '@@@%%%=$(MAKE)=@@@%%%'
7817 _ACEOF
7818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7820 *@@@%%%=?*=@@@%%%*)
7821 eval ac_cv_prog_make_${ac_make}_set=yes;;
7822 *)
7823 eval ac_cv_prog_make_${ac_make}_set=no;;
7824 esac
7825 rm -f conftest.make
7826 fi
7827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829 $as_echo "yes" >&6; }
7830 SET_MAKE=
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 SET_MAKE="MAKE=${MAKE-make}"
7835 fi
7836
7837
7838 # Find some useful tools
7839 for ac_prog in gawk mawk nawk awk
7840 do
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_AWK+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$AWK"; then
7849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_AWK="$ac_prog"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 AWK=$ac_cv_prog_AWK
7869 if test -n "$AWK"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7871 $as_echo "$AWK" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 test -n "$AWK" && break
7879 done
7880
7881 # We need awk to create options.c and options.h.
7882 # Bail out if it's missing.
7883 case ${AWK} in
7884 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7885 esac
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7888 $as_echo_n "checking whether ln -s works... " >&6; }
7889 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7895 then
7896 gcc_cv_prog_LN_S="ln -s"
7897 else
7898 if ln conftestdata_f conftestdata_t 2>/dev/null
7899 then
7900 gcc_cv_prog_LN_S=ln
7901 else
7902 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 gcc_cv_prog_LN_S="cp -p"
7905 else
7906 gcc_cv_prog_LN_S=cp
7907 fi
7908 fi
7909 fi
7910 rm -f conftestdata_f conftestdata_t
7911
7912 fi
7913 LN_S="$gcc_cv_prog_LN_S"
7914 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916 $as_echo "yes" >&6; }
7917 else
7918 if test "$gcc_cv_prog_LN_S" = "ln"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7920 $as_echo "no, using ln" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7923 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7924 fi
7925 fi
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7928 $as_echo_n "checking whether ln works... " >&6; }
7929 if test "${acx_cv_prog_LN+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 rm -f conftestdata_t
7933 echo >conftestdata_f
7934 if ln conftestdata_f conftestdata_t 2>/dev/null
7935 then
7936 acx_cv_prog_LN=ln
7937 else
7938 acx_cv_prog_LN=no
7939 fi
7940 rm -f conftestdata_f conftestdata_t
7941
7942 fi
7943 if test $acx_cv_prog_LN = no; then
7944 LN="$LN_S"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7946 $as_echo "no, using $LN" >&6; }
7947 else
7948 LN="$acx_cv_prog_LN"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950 $as_echo "yes" >&6; }
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$RANLIB"; then
7962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 RANLIB=$ac_cv_prog_RANLIB
7982 if test -n "$RANLIB"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7984 $as_echo "$RANLIB" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990
7991 fi
7992 if test -z "$ac_cv_prog_RANLIB"; then
7993 ac_ct_RANLIB=$RANLIB
7994 # Extract the first word of "ranlib", so it can be a program name with args.
7995 set dummy ranlib; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$ac_ct_RANLIB"; then
8002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_RANLIB="ranlib"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8022 if test -n "$ac_ct_RANLIB"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8024 $as_echo "$ac_ct_RANLIB" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030 if test "x$ac_ct_RANLIB" = x; then
8031 RANLIB=":"
8032 else
8033 case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039 RANLIB=$ac_ct_RANLIB
8040 fi
8041 else
8042 RANLIB="$ac_cv_prog_RANLIB"
8043 fi
8044
8045 ranlib_flags=""
8046
8047
8048 # Find a good install program. We prefer a C program (faster),
8049 # so one script is as good as another. But avoid the broken or
8050 # incompatible versions:
8051 # SysV /etc/install, /usr/sbin/install
8052 # SunOS /usr/etc/install
8053 # IRIX /sbin/install
8054 # AIX /bin/install
8055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8057 # ./install, which can be erroneously created by make from ./install.sh.
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8059 $as_echo_n "checking for a BSD compatible install... " >&6; }
8060 if test -z "$INSTALL"; then
8061 if test "${ac_cv_path_install+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8065 for ac_dir in $PATH; do
8066 # Account for people who put trailing slashes in PATH elements.
8067 case "$ac_dir/" in
8068 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8069 *)
8070 # OSF1 and SCO ODT 3.0 have their own names for install.
8071 for ac_prog in ginstall scoinst install; do
8072 if test -f $ac_dir/$ac_prog; then
8073 if test $ac_prog = install &&
8074 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8075 # AIX install. It has an incompatible calling convention.
8076 # OSF/1 installbsd also uses dspmsg, but is usable.
8077 :
8078 else
8079 ac_cv_path_install="$ac_dir/$ac_prog -c"
8080 break 2
8081 fi
8082 fi
8083 done
8084 ;;
8085 esac
8086 done
8087 IFS="$ac_save_IFS"
8088
8089 fi
8090 if test "${ac_cv_path_install+set}" = set; then
8091 INSTALL="$ac_cv_path_install"
8092 else
8093 # As a last resort, use the slow shell script. We don't cache a
8094 # path for INSTALL within a source directory, because that will
8095 # break other packages using the cache if that directory is
8096 # removed, or if the path is relative.
8097 INSTALL="$ac_install_sh"
8098 fi
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8101 $as_echo "$INSTALL" >&6; }
8102
8103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8104 # It thinks the first close brace ends the variable substitution.
8105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8106
8107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8108
8109
8110 # See if cmp has --ignore-initial.
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8112 $as_echo_n "checking for cmp's capabilities... " >&6; }
8113 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 echo abfoo >t1
8117 echo cdfoo >t2
8118 gcc_cv_prog_cmp_skip=slowcompare
8119 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8120 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8121 :
8122 else
8123 gcc_cv_prog_cmp_skip=gnucompare
8124 fi
8125 fi
8126 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8127 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8128 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8129 :
8130 else
8131 gcc_cv_prog_cmp_skip=fastcompare
8132 fi
8133 fi
8134 fi
8135 rm t1 t2
8136
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8139 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8140 make_compare_target=$gcc_cv_prog_cmp_skip
8141
8142
8143
8144 # See if we have the mktemp command.
8145 # Extract the first word of "mktemp", so it can be a program name with args.
8146 set dummy mktemp; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$have_mktemp_command"; then
8153 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_have_mktemp_command="yes"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8171 fi
8172 fi
8173 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8174 if test -n "$have_mktemp_command"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8176 $as_echo "$have_mktemp_command" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8180 fi
8181
8182
8183
8184 # See if makeinfo has been installed and is modern enough
8185 # that we can use it.
8186
8187 # Extract the first word of "makeinfo", so it can be a program name with args.
8188 set dummy makeinfo; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$MAKEINFO"; then
8195 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_MAKEINFO="makeinfo"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8211
8212 fi
8213 fi
8214 MAKEINFO=$ac_cv_prog_MAKEINFO
8215 if test -n "$MAKEINFO"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8217 $as_echo "$MAKEINFO" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 fi
8222
8223
8224 if test -n "$MAKEINFO"; then
8225 # Found it, now check the version.
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8227 $as_echo_n "checking for modern makeinfo... " >&6; }
8228 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8232 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8233
8234 case $ac_prog_version in
8235 '') gcc_cv_prog_makeinfo_modern=no;;
8236 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8237 *) gcc_cv_prog_makeinfo_modern=no;;
8238 esac
8239
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8243 else
8244 gcc_cv_prog_makeinfo_modern=no
8245 fi
8246 if test $gcc_cv_prog_makeinfo_modern = no; then
8247 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8248 fi
8249
8250 if test $gcc_cv_prog_makeinfo_modern = no; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8252 *** Makeinfo is missing or too old.
8253 *** Info documentation will not be built." >&5
8254 $as_echo "$as_me: WARNING:
8255 *** Makeinfo is missing or too old.
8256 *** Info documentation will not be built." >&2;}
8257 BUILD_INFO=
8258 else
8259 BUILD_INFO=info
8260 fi
8261
8262
8263 # Is pod2man recent enough to regenerate manpages?
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8265 $as_echo_n "checking for recent Pod::Man... " >&6; }
8266 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8268 $as_echo "yes" >&6; }
8269 GENERATED_MANPAGES=generated-manpages
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 GENERATED_MANPAGES=
8274 fi
8275
8276
8277 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8278
8279 # How about lex?
8280 for ac_prog in flex
8281 do
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_FLEX+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$FLEX"; then
8290 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_FLEX="$ac_prog"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 FLEX=$ac_cv_prog_FLEX
8310 if test -n "$FLEX"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8312 $as_echo "$FLEX" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 fi
8317
8318
8319 test -n "$FLEX" && break
8320 done
8321 test -n "$FLEX" || FLEX="$MISSING flex"
8322
8323
8324 # Bison?
8325 for ac_prog in bison
8326 do
8327 # Extract the first word of "$ac_prog", so it can be a program name with args.
8328 set dummy $ac_prog; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if test "${ac_cv_prog_BISON+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 if test -n "$BISON"; then
8335 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8344 ac_cv_prog_BISON="$ac_prog"
8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8347 fi
8348 done
8349 done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 BISON=$ac_cv_prog_BISON
8355 if test -n "$BISON"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8357 $as_echo "$BISON" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364 test -n "$BISON" && break
8365 done
8366 test -n "$BISON" || BISON="$MISSING bison"
8367
8368
8369 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8370 # check for build == host before using them.
8371
8372 # NM
8373 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8374 && test -d ../binutils ; then
8375 NM='${objdir}/../binutils/nm-new'
8376 else
8377 # Extract the first word of "nm", so it can be a program name with args.
8378 set dummy nm; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_NM+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$NM"; then
8385 ac_cv_prog_NM="$NM" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_NM="nm"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8403 fi
8404 fi
8405 NM=$ac_cv_prog_NM
8406 if test -n "$NM"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8408 $as_echo "$NM" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414
8415 fi
8416
8417 # AR
8418 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8419 && test -d ../binutils ; then
8420 AR='${objdir}/../binutils/ar'
8421 else
8422 # Extract the first word of "ar", so it can be a program name with args.
8423 set dummy ar; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_prog_AR+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$AR"; then
8430 ac_cv_prog_AR="$AR" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8434 do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_prog_AR="ar"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8448 fi
8449 fi
8450 AR=$ac_cv_prog_AR
8451 if test -n "$AR"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8453 $as_echo "$AR" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8457 fi
8458
8459
8460 fi
8461
8462 # The jit documentation looks better if built with sphinx, but can be
8463 # built with texinfo if sphinx is not available.
8464 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8465 # Extract the first word of "sphinx-build", so it can be a program name with args.
8466 set dummy sphinx-build; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$doc_build_sys"; then
8473 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_doc_build_sys="sphinx"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8491 fi
8492 fi
8493 doc_build_sys=$ac_cv_prog_doc_build_sys
8494 if test -n "$doc_build_sys"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8496 $as_echo "$doc_build_sys" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8500 fi
8501
8502
8503
8504 # --------------------
8505 # Checks for C headers
8506 # --------------------
8507
8508 # Need to reject headers which give warnings, so that the -Werror bootstrap
8509 # works later. *sigh* This needs to come before all header checks.
8510
8511 ac_c_preproc_warn_flag=yes
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8514 $as_echo_n "checking for ANSI C header files... " >&6; }
8515 if test "${ac_cv_header_stdc+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #include <stdlib.h>
8521 #include <stdarg.h>
8522 #include <string.h>
8523 #include <float.h>
8524
8525 int
8526 main ()
8527 {
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_cxx_try_compile "$LINENO"; then :
8534 ac_cv_header_stdc=yes
8535 else
8536 ac_cv_header_stdc=no
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539
8540 if test $ac_cv_header_stdc = yes; then
8541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #include <string.h>
8545
8546 _ACEOF
8547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8548 $EGREP "memchr" >/dev/null 2>&1; then :
8549
8550 else
8551 ac_cv_header_stdc=no
8552 fi
8553 rm -f conftest*
8554
8555 fi
8556
8557 if test $ac_cv_header_stdc = yes; then
8558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #include <stdlib.h>
8562
8563 _ACEOF
8564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8565 $EGREP "free" >/dev/null 2>&1; then :
8566
8567 else
8568 ac_cv_header_stdc=no
8569 fi
8570 rm -f conftest*
8571
8572 fi
8573
8574 if test $ac_cv_header_stdc = yes; then
8575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8576 if test "$cross_compiling" = yes; then :
8577 :
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <ctype.h>
8582 #include <stdlib.h>
8583 #if ((' ' & 0x0FF) == 0x020)
8584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8586 #else
8587 # define ISLOWER(c) \
8588 (('a' <= (c) && (c) <= 'i') \
8589 || ('j' <= (c) && (c) <= 'r') \
8590 || ('s' <= (c) && (c) <= 'z'))
8591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8592 #endif
8593
8594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8595 int
8596 main ()
8597 {
8598 int i;
8599 for (i = 0; i < 256; i++)
8600 if (XOR (islower (i), ISLOWER (i))
8601 || toupper (i) != TOUPPER (i))
8602 return 2;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_cxx_try_run "$LINENO"; then :
8607
8608 else
8609 ac_cv_header_stdc=no
8610 fi
8611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8612 conftest.$ac_objext conftest.beam conftest.$ac_ext
8613 fi
8614
8615 fi
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8618 $as_echo "$ac_cv_header_stdc" >&6; }
8619 if test $ac_cv_header_stdc = yes; then
8620
8621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8622
8623 fi
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8627 if test "${ac_cv_header_time+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/time.h>
8634 #include <time.h>
8635
8636 int
8637 main ()
8638 {
8639 if ((struct tm *) 0)
8640 return 0;
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_cxx_try_compile "$LINENO"; then :
8646 ac_cv_header_time=yes
8647 else
8648 ac_cv_header_time=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8653 $as_echo "$ac_cv_header_time" >&6; }
8654 if test $ac_cv_header_time = yes; then
8655
8656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8657
8658 fi
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8661 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8662 if test "${gcc_cv_header_string+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <string.h>
8668 #include <strings.h>
8669 int
8670 main ()
8671 {
8672
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_cxx_try_compile "$LINENO"; then :
8678 gcc_cv_header_string=yes
8679 else
8680 gcc_cv_header_string=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8685 $as_echo "$gcc_cv_header_string" >&6; }
8686 if test $gcc_cv_header_string = yes; then
8687
8688 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8689
8690 fi
8691
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8693 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8694 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8700 #include <sys/wait.h>
8701 #ifndef WEXITSTATUS
8702 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8703 #endif
8704 #ifndef WIFEXITED
8705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8706 #endif
8707
8708 int
8709 main ()
8710 {
8711 int s;
8712 wait (&s);
8713 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8714 ;
8715 return 0;
8716 }
8717 _ACEOF
8718 if ac_fn_cxx_try_compile "$LINENO"; then :
8719 ac_cv_header_sys_wait_h=yes
8720 else
8721 ac_cv_header_sys_wait_h=no
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8726 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8727 if test $ac_cv_header_sys_wait_h = yes; then
8728
8729 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8730
8731 fi
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8734 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8735 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <sys/types.h>
8741 #include <termios.h>
8742 #ifdef TIOCGWINSZ
8743 yes
8744 #endif
8745
8746 _ACEOF
8747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8748 $EGREP "yes" >/dev/null 2>&1; then :
8749 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8750 else
8751 ac_cv_sys_tiocgwinsz_in_termios_h=no
8752 fi
8753 rm -f conftest*
8754
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8757 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8758
8759 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8761 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8762 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <sys/types.h>
8768 #include <sys/ioctl.h>
8769 #ifdef TIOCGWINSZ
8770 yes
8771 #endif
8772
8773 _ACEOF
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 $EGREP "yes" >/dev/null 2>&1; then :
8776 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8777 else
8778 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8779 fi
8780 rm -f conftest*
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8784 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8785
8786 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8787
8788 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8789
8790 fi
8791 fi
8792
8793 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8794 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8795 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8796 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8797 do :
8798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8799 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8800 eval as_val=\$$as_ac_Header
8801 if test "x$as_val" = x""yes; then :
8802 cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 _ACEOF
8805
8806 fi
8807 done
8808
8809
8810 # Check for thread headers.
8811 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8812 if test "x$ac_cv_header_thread_h" = x""yes; then :
8813 have_thread_h=yes
8814 else
8815 have_thread_h=
8816 fi
8817
8818 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8819 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8820 have_pthread_h=yes
8821 else
8822 have_pthread_h=
8823 fi
8824
8825
8826 # These tests can't be done till we know if we have limits.h.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8828 $as_echo_n "checking for CHAR_BIT... " >&6; }
8829 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #ifdef HAVE_LIMITS_H
8835 #include <limits.h>
8836 #endif
8837 #ifdef CHAR_BIT
8838 found
8839 #endif
8840 _ACEOF
8841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8842 $EGREP "found" >/dev/null 2>&1; then :
8843 gcc_cv_decl_char_bit=yes
8844 else
8845 gcc_cv_decl_char_bit=no
8846 fi
8847 rm -f conftest*
8848
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8852 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8853 if test $gcc_cv_decl_char_bit = no; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8855 $as_echo_n "checking number of bits in a byte... " >&6; }
8856 if test "${gcc_cv_c_nbby+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 i=8
8860 gcc_cv_c_nbby=
8861 while test $i -lt 65; do
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864
8865 int
8866 main ()
8867 {
8868 switch(0) {
8869 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8870 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8871 ; }
8872 ;
8873 return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_cxx_try_compile "$LINENO"; then :
8877 gcc_cv_c_nbby=$i; break
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 i=`expr $i + 1`
8881 done
8882 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8886 $as_echo "$gcc_cv_c_nbby" >&6; }
8887 if test $gcc_cv_c_nbby = failed; then
8888 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8889 else
8890
8891 cat >>confdefs.h <<_ACEOF
8892 #define CHAR_BIT $gcc_cv_c_nbby
8893 _ACEOF
8894
8895 fi
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8898 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8899 if test "${ac_cv_c_bigendian+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 ac_cv_c_bigendian=unknown
8903 # See if we're dealing with a universal compiler.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #ifndef __APPLE_CC__
8907 not a universal capable compiler
8908 #endif
8909 typedef int dummy;
8910
8911 _ACEOF
8912 if ac_fn_cxx_try_compile "$LINENO"; then :
8913
8914 # Check for potential -arch flags. It is not universal unless
8915 # there are at least two -arch flags with different values.
8916 ac_arch=
8917 ac_prev=
8918 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8919 if test -n "$ac_prev"; then
8920 case $ac_word in
8921 i?86 | x86_64 | ppc | ppc64)
8922 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8923 ac_arch=$ac_word
8924 else
8925 ac_cv_c_bigendian=universal
8926 break
8927 fi
8928 ;;
8929 esac
8930 ac_prev=
8931 elif test "x$ac_word" = "x-arch"; then
8932 ac_prev=arch
8933 fi
8934 done
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 if test $ac_cv_c_bigendian = unknown; then
8938 # See if sys/param.h defines the BYTE_ORDER macro.
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <sys/types.h>
8942 #include <sys/param.h>
8943
8944 int
8945 main ()
8946 {
8947 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8948 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8949 && LITTLE_ENDIAN)
8950 bogus endian macros
8951 #endif
8952
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_cxx_try_compile "$LINENO"; then :
8958 # It does; now see whether it defined to BIG_ENDIAN or not.
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 #include <sys/types.h>
8962 #include <sys/param.h>
8963
8964 int
8965 main ()
8966 {
8967 #if BYTE_ORDER != BIG_ENDIAN
8968 not big endian
8969 #endif
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_cxx_try_compile "$LINENO"; then :
8976 ac_cv_c_bigendian=yes
8977 else
8978 ac_cv_c_bigendian=no
8979 fi
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 if test $ac_cv_c_bigendian = unknown; then
8985 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <limits.h>
8989
8990 int
8991 main ()
8992 {
8993 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8994 bogus endian macros
8995 #endif
8996
8997 ;
8998 return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_cxx_try_compile "$LINENO"; then :
9002 # It does; now see whether it defined to _BIG_ENDIAN or not.
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <limits.h>
9006
9007 int
9008 main ()
9009 {
9010 #ifndef _BIG_ENDIAN
9011 not big endian
9012 #endif
9013
9014 ;
9015 return 0;
9016 }
9017 _ACEOF
9018 if ac_fn_cxx_try_compile "$LINENO"; then :
9019 ac_cv_c_bigendian=yes
9020 else
9021 ac_cv_c_bigendian=no
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 if test $ac_cv_c_bigendian = unknown; then
9028 # Compile a test program.
9029 if test "$cross_compiling" = yes; then :
9030 # Try to guess by grepping values from an object file.
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 short int ascii_mm[] =
9034 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9035 short int ascii_ii[] =
9036 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9037 int use_ascii (int i) {
9038 return ascii_mm[i] + ascii_ii[i];
9039 }
9040 short int ebcdic_ii[] =
9041 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9042 short int ebcdic_mm[] =
9043 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9044 int use_ebcdic (int i) {
9045 return ebcdic_mm[i] + ebcdic_ii[i];
9046 }
9047 extern int foo;
9048
9049 int
9050 main ()
9051 {
9052 return use_ascii (foo) == use_ebcdic (foo);
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_cxx_try_compile "$LINENO"; then :
9058 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9059 ac_cv_c_bigendian=yes
9060 fi
9061 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9062 if test "$ac_cv_c_bigendian" = unknown; then
9063 ac_cv_c_bigendian=no
9064 else
9065 # finding both strings is unlikely to happen, but who knows?
9066 ac_cv_c_bigendian=unknown
9067 fi
9068 fi
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 else
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 $ac_includes_default
9075 int
9076 main ()
9077 {
9078
9079 /* Are we little or big endian? From Harbison&Steele. */
9080 union
9081 {
9082 long int l;
9083 char c[sizeof (long int)];
9084 } u;
9085 u.l = 1;
9086 return u.c[sizeof (long int) - 1] == 1;
9087
9088 ;
9089 return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_cxx_try_run "$LINENO"; then :
9093 ac_cv_c_bigendian=no
9094 else
9095 ac_cv_c_bigendian=yes
9096 fi
9097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9098 conftest.$ac_objext conftest.beam conftest.$ac_ext
9099 fi
9100
9101 fi
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9104 $as_echo "$ac_cv_c_bigendian" >&6; }
9105 case $ac_cv_c_bigendian in #(
9106 yes)
9107 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9108 ;; #(
9109 no)
9110 ;; #(
9111 universal)
9112
9113 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9114
9115 ;; #(
9116 *)
9117 as_fn_error "unknown endianness
9118 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9119 esac
9120
9121
9122 # ----------------------
9123 # Checks for C++ headers
9124 # ----------------------
9125
9126 ac_ext=cpp
9127 ac_cpp='$CXXCPP $CPPFLAGS'
9128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9132 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9133 if test -z "$CXXCPP"; then
9134 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 # Double quotes because CXXCPP needs to be expanded
9138 for CXXCPP in "$CXX -E" "/lib/cpp"
9139 do
9140 ac_preproc_ok=false
9141 for ac_cxx_preproc_warn_flag in '' yes
9142 do
9143 # Use a header file that comes with gcc, so configuring glibc
9144 # with a fresh cross-compiler works.
9145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9146 # <limits.h> exists even on freestanding compilers.
9147 # On the NeXT, cc -E runs the code through the compiler's parser,
9148 # not just through cpp. "Syntax error" is here to catch this case.
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #ifdef __STDC__
9152 # include <limits.h>
9153 #else
9154 # include <assert.h>
9155 #endif
9156 Syntax error
9157 _ACEOF
9158 if ac_fn_cxx_try_cpp "$LINENO"; then :
9159
9160 else
9161 # Broken: fails on valid input.
9162 continue
9163 fi
9164 rm -f conftest.err conftest.$ac_ext
9165
9166 # OK, works on sane cases. Now check whether nonexistent headers
9167 # can be detected and how.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 #include <ac_nonexistent.h>
9171 _ACEOF
9172 if ac_fn_cxx_try_cpp "$LINENO"; then :
9173 # Broken: success on invalid input.
9174 continue
9175 else
9176 # Passes both tests.
9177 ac_preproc_ok=:
9178 break
9179 fi
9180 rm -f conftest.err conftest.$ac_ext
9181
9182 done
9183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9184 rm -f conftest.err conftest.$ac_ext
9185 if $ac_preproc_ok; then :
9186 break
9187 fi
9188
9189 done
9190 ac_cv_prog_CXXCPP=$CXXCPP
9191
9192 fi
9193 CXXCPP=$ac_cv_prog_CXXCPP
9194 else
9195 ac_cv_prog_CXXCPP=$CXXCPP
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9198 $as_echo "$CXXCPP" >&6; }
9199 ac_preproc_ok=false
9200 for ac_cxx_preproc_warn_flag in '' yes
9201 do
9202 # Use a header file that comes with gcc, so configuring glibc
9203 # with a fresh cross-compiler works.
9204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205 # <limits.h> exists even on freestanding compilers.
9206 # On the NeXT, cc -E runs the code through the compiler's parser,
9207 # not just through cpp. "Syntax error" is here to catch this case.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 #ifdef __STDC__
9211 # include <limits.h>
9212 #else
9213 # include <assert.h>
9214 #endif
9215 Syntax error
9216 _ACEOF
9217 if ac_fn_cxx_try_cpp "$LINENO"; then :
9218
9219 else
9220 # Broken: fails on valid input.
9221 continue
9222 fi
9223 rm -f conftest.err conftest.$ac_ext
9224
9225 # OK, works on sane cases. Now check whether nonexistent headers
9226 # can be detected and how.
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 #include <ac_nonexistent.h>
9230 _ACEOF
9231 if ac_fn_cxx_try_cpp "$LINENO"; then :
9232 # Broken: success on invalid input.
9233 continue
9234 else
9235 # Passes both tests.
9236 ac_preproc_ok=:
9237 break
9238 fi
9239 rm -f conftest.err conftest.$ac_ext
9240
9241 done
9242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9243 rm -f conftest.err conftest.$ac_ext
9244 if $ac_preproc_ok; then :
9245
9246 else
9247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9250 See \`config.log' for more details." >&5
9251 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9252 See \`config.log' for more details." >&2;}; }
9253 fi
9254
9255 ac_ext=cpp
9256 ac_cpp='$CXXCPP $CPPFLAGS'
9257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9260
9261
9262 for ac_header in unordered_map
9263 do :
9264 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9265 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_UNORDERED_MAP 1
9268 _ACEOF
9269
9270 fi
9271 done
9272
9273 for ac_header in tr1/unordered_map
9274 do :
9275 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9276 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_TR1_UNORDERED_MAP 1
9279 _ACEOF
9280
9281 fi
9282 done
9283
9284 for ac_header in ext/hash_map
9285 do :
9286 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9287 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9288 cat >>confdefs.h <<_ACEOF
9289 #define HAVE_EXT_HASH_MAP 1
9290 _ACEOF
9291
9292 fi
9293 done
9294
9295
9296 # --------
9297 # Dependency checking.
9298 # --------
9299
9300 rm -rf .tst 2>/dev/null
9301 mkdir .tst 2>/dev/null
9302 if test -d .tst; then
9303 am__leading_dot=.
9304 else
9305 am__leading_dot=_
9306 fi
9307 rmdir .tst 2>/dev/null
9308
9309 DEPDIR="${am__leading_dot}deps"
9310
9311 ac_config_commands="$ac_config_commands depdir"
9312
9313
9314 ac_config_commands="$ac_config_commands gccdepdir"
9315
9316
9317 depcc="$CXX" am_compiler_list=
9318
9319 am_depcomp=$ac_aux_dir/depcomp
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9321 $as_echo_n "checking dependency style of $depcc... " >&6; }
9322 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 if test -f "$am_depcomp"; then
9326 # We make a subdir and do the tests there. Otherwise we can end up
9327 # making bogus files that we don't know about and never remove. For
9328 # instance it was reported that on HP-UX the gcc test will end up
9329 # making a dummy file named `D' -- because `-MD' means `put the output
9330 # in D'.
9331 mkdir conftest.dir
9332 # Copy depcomp to subdir because otherwise we won't find it if we're
9333 # using a relative directory.
9334 cp "$am_depcomp" conftest.dir
9335 cd conftest.dir
9336 # We will build objects and dependencies in a subdirectory because
9337 # it helps to detect inapplicable dependency modes. For instance
9338 # both Tru64's cc and ICC support -MD to output dependencies as a
9339 # side effect of compilation, but ICC will put the dependencies in
9340 # the current directory while Tru64 will put them in the object
9341 # directory.
9342 mkdir sub
9343
9344 am_cv_CXX_dependencies_compiler_type=none
9345 if test "$am_compiler_list" = ""; then
9346 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9347 fi
9348 for depmode in $am_compiler_list; do
9349 if test $depmode = none; then break; fi
9350
9351 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9352 # Setup a source with many dependencies, because some compilers
9353 # like to wrap large dependency lists on column 80 (with \), and
9354 # we should not choose a depcomp mode which is confused by this.
9355 #
9356 # We need to recreate these files for each test, as the compiler may
9357 # overwrite some of them when testing with obscure command lines.
9358 # This happens at least with the AIX C compiler.
9359 : > sub/conftest.c
9360 for i in 1 2 3 4 5 6; do
9361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9363 # Solaris 8's {/usr,}/bin/sh.
9364 touch sub/conftst$i.h
9365 done
9366 echo "include sub/conftest.Po" > confmf
9367
9368 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9369 # mode. It turns out that the SunPro C++ compiler does not properly
9370 # handle `-M -o', and we need to detect this.
9371 depcmd="depmode=$depmode \
9372 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9374 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9375 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9376 if env $depcmd > conftest.err 2>&1 &&
9377 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9379 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9380 # icc doesn't choke on unknown options, it will just issue warnings
9381 # or remarks (even with -Werror). So we grep stderr for any message
9382 # that says an option was ignored or not supported.
9383 # When given -MP, icc 7.0 and 7.1 complain thusly:
9384 # icc: Command line warning: ignoring option '-M'; no argument required
9385 # The diagnosis changed in icc 8.0:
9386 # icc: Command line remark: option '-MP' not supported
9387 if (grep 'ignoring option' conftest.err ||
9388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9389 am_cv_CXX_dependencies_compiler_type=$depmode
9390 $as_echo "$as_me:$LINENO: success" >&5
9391 break
9392 fi
9393 fi
9394 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9395 sed -e 's/^/| /' < conftest.err >&5
9396 done
9397
9398 cd ..
9399 rm -rf conftest.dir
9400 else
9401 am_cv_CXX_dependencies_compiler_type=none
9402 fi
9403
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9406 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9407 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9408 then as_fn_error "no usable dependency style found" "$LINENO" 5
9409 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9410
9411 fi
9412
9413
9414 # --------
9415 # UNSORTED
9416 # --------
9417
9418
9419 # These libraries may be used by collect2.
9420 # We may need a special search path to get them linked.
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9422 $as_echo_n "checking for collect2 libraries... " >&6; }
9423 if test "${gcc_cv_collect2_libs+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 save_LIBS="$LIBS"
9427 for libs in '' -lld -lmld \
9428 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9429 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9430 do
9431 LIBS="$libs"
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char ldopen ();
9442 int
9443 main ()
9444 {
9445 return ldopen ();
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_cxx_try_link "$LINENO"; then :
9451 gcc_cv_collect2_libs="$libs"; break
9452 fi
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 done
9456 LIBS="$save_LIBS"
9457 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9460 $as_echo "$gcc_cv_collect2_libs" >&6; }
9461 case $gcc_cv_collect2_libs in
9462 "none required") ;;
9463 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9464 esac
9465
9466
9467 # When building Ada code on Alpha, we need exc_resume which is usually in
9468 # -lexc. So test for it.
9469 save_LIBS="$LIBS"
9470 LIBS=
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9472 $as_echo_n "checking for library containing exc_resume... " >&6; }
9473 if test "${ac_cv_search_exc_resume+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 ac_func_search_save_LIBS=$LIBS
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char exc_resume ();
9487 int
9488 main ()
9489 {
9490 return exc_resume ();
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 for ac_lib in '' exc; do
9496 if test -z "$ac_lib"; then
9497 ac_res="none required"
9498 else
9499 ac_res=-l$ac_lib
9500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9501 fi
9502 if ac_fn_cxx_try_link "$LINENO"; then :
9503 ac_cv_search_exc_resume=$ac_res
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext
9507 if test "${ac_cv_search_exc_resume+set}" = set; then :
9508 break
9509 fi
9510 done
9511 if test "${ac_cv_search_exc_resume+set}" = set; then :
9512
9513 else
9514 ac_cv_search_exc_resume=no
9515 fi
9516 rm conftest.$ac_ext
9517 LIBS=$ac_func_search_save_LIBS
9518 fi
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9520 $as_echo "$ac_cv_search_exc_resume" >&6; }
9521 ac_res=$ac_cv_search_exc_resume
9522 if test "$ac_res" != no; then :
9523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9524
9525 fi
9526
9527 GNAT_LIBEXC="$LIBS"
9528 LIBS="$save_LIBS"
9529
9530
9531 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9532 save_LIBS="$LIBS"
9533 LIBS=
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9535 $as_echo_n "checking for library containing kstat_open... " >&6; }
9536 if test "${ac_cv_search_kstat_open+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 ac_func_search_save_LIBS=$LIBS
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char kstat_open ();
9550 int
9551 main ()
9552 {
9553 return kstat_open ();
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 for ac_lib in '' kstat; do
9559 if test -z "$ac_lib"; then
9560 ac_res="none required"
9561 else
9562 ac_res=-l$ac_lib
9563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9564 fi
9565 if ac_fn_cxx_try_link "$LINENO"; then :
9566 ac_cv_search_kstat_open=$ac_res
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext
9570 if test "${ac_cv_search_kstat_open+set}" = set; then :
9571 break
9572 fi
9573 done
9574 if test "${ac_cv_search_kstat_open+set}" = set; then :
9575
9576 else
9577 ac_cv_search_kstat_open=no
9578 fi
9579 rm conftest.$ac_ext
9580 LIBS=$ac_func_search_save_LIBS
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9583 $as_echo "$ac_cv_search_kstat_open" >&6; }
9584 ac_res=$ac_cv_search_kstat_open
9585 if test "$ac_res" != no; then :
9586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9587
9588 fi
9589
9590 EXTRA_GCC_LIBS="$LIBS"
9591 LIBS="$save_LIBS"
9592
9593
9594 # Some systems put ldexp and frexp in libm instead of libc; assume
9595 # they're both in the same place. jcf-dump needs them.
9596 save_LIBS="$LIBS"
9597 LIBS=
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9599 $as_echo_n "checking for library containing ldexp... " >&6; }
9600 if test "${ac_cv_search_ldexp+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 ac_func_search_save_LIBS=$LIBS
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9610 #ifdef __cplusplus
9611 extern "C"
9612 #endif
9613 char ldexp ();
9614 int
9615 main ()
9616 {
9617 return ldexp ();
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 for ac_lib in '' m; do
9623 if test -z "$ac_lib"; then
9624 ac_res="none required"
9625 else
9626 ac_res=-l$ac_lib
9627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9628 fi
9629 if ac_fn_cxx_try_link "$LINENO"; then :
9630 ac_cv_search_ldexp=$ac_res
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext
9634 if test "${ac_cv_search_ldexp+set}" = set; then :
9635 break
9636 fi
9637 done
9638 if test "${ac_cv_search_ldexp+set}" = set; then :
9639
9640 else
9641 ac_cv_search_ldexp=no
9642 fi
9643 rm conftest.$ac_ext
9644 LIBS=$ac_func_search_save_LIBS
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9647 $as_echo "$ac_cv_search_ldexp" >&6; }
9648 ac_res=$ac_cv_search_ldexp
9649 if test "$ac_res" != no; then :
9650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9651
9652 fi
9653
9654 LDEXP_LIB="$LIBS"
9655 LIBS="$save_LIBS"
9656
9657
9658 # Use <inttypes.h> only if it exists,
9659 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9660 # PRId64
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9662 $as_echo_n "checking for inttypes.h... " >&6; }
9663 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #define __STDC_FORMAT_MACROS
9669 #include <sys/types.h>
9670 #include <inttypes.h>
9671 int
9672 main ()
9673 {
9674 intmax_t i = -1;
9675 #ifndef PRId64
9676 choke me
9677 #endif
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_cxx_try_compile "$LINENO"; then :
9683 gcc_cv_header_inttypes_h=yes
9684 else
9685 gcc_cv_header_inttypes_h=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9691 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9692 if test $gcc_cv_header_inttypes_h = yes; then
9693
9694 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9695
9696 fi
9697
9698
9699
9700 for ac_func in times clock kill getrlimit setrlimit atoq \
9701 popen sysconf strsignal getrusage nl_langinfo \
9702 gettimeofday mbstowcs wcswidth mmap setlocale \
9703 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
9704 do :
9705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9706 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9707 eval as_val=\$$as_ac_var
9708 if test "x$as_val" = x""yes; then :
9709 cat >>confdefs.h <<_ACEOF
9710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9711 _ACEOF
9712
9713 fi
9714 done
9715
9716
9717 if test x$ac_cv_func_mbstowcs = xyes; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9719 $as_echo_n "checking whether mbstowcs works... " >&6; }
9720 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 if test "$cross_compiling" = yes; then :
9724 gcc_cv_func_mbstowcs_works=yes
9725 else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <stdlib.h>
9729 int main()
9730 {
9731 mbstowcs(0, "", 0);
9732 return 0;
9733 }
9734 _ACEOF
9735 if ac_fn_cxx_try_run "$LINENO"; then :
9736 gcc_cv_func_mbstowcs_works=yes
9737 else
9738 gcc_cv_func_mbstowcs_works=no
9739 fi
9740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741 conftest.$ac_objext conftest.beam conftest.$ac_ext
9742 fi
9743
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9746 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9747 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9748
9749 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9750
9751 fi
9752 fi
9753
9754 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9755 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9756
9757 else
9758
9759 cat >>confdefs.h <<_ACEOF
9760 #define ssize_t int
9761 _ACEOF
9762
9763 fi
9764
9765 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9766 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9767
9768 else
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define caddr_t char *
9772 _ACEOF
9773
9774 fi
9775
9776
9777
9778 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9779 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9780 gcc_header_sys_mman_h=yes
9781 else
9782 gcc_header_sys_mman_h=no
9783 fi
9784
9785 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9786 if test "x$ac_cv_func_mmap" = x""yes; then :
9787 gcc_func_mmap=yes
9788 else
9789 gcc_func_mmap=no
9790 fi
9791
9792 if test "$gcc_header_sys_mman_h" != yes \
9793 || test "$gcc_func_mmap" != yes; then
9794 gcc_cv_func_mmap_file=no
9795 gcc_cv_func_mmap_dev_zero=no
9796 gcc_cv_func_mmap_anon=no
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9799 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9800 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 # Add a system to this blacklist if
9804 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9805 # memory area containing the same data that you'd get if you applied
9806 # read() to the same fd. The only system known to have a problem here
9807 # is VMS, where text files have record structure.
9808 case "$host_os" in
9809 *vms* | ultrix*)
9810 gcc_cv_func_mmap_file=no ;;
9811 *)
9812 gcc_cv_func_mmap_file=yes;;
9813 esac
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9816 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9818 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9819 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 # Add a system to this blacklist if it has mmap() but /dev/zero
9823 # does not exist, or if mmapping /dev/zero does not give anonymous
9824 # zeroed pages with both the following properties:
9825 # 1. If you map N consecutive pages in with one call, and then
9826 # unmap any subset of those pages, the pages that were not
9827 # explicitly unmapped remain accessible.
9828 # 2. If you map two adjacent blocks of memory and then unmap them
9829 # both at once, they must both go away.
9830 # Systems known to be in this category are Windows (all variants),
9831 # VMS, and Darwin.
9832 case "$host_os" in
9833 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9834 gcc_cv_func_mmap_dev_zero=no ;;
9835 *)
9836 gcc_cv_func_mmap_dev_zero=yes;;
9837 esac
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9840 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9841
9842 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9844 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9845 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 #include <sys/types.h>
9851 #include <sys/mman.h>
9852 #include <unistd.h>
9853
9854 #ifndef MAP_ANONYMOUS
9855 #define MAP_ANONYMOUS MAP_ANON
9856 #endif
9857
9858 int
9859 main ()
9860 {
9861 int n = MAP_ANONYMOUS;
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_cxx_try_compile "$LINENO"; then :
9867 gcc_cv_decl_map_anon=yes
9868 else
9869 gcc_cv_decl_map_anon=no
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9874 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9875
9876 if test $gcc_cv_decl_map_anon = no; then
9877 gcc_cv_func_mmap_anon=no
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9880 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9881 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9885 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9886 # doesn't give anonymous zeroed pages with the same properties listed
9887 # above for use of /dev/zero.
9888 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9889 case "$host_os" in
9890 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9891 gcc_cv_func_mmap_anon=no ;;
9892 *)
9893 gcc_cv_func_mmap_anon=yes;;
9894 esac
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9897 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9898 fi
9899 fi
9900
9901 if test $gcc_cv_func_mmap_file = yes; then
9902
9903 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9904
9905 fi
9906 if test $gcc_cv_func_mmap_dev_zero = yes; then
9907
9908 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9909
9910 fi
9911 if test $gcc_cv_func_mmap_anon = yes; then
9912
9913 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9914
9915 fi
9916
9917
9918 case "${host}" in
9919 *-*-*vms*)
9920 # Under VMS, vfork works very differently than on Unix. The standard test
9921 # won't work, and it isn't easily adaptable. It makes more sense to
9922 # just force it.
9923 ac_cv_func_vfork_works=yes
9924 ;;
9925 esac
9926 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9927 if test "x$ac_cv_type_pid_t" = x""yes; then :
9928
9929 else
9930
9931 cat >>confdefs.h <<_ACEOF
9932 #define pid_t int
9933 _ACEOF
9934
9935 fi
9936
9937 for ac_header in vfork.h
9938 do :
9939 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9940 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9941 cat >>confdefs.h <<_ACEOF
9942 #define HAVE_VFORK_H 1
9943 _ACEOF
9944
9945 fi
9946 done
9947
9948 for ac_func in fork vfork
9949 do :
9950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9951 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9952 eval as_val=\$$as_ac_var
9953 if test "x$as_val" = x""yes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956 _ACEOF
9957
9958 fi
9959 done
9960
9961 if test "x$ac_cv_func_fork" = xyes; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9963 $as_echo_n "checking for working fork... " >&6; }
9964 if test "${ac_cv_func_fork_works+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 if test "$cross_compiling" = yes; then :
9968 ac_cv_func_fork_works=cross
9969 else
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 $ac_includes_default
9973 int
9974 main ()
9975 {
9976
9977 /* By Ruediger Kuhlmann. */
9978 return fork () < 0;
9979
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_cxx_try_run "$LINENO"; then :
9985 ac_cv_func_fork_works=yes
9986 else
9987 ac_cv_func_fork_works=no
9988 fi
9989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9991 fi
9992
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9995 $as_echo "$ac_cv_func_fork_works" >&6; }
9996
9997 else
9998 ac_cv_func_fork_works=$ac_cv_func_fork
9999 fi
10000 if test "x$ac_cv_func_fork_works" = xcross; then
10001 case $host in
10002 *-*-amigaos* | *-*-msdosdjgpp*)
10003 # Override, as these systems have only a dummy fork() stub
10004 ac_cv_func_fork_works=no
10005 ;;
10006 *)
10007 ac_cv_func_fork_works=yes
10008 ;;
10009 esac
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10011 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10012 fi
10013 ac_cv_func_vfork_works=$ac_cv_func_vfork
10014 if test "x$ac_cv_func_vfork" = xyes; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10016 $as_echo_n "checking for working vfork... " >&6; }
10017 if test "${ac_cv_func_vfork_works+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 if test "$cross_compiling" = yes; then :
10021 ac_cv_func_vfork_works=cross
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 /* Thanks to Paul Eggert for this test. */
10026 $ac_includes_default
10027 #include <sys/wait.h>
10028 #ifdef HAVE_VFORK_H
10029 # include <vfork.h>
10030 #endif
10031 /* On some sparc systems, changes by the child to local and incoming
10032 argument registers are propagated back to the parent. The compiler
10033 is told about this with #include <vfork.h>, but some compilers
10034 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10035 static variable whose address is put into a register that is
10036 clobbered by the vfork. */
10037 static void
10038 #ifdef __cplusplus
10039 sparc_address_test (int arg)
10040 # else
10041 sparc_address_test (arg) int arg;
10042 #endif
10043 {
10044 static pid_t child;
10045 if (!child) {
10046 child = vfork ();
10047 if (child < 0) {
10048 perror ("vfork");
10049 _exit(2);
10050 }
10051 if (!child) {
10052 arg = getpid();
10053 write(-1, "", 0);
10054 _exit (arg);
10055 }
10056 }
10057 }
10058
10059 int
10060 main ()
10061 {
10062 pid_t parent = getpid ();
10063 pid_t child;
10064
10065 sparc_address_test (0);
10066
10067 child = vfork ();
10068
10069 if (child == 0) {
10070 /* Here is another test for sparc vfork register problems. This
10071 test uses lots of local variables, at least as many local
10072 variables as main has allocated so far including compiler
10073 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10074 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10075 reuse the register of parent for one of the local variables,
10076 since it will think that parent can't possibly be used any more
10077 in this routine. Assigning to the local variable will thus
10078 munge parent in the parent process. */
10079 pid_t
10080 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10081 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10082 /* Convince the compiler that p..p7 are live; otherwise, it might
10083 use the same hardware register for all 8 local variables. */
10084 if (p != p1 || p != p2 || p != p3 || p != p4
10085 || p != p5 || p != p6 || p != p7)
10086 _exit(1);
10087
10088 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10089 from child file descriptors. If the child closes a descriptor
10090 before it execs or exits, this munges the parent's descriptor
10091 as well. Test for this by closing stdout in the child. */
10092 _exit(close(fileno(stdout)) != 0);
10093 } else {
10094 int status;
10095 struct stat st;
10096
10097 while (wait(&status) != child)
10098 ;
10099 return (
10100 /* Was there some problem with vforking? */
10101 child < 0
10102
10103 /* Did the child fail? (This shouldn't happen.) */
10104 || status
10105
10106 /* Did the vfork/compiler bug occur? */
10107 || parent != getpid()
10108
10109 /* Did the file descriptor bug occur? */
10110 || fstat(fileno(stdout), &st) != 0
10111 );
10112 }
10113 }
10114 _ACEOF
10115 if ac_fn_cxx_try_run "$LINENO"; then :
10116 ac_cv_func_vfork_works=yes
10117 else
10118 ac_cv_func_vfork_works=no
10119 fi
10120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10121 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 fi
10123
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10126 $as_echo "$ac_cv_func_vfork_works" >&6; }
10127
10128 fi;
10129 if test "x$ac_cv_func_fork_works" = xcross; then
10130 ac_cv_func_vfork_works=$ac_cv_func_vfork
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10132 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10133 fi
10134
10135 if test "x$ac_cv_func_vfork_works" = xyes; then
10136
10137 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10138
10139 else
10140
10141 $as_echo "#define vfork fork" >>confdefs.h
10142
10143 fi
10144 if test "x$ac_cv_func_fork_works" = xyes; then
10145
10146 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10147
10148 fi
10149
10150
10151
10152 if test "X$prefix" = "XNONE"; then
10153 acl_final_prefix="$ac_default_prefix"
10154 else
10155 acl_final_prefix="$prefix"
10156 fi
10157 if test "X$exec_prefix" = "XNONE"; then
10158 acl_final_exec_prefix='${prefix}'
10159 else
10160 acl_final_exec_prefix="$exec_prefix"
10161 fi
10162 acl_save_prefix="$prefix"
10163 prefix="$acl_final_prefix"
10164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10165 prefix="$acl_save_prefix"
10166
10167
10168 # Check whether --with-gnu-ld was given.
10169 if test "${with_gnu_ld+set}" = set; then :
10170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10171 else
10172 with_gnu_ld=no
10173 fi
10174
10175 # Prepare PATH_SEPARATOR.
10176 # The user is always right.
10177 if test "${PATH_SEPARATOR+set}" != set; then
10178 echo "#! /bin/sh" >conf$$.sh
10179 echo "exit 0" >>conf$$.sh
10180 chmod +x conf$$.sh
10181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10182 PATH_SEPARATOR=';'
10183 else
10184 PATH_SEPARATOR=:
10185 fi
10186 rm -f conf$$.sh
10187 fi
10188 ac_prog=ld
10189 if test "$GCC" = yes; then
10190 # Check if gcc -print-prog-name=ld gives a path.
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10192 $as_echo_n "checking for ld used by GCC... " >&6; }
10193 case $host in
10194 *-*-mingw*)
10195 # gcc leaves a trailing carriage return which upsets mingw
10196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10197 *)
10198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10199 esac
10200 case $ac_prog in
10201 # Accept absolute paths.
10202 [\\/]* | [A-Za-z]:[\\/]*)
10203 re_direlt='/[^/][^/]*/\.\./'
10204 # Canonicalize the path of ld
10205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10208 done
10209 test -z "$LD" && LD="$ac_prog"
10210 ;;
10211 "")
10212 # If it fails, then pretend we aren't using GCC.
10213 ac_prog=ld
10214 ;;
10215 *)
10216 # If it is relative, then search for the first ld in PATH.
10217 with_gnu_ld=unknown
10218 ;;
10219 esac
10220 elif test "$with_gnu_ld" = yes; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10222 $as_echo_n "checking for GNU ld... " >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10225 $as_echo_n "checking for non-GNU ld... " >&6; }
10226 fi
10227 if test "${acl_cv_path_LD+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test -z "$LD"; then
10231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10232 for ac_dir in $PATH; do
10233 test -z "$ac_dir" && ac_dir=.
10234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10235 acl_cv_path_LD="$ac_dir/$ac_prog"
10236 # Check to see if the program is GNU ld. I'd rather use --version,
10237 # but apparently some GNU ld's only accept -v.
10238 # Break only if it was the GNU/non-GNU ld that we prefer.
10239 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10240 test "$with_gnu_ld" != no && break
10241 else
10242 test "$with_gnu_ld" != yes && break
10243 fi
10244 fi
10245 done
10246 IFS="$ac_save_ifs"
10247 else
10248 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10249 fi
10250 fi
10251
10252 LD="$acl_cv_path_LD"
10253 if test -n "$LD"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10255 $as_echo "$LD" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259 fi
10260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10263 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10267 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10268 acl_cv_prog_gnu_ld=yes
10269 else
10270 acl_cv_prog_gnu_ld=no
10271 fi
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10274 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10275 with_gnu_ld=$acl_cv_prog_gnu_ld
10276
10277
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10280 $as_echo_n "checking for shared library run path origin... " >&6; }
10281 if test "${acl_cv_rpath+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284
10285 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10287 . ./conftest.sh
10288 rm -f ./conftest.sh
10289 acl_cv_rpath=done
10290
10291 fi
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10293 $as_echo "$acl_cv_rpath" >&6; }
10294 wl="$acl_cv_wl"
10295 libext="$acl_cv_libext"
10296 shlibext="$acl_cv_shlibext"
10297 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10298 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10299 hardcode_direct="$acl_cv_hardcode_direct"
10300 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10301 # Check whether --enable-rpath was given.
10302 if test "${enable_rpath+set}" = set; then :
10303 enableval=$enable_rpath; :
10304 else
10305 enable_rpath=yes
10306 fi
10307
10308
10309
10310
10311
10312
10313
10314
10315 use_additional=yes
10316
10317 acl_save_prefix="$prefix"
10318 prefix="$acl_final_prefix"
10319 acl_save_exec_prefix="$exec_prefix"
10320 exec_prefix="$acl_final_exec_prefix"
10321
10322 eval additional_includedir=\"$includedir\"
10323 eval additional_libdir=\"$libdir\"
10324
10325 exec_prefix="$acl_save_exec_prefix"
10326 prefix="$acl_save_prefix"
10327
10328
10329 # Check whether --with-libiconv-prefix was given.
10330 if test "${with_libiconv_prefix+set}" = set; then :
10331 withval=$with_libiconv_prefix;
10332 if test "X$withval" = "Xno"; then
10333 use_additional=no
10334 else
10335 if test "X$withval" = "X"; then
10336
10337 acl_save_prefix="$prefix"
10338 prefix="$acl_final_prefix"
10339 acl_save_exec_prefix="$exec_prefix"
10340 exec_prefix="$acl_final_exec_prefix"
10341
10342 eval additional_includedir=\"$includedir\"
10343 eval additional_libdir=\"$libdir\"
10344
10345 exec_prefix="$acl_save_exec_prefix"
10346 prefix="$acl_save_prefix"
10347
10348 else
10349 additional_includedir="$withval/include"
10350 additional_libdir="$withval/lib"
10351 fi
10352 fi
10353
10354 fi
10355
10356 LIBICONV=
10357 LTLIBICONV=
10358 INCICONV=
10359 rpathdirs=
10360 ltrpathdirs=
10361 names_already_handled=
10362 names_next_round='iconv '
10363 while test -n "$names_next_round"; do
10364 names_this_round="$names_next_round"
10365 names_next_round=
10366 for name in $names_this_round; do
10367 already_handled=
10368 for n in $names_already_handled; do
10369 if test "$n" = "$name"; then
10370 already_handled=yes
10371 break
10372 fi
10373 done
10374 if test -z "$already_handled"; then
10375 names_already_handled="$names_already_handled $name"
10376 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10377 eval value=\"\$HAVE_LIB$uppername\"
10378 if test -n "$value"; then
10379 if test "$value" = yes; then
10380 eval value=\"\$LIB$uppername\"
10381 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10382 eval value=\"\$LTLIB$uppername\"
10383 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10384 else
10385 :
10386 fi
10387 else
10388 found_dir=
10389 found_la=
10390 found_so=
10391 found_a=
10392 if test $use_additional = yes; then
10393 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10394 found_dir="$additional_libdir"
10395 found_so="$additional_libdir/lib$name.$shlibext"
10396 if test -f "$additional_libdir/lib$name.la"; then
10397 found_la="$additional_libdir/lib$name.la"
10398 fi
10399 else
10400 if test -f "$additional_libdir/lib$name.$libext"; then
10401 found_dir="$additional_libdir"
10402 found_a="$additional_libdir/lib$name.$libext"
10403 if test -f "$additional_libdir/lib$name.la"; then
10404 found_la="$additional_libdir/lib$name.la"
10405 fi
10406 fi
10407 fi
10408 fi
10409 if test "X$found_dir" = "X"; then
10410 for x in $LDFLAGS $LTLIBICONV; do
10411
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 acl_save_exec_prefix="$exec_prefix"
10415 exec_prefix="$acl_final_exec_prefix"
10416 eval x=\"$x\"
10417 exec_prefix="$acl_save_exec_prefix"
10418 prefix="$acl_save_prefix"
10419
10420 case "$x" in
10421 -L*)
10422 dir=`echo "X$x" | sed -e 's/^X-L//'`
10423 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10424 found_dir="$dir"
10425 found_so="$dir/lib$name.$shlibext"
10426 if test -f "$dir/lib$name.la"; then
10427 found_la="$dir/lib$name.la"
10428 fi
10429 else
10430 if test -f "$dir/lib$name.$libext"; then
10431 found_dir="$dir"
10432 found_a="$dir/lib$name.$libext"
10433 if test -f "$dir/lib$name.la"; then
10434 found_la="$dir/lib$name.la"
10435 fi
10436 fi
10437 fi
10438 ;;
10439 esac
10440 if test "X$found_dir" != "X"; then
10441 break
10442 fi
10443 done
10444 fi
10445 if test "X$found_dir" != "X"; then
10446 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10447 if test "X$found_so" != "X"; then
10448 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10450 else
10451 haveit=
10452 for x in $ltrpathdirs; do
10453 if test "X$x" = "X$found_dir"; then
10454 haveit=yes
10455 break
10456 fi
10457 done
10458 if test -z "$haveit"; then
10459 ltrpathdirs="$ltrpathdirs $found_dir"
10460 fi
10461 if test "$hardcode_direct" = yes; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10463 else
10464 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10466 haveit=
10467 for x in $rpathdirs; do
10468 if test "X$x" = "X$found_dir"; then
10469 haveit=yes
10470 break
10471 fi
10472 done
10473 if test -z "$haveit"; then
10474 rpathdirs="$rpathdirs $found_dir"
10475 fi
10476 else
10477 haveit=
10478 for x in $LDFLAGS $LIBICONV; do
10479
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10487
10488 if test "X$x" = "X-L$found_dir"; then
10489 haveit=yes
10490 break
10491 fi
10492 done
10493 if test -z "$haveit"; then
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10495 fi
10496 if test "$hardcode_minus_L" != no; then
10497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10498 else
10499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10500 fi
10501 fi
10502 fi
10503 fi
10504 else
10505 if test "X$found_a" != "X"; then
10506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10507 else
10508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10509 fi
10510 fi
10511 additional_includedir=
10512 case "$found_dir" in
10513 */lib | */lib/)
10514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10515 additional_includedir="$basedir/include"
10516 ;;
10517 esac
10518 if test "X$additional_includedir" != "X"; then
10519 if test "X$additional_includedir" != "X/usr/include"; then
10520 haveit=
10521 if test "X$additional_includedir" = "X/usr/local/include"; then
10522 if test -n "$GCC"; then
10523 case $host_os in
10524 linux*) haveit=yes;;
10525 esac
10526 fi
10527 fi
10528 if test -z "$haveit"; then
10529 for x in $CPPFLAGS $INCICONV; do
10530
10531 acl_save_prefix="$prefix"
10532 prefix="$acl_final_prefix"
10533 acl_save_exec_prefix="$exec_prefix"
10534 exec_prefix="$acl_final_exec_prefix"
10535 eval x=\"$x\"
10536 exec_prefix="$acl_save_exec_prefix"
10537 prefix="$acl_save_prefix"
10538
10539 if test "X$x" = "X-I$additional_includedir"; then
10540 haveit=yes
10541 break
10542 fi
10543 done
10544 if test -z "$haveit"; then
10545 if test -d "$additional_includedir"; then
10546 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10547 fi
10548 fi
10549 fi
10550 fi
10551 fi
10552 if test -n "$found_la"; then
10553 save_libdir="$libdir"
10554 case "$found_la" in
10555 */* | *\\*) . "$found_la" ;;
10556 *) . "./$found_la" ;;
10557 esac
10558 libdir="$save_libdir"
10559 for dep in $dependency_libs; do
10560 case "$dep" in
10561 -L*)
10562 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10563 if test "X$additional_libdir" != "X/usr/lib"; then
10564 haveit=
10565 if test "X$additional_libdir" = "X/usr/local/lib"; then
10566 if test -n "$GCC"; then
10567 case $host_os in
10568 linux*) haveit=yes;;
10569 esac
10570 fi
10571 fi
10572 if test -z "$haveit"; then
10573 haveit=
10574 for x in $LDFLAGS $LIBICONV; do
10575
10576 acl_save_prefix="$prefix"
10577 prefix="$acl_final_prefix"
10578 acl_save_exec_prefix="$exec_prefix"
10579 exec_prefix="$acl_final_exec_prefix"
10580 eval x=\"$x\"
10581 exec_prefix="$acl_save_exec_prefix"
10582 prefix="$acl_save_prefix"
10583
10584 if test "X$x" = "X-L$additional_libdir"; then
10585 haveit=yes
10586 break
10587 fi
10588 done
10589 if test -z "$haveit"; then
10590 if test -d "$additional_libdir"; then
10591 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10592 fi
10593 fi
10594 haveit=
10595 for x in $LDFLAGS $LTLIBICONV; do
10596
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10601 eval x=\"$x\"
10602 exec_prefix="$acl_save_exec_prefix"
10603 prefix="$acl_save_prefix"
10604
10605 if test "X$x" = "X-L$additional_libdir"; then
10606 haveit=yes
10607 break
10608 fi
10609 done
10610 if test -z "$haveit"; then
10611 if test -d "$additional_libdir"; then
10612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10613 fi
10614 fi
10615 fi
10616 fi
10617 ;;
10618 -R*)
10619 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10620 if test "$enable_rpath" != no; then
10621 haveit=
10622 for x in $rpathdirs; do
10623 if test "X$x" = "X$dir"; then
10624 haveit=yes
10625 break
10626 fi
10627 done
10628 if test -z "$haveit"; then
10629 rpathdirs="$rpathdirs $dir"
10630 fi
10631 haveit=
10632 for x in $ltrpathdirs; do
10633 if test "X$x" = "X$dir"; then
10634 haveit=yes
10635 break
10636 fi
10637 done
10638 if test -z "$haveit"; then
10639 ltrpathdirs="$ltrpathdirs $dir"
10640 fi
10641 fi
10642 ;;
10643 -l*)
10644 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10645 ;;
10646 *.la)
10647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10648 ;;
10649 *)
10650 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10652 ;;
10653 esac
10654 done
10655 fi
10656 else
10657 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10659 fi
10660 fi
10661 fi
10662 done
10663 done
10664 if test "X$rpathdirs" != "X"; then
10665 if test -n "$hardcode_libdir_separator"; then
10666 alldirs=
10667 for found_dir in $rpathdirs; do
10668 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10669 done
10670 acl_save_libdir="$libdir"
10671 libdir="$alldirs"
10672 eval flag=\"$hardcode_libdir_flag_spec\"
10673 libdir="$acl_save_libdir"
10674 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10675 else
10676 for found_dir in $rpathdirs; do
10677 acl_save_libdir="$libdir"
10678 libdir="$found_dir"
10679 eval flag=\"$hardcode_libdir_flag_spec\"
10680 libdir="$acl_save_libdir"
10681 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10682 done
10683 fi
10684 fi
10685 if test "X$ltrpathdirs" != "X"; then
10686 for found_dir in $ltrpathdirs; do
10687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10688 done
10689 fi
10690
10691
10692
10693
10694
10695
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10698 $as_echo_n "checking for iconv... " >&6; }
10699 if test "${am_cv_func_iconv+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702
10703 am_cv_func_iconv="no, consider installing GNU libiconv"
10704 am_cv_lib_iconv=no
10705 am_save_CPPFLAGS="$CPPFLAGS"
10706 CPPFLAGS="$CPPFLAGS $INCICONV"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <stdlib.h>
10710 #include <iconv.h>
10711 int
10712 main ()
10713 {
10714 iconv_t cd = iconv_open("","");
10715 iconv(cd,NULL,NULL,NULL,NULL);
10716 iconv_close(cd);
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_cxx_try_link "$LINENO"; then :
10722 am_cv_func_iconv=yes
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 CPPFLAGS="$am_save_CPPFLAGS"
10727
10728 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10729 for _libs in .libs _libs; do
10730 am_save_CPPFLAGS="$CPPFLAGS"
10731 am_save_LIBS="$LIBS"
10732 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10733 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <stdlib.h>
10737 #include <iconv.h>
10738 int
10739 main ()
10740 {
10741 iconv_t cd = iconv_open("","");
10742 iconv(cd,NULL,NULL,NULL,NULL);
10743 iconv_close(cd);
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_cxx_try_link "$LINENO"; then :
10749 INCICONV="-I../libiconv/include"
10750 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10751 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10752 am_cv_lib_iconv=yes
10753 am_cv_func_iconv=yes
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 CPPFLAGS="$am_save_CPPFLAGS"
10758 LIBS="$am_save_LIBS"
10759 if test "$am_cv_func_iconv" = "yes"; then
10760 break
10761 fi
10762 done
10763 fi
10764
10765 if test "$am_cv_func_iconv" != yes; then
10766 am_save_CPPFLAGS="$CPPFLAGS"
10767 am_save_LIBS="$LIBS"
10768 CPPFLAGS="$LIBS $INCICONV"
10769 LIBS="$LIBS $LIBICONV"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 #include <stdlib.h>
10773 #include <iconv.h>
10774 int
10775 main ()
10776 {
10777 iconv_t cd = iconv_open("","");
10778 iconv(cd,NULL,NULL,NULL,NULL);
10779 iconv_close(cd);
10780 ;
10781 return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_cxx_try_link "$LINENO"; then :
10785 am_cv_lib_iconv=yes
10786 am_cv_func_iconv=yes
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 CPPFLAGS="$am_save_CPPFLAGS"
10791 LIBS="$am_save_LIBS"
10792 fi
10793
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10796 $as_echo "$am_cv_func_iconv" >&6; }
10797 if test "$am_cv_func_iconv" = yes; then
10798
10799 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10800
10801 fi
10802 if test "$am_cv_lib_iconv" = yes; then
10803
10804 for element in $INCICONV; do
10805 haveit=
10806 for x in $CPPFLAGS; do
10807
10808 acl_save_prefix="$prefix"
10809 prefix="$acl_final_prefix"
10810 acl_save_exec_prefix="$exec_prefix"
10811 exec_prefix="$acl_final_exec_prefix"
10812 eval x=\"$x\"
10813 exec_prefix="$acl_save_exec_prefix"
10814 prefix="$acl_save_prefix"
10815
10816 if test "X$x" = "X$element"; then
10817 haveit=yes
10818 break
10819 fi
10820 done
10821 if test -z "$haveit"; then
10822 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10823 fi
10824 done
10825
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10827 $as_echo_n "checking how to link with libiconv... " >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10829 $as_echo "$LIBICONV" >&6; }
10830 else
10831 LIBICONV=
10832 LTLIBICONV=
10833 fi
10834
10835
10836
10837 if test "$am_cv_func_iconv" = yes; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10839 $as_echo_n "checking for iconv declaration... " >&6; }
10840 if test "${am_cv_proto_iconv+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 #include <stdlib.h>
10848 #include <iconv.h>
10849 extern
10850 #ifdef __cplusplus
10851 "C"
10852 #endif
10853 #if defined(__STDC__) || defined(__cplusplus)
10854 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10855 #else
10856 size_t iconv();
10857 #endif
10858
10859 int
10860 main ()
10861 {
10862
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_cxx_try_compile "$LINENO"; then :
10868 am_cv_proto_iconv_arg1=""
10869 else
10870 am_cv_proto_iconv_arg1="const"
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 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);"
10874 fi
10875
10876 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10878 }$am_cv_proto_iconv" >&5
10879 $as_echo "${ac_t:-
10880 }$am_cv_proto_iconv" >&6; }
10881
10882 cat >>confdefs.h <<_ACEOF
10883 #define ICONV_CONST $am_cv_proto_iconv_arg1
10884 _ACEOF
10885
10886 fi
10887
10888
10889 # Until we have in-tree GNU iconv:
10890 LIBICONV_DEP=
10891 if test -f "$LTLIBICONV"; then
10892 LIBICONV_DEP=$LTLIBICONV
10893 fi
10894
10895
10896
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10899 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 #include <locale.h>
10905 int
10906 main ()
10907 {
10908 return LC_MESSAGES
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_cxx_try_link "$LINENO"; then :
10914 am_cv_val_LC_MESSAGES=yes
10915 else
10916 am_cv_val_LC_MESSAGES=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10922 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10923 if test $am_cv_val_LC_MESSAGES = yes; then
10924
10925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10926
10927 fi
10928
10929
10930
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10932 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10933 if test "${am_cv_langinfo_codeset+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <langinfo.h>
10939 int
10940 main ()
10941 {
10942 char* cs = nl_langinfo(CODESET);
10943 ;
10944 return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_cxx_try_link "$LINENO"; then :
10948 am_cv_langinfo_codeset=yes
10949 else
10950 am_cv_langinfo_codeset=no
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10957 $as_echo "$am_cv_langinfo_codeset" >&6; }
10958 if test $am_cv_langinfo_codeset = yes; then
10959
10960 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10961
10962 fi
10963
10964
10965 # We will need to find libiberty.h and ansidecl.h
10966 saved_CFLAGS="$CFLAGS"
10967 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10968 saved_CXXFLAGS="$CXXFLAGS"
10969 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10970
10971 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10972 # normal autoconf function for these. But force definition of
10973 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10974 # basename handling in libiberty.h.
10975 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10976 #undef HAVE_DECL_BASENAME
10977 #define HAVE_DECL_BASENAME 1
10978 #include \"ansidecl.h\"
10979 #include \"system.h\"
10980 "
10981 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10982 ac_have_decl=1
10983 else
10984 ac_have_decl=0
10985 fi
10986
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_DECL_BASENAME $ac_have_decl
10989 _ACEOF
10990 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10991 #undef HAVE_DECL_BASENAME
10992 #define HAVE_DECL_BASENAME 1
10993 #include \"ansidecl.h\"
10994 #include \"system.h\"
10995 "
10996 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10997 ac_have_decl=1
10998 else
10999 ac_have_decl=0
11000 fi
11001
11002 cat >>confdefs.h <<_ACEOF
11003 #define HAVE_DECL_STRSTR $ac_have_decl
11004 _ACEOF
11005
11006
11007 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11008 madvise stpcpy strnlen strsignal strverscmp \
11009 strtol strtoul strtoll strtoull setenv unsetenv \
11010 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11011 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
11012 do
11013 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11015 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11016 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11021 #undef $ac_tr_decl
11022 #define $ac_tr_decl 1
11023
11024 #include "ansidecl.h"
11025 #include "system.h"
11026
11027 int
11028 main ()
11029 {
11030 #ifndef $ac_func
11031 char *(*pfn) = (char *(*)) $ac_func ;
11032 #endif
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_cxx_try_compile "$LINENO"; then :
11038 eval "gcc_cv_have_decl_$ac_func=yes"
11039 else
11040 eval "gcc_cv_have_decl_$ac_func=no"
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 fi
11044
11045 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11048 #define $ac_tr_decl 1
11049 _ACEOF
11050
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11054 #define $ac_tr_decl 0
11055 _ACEOF
11056
11057 fi
11058
11059 done
11060
11061
11062 for ac_func in getrlimit setrlimit getrusage
11063 do
11064 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11067 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #undef $ac_tr_decl
11073 #define $ac_tr_decl 1
11074
11075 #include "ansidecl.h"
11076 #include "system.h"
11077 #ifdef HAVE_SYS_RESOURCE_H
11078 #include <sys/resource.h>
11079 #endif
11080
11081
11082 int
11083 main ()
11084 {
11085 #ifndef $ac_func
11086 char *(*pfn) = (char *(*)) $ac_func ;
11087 #endif
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_cxx_try_compile "$LINENO"; then :
11093 eval "gcc_cv_have_decl_$ac_func=yes"
11094 else
11095 eval "gcc_cv_have_decl_$ac_func=no"
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 fi
11099
11100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11103 #define $ac_tr_decl 1
11104 _ACEOF
11105
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11109 #define $ac_tr_decl 0
11110 _ACEOF
11111
11112 fi
11113
11114 done
11115
11116
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119
11120 #include "ansidecl.h"
11121 #include "system.h"
11122 #ifdef HAVE_SYS_RESOURCE_H
11123 #include <sys/resource.h>
11124 #endif
11125
11126 int
11127 main ()
11128 {
11129 rlim_t l = 0;
11130 ;
11131 return 0;
11132 }
11133 _ACEOF
11134 if ac_fn_cxx_try_compile "$LINENO"; then :
11135
11136 else
11137
11138 $as_echo "#define rlim_t long" >>confdefs.h
11139
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142
11143 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11144 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11145 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11146 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11147 for ac_func in ldgetname
11148 do
11149 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11151 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11152 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #undef $ac_tr_decl
11158 #define $ac_tr_decl 1
11159
11160 #include "ansidecl.h"
11161 #include "system.h"
11162 #ifdef HAVE_LDFCN_H
11163 #undef FREAD
11164 #undef FWRITE
11165 #include <ldfcn.h>
11166 #endif
11167
11168
11169 int
11170 main ()
11171 {
11172 #ifndef $ac_func
11173 char *(*pfn) = (char *(*)) $ac_func ;
11174 #endif
11175 ;
11176 return 0;
11177 }
11178 _ACEOF
11179 if ac_fn_cxx_try_compile "$LINENO"; then :
11180 eval "gcc_cv_have_decl_$ac_func=yes"
11181 else
11182 eval "gcc_cv_have_decl_$ac_func=no"
11183 fi
11184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 fi
11186
11187 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11190 #define $ac_tr_decl 1
11191 _ACEOF
11192
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11196 #define $ac_tr_decl 0
11197 _ACEOF
11198
11199 fi
11200
11201 done
11202
11203
11204 for ac_func in times
11205 do
11206 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11208 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11209 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 #undef $ac_tr_decl
11215 #define $ac_tr_decl 1
11216
11217 #include "ansidecl.h"
11218 #include "system.h"
11219 #ifdef HAVE_SYS_TIMES_H
11220 #include <sys/times.h>
11221 #endif
11222
11223
11224 int
11225 main ()
11226 {
11227 #ifndef $ac_func
11228 char *(*pfn) = (char *(*)) $ac_func ;
11229 #endif
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_cxx_try_compile "$LINENO"; then :
11235 eval "gcc_cv_have_decl_$ac_func=yes"
11236 else
11237 eval "gcc_cv_have_decl_$ac_func=no"
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 fi
11241
11242 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11245 #define $ac_tr_decl 1
11246 _ACEOF
11247
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11251 #define $ac_tr_decl 0
11252 _ACEOF
11253
11254 fi
11255
11256 done
11257
11258
11259 for ac_func in sigaltstack
11260 do
11261 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11264 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #undef $ac_tr_decl
11270 #define $ac_tr_decl 1
11271
11272 #include "ansidecl.h"
11273 #include "system.h"
11274 #include <signal.h>
11275
11276
11277 int
11278 main ()
11279 {
11280 #ifndef $ac_func
11281 char *(*pfn) = (char *(*)) $ac_func ;
11282 #endif
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_cxx_try_compile "$LINENO"; then :
11288 eval "gcc_cv_have_decl_$ac_func=yes"
11289 else
11290 eval "gcc_cv_have_decl_$ac_func=no"
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 fi
11294
11295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11298 #define $ac_tr_decl 1
11299 _ACEOF
11300
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11304 #define $ac_tr_decl 0
11305 _ACEOF
11306
11307 fi
11308
11309 done
11310
11311
11312 # More time-related stuff.
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11314 $as_echo_n "checking for struct tms... " >&6; }
11315 if test "${ac_cv_struct_tms+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 #include "ansidecl.h"
11323 #include "system.h"
11324 #ifdef HAVE_SYS_TIMES_H
11325 #include <sys/times.h>
11326 #endif
11327
11328 int
11329 main ()
11330 {
11331 struct tms tms;
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_cxx_try_compile "$LINENO"; then :
11337 ac_cv_struct_tms=yes
11338 else
11339 ac_cv_struct_tms=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11344 $as_echo "$ac_cv_struct_tms" >&6; }
11345 if test $ac_cv_struct_tms = yes; then
11346
11347 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11348
11349 fi
11350
11351 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11352 # revisit after autoconf 2.50.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11354 $as_echo_n "checking for clock_t... " >&6; }
11355 if test "${gcc_cv_type_clock_t+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361
11362 #include "ansidecl.h"
11363 #include "system.h"
11364
11365 int
11366 main ()
11367 {
11368 clock_t x;
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_cxx_try_compile "$LINENO"; then :
11374 gcc_cv_type_clock_t=yes
11375 else
11376 gcc_cv_type_clock_t=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11381 $as_echo "$gcc_cv_type_clock_t" >&6; }
11382 if test $gcc_cv_type_clock_t = yes; then
11383
11384 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11385
11386 fi
11387
11388 # Check if F_SETLKW is supported by fcntl.
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11390 $as_echo_n "checking for F_SETLKW... " >&6; }
11391 if test "${ac_cv_f_setlkw+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397
11398 #include <fcntl.h>
11399 int
11400 main ()
11401 {
11402
11403 struct flock fl;
11404 fl.l_whence = 0;
11405 fl.l_start = 0;
11406 fl.l_len = 0;
11407 fl.l_pid = 0;
11408 return fcntl (1, F_SETLKW, &fl);
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_cxx_try_compile "$LINENO"; then :
11414 ac_cv_f_setlkw=yes
11415 else
11416 ac_cv_f_setlkw=no
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 fi
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11421 $as_echo "$ac_cv_f_setlkw" >&6; }
11422 if test $ac_cv_f_setlkw = yes; then
11423
11424 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11425
11426 fi
11427
11428 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11429 CFLAGS="$saved_CFLAGS"
11430 CXXFLAGS="$saved_CXXFLAGS"
11431
11432 # mkdir takes a single argument on some systems.
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11434 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11435 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440
11441 #include <sys/types.h>
11442 #ifdef HAVE_SYS_STAT_H
11443 # include <sys/stat.h>
11444 #endif
11445 #ifdef HAVE_UNISTD_H
11446 # include <unistd.h>
11447 #endif
11448 #ifdef HAVE_DIRECT_H
11449 # include <direct.h>
11450 #endif
11451 int
11452 main ()
11453 {
11454 mkdir ("foo", 0);
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_cxx_try_compile "$LINENO"; then :
11460 gcc_cv_mkdir_takes_one_arg=no
11461 else
11462 gcc_cv_mkdir_takes_one_arg=yes
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11467 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11468 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11469
11470 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11471
11472 fi
11473
11474
11475 # File extensions
11476 manext='.1'
11477 objext='.o'
11478
11479
11480
11481 # With Setjmp/Longjmp based exception handling.
11482 # Check whether --enable-sjlj-exceptions was given.
11483 if test "${enable_sjlj_exceptions+set}" = set; then :
11484 enableval=$enable_sjlj_exceptions; case $target in
11485 *-*-hpux10*)
11486 if test $enableval != yes; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11488 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11489 enableval=yes
11490 fi
11491 ;;
11492 esac
11493 force_sjlj_exceptions=yes
11494 else
11495 case $target in
11496 *-*-hpux10*)
11497 force_sjlj_exceptions=yes
11498 enableval=yes
11499 ;;
11500 lm32*-*-*)
11501 force_sjlj_exceptions=yes
11502 enableval=yes
11503 ;;
11504 *)
11505 force_sjlj_exceptions=no
11506 ;;
11507 esac
11508 fi
11509
11510 if test $force_sjlj_exceptions = yes; then
11511 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11515 _ACEOF
11516
11517 fi
11518
11519 # --------------------------------------------------------
11520 # Build, host, and target specific configuration fragments
11521 # --------------------------------------------------------
11522
11523 # Collect build-machine-specific information.
11524 . ${srcdir}/config.build
11525
11526 # Collect host-machine-specific information.
11527 . ${srcdir}/config.host
11528
11529 target_gtfiles=
11530
11531 # Collect target-machine-specific information.
11532 . ${srcdir}/config.gcc
11533
11534 extra_objs="${host_extra_objs} ${extra_objs}"
11535 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11536
11537 # Default the target-machine variables that were not explicitly set.
11538 if test x"$tm_file" = x
11539 then tm_file=$cpu_type/$cpu_type.h; fi
11540
11541 if test x"$extra_headers" = x
11542 then extra_headers=; fi
11543
11544 if test x$md_file = x
11545 then md_file=$cpu_type/$cpu_type.md; fi
11546
11547 if test x$out_file = x
11548 then out_file=$cpu_type/$cpu_type.c; fi
11549
11550 if test x"$tmake_file" = x
11551 then tmake_file=$cpu_type/t-$cpu_type
11552 fi
11553
11554 # Support --enable-initfini-array.
11555 if test x$enable_initfini_array != xno; then
11556 tm_file="${tm_file} initfini-array.h"
11557 fi
11558
11559 if test x"$dwarf2" = xyes
11560 then tm_file="$tm_file tm-dwarf2.h"
11561 fi
11562
11563 # Say what files are being used for the output code and MD file.
11564 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11565 echo "Using \`$srcdir/config/$md_file' as machine description file."
11566
11567 # If any of the xm_file variables contain nonexistent files, warn
11568 # about them and drop them.
11569
11570 bx=
11571 for x in $build_xm_file; do
11572 if test -f $srcdir/config/$x
11573 then bx="$bx $x"
11574 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11575 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11576 fi
11577 done
11578 build_xm_file="$bx"
11579
11580 hx=
11581 for x in $host_xm_file; do
11582 if test -f $srcdir/config/$x
11583 then hx="$hx $x"
11584 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11585 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11586 fi
11587 done
11588 host_xm_file="$hx"
11589
11590 tx=
11591 for x in $xm_file; do
11592 if test -f $srcdir/config/$x
11593 then tx="$tx $x"
11594 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11595 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11596 fi
11597 done
11598 xm_file="$tx"
11599
11600 count=a
11601 for f in $tm_file; do
11602 count=${count}x
11603 done
11604 if test $count = ax; then
11605 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11606 else
11607 echo "Using the following target machine macro files:"
11608 for f in $tm_file; do
11609 echo " $srcdir/config/$f"
11610 done
11611 fi
11612
11613 if test x$use_long_long_for_widest_fast_int = xyes; then
11614
11615 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11616
11617 fi
11618
11619 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11620
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_GNU_LD $gnu_ld_bool
11623 _ACEOF
11624
11625
11626 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_GNU_AS $gnu_as_bool
11630 _ACEOF
11631
11632
11633 count=a
11634 for f in $host_xm_file; do
11635 count=${count}x
11636 done
11637 if test $count = a; then
11638 :
11639 elif test $count = ax; then
11640 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11641 else
11642 echo "Using the following host machine macro files:"
11643 for f in $host_xm_file; do
11644 echo " $srcdir/config/$f"
11645 done
11646 fi
11647 echo "Using ${out_host_hook_obj} for host machine hooks."
11648
11649 if test "$host_xm_file" != "$build_xm_file"; then
11650 count=a
11651 for f in $build_xm_file; do
11652 count=${count}x
11653 done
11654 if test $count = a; then
11655 :
11656 elif test $count = ax; then
11657 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11658 else
11659 echo "Using the following build machine macro files:"
11660 for f in $build_xm_file; do
11661 echo " $srcdir/config/$f"
11662 done
11663 fi
11664 fi
11665
11666 if test -n "$configured_native_system_header_dir"; then
11667 native_system_header_dir=$configured_native_system_header_dir
11668 fi
11669 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11670
11671
11672 case ${host} in
11673 powerpc*-*-darwin*)
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11675 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11676 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681
11682 #include <sys/cdefs.h>
11683 #include <sys/signal.h>
11684 #include <ucontext.h>
11685 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11686
11687 _ACEOF
11688 if ac_fn_cxx_try_compile "$LINENO"; then :
11689 gcc_cv_mcontext_underscores=no
11690 else
11691 gcc_cv_mcontext_underscores=yes
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11696 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11697 if test $gcc_cv_mcontext_underscores = yes; then
11698
11699 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11700
11701 fi
11702 ;;
11703 esac
11704
11705 # ---------
11706 # Threading
11707 # ---------
11708
11709 # Check if a valid thread package
11710 case ${enable_threads} in
11711 "" | no)
11712 # No threads
11713 target_thread_file='single'
11714 ;;
11715 yes)
11716 # default
11717 target_thread_file='single'
11718 ;;
11719 aix | dce | lynx | mipssde | posix | rtems | \
11720 single | tpf | vxworks | win32)
11721 target_thread_file=${enable_threads}
11722 ;;
11723 *)
11724 echo "${enable_threads} is an unknown thread package" 1>&2
11725 exit 1
11726 ;;
11727 esac
11728
11729 if test x${thread_file} = x; then
11730 # No thread file set by target-specific clauses in config.gcc,
11731 # so use file chosen by default logic above
11732 thread_file=${target_thread_file}
11733 fi
11734
11735 # --------
11736 # UNSORTED
11737 # --------
11738
11739 use_cxa_atexit=no
11740 if test x$enable___cxa_atexit = xyes || \
11741 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11742 if test x$host = x$target; then
11743 case $host in
11744 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11745 # keyed to flag_use_cxa_atexit
11746 *-*-mingw32*)
11747 use_cxa_atexit=yes
11748 ;;
11749 powerpc-ibm-aix*)
11750 use_cxa_atexit=yes
11751 ;;
11752 *)
11753 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11754 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11755 use_cxa_atexit=yes
11756 else
11757 echo "__cxa_atexit can't be enabled on this target"
11758 fi
11759
11760 ;;
11761 esac
11762 else
11763 # We can't check for __cxa_atexit when building a cross, so assume
11764 # it is available
11765 use_cxa_atexit=yes
11766 fi
11767 if test x$use_cxa_atexit = xyes; then
11768
11769 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11770
11771 fi
11772 fi
11773
11774 # Look for a file containing extra machine modes.
11775 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11776 extra_modes_file='$(srcdir)'/config/${extra_modes}
11777
11778
11779 cat >>confdefs.h <<_ACEOF
11780 #define EXTRA_MODES_FILE "config/$extra_modes"
11781 _ACEOF
11782
11783 fi
11784
11785 # Convert extra_options into a form suitable for Makefile use.
11786 extra_opt_files=
11787 all_opt_files=
11788 for f in $extra_options; do
11789 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11790 all_opt_files="$all_opt_files $srcdir/config/$f"
11791 done
11792
11793
11794 # auto-host.h is the file containing items generated by autoconf and is
11795 # the first file included by config.h.
11796 # If host=build, it is correct to have bconfig include auto-host.h
11797 # as well. If host!=build, we are in error and need to do more
11798 # work to find out the build config parameters.
11799 if test x$host = x$build
11800 then
11801 build_auto=auto-host.h
11802 else
11803 # We create a subdir, then run autoconf in the subdir.
11804 # To prevent recursion we set host and build for the new
11805 # invocation of configure to the build for this invocation
11806 # of configure.
11807 tempdir=build.$$
11808 rm -rf $tempdir
11809 mkdir $tempdir
11810 cd $tempdir
11811 case ${srcdir} in
11812 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11813 *) realsrcdir=../${srcdir};;
11814 esac
11815 # Clearing GMPINC is necessary to prevent host headers being
11816 # used by the build compiler. Defining GENERATOR_FILE stops
11817 # system.h from including gmp.h.
11818 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11819 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11820 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11821 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11822 ${realsrcdir}/configure \
11823 --enable-languages=${enable_languages-all} \
11824 --target=$target_alias --host=$build_alias --build=$build_alias
11825
11826 # We just finished tests for the build machine, so rename
11827 # the file auto-build.h in the gcc directory.
11828 mv auto-host.h ../auto-build.h
11829 cd ..
11830 rm -rf $tempdir
11831 build_auto=auto-build.h
11832 fi
11833
11834
11835 tm_file="${tm_file} defaults.h"
11836 tm_p_file="${tm_p_file} tm-preds.h"
11837 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11838 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11839 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11840 # put this back in temporarily.
11841 xm_file="auto-host.h ansidecl.h ${xm_file}"
11842
11843 # --------
11844 # UNSORTED
11845 # --------
11846
11847 # Compile in configure arguments.
11848 if test -f configargs.h ; then
11849 # Being re-configured.
11850 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11851 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11852 else
11853 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11854 fi
11855
11856 # Double all backslashes and backslash all quotes to turn
11857 # gcc_config_arguments into a C string.
11858 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11859 $gcc_config_arguments
11860 EOF
11861 gcc_config_arguments_str=`cat conftest.out`
11862 rm -f conftest.out
11863
11864 cat > configargs.h <<EOF
11865 /* Generated automatically. */
11866 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11867 static const char thread_model[] = "$thread_file";
11868
11869 static const struct {
11870 const char *name, *value;
11871 } configure_default_options[] = $configure_default_options;
11872 EOF
11873
11874 gcc_BASEVER=`cat $srcdir/BASE-VER`
11875 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11876 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11877 if test -f $srcdir/REVISION ; then
11878 gcc_REVISION=`cat $srcdir/REVISION`
11879 else
11880 gcc_REVISION=""
11881 fi
11882 cat > plugin-version.h <<EOF
11883 #include "configargs.h"
11884
11885 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11886 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11887 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11888 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11889
11890 static char basever[] = "$gcc_BASEVER";
11891 static char datestamp[] = "$gcc_DATESTAMP";
11892 static char devphase[] = "$gcc_DEVPHASE";
11893 static char revision[] = "$gcc_REVISION";
11894
11895 /* FIXME plugins: We should make the version information more precise.
11896 One way to do is to add a checksum. */
11897
11898 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11899 devphase, revision,
11900 configuration_arguments};
11901 EOF
11902
11903 # Internationalization
11904 # If we haven't got the data from the intl directory,
11905 # assume NLS is disabled.
11906 USE_NLS=no
11907 LIBINTL=
11908 LIBINTL_DEP=
11909 INCINTL=
11910 XGETTEXT=
11911 GMSGFMT=
11912 POSUB=
11913
11914 if test -f ../intl/config.intl; then
11915 . ../intl/config.intl
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11918 $as_echo_n "checking whether NLS is requested... " >&6; }
11919 if test x"$USE_NLS" != xyes; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924 $as_echo "yes" >&6; }
11925
11926 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11927
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11930 $as_echo_n "checking for catalogs to be installed... " >&6; }
11931 # Look for .po and .gmo files in the source directory.
11932 CATALOGS=
11933 XLINGUAS=
11934 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11935 # If there aren't any .gmo files the shell will give us the
11936 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11937 # weeded out.
11938 case "$cat" in *\**)
11939 continue;;
11940 esac
11941 # The quadruple backslash is collapsed to a double backslash
11942 # by the backticks, then collapsed again by the double quotes,
11943 # leaving us with one backslash in the sed expression (right
11944 # before the dot that mustn't act as a wildcard).
11945 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11946 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11947 # The user is allowed to set LINGUAS to a list of languages to
11948 # install catalogs for. If it's empty that means "all of them."
11949 if test "x$LINGUAS" = x; then
11950 CATALOGS="$CATALOGS $cat"
11951 XLINGUAS="$XLINGUAS $lang"
11952 else
11953 case "$LINGUAS" in *$lang*)
11954 CATALOGS="$CATALOGS $cat"
11955 XLINGUAS="$XLINGUAS $lang"
11956 ;;
11957 esac
11958 fi
11959 done
11960 LINGUAS="$XLINGUAS"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11962 $as_echo "$LINGUAS" >&6; }
11963
11964
11965 DATADIRNAME=share
11966
11967 INSTOBJEXT=.mo
11968
11969 GENCAT=gencat
11970
11971 CATOBJEXT=.gmo
11972
11973 fi
11974
11975 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11976 # -liconv on the link line twice.
11977 case "$LIBINTL" in *$LIBICONV*)
11978 LIBICONV= ;;
11979 esac
11980
11981 # Check whether --enable-secureplt was given.
11982 if test "${enable_secureplt+set}" = set; then :
11983 enableval=$enable_secureplt;
11984 fi
11985
11986
11987 # Check whether --enable-leading-mingw64-underscores was given.
11988 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11989 enableval=$enable_leading_mingw64_underscores;
11990 fi
11991
11992 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11993
11994 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11995
11996 fi
11997
11998 # Check whether --enable-cld was given.
11999 if test "${enable_cld+set}" = set; then :
12000 enableval=$enable_cld;
12001 else
12002 enable_cld=no
12003 fi
12004
12005
12006 # Check whether --enable-frame-pointer was given.
12007 if test "${enable_frame_pointer+set}" = set; then :
12008 enableval=$enable_frame_pointer;
12009 else
12010
12011 case $target_os in
12012 linux* | darwin[8912]*)
12013 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12014 # DWARF2.
12015 enable_frame_pointer=no
12016 ;;
12017 *)
12018 enable_frame_pointer=yes
12019 ;;
12020 esac
12021
12022 fi
12023
12024
12025 # Windows32 Registry support for specifying GCC installation paths.
12026 # Check whether --enable-win32-registry was given.
12027 if test "${enable_win32_registry+set}" = set; then :
12028 enableval=$enable_win32_registry;
12029 fi
12030
12031
12032 case $host_os in
12033 win32 | pe | cygwin* | mingw32*)
12034 if test "x$enable_win32_registry" != xno; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12036 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12037 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_func_search_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char RegOpenKeyExA ();
12051 int
12052 main ()
12053 {
12054 return RegOpenKeyExA ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 for ac_lib in '' advapi32; do
12060 if test -z "$ac_lib"; then
12061 ac_res="none required"
12062 else
12063 ac_res=-l$ac_lib
12064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12065 fi
12066 if ac_fn_cxx_try_link "$LINENO"; then :
12067 ac_cv_search_RegOpenKeyExA=$ac_res
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext
12071 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12072 break
12073 fi
12074 done
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076
12077 else
12078 ac_cv_search_RegOpenKeyExA=no
12079 fi
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12084 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12085 ac_res=$ac_cv_search_RegOpenKeyExA
12086 if test "$ac_res" != no; then :
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12088
12089 else
12090 enable_win32_registry=no
12091 fi
12092
12093 fi
12094
12095 if test "x$enable_win32_registry" != xno; then
12096
12097 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12098
12099
12100 if test "x$enable_win32_registry" != xyes \
12101 && test "x$enable_win32_registry" != x; then
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12105 _ACEOF
12106
12107 fi
12108 fi
12109 ;;
12110 esac
12111
12112 # Get an absolute path to the GCC top-level source directory
12113 holddir=`${PWDCMD-pwd}`
12114 cd $srcdir
12115 topdir=`${PWDCMD-pwd}`
12116 cd $holddir
12117
12118 # Conditionalize the makefile for this host machine.
12119 xmake_file=
12120 for f in ${host_xmake_file}
12121 do
12122 if test -f ${srcdir}/config/$f
12123 then
12124 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12125 fi
12126 done
12127
12128 # Conditionalize the makefile for this target machine.
12129 tmake_file_=
12130 for f in ${tmake_file}
12131 do
12132 if test -f ${srcdir}/config/$f
12133 then
12134 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12135 fi
12136 done
12137 tmake_file="${tmake_file_}"
12138
12139 out_object_file=`basename $out_file .c`.o
12140 common_out_object_file=`basename $common_out_file .c`.o
12141
12142 tm_file_list="options.h"
12143 tm_include_list="options.h insn-constants.h"
12144 for f in $tm_file; do
12145 case $f in
12146 ./* )
12147 f=`echo $f | sed 's/^..//'`
12148 tm_file_list="${tm_file_list} $f"
12149 tm_include_list="${tm_include_list} $f"
12150 ;;
12151 defaults.h )
12152 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12153 tm_include_list="${tm_include_list} $f"
12154 ;;
12155 * )
12156 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12157 tm_include_list="${tm_include_list} config/$f"
12158 ;;
12159 esac
12160 done
12161
12162 tm_p_file_list=
12163 tm_p_include_list=
12164 for f in $tm_p_file; do
12165 case $f in
12166 tm-preds.h )
12167 tm_p_file_list="${tm_p_file_list} $f"
12168 tm_p_include_list="${tm_p_include_list} $f"
12169 ;;
12170 * )
12171 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12172 tm_p_include_list="${tm_p_include_list} config/$f"
12173 esac
12174 done
12175
12176 xm_file_list=
12177 xm_include_list=
12178 for f in $xm_file; do
12179 case $f in
12180 ansidecl.h )
12181 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12182 xm_include_list="${xm_include_list} $f"
12183 ;;
12184 auto-host.h )
12185 xm_file_list="${xm_file_list} $f"
12186 xm_include_list="${xm_include_list} $f"
12187 ;;
12188 * )
12189 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12190 xm_include_list="${xm_include_list} config/$f"
12191 ;;
12192 esac
12193 done
12194
12195 host_xm_file_list=
12196 host_xm_include_list=
12197 for f in $host_xm_file; do
12198 case $f in
12199 ansidecl.h )
12200 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12201 host_xm_include_list="${host_xm_include_list} $f"
12202 ;;
12203 auto-host.h )
12204 host_xm_file_list="${host_xm_file_list} $f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12206 ;;
12207 * )
12208 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12209 host_xm_include_list="${host_xm_include_list} config/$f"
12210 ;;
12211 esac
12212 done
12213
12214 build_xm_file_list=
12215 for f in $build_xm_file; do
12216 case $f in
12217 ansidecl.h )
12218 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12219 build_xm_include_list="${build_xm_include_list} $f"
12220 ;;
12221 auto-build.h | auto-host.h )
12222 build_xm_file_list="${build_xm_file_list} $f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12224 ;;
12225 * )
12226 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12227 build_xm_include_list="${build_xm_include_list} config/$f"
12228 ;;
12229 esac
12230 done
12231
12232 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12233 # cross-compiler which does not use the native headers and libraries.
12234 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12235 CROSS=
12236 ALL=all.internal
12237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12238
12239 if test "x$with_build_sysroot" != x; then
12240 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12241 else
12242 # This value is used, even on a native system, because
12243 # CROSS_SYSTEM_HEADER_DIR is just
12244 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12245 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12246 fi
12247
12248 if test x$host != x$target
12249 then
12250 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12251 ALL=all.cross
12252 SYSTEM_HEADER_DIR=$build_system_header_dir
12253 case "$host","$target" in
12254 # Darwin crosses can use the host system's libraries and headers,
12255 # because of the fat library support. Of course, it must be the
12256 # same version of Darwin on both sides. Allow the user to
12257 # just say --target=foo-darwin without a version number to mean
12258 # "the version on this system".
12259 *-*-darwin*,*-*-darwin*)
12260 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12261 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12262 if test $hostos = $targetos -o $targetos = darwin ; then
12263 CROSS=
12264 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12265 with_headers=yes
12266 fi
12267 ;;
12268
12269 i?86-*-*,x86_64-*-* \
12270 | powerpc*-*-*,powerpc64*-*-*)
12271 CROSS="$CROSS -DNATIVE_CROSS" ;;
12272 esac
12273
12274 case $target in
12275 *-*-mingw*)
12276 if test "x$with_headers" = x; then
12277 with_headers=yes
12278 fi
12279 ;;
12280 *)
12281 ;;
12282 esac
12283 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12284 SYSTEM_HEADER_DIR=$build_system_header_dir
12285 fi
12286
12287 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12288 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12289 target_header_dir=$with_headers
12290 elif test "x$with_sysroot" = x; then
12291 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12292 elif test "x$with_build_sysroot" != "x"; then
12293 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12294 elif test "x$with_sysroot" = xyes; then
12295 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12296 else
12297 target_header_dir="${with_sysroot}${native_system_header_dir}"
12298 fi
12299 else
12300 target_header_dir=${native_system_header_dir}
12301 fi
12302
12303 # If this is a cross-compiler that does not
12304 # have its own set of headers then define
12305 # inhibit_libc
12306
12307 # If this is using newlib, without having the headers available now,
12308 # then define inhibit_libc in LIBGCC2_CFLAGS.
12309 # This prevents libgcc2 from containing any code which requires libc
12310 # support.
12311 : ${inhibit_libc=false}
12312 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12313 test x$with_newlib = xyes ; } &&
12314 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12315 inhibit_libc=true
12316 fi
12317
12318
12319 # When building gcc with a cross-compiler, we need to adjust things so
12320 # that the generator programs are still built with the native compiler.
12321 # Also, we cannot run fixincludes.
12322
12323 # These are the normal (build=host) settings:
12324 CC_FOR_BUILD='$(CC)'
12325 CXX_FOR_BUILD='$(CXX)'
12326 BUILD_CFLAGS='$(ALL_CFLAGS)'
12327 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12328 BUILD_LDFLAGS='$(LDFLAGS)'
12329 STMP_FIXINC=stmp-fixinc
12330
12331 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12332 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12333
12334 # And these apply if build != host, or we are generating coverage data
12335 if test x$build != x$host || test "x$coverage_flags" != x
12336 then
12337 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12338 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12339 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12340
12341 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12342 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12343 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12344 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12345 fi
12346
12347
12348
12349 # Expand extra_headers to include complete path.
12350 # This substitutes for lots of t-* files.
12351 extra_headers_list=
12352 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12353 for file in ${extra_headers} ; do
12354 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12355 done
12356
12357 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12358 if test x"$use_gcc_tgmath" = xyes
12359 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12360 fi
12361
12362 # Define collect2 in Makefile.
12363 case $host_can_use_collect2 in
12364 no) collect2= ;;
12365 *) collect2='collect2$(exeext)' ;;
12366 esac
12367
12368
12369 # Add a definition of USE_COLLECT2 if system wants one.
12370 case $use_collect2 in
12371 no) use_collect2= ;;
12372 "") ;;
12373 *)
12374 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12375 xm_defines="${xm_defines} USE_COLLECT2"
12376 case $host_can_use_collect2 in
12377 no)
12378 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12379 ;;
12380 esac
12381 ;;
12382 esac
12383
12384
12385 cat >>confdefs.h <<_ACEOF
12386 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12387 _ACEOF
12388
12389
12390 # ---------------------------
12391 # Assembler & linker features
12392 # ---------------------------
12393
12394 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12395 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12396 # However when ld-new is first executed from the build tree, libtool will
12397 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12398 # to the build tree. While doing this we need to use the previous-stage
12399 # linker, or we have an infinite loop. The presence of a shell script as
12400 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12401 # the gcc/collect-ld script. So we need to know how libtool works, or
12402 # exec-tool will fail.
12403
12404
12405 case `pwd` in
12406 *\ * | *\ *)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12408 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12409 esac
12410
12411
12412
12413 macro_version='2.2.7a'
12414 macro_revision='1.3134'
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428 ltmain="$ac_aux_dir/ltmain.sh"
12429
12430 # Backslashify metacharacters that are still active within
12431 # double-quoted strings.
12432 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12433
12434 # Same as above, but do not quote variable references.
12435 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12436
12437 # Sed substitution to delay expansion of an escaped shell variable in a
12438 # double_quote_subst'ed string.
12439 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12440
12441 # Sed substitution to delay expansion of an escaped single quote.
12442 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12443
12444 # Sed substitution to avoid accidental globbing in evaled expressions
12445 no_glob_subst='s/\*/\\\*/g'
12446
12447 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12449 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12452 $as_echo_n "checking how to print strings... " >&6; }
12453 # Test print first, because it will be a builtin if present.
12454 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12455 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12456 ECHO='print -r --'
12457 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12458 ECHO='printf %s\n'
12459 else
12460 # Use this function as a fallback that always works.
12461 func_fallback_echo ()
12462 {
12463 eval 'cat <<_LTECHO_EOF
12464 $1
12465 _LTECHO_EOF'
12466 }
12467 ECHO='func_fallback_echo'
12468 fi
12469
12470 # func_echo_all arg...
12471 # Invoke $ECHO with all args, space-separated.
12472 func_echo_all ()
12473 {
12474 $ECHO ""
12475 }
12476
12477 case "$ECHO" in
12478 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12479 $as_echo "printf" >&6; } ;;
12480 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12481 $as_echo "print -r" >&6; } ;;
12482 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12483 $as_echo "cat" >&6; } ;;
12484 esac
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12500 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12501 if test "${ac_cv_path_SED+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12505 for ac_i in 1 2 3 4 5 6 7; do
12506 ac_script="$ac_script$as_nl$ac_script"
12507 done
12508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12509 { ac_script=; unset ac_script;}
12510 if test -z "$SED"; then
12511 ac_path_SED_found=false
12512 # Loop through the user's path and test for each of PROGNAME-LIST
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12515 do
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_prog in sed gsed; do
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12522 # Check for GNU ac_path_SED and select it if it is found.
12523 # Check for GNU $ac_path_SED
12524 case `"$ac_path_SED" --version 2>&1` in
12525 *GNU*)
12526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12527 *)
12528 ac_count=0
12529 $as_echo_n 0123456789 >"conftest.in"
12530 while :
12531 do
12532 cat "conftest.in" "conftest.in" >"conftest.tmp"
12533 mv "conftest.tmp" "conftest.in"
12534 cp "conftest.in" "conftest.nl"
12535 $as_echo '' >> "conftest.nl"
12536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12538 as_fn_arith $ac_count + 1 && ac_count=$as_val
12539 if test $ac_count -gt ${ac_path_SED_max-0}; then
12540 # Best one so far, save it but keep looking for a better one
12541 ac_cv_path_SED="$ac_path_SED"
12542 ac_path_SED_max=$ac_count
12543 fi
12544 # 10*(2^10) chars as input seems more than enough
12545 test $ac_count -gt 10 && break
12546 done
12547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12548 esac
12549
12550 $ac_path_SED_found && break 3
12551 done
12552 done
12553 done
12554 IFS=$as_save_IFS
12555 if test -z "$ac_cv_path_SED"; then
12556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12557 fi
12558 else
12559 ac_cv_path_SED=$SED
12560 fi
12561
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12564 $as_echo "$ac_cv_path_SED" >&6; }
12565 SED="$ac_cv_path_SED"
12566 rm -f conftest.sed
12567
12568 test -z "$SED" && SED=sed
12569 Xsed="$SED -e 1s/^X//"
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12582 $as_echo_n "checking for fgrep... " >&6; }
12583 if test "${ac_cv_path_FGREP+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12587 then ac_cv_path_FGREP="$GREP -F"
12588 else
12589 if test -z "$FGREP"; then
12590 ac_path_FGREP_found=false
12591 # Loop through the user's path and test for each of PROGNAME-LIST
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12594 do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
12597 for ac_prog in fgrep; do
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12600 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12601 # Check for GNU ac_path_FGREP and select it if it is found.
12602 # Check for GNU $ac_path_FGREP
12603 case `"$ac_path_FGREP" --version 2>&1` in
12604 *GNU*)
12605 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12606 *)
12607 ac_count=0
12608 $as_echo_n 0123456789 >"conftest.in"
12609 while :
12610 do
12611 cat "conftest.in" "conftest.in" >"conftest.tmp"
12612 mv "conftest.tmp" "conftest.in"
12613 cp "conftest.in" "conftest.nl"
12614 $as_echo 'FGREP' >> "conftest.nl"
12615 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12617 as_fn_arith $ac_count + 1 && ac_count=$as_val
12618 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12619 # Best one so far, save it but keep looking for a better one
12620 ac_cv_path_FGREP="$ac_path_FGREP"
12621 ac_path_FGREP_max=$ac_count
12622 fi
12623 # 10*(2^10) chars as input seems more than enough
12624 test $ac_count -gt 10 && break
12625 done
12626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12627 esac
12628
12629 $ac_path_FGREP_found && break 3
12630 done
12631 done
12632 done
12633 IFS=$as_save_IFS
12634 if test -z "$ac_cv_path_FGREP"; then
12635 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12636 fi
12637 else
12638 ac_cv_path_FGREP=$FGREP
12639 fi
12640
12641 fi
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12644 $as_echo "$ac_cv_path_FGREP" >&6; }
12645 FGREP="$ac_cv_path_FGREP"
12646
12647
12648 test -z "$GREP" && GREP=grep
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668 # Check whether --with-gnu-ld was given.
12669 if test "${with_gnu_ld+set}" = set; then :
12670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12671 else
12672 with_gnu_ld=no
12673 fi
12674
12675 ac_prog=ld
12676 if test "$GCC" = yes; then
12677 # Check if gcc -print-prog-name=ld gives a path.
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12679 $as_echo_n "checking for ld used by $CC... " >&6; }
12680 case $host in
12681 *-*-mingw*)
12682 # gcc leaves a trailing carriage return which upsets mingw
12683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12684 *)
12685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12686 esac
12687 case $ac_prog in
12688 # Accept absolute paths.
12689 [\\/]* | ?:[\\/]*)
12690 re_direlt='/[^/][^/]*/\.\./'
12691 # Canonicalize the pathname of ld
12692 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12693 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12694 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12695 done
12696 test -z "$LD" && LD="$ac_prog"
12697 ;;
12698 "")
12699 # If it fails, then pretend we aren't using GCC.
12700 ac_prog=ld
12701 ;;
12702 *)
12703 # If it is relative, then search for the first ld in PATH.
12704 with_gnu_ld=unknown
12705 ;;
12706 esac
12707 elif test "$with_gnu_ld" = yes; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12709 $as_echo_n "checking for GNU ld... " >&6; }
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12712 $as_echo_n "checking for non-GNU ld... " >&6; }
12713 fi
12714 if test "${lt_cv_path_LD+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 if test -z "$LD"; then
12718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12719 for ac_dir in $PATH; do
12720 IFS="$lt_save_ifs"
12721 test -z "$ac_dir" && ac_dir=.
12722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12723 lt_cv_path_LD="$ac_dir/$ac_prog"
12724 # Check to see if the program is GNU ld. I'd rather use --version,
12725 # but apparently some variants of GNU ld only accept -v.
12726 # Break only if it was the GNU/non-GNU ld that we prefer.
12727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12728 *GNU* | *'with BFD'*)
12729 test "$with_gnu_ld" != no && break
12730 ;;
12731 *)
12732 test "$with_gnu_ld" != yes && break
12733 ;;
12734 esac
12735 fi
12736 done
12737 IFS="$lt_save_ifs"
12738 else
12739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12740 fi
12741 fi
12742
12743 LD="$lt_cv_path_LD"
12744 if test -n "$LD"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12746 $as_echo "$LD" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12753 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12754 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12758 case `$LD -v 2>&1 </dev/null` in
12759 *GNU* | *'with BFD'*)
12760 lt_cv_prog_gnu_ld=yes
12761 ;;
12762 *)
12763 lt_cv_prog_gnu_ld=no
12764 ;;
12765 esac
12766 fi
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12768 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12769 with_gnu_ld=$lt_cv_prog_gnu_ld
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12780 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12781 if test "${lt_cv_path_NM+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 if test -n "$NM"; then
12785 # Let the user override the test.
12786 lt_cv_path_NM="$NM"
12787 else
12788 lt_nm_to_check="${ac_tool_prefix}nm"
12789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12790 lt_nm_to_check="$lt_nm_to_check nm"
12791 fi
12792 for lt_tmp_nm in $lt_nm_to_check; do
12793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12795 IFS="$lt_save_ifs"
12796 test -z "$ac_dir" && ac_dir=.
12797 tmp_nm="$ac_dir/$lt_tmp_nm"
12798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12799 # Check to see if the nm accepts a BSD-compat flag.
12800 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12801 # nm: unknown option "B" ignored
12802 # Tru64's nm complains that /dev/null is an invalid object file
12803 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12804 */dev/null* | *'Invalid file or object type'*)
12805 lt_cv_path_NM="$tmp_nm -B"
12806 break
12807 ;;
12808 *)
12809 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12810 */dev/null*)
12811 lt_cv_path_NM="$tmp_nm -p"
12812 break
12813 ;;
12814 *)
12815 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12816 continue # so that we can try to find one that supports BSD flags
12817 ;;
12818 esac
12819 ;;
12820 esac
12821 fi
12822 done
12823 IFS="$lt_save_ifs"
12824 done
12825 : ${lt_cv_path_NM=no}
12826 fi
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12829 $as_echo "$lt_cv_path_NM" >&6; }
12830 if test "$lt_cv_path_NM" != "no"; then
12831 NM="$lt_cv_path_NM"
12832 else
12833 # Didn't find any BSD compatible name lister, look for dumpbin.
12834 if test -n "$DUMPBIN"; then :
12835 # Let the user override the test.
12836 else
12837 if test -n "$ac_tool_prefix"; then
12838 for ac_prog in dumpbin "link -dump"
12839 do
12840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test -n "$DUMPBIN"; then
12848 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 fi
12866 fi
12867 DUMPBIN=$ac_cv_prog_DUMPBIN
12868 if test -n "$DUMPBIN"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12870 $as_echo "$DUMPBIN" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875
12876
12877 test -n "$DUMPBIN" && break
12878 done
12879 fi
12880 if test -z "$DUMPBIN"; then
12881 ac_ct_DUMPBIN=$DUMPBIN
12882 for ac_prog in dumpbin "link -dump"
12883 do
12884 # Extract the first word of "$ac_prog", so it can be a program name with args.
12885 set dummy $ac_prog; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$ac_ct_DUMPBIN"; then
12892 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12912 if test -n "$ac_ct_DUMPBIN"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12914 $as_echo "$ac_ct_DUMPBIN" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921 test -n "$ac_ct_DUMPBIN" && break
12922 done
12923
12924 if test "x$ac_ct_DUMPBIN" = x; then
12925 DUMPBIN=":"
12926 else
12927 case $cross_compiling:$ac_tool_warned in
12928 yes:)
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12931 ac_tool_warned=yes ;;
12932 esac
12933 DUMPBIN=$ac_ct_DUMPBIN
12934 fi
12935 fi
12936
12937 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12938 *COFF*)
12939 DUMPBIN="$DUMPBIN -symbols"
12940 ;;
12941 *)
12942 DUMPBIN=:
12943 ;;
12944 esac
12945 fi
12946
12947 if test "$DUMPBIN" != ":"; then
12948 NM="$DUMPBIN"
12949 fi
12950 fi
12951 test -z "$NM" && NM=nm
12952
12953
12954
12955
12956
12957
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12959 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12960 if test "${lt_cv_nm_interface+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 lt_cv_nm_interface="BSD nm"
12964 echo "int some_variable = 0;" > conftest.$ac_ext
12965 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12966 (eval "$ac_compile" 2>conftest.err)
12967 cat conftest.err >&5
12968 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12969 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12970 cat conftest.err >&5
12971 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12972 cat conftest.out >&5
12973 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12974 lt_cv_nm_interface="MS dumpbin"
12975 fi
12976 rm -f conftest*
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12979 $as_echo "$lt_cv_nm_interface" >&6; }
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12982 $as_echo_n "checking whether ln -s works... " >&6; }
12983 LN_S=$as_ln_s
12984 if test "$LN_S" = "ln -s"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986 $as_echo "yes" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12989 $as_echo "no, using $LN_S" >&6; }
12990 fi
12991
12992 # find the maximum length of command line arguments
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12994 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12995 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 i=0
12999 teststring="ABCD"
13000
13001 case $build_os in
13002 msdosdjgpp*)
13003 # On DJGPP, this test can blow up pretty badly due to problems in libc
13004 # (any single argument exceeding 2000 bytes causes a buffer overrun
13005 # during glob expansion). Even if it were fixed, the result of this
13006 # check would be larger than it should be.
13007 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13008 ;;
13009
13010 gnu*)
13011 # Under GNU Hurd, this test is not required because there is
13012 # no limit to the length of command line arguments.
13013 # Libtool will interpret -1 as no limit whatsoever
13014 lt_cv_sys_max_cmd_len=-1;
13015 ;;
13016
13017 cygwin* | mingw* | cegcc*)
13018 # On Win9x/ME, this test blows up -- it succeeds, but takes
13019 # about 5 minutes as the teststring grows exponentially.
13020 # Worse, since 9x/ME are not pre-emptively multitasking,
13021 # you end up with a "frozen" computer, even though with patience
13022 # the test eventually succeeds (with a max line length of 256k).
13023 # Instead, let's just punt: use the minimum linelength reported by
13024 # all of the supported platforms: 8192 (on NT/2K/XP).
13025 lt_cv_sys_max_cmd_len=8192;
13026 ;;
13027
13028 mint*)
13029 # On MiNT this can take a long time and run out of memory.
13030 lt_cv_sys_max_cmd_len=8192;
13031 ;;
13032
13033 amigaos*)
13034 # On AmigaOS with pdksh, this test takes hours, literally.
13035 # So we just punt and use a minimum line length of 8192.
13036 lt_cv_sys_max_cmd_len=8192;
13037 ;;
13038
13039 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13040 # This has been around since 386BSD, at least. Likely further.
13041 if test -x /sbin/sysctl; then
13042 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13043 elif test -x /usr/sbin/sysctl; then
13044 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13045 else
13046 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13047 fi
13048 # And add a safety zone
13049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13051 ;;
13052
13053 interix*)
13054 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13055 lt_cv_sys_max_cmd_len=196608
13056 ;;
13057
13058 osf*)
13059 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13060 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13061 # nice to cause kernel panics so lets avoid the loop below.
13062 # First set a reasonable default.
13063 lt_cv_sys_max_cmd_len=16384
13064 #
13065 if test -x /sbin/sysconfig; then
13066 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13067 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13068 esac
13069 fi
13070 ;;
13071 sco3.2v5*)
13072 lt_cv_sys_max_cmd_len=102400
13073 ;;
13074 sysv5* | sco5v6* | sysv4.2uw2*)
13075 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13076 if test -n "$kargmax"; then
13077 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13078 else
13079 lt_cv_sys_max_cmd_len=32768
13080 fi
13081 ;;
13082 *)
13083 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13084 if test -n "$lt_cv_sys_max_cmd_len"; then
13085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13087 else
13088 # Make teststring a little bigger before we do anything with it.
13089 # a 1K string should be a reasonable start.
13090 for i in 1 2 3 4 5 6 7 8 ; do
13091 teststring=$teststring$teststring
13092 done
13093 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13094 # If test is not a shell built-in, we'll probably end up computing a
13095 # maximum length that is only half of the actual maximum length, but
13096 # we can't tell.
13097 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13098 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13099 test $i != 17 # 1/2 MB should be enough
13100 do
13101 i=`expr $i + 1`
13102 teststring=$teststring$teststring
13103 done
13104 # Only check the string length outside the loop.
13105 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13106 teststring=
13107 # Add a significant safety factor because C++ compilers can tack on
13108 # massive amounts of additional arguments before passing them to the
13109 # linker. It appears as though 1/2 is a usable value.
13110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13111 fi
13112 ;;
13113 esac
13114
13115 fi
13116
13117 if test -n $lt_cv_sys_max_cmd_len ; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13119 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13122 $as_echo "none" >&6; }
13123 fi
13124 max_cmd_len=$lt_cv_sys_max_cmd_len
13125
13126
13127
13128
13129
13130
13131 : ${CP="cp -f"}
13132 : ${MV="mv -f"}
13133 : ${RM="rm -f"}
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13136 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13137 # Try some XSI features
13138 xsi_shell=no
13139 ( _lt_dummy="a/b/c"
13140 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13141 = c,a/b,, \
13142 && eval 'test $(( 1 + 1 )) -eq 2 \
13143 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13144 && xsi_shell=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13146 $as_echo "$xsi_shell" >&6; }
13147
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13150 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13151 lt_shell_append=no
13152 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13153 >/dev/null 2>&1 \
13154 && lt_shell_append=yes
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13156 $as_echo "$lt_shell_append" >&6; }
13157
13158
13159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13160 lt_unset=unset
13161 else
13162 lt_unset=false
13163 fi
13164
13165
13166
13167
13168
13169 # test EBCDIC or ASCII
13170 case `echo X|tr X '\101'` in
13171 A) # ASCII based system
13172 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13173 lt_SP2NL='tr \040 \012'
13174 lt_NL2SP='tr \015\012 \040\040'
13175 ;;
13176 *) # EBCDIC based system
13177 lt_SP2NL='tr \100 \n'
13178 lt_NL2SP='tr \r\n \100\100'
13179 ;;
13180 esac
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13191 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13192 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 lt_cv_ld_reload_flag='-r'
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13198 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13199 reload_flag=$lt_cv_ld_reload_flag
13200 case $reload_flag in
13201 "" | " "*) ;;
13202 *) reload_flag=" $reload_flag" ;;
13203 esac
13204 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13205 case $host_os in
13206 darwin*)
13207 if test "$GCC" = yes; then
13208 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13209 else
13210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13211 fi
13212 ;;
13213 esac
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 if test -n "$OBJDUMP"; then
13232 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 fi
13250 fi
13251 OBJDUMP=$ac_cv_prog_OBJDUMP
13252 if test -n "$OBJDUMP"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13254 $as_echo "$OBJDUMP" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259
13260
13261 fi
13262 if test -z "$ac_cv_prog_OBJDUMP"; then
13263 ac_ct_OBJDUMP=$OBJDUMP
13264 # Extract the first word of "objdump", so it can be a program name with args.
13265 set dummy objdump; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$ac_ct_OBJDUMP"; then
13272 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13292 if test -n "$ac_ct_OBJDUMP"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13294 $as_echo "$ac_ct_OBJDUMP" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298 fi
13299
13300 if test "x$ac_ct_OBJDUMP" = x; then
13301 OBJDUMP="false"
13302 else
13303 case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307 ac_tool_warned=yes ;;
13308 esac
13309 OBJDUMP=$ac_ct_OBJDUMP
13310 fi
13311 else
13312 OBJDUMP="$ac_cv_prog_OBJDUMP"
13313 fi
13314
13315 test -z "$OBJDUMP" && OBJDUMP=objdump
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13326 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13327 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 lt_cv_file_magic_cmd='$MAGIC_CMD'
13331 lt_cv_file_magic_test_file=
13332 lt_cv_deplibs_check_method='unknown'
13333 # Need to set the preceding variable on all platforms that support
13334 # interlibrary dependencies.
13335 # 'none' -- dependencies not supported.
13336 # `unknown' -- same as none, but documents that we really don't know.
13337 # 'pass_all' -- all dependencies passed with no checks.
13338 # 'test_compile' -- check by making test program.
13339 # 'file_magic [[regex]]' -- check by looking for files in library path
13340 # which responds to the $file_magic_cmd with a given extended regex.
13341 # If you have `file' or equivalent on your system and you're not sure
13342 # whether `pass_all' will *always* work, you probably want this one.
13343
13344 case $host_os in
13345 aix[4-9]*)
13346 lt_cv_deplibs_check_method=pass_all
13347 ;;
13348
13349 beos*)
13350 lt_cv_deplibs_check_method=pass_all
13351 ;;
13352
13353 bsdi[45]*)
13354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13355 lt_cv_file_magic_cmd='/usr/bin/file -L'
13356 lt_cv_file_magic_test_file=/shlib/libc.so
13357 ;;
13358
13359 cygwin*)
13360 # func_win32_libid is a shell function defined in ltmain.sh
13361 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13362 lt_cv_file_magic_cmd='func_win32_libid'
13363 ;;
13364
13365 mingw* | pw32*)
13366 # Base MSYS/MinGW do not provide the 'file' command needed by
13367 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13368 # unless we find 'file', for example because we are cross-compiling.
13369 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13370 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13372 lt_cv_file_magic_cmd='func_win32_libid'
13373 else
13374 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13375 lt_cv_file_magic_cmd='$OBJDUMP -f'
13376 fi
13377 ;;
13378
13379 cegcc*)
13380 # use the weaker test based on 'objdump'. See mingw*.
13381 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13382 lt_cv_file_magic_cmd='$OBJDUMP -f'
13383 ;;
13384
13385 darwin* | rhapsody*)
13386 lt_cv_deplibs_check_method=pass_all
13387 ;;
13388
13389 freebsd* | dragonfly*)
13390 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13391 case $host_cpu in
13392 i*86 )
13393 # Not sure whether the presence of OpenBSD here was a mistake.
13394 # Let's accept both of them until this is cleared up.
13395 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13396 lt_cv_file_magic_cmd=/usr/bin/file
13397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13398 ;;
13399 esac
13400 else
13401 lt_cv_deplibs_check_method=pass_all
13402 fi
13403 ;;
13404
13405 gnu*)
13406 lt_cv_deplibs_check_method=pass_all
13407 ;;
13408
13409 haiku*)
13410 lt_cv_deplibs_check_method=pass_all
13411 ;;
13412
13413 hpux10.20* | hpux11*)
13414 lt_cv_file_magic_cmd=/usr/bin/file
13415 case $host_cpu in
13416 ia64*)
13417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13419 ;;
13420 hppa*64*)
13421 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]'
13422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13423 ;;
13424 *)
13425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13427 ;;
13428 esac
13429 ;;
13430
13431 interix[3-9]*)
13432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13434 ;;
13435
13436 irix5* | irix6* | nonstopux*)
13437 case $LD in
13438 *-32|*"-32 ") libmagic=32-bit;;
13439 *-n32|*"-n32 ") libmagic=N32;;
13440 *-64|*"-64 ") libmagic=64-bit;;
13441 *) libmagic=never-match;;
13442 esac
13443 lt_cv_deplibs_check_method=pass_all
13444 ;;
13445
13446 # This must be Linux ELF.
13447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13448 lt_cv_deplibs_check_method=pass_all
13449 ;;
13450
13451 netbsd*)
13452 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13454 else
13455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13456 fi
13457 ;;
13458
13459 newos6*)
13460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13461 lt_cv_file_magic_cmd=/usr/bin/file
13462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13463 ;;
13464
13465 *nto* | *qnx*)
13466 lt_cv_deplibs_check_method=pass_all
13467 ;;
13468
13469 openbsd*)
13470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13472 else
13473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13474 fi
13475 ;;
13476
13477 osf3* | osf4* | osf5*)
13478 lt_cv_deplibs_check_method=pass_all
13479 ;;
13480
13481 rdos*)
13482 lt_cv_deplibs_check_method=pass_all
13483 ;;
13484
13485 solaris*)
13486 lt_cv_deplibs_check_method=pass_all
13487 ;;
13488
13489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13490 lt_cv_deplibs_check_method=pass_all
13491 ;;
13492
13493 sysv4 | sysv4.3*)
13494 case $host_vendor in
13495 motorola)
13496 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]'
13497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13498 ;;
13499 ncr)
13500 lt_cv_deplibs_check_method=pass_all
13501 ;;
13502 sequent)
13503 lt_cv_file_magic_cmd='/bin/file'
13504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13505 ;;
13506 sni)
13507 lt_cv_file_magic_cmd='/bin/file'
13508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13509 lt_cv_file_magic_test_file=/lib/libc.so
13510 ;;
13511 siemens)
13512 lt_cv_deplibs_check_method=pass_all
13513 ;;
13514 pc)
13515 lt_cv_deplibs_check_method=pass_all
13516 ;;
13517 esac
13518 ;;
13519
13520 tpf*)
13521 lt_cv_deplibs_check_method=pass_all
13522 ;;
13523 esac
13524
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13528 file_magic_cmd=$lt_cv_file_magic_cmd
13529 deplibs_check_method=$lt_cv_deplibs_check_method
13530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543 if test -n "$ac_tool_prefix"; then
13544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13545 set dummy ${ac_tool_prefix}ar; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_prog_AR+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$AR"; then
13552 ac_cv_prog_AR="$AR" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_AR="${ac_tool_prefix}ar"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13564 fi
13565 done
13566 done
13567 IFS=$as_save_IFS
13568
13569 fi
13570 fi
13571 AR=$ac_cv_prog_AR
13572 if test -n "$AR"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13574 $as_echo "$AR" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578 fi
13579
13580
13581 fi
13582 if test -z "$ac_cv_prog_AR"; then
13583 ac_ct_AR=$AR
13584 # Extract the first word of "ar", so it can be a program name with args.
13585 set dummy ar; ac_word=$2
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587 $as_echo_n "checking for $ac_word... " >&6; }
13588 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 if test -n "$ac_ct_AR"; then
13592 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13593 else
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13601 ac_cv_prog_ac_ct_AR="ar"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605 done
13606 done
13607 IFS=$as_save_IFS
13608
13609 fi
13610 fi
13611 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13612 if test -n "$ac_ct_AR"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13614 $as_echo "$ac_ct_AR" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13618 fi
13619
13620 if test "x$ac_ct_AR" = x; then
13621 AR="false"
13622 else
13623 case $cross_compiling:$ac_tool_warned in
13624 yes:)
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13627 ac_tool_warned=yes ;;
13628 esac
13629 AR=$ac_ct_AR
13630 fi
13631 else
13632 AR="$ac_cv_prog_AR"
13633 fi
13634
13635 test -z "$AR" && AR=ar
13636 test -z "$AR_FLAGS" && AR_FLAGS=cru
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648 if test -n "$ac_tool_prefix"; then
13649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13650 set dummy ${ac_tool_prefix}strip; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if test "${ac_cv_prog_STRIP+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 if test -n "$STRIP"; then
13657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13661 do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670 done
13671 done
13672 IFS=$as_save_IFS
13673
13674 fi
13675 fi
13676 STRIP=$ac_cv_prog_STRIP
13677 if test -n "$STRIP"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13679 $as_echo "$STRIP" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683 fi
13684
13685
13686 fi
13687 if test -z "$ac_cv_prog_STRIP"; then
13688 ac_ct_STRIP=$STRIP
13689 # Extract the first word of "strip", so it can be a program name with args.
13690 set dummy strip; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692 $as_echo_n "checking for $ac_word... " >&6; }
13693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 if test -n "$ac_ct_STRIP"; then
13697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13698 else
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13701 do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13706 ac_cv_prog_ac_ct_STRIP="strip"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710 done
13711 done
13712 IFS=$as_save_IFS
13713
13714 fi
13715 fi
13716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13717 if test -n "$ac_ct_STRIP"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13719 $as_echo "$ac_ct_STRIP" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13723 fi
13724
13725 if test "x$ac_ct_STRIP" = x; then
13726 STRIP=":"
13727 else
13728 case $cross_compiling:$ac_tool_warned in
13729 yes:)
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13732 ac_tool_warned=yes ;;
13733 esac
13734 STRIP=$ac_ct_STRIP
13735 fi
13736 else
13737 STRIP="$ac_cv_prog_STRIP"
13738 fi
13739
13740 test -z "$STRIP" && STRIP=:
13741
13742
13743
13744
13745
13746
13747 if test -n "$ac_tool_prefix"; then
13748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 if test -n "$RANLIB"; then
13756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13757 else
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13760 do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13768 fi
13769 done
13770 done
13771 IFS=$as_save_IFS
13772
13773 fi
13774 fi
13775 RANLIB=$ac_cv_prog_RANLIB
13776 if test -n "$RANLIB"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13778 $as_echo "$RANLIB" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782 fi
13783
13784
13785 fi
13786 if test -z "$ac_cv_prog_RANLIB"; then
13787 ac_ct_RANLIB=$RANLIB
13788 # Extract the first word of "ranlib", so it can be a program name with args.
13789 set dummy ranlib; ac_word=$2
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 $as_echo_n "checking for $ac_word... " >&6; }
13792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 if test -n "$ac_ct_RANLIB"; then
13796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13797 else
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13800 do
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13805 ac_cv_prog_ac_ct_RANLIB="ranlib"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13808 fi
13809 done
13810 done
13811 IFS=$as_save_IFS
13812
13813 fi
13814 fi
13815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13816 if test -n "$ac_ct_RANLIB"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13818 $as_echo "$ac_ct_RANLIB" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823
13824 if test "x$ac_ct_RANLIB" = x; then
13825 RANLIB=":"
13826 else
13827 case $cross_compiling:$ac_tool_warned in
13828 yes:)
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13831 ac_tool_warned=yes ;;
13832 esac
13833 RANLIB=$ac_ct_RANLIB
13834 fi
13835 else
13836 RANLIB="$ac_cv_prog_RANLIB"
13837 fi
13838
13839 test -z "$RANLIB" && RANLIB=:
13840
13841
13842
13843
13844
13845
13846 # Determine commands to create old-style static archives.
13847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13848 old_postinstall_cmds='chmod 644 $oldlib'
13849 old_postuninstall_cmds=
13850
13851 if test -n "$RANLIB"; then
13852 case $host_os in
13853 openbsd*)
13854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13855 ;;
13856 *)
13857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13858 ;;
13859 esac
13860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13861 fi
13862
13863 case $host_os in
13864 darwin*)
13865 lock_old_archive_extraction=yes ;;
13866 *)
13867 lock_old_archive_extraction=no ;;
13868 esac
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
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908 # If no C compiler was specified, use CC.
13909 LTCC=${LTCC-"$CC"}
13910
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13913
13914 # Allow CC to be a program name with arguments.
13915 compiler=$CC
13916
13917
13918 # Check for command to grab the raw symbol name followed by C symbol from nm.
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13920 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13921 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924
13925 # These are sane defaults that work on at least a few old systems.
13926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13927
13928 # Character class describing NM global symbol codes.
13929 symcode='[BCDEGRST]'
13930
13931 # Regexp to match symbols that can be accessed directly from C.
13932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13933
13934 # Define system-specific variables.
13935 case $host_os in
13936 aix*)
13937 symcode='[BCDT]'
13938 ;;
13939 cygwin* | mingw* | pw32* | cegcc*)
13940 symcode='[ABCDGISTW]'
13941 ;;
13942 hpux*)
13943 if test "$host_cpu" = ia64; then
13944 symcode='[ABCDEGRST]'
13945 fi
13946 ;;
13947 irix* | nonstopux*)
13948 symcode='[BCDEGRST]'
13949 ;;
13950 osf*)
13951 symcode='[BCDEGQRST]'
13952 ;;
13953 solaris*)
13954 symcode='[BDRT]'
13955 ;;
13956 sco3.2v5*)
13957 symcode='[DT]'
13958 ;;
13959 sysv4.2uw2*)
13960 symcode='[DT]'
13961 ;;
13962 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13963 symcode='[ABDT]'
13964 ;;
13965 sysv4)
13966 symcode='[DFNSTU]'
13967 ;;
13968 esac
13969
13970 # If we're using GNU nm, then use its standard symbol codes.
13971 case `$NM -V 2>&1` in
13972 *GNU* | *'with BFD'*)
13973 symcode='[ABCDGIRSTW]' ;;
13974 esac
13975
13976 # Transform an extracted symbol line into a proper C declaration.
13977 # Some systems (esp. on ia64) link data and code symbols differently,
13978 # so use this general approach.
13979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13980
13981 # Transform an extracted symbol line into symbol name and symbol address
13982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13983 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'"
13984
13985 # Handle CRLF in mingw tool chain
13986 opt_cr=
13987 case $build_os in
13988 mingw*)
13989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13990 ;;
13991 esac
13992
13993 # Try without a prefix underscore, then with it.
13994 for ac_symprfx in "" "_"; do
13995
13996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13997 symxfrm="\\1 $ac_symprfx\\2 \\2"
13998
13999 # Write the raw and C identifiers.
14000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14001 # Fake it for dumpbin and say T for any non-static function
14002 # and D for any global variable.
14003 # Also find C++ and __fastcall symbols from MSVC++,
14004 # which start with @ or ?.
14005 lt_cv_sys_global_symbol_pipe="$AWK '"\
14006 " {last_section=section; section=\$ 3};"\
14007 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14008 " \$ 0!~/External *\|/{next};"\
14009 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14010 " {if(hide[section]) next};"\
14011 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14012 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14013 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14014 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14015 " ' prfx=^$ac_symprfx"
14016 else
14017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14018 fi
14019
14020 # Check to see that the pipe works correctly.
14021 pipe_works=no
14022
14023 rm -f conftest*
14024 cat > conftest.$ac_ext <<_LT_EOF
14025 #ifdef __cplusplus
14026 extern "C" {
14027 #endif
14028 char nm_test_var;
14029 void nm_test_func(void);
14030 void nm_test_func(void){}
14031 #ifdef __cplusplus
14032 }
14033 #endif
14034 int main(){nm_test_var='a';nm_test_func();return(0);}
14035 _LT_EOF
14036
14037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14041 test $ac_status = 0; }; then
14042 # Now try to grab the symbols.
14043 nlist=conftest.nm
14044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14045 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14046 ac_status=$?
14047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14048 test $ac_status = 0; } && test -s "$nlist"; then
14049 # Try sorting and uniquifying the output.
14050 if sort "$nlist" | uniq > "$nlist"T; then
14051 mv -f "$nlist"T "$nlist"
14052 else
14053 rm -f "$nlist"T
14054 fi
14055
14056 # Make sure that we snagged all the symbols we need.
14057 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14058 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14059 cat <<_LT_EOF > conftest.$ac_ext
14060 #ifdef __cplusplus
14061 extern "C" {
14062 #endif
14063
14064 _LT_EOF
14065 # Now generate the symbol file.
14066 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14067
14068 cat <<_LT_EOF >> conftest.$ac_ext
14069
14070 /* The mapping between symbol names and symbols. */
14071 const struct {
14072 const char *name;
14073 void *address;
14074 }
14075 lt__PROGRAM__LTX_preloaded_symbols[] =
14076 {
14077 { "@PROGRAM@", (void *) 0 },
14078 _LT_EOF
14079 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14080 cat <<\_LT_EOF >> conftest.$ac_ext
14081 {0, (void *) 0}
14082 };
14083
14084 /* This works around a problem in FreeBSD linker */
14085 #ifdef FREEBSD_WORKAROUND
14086 static const void *lt_preloaded_setup() {
14087 return lt__PROGRAM__LTX_preloaded_symbols;
14088 }
14089 #endif
14090
14091 #ifdef __cplusplus
14092 }
14093 #endif
14094 _LT_EOF
14095 # Now try linking the two files.
14096 mv conftest.$ac_objext conftstm.$ac_objext
14097 lt_save_LIBS="$LIBS"
14098 lt_save_CFLAGS="$CFLAGS"
14099 LIBS="conftstm.$ac_objext"
14100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14102 (eval $ac_link) 2>&5
14103 ac_status=$?
14104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14106 pipe_works=yes
14107 fi
14108 LIBS="$lt_save_LIBS"
14109 CFLAGS="$lt_save_CFLAGS"
14110 else
14111 echo "cannot find nm_test_func in $nlist" >&5
14112 fi
14113 else
14114 echo "cannot find nm_test_var in $nlist" >&5
14115 fi
14116 else
14117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14118 fi
14119 else
14120 echo "$progname: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14122 fi
14123 rm -rf conftest* conftst*
14124
14125 # Do not use the global_symbol_pipe unless it works.
14126 if test "$pipe_works" = yes; then
14127 break
14128 else
14129 lt_cv_sys_global_symbol_pipe=
14130 fi
14131 done
14132
14133 fi
14134
14135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14136 lt_cv_sys_global_symbol_to_cdecl=
14137 fi
14138 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14140 $as_echo "failed" >&6; }
14141 else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14143 $as_echo "ok" >&6; }
14144 fi
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167 # Check whether --enable-libtool-lock was given.
14168 if test "${enable_libtool_lock+set}" = set; then :
14169 enableval=$enable_libtool_lock;
14170 fi
14171
14172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14173
14174 # Some flags need to be propagated to the compiler or linker for good
14175 # libtool support.
14176 case $host in
14177 ia64-*-hpux*)
14178 # Find out which ABI we are using.
14179 echo 'int i;' > conftest.$ac_ext
14180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14184 test $ac_status = 0; }; then
14185 case `/usr/bin/file conftest.$ac_objext` in
14186 *ELF-32*)
14187 HPUX_IA64_MODE="32"
14188 ;;
14189 *ELF-64*)
14190 HPUX_IA64_MODE="64"
14191 ;;
14192 esac
14193 fi
14194 rm -rf conftest*
14195 ;;
14196 *-*-irix6*)
14197 # Find out which ABI we are using.
14198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14200 (eval $ac_compile) 2>&5
14201 ac_status=$?
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; }; then
14204 if test "$lt_cv_prog_gnu_ld" = yes; then
14205 case `/usr/bin/file conftest.$ac_objext` in
14206 *32-bit*)
14207 LD="${LD-ld} -melf32bsmip"
14208 ;;
14209 *N32*)
14210 LD="${LD-ld} -melf32bmipn32"
14211 ;;
14212 *64-bit*)
14213 LD="${LD-ld} -melf64bmip"
14214 ;;
14215 esac
14216 else
14217 case `/usr/bin/file conftest.$ac_objext` in
14218 *32-bit*)
14219 LD="${LD-ld} -32"
14220 ;;
14221 *N32*)
14222 LD="${LD-ld} -n32"
14223 ;;
14224 *64-bit*)
14225 LD="${LD-ld} -64"
14226 ;;
14227 esac
14228 fi
14229 fi
14230 rm -rf conftest*
14231 ;;
14232
14233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14235 # Find out which ABI we are using.
14236 echo 'int i;' > conftest.$ac_ext
14237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14238 (eval $ac_compile) 2>&5
14239 ac_status=$?
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; then
14242 case `/usr/bin/file conftest.o` in
14243 *32-bit*)
14244 case $host in
14245 x86_64-*kfreebsd*-gnu)
14246 LD="${LD-ld} -m elf_i386_fbsd"
14247 ;;
14248 x86_64-*linux*)
14249 case `/usr/bin/file conftest.o` in
14250 *x86-64*)
14251 LD="${LD-ld} -m elf32_x86_64"
14252 ;;
14253 *)
14254 LD="${LD-ld} -m elf_i386"
14255 ;;
14256 esac
14257 ;;
14258 powerpc64le-*linux*)
14259 LD="${LD-ld} -m elf32lppclinux"
14260 ;;
14261 powerpc64-*linux*)
14262 LD="${LD-ld} -m elf32ppclinux"
14263 ;;
14264 s390x-*linux*)
14265 LD="${LD-ld} -m elf_s390"
14266 ;;
14267 sparc64-*linux*)
14268 LD="${LD-ld} -m elf32_sparc"
14269 ;;
14270 esac
14271 ;;
14272 *64-bit*)
14273 case $host in
14274 x86_64-*kfreebsd*-gnu)
14275 LD="${LD-ld} -m elf_x86_64_fbsd"
14276 ;;
14277 x86_64-*linux*)
14278 LD="${LD-ld} -m elf_x86_64"
14279 ;;
14280 powerpcle-*linux*)
14281 LD="${LD-ld} -m elf64lppc"
14282 ;;
14283 powerpc-*linux*)
14284 LD="${LD-ld} -m elf64ppc"
14285 ;;
14286 s390*-*linux*|s390*-*tpf*)
14287 LD="${LD-ld} -m elf64_s390"
14288 ;;
14289 sparc*-*linux*)
14290 LD="${LD-ld} -m elf64_sparc"
14291 ;;
14292 esac
14293 ;;
14294 esac
14295 fi
14296 rm -rf conftest*
14297 ;;
14298
14299 *-*-sco3.2v5*)
14300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14301 SAVE_CFLAGS="$CFLAGS"
14302 CFLAGS="$CFLAGS -belf"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14305 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 ac_ext=c
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316
14317 int
14318 main ()
14319 {
14320
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 lt_cv_cc_needs_belf=yes
14327 else
14328 lt_cv_cc_needs_belf=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338 fi
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14340 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14343 CFLAGS="$SAVE_CFLAGS"
14344 fi
14345 ;;
14346 sparc*-*solaris*)
14347 # Find out which ABI we are using.
14348 echo 'int i;' > conftest.$ac_ext
14349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14350 (eval $ac_compile) 2>&5
14351 ac_status=$?
14352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353 test $ac_status = 0; }; then
14354 case `/usr/bin/file conftest.o` in
14355 *64-bit*)
14356 case $lt_cv_prog_gnu_ld in
14357 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14358 *)
14359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14360 LD="${LD-ld} -64"
14361 fi
14362 ;;
14363 esac
14364 ;;
14365 esac
14366 fi
14367 rm -rf conftest*
14368 ;;
14369 esac
14370
14371 need_locks="$enable_libtool_lock"
14372
14373
14374 case $host_os in
14375 rhapsody* | darwin*)
14376 if test -n "$ac_tool_prefix"; then
14377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 if test -n "$DSYMUTIL"; then
14385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390 IFS=$as_save_IFS
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14396 break 2
14397 fi
14398 done
14399 done
14400 IFS=$as_save_IFS
14401
14402 fi
14403 fi
14404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14405 if test -n "$DSYMUTIL"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14407 $as_echo "$DSYMUTIL" >&6; }
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14411 fi
14412
14413
14414 fi
14415 if test -z "$ac_cv_prog_DSYMUTIL"; then
14416 ac_ct_DSYMUTIL=$DSYMUTIL
14417 # Extract the first word of "dsymutil", so it can be a program name with args.
14418 set dummy dsymutil; ac_word=$2
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 $as_echo_n "checking for $ac_word... " >&6; }
14421 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if test -n "$ac_ct_DSYMUTIL"; then
14425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14426 else
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14429 do
14430 IFS=$as_save_IFS
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 break 2
14437 fi
14438 done
14439 done
14440 IFS=$as_save_IFS
14441
14442 fi
14443 fi
14444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14445 if test -n "$ac_ct_DSYMUTIL"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14451 fi
14452
14453 if test "x$ac_ct_DSYMUTIL" = x; then
14454 DSYMUTIL=":"
14455 else
14456 case $cross_compiling:$ac_tool_warned in
14457 yes:)
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14460 ac_tool_warned=yes ;;
14461 esac
14462 DSYMUTIL=$ac_ct_DSYMUTIL
14463 fi
14464 else
14465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14466 fi
14467
14468 if test -n "$ac_tool_prefix"; then
14469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 if test -n "$NMEDIT"; then
14477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14481 do
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488 break 2
14489 fi
14490 done
14491 done
14492 IFS=$as_save_IFS
14493
14494 fi
14495 fi
14496 NMEDIT=$ac_cv_prog_NMEDIT
14497 if test -n "$NMEDIT"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14499 $as_echo "$NMEDIT" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503 fi
14504
14505
14506 fi
14507 if test -z "$ac_cv_prog_NMEDIT"; then
14508 ac_ct_NMEDIT=$NMEDIT
14509 # Extract the first word of "nmedit", so it can be a program name with args.
14510 set dummy nmedit; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$ac_ct_NMEDIT"; then
14517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14521 do
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14529 fi
14530 done
14531 done
14532 IFS=$as_save_IFS
14533
14534 fi
14535 fi
14536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14537 if test -n "$ac_ct_NMEDIT"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14539 $as_echo "$ac_ct_NMEDIT" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544
14545 if test "x$ac_ct_NMEDIT" = x; then
14546 NMEDIT=":"
14547 else
14548 case $cross_compiling:$ac_tool_warned in
14549 yes:)
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14552 ac_tool_warned=yes ;;
14553 esac
14554 NMEDIT=$ac_ct_NMEDIT
14555 fi
14556 else
14557 NMEDIT="$ac_cv_prog_NMEDIT"
14558 fi
14559
14560 if test -n "$ac_tool_prefix"; then
14561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if test "${ac_cv_prog_LIPO+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 if test -n "$LIPO"; then
14569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14570 else
14571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14572 for as_dir in $PATH
14573 do
14574 IFS=$as_save_IFS
14575 test -z "$as_dir" && as_dir=.
14576 for ac_exec_ext in '' $ac_executable_extensions; do
14577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 break 2
14581 fi
14582 done
14583 done
14584 IFS=$as_save_IFS
14585
14586 fi
14587 fi
14588 LIPO=$ac_cv_prog_LIPO
14589 if test -n "$LIPO"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14591 $as_echo "$LIPO" >&6; }
14592 else
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14595 fi
14596
14597
14598 fi
14599 if test -z "$ac_cv_prog_LIPO"; then
14600 ac_ct_LIPO=$LIPO
14601 # Extract the first word of "lipo", so it can be a program name with args.
14602 set dummy lipo; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$ac_ct_LIPO"; then
14609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14613 do
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14618 ac_cv_prog_ac_ct_LIPO="lipo"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14621 fi
14622 done
14623 done
14624 IFS=$as_save_IFS
14625
14626 fi
14627 fi
14628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14629 if test -n "$ac_ct_LIPO"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14631 $as_echo "$ac_ct_LIPO" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635 fi
14636
14637 if test "x$ac_ct_LIPO" = x; then
14638 LIPO=":"
14639 else
14640 case $cross_compiling:$ac_tool_warned in
14641 yes:)
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14644 ac_tool_warned=yes ;;
14645 esac
14646 LIPO=$ac_ct_LIPO
14647 fi
14648 else
14649 LIPO="$ac_cv_prog_LIPO"
14650 fi
14651
14652 if test -n "$ac_tool_prefix"; then
14653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14654 set dummy ${ac_tool_prefix}otool; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 if test -n "$OTOOL"; then
14661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14662 else
14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664 for as_dir in $PATH
14665 do
14666 IFS=$as_save_IFS
14667 test -z "$as_dir" && as_dir=.
14668 for ac_exec_ext in '' $ac_executable_extensions; do
14669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14672 break 2
14673 fi
14674 done
14675 done
14676 IFS=$as_save_IFS
14677
14678 fi
14679 fi
14680 OTOOL=$ac_cv_prog_OTOOL
14681 if test -n "$OTOOL"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14683 $as_echo "$OTOOL" >&6; }
14684 else
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 $as_echo "no" >&6; }
14687 fi
14688
14689
14690 fi
14691 if test -z "$ac_cv_prog_OTOOL"; then
14692 ac_ct_OTOOL=$OTOOL
14693 # Extract the first word of "otool", so it can be a program name with args.
14694 set dummy otool; ac_word=$2
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 if test -n "$ac_ct_OTOOL"; then
14701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14702 else
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704 for as_dir in $PATH
14705 do
14706 IFS=$as_save_IFS
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710 ac_cv_prog_ac_ct_OTOOL="otool"
14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 break 2
14713 fi
14714 done
14715 done
14716 IFS=$as_save_IFS
14717
14718 fi
14719 fi
14720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14721 if test -n "$ac_ct_OTOOL"; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14723 $as_echo "$ac_ct_OTOOL" >&6; }
14724 else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14727 fi
14728
14729 if test "x$ac_ct_OTOOL" = x; then
14730 OTOOL=":"
14731 else
14732 case $cross_compiling:$ac_tool_warned in
14733 yes:)
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14736 ac_tool_warned=yes ;;
14737 esac
14738 OTOOL=$ac_ct_OTOOL
14739 fi
14740 else
14741 OTOOL="$ac_cv_prog_OTOOL"
14742 fi
14743
14744 if test -n "$ac_tool_prefix"; then
14745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 $as_echo_n "checking for $ac_word... " >&6; }
14749 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 if test -n "$OTOOL64"; then
14753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14754 else
14755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 break 2
14765 fi
14766 done
14767 done
14768 IFS=$as_save_IFS
14769
14770 fi
14771 fi
14772 OTOOL64=$ac_cv_prog_OTOOL64
14773 if test -n "$OTOOL64"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14775 $as_echo "$OTOOL64" >&6; }
14776 else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778 $as_echo "no" >&6; }
14779 fi
14780
14781
14782 fi
14783 if test -z "$ac_cv_prog_OTOOL64"; then
14784 ac_ct_OTOOL64=$OTOOL64
14785 # Extract the first word of "otool64", so it can be a program name with args.
14786 set dummy otool64; ac_word=$2
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14788 $as_echo_n "checking for $ac_word... " >&6; }
14789 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 if test -n "$ac_ct_OTOOL64"; then
14793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14794 else
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14797 do
14798 IFS=$as_save_IFS
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14802 ac_cv_prog_ac_ct_OTOOL64="otool64"
14803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804 break 2
14805 fi
14806 done
14807 done
14808 IFS=$as_save_IFS
14809
14810 fi
14811 fi
14812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14813 if test -n "$ac_ct_OTOOL64"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14815 $as_echo "$ac_ct_OTOOL64" >&6; }
14816 else
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819 fi
14820
14821 if test "x$ac_ct_OTOOL64" = x; then
14822 OTOOL64=":"
14823 else
14824 case $cross_compiling:$ac_tool_warned in
14825 yes:)
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14828 ac_tool_warned=yes ;;
14829 esac
14830 OTOOL64=$ac_ct_OTOOL64
14831 fi
14832 else
14833 OTOOL64="$ac_cv_prog_OTOOL64"
14834 fi
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14863 $as_echo_n "checking for -single_module linker flag... " >&6; }
14864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 lt_cv_apple_cc_single_mod=no
14868 if test -z "${LT_MULTI_MODULE}"; then
14869 # By default we will add the -single_module flag. You can override
14870 # by either setting the environment variable LT_MULTI_MODULE
14871 # non-empty at configure time, or by adding -multi_module to the
14872 # link flags.
14873 rm -rf libconftest.dylib*
14874 echo "int foo(void){return 1;}" > conftest.c
14875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14876 -dynamiclib -Wl,-single_module conftest.c" >&5
14877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14879 _lt_result=$?
14880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14881 lt_cv_apple_cc_single_mod=yes
14882 else
14883 cat conftest.err >&5
14884 fi
14885 rm -rf libconftest.dylib*
14886 rm -f conftest.*
14887 fi
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14893 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 lt_cv_ld_exported_symbols_list=no
14897 save_LDFLAGS=$LDFLAGS
14898 echo "_main" > conftest.sym
14899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902
14903 int
14904 main ()
14905 {
14906
14907 ;
14908 return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_link "$LINENO"; then :
14912 lt_cv_ld_exported_symbols_list=yes
14913 else
14914 lt_cv_ld_exported_symbols_list=no
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LDFLAGS="$save_LDFLAGS"
14919
14920 fi
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14924 $as_echo_n "checking for -force_load linker flag... " >&6; }
14925 if test "${lt_cv_ld_force_load+set}" = set; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 lt_cv_ld_force_load=no
14929 cat > conftest.c << _LT_EOF
14930 int forced_loaded() { return 2;}
14931 _LT_EOF
14932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14934 echo "$AR cru libconftest.a conftest.o" >&5
14935 $AR cru libconftest.a conftest.o 2>&5
14936 cat > conftest.c << _LT_EOF
14937 int main() { return 0;}
14938 _LT_EOF
14939 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14940 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14941 _lt_result=$?
14942 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14943 lt_cv_ld_force_load=yes
14944 else
14945 cat conftest.err >&5
14946 fi
14947 rm -f conftest.err libconftest.a conftest conftest.c
14948 rm -rf conftest.dSYM
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14952 $as_echo "$lt_cv_ld_force_load" >&6; }
14953 case $host_os in
14954 rhapsody* | darwin1.[012])
14955 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14956 darwin1.*)
14957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14958 darwin*) # darwin 5.x on
14959 # if running on 10.5 or later, the deployment target defaults
14960 # to the OS version, if on x86, and 10.4, the deployment
14961 # target defaults to 10.4. Don't you love it?
14962 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14963 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14965 10.[012][,.]*)
14966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14967 10.*)
14968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14969 esac
14970 ;;
14971 esac
14972 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14973 _lt_dar_single_mod='$single_module'
14974 fi
14975 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14976 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14977 else
14978 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14979 fi
14980 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14981 _lt_dsymutil='~$DSYMUTIL $lib || :'
14982 else
14983 _lt_dsymutil=
14984 fi
14985 ;;
14986 esac
14987
14988
14989 for ac_header in dlfcn.h
14990 do :
14991 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14992 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_DLFCN_H 1
14995 _ACEOF
14996
14997 fi
14998 done
14999
15000
15001
15002
15003
15004 # Set options
15005
15006
15007
15008 enable_dlopen=no
15009
15010
15011 enable_win32_dll=no
15012
15013
15014 # Check whether --enable-shared was given.
15015 if test "${enable_shared+set}" = set; then :
15016 enableval=$enable_shared; p=${PACKAGE-default}
15017 case $enableval in
15018 yes) enable_shared=yes ;;
15019 no) enable_shared=no ;;
15020 *)
15021 enable_shared=no
15022 # Look at the argument we got. We use all the common list separators.
15023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15024 for pkg in $enableval; do
15025 IFS="$lt_save_ifs"
15026 if test "X$pkg" = "X$p"; then
15027 enable_shared=yes
15028 fi
15029 done
15030 IFS="$lt_save_ifs"
15031 ;;
15032 esac
15033 else
15034 enable_shared=yes
15035 fi
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045 # Check whether --enable-static was given.
15046 if test "${enable_static+set}" = set; then :
15047 enableval=$enable_static; p=${PACKAGE-default}
15048 case $enableval in
15049 yes) enable_static=yes ;;
15050 no) enable_static=no ;;
15051 *)
15052 enable_static=no
15053 # Look at the argument we got. We use all the common list separators.
15054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15055 for pkg in $enableval; do
15056 IFS="$lt_save_ifs"
15057 if test "X$pkg" = "X$p"; then
15058 enable_static=yes
15059 fi
15060 done
15061 IFS="$lt_save_ifs"
15062 ;;
15063 esac
15064 else
15065 enable_static=yes
15066 fi
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077 # Check whether --with-pic was given.
15078 if test "${with_pic+set}" = set; then :
15079 withval=$with_pic; pic_mode="$withval"
15080 else
15081 pic_mode=default
15082 fi
15083
15084
15085 test -z "$pic_mode" && pic_mode=default
15086
15087
15088
15089
15090
15091
15092
15093 # Check whether --enable-fast-install was given.
15094 if test "${enable_fast_install+set}" = set; then :
15095 enableval=$enable_fast_install; p=${PACKAGE-default}
15096 case $enableval in
15097 yes) enable_fast_install=yes ;;
15098 no) enable_fast_install=no ;;
15099 *)
15100 enable_fast_install=no
15101 # Look at the argument we got. We use all the common list separators.
15102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15103 for pkg in $enableval; do
15104 IFS="$lt_save_ifs"
15105 if test "X$pkg" = "X$p"; then
15106 enable_fast_install=yes
15107 fi
15108 done
15109 IFS="$lt_save_ifs"
15110 ;;
15111 esac
15112 else
15113 enable_fast_install=yes
15114 fi
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126 # This can be used to rebuild libtool when needed
15127 LIBTOOL_DEPS="$ltmain"
15128
15129 # Always use our own libtool.
15130 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 test -z "$LN_S" && LN_S="ln -s"
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172 if test -n "${ZSH_VERSION+set}" ; then
15173 setopt NO_GLOB_SUBST
15174 fi
15175
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15177 $as_echo_n "checking for objdir... " >&6; }
15178 if test "${lt_cv_objdir+set}" = set; then :
15179 $as_echo_n "(cached) " >&6
15180 else
15181 rm -f .libs 2>/dev/null
15182 mkdir .libs 2>/dev/null
15183 if test -d .libs; then
15184 lt_cv_objdir=.libs
15185 else
15186 # MS-DOS does not allow filenames that begin with a dot.
15187 lt_cv_objdir=_libs
15188 fi
15189 rmdir .libs 2>/dev/null
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15192 $as_echo "$lt_cv_objdir" >&6; }
15193 objdir=$lt_cv_objdir
15194
15195
15196
15197
15198
15199 cat >>confdefs.h <<_ACEOF
15200 #define LT_OBJDIR "$lt_cv_objdir/"
15201 _ACEOF
15202
15203
15204
15205
15206 case $host_os in
15207 aix3*)
15208 # AIX sometimes has problems with the GCC collect2 program. For some
15209 # reason, if we set the COLLECT_NAMES environment variable, the problems
15210 # vanish in a puff of smoke.
15211 if test "X${COLLECT_NAMES+set}" != Xset; then
15212 COLLECT_NAMES=
15213 export COLLECT_NAMES
15214 fi
15215 ;;
15216 esac
15217
15218 # Global variables:
15219 ofile=libtool
15220 can_build_shared=yes
15221
15222 # All known linkers require a `.a' archive for static linking (except MSVC,
15223 # which needs '.lib').
15224 libext=a
15225
15226 with_gnu_ld="$lt_cv_prog_gnu_ld"
15227
15228 old_CC="$CC"
15229 old_CFLAGS="$CFLAGS"
15230
15231 # Set sane defaults for various variables
15232 test -z "$CC" && CC=cc
15233 test -z "$LTCC" && LTCC=$CC
15234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15235 test -z "$LD" && LD=ld
15236 test -z "$ac_objext" && ac_objext=o
15237
15238 for cc_temp in $compiler""; do
15239 case $cc_temp in
15240 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15241 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15242 \-*) ;;
15243 *) break;;
15244 esac
15245 done
15246 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15247
15248
15249 # Only perform the check for file, if the check method requires it
15250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15251 case $deplibs_check_method in
15252 file_magic*)
15253 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15255 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15256 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 case $MAGIC_CMD in
15260 [\\/*] | ?:[\\/]*)
15261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15262 ;;
15263 *)
15264 lt_save_MAGIC_CMD="$MAGIC_CMD"
15265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15267 for ac_dir in $ac_dummy; do
15268 IFS="$lt_save_ifs"
15269 test -z "$ac_dir" && ac_dir=.
15270 if test -f $ac_dir/${ac_tool_prefix}file; then
15271 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15272 if test -n "$file_magic_test_file"; then
15273 case $deplibs_check_method in
15274 "file_magic "*)
15275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15278 $EGREP "$file_magic_regex" > /dev/null; then
15279 :
15280 else
15281 cat <<_LT_EOF 1>&2
15282
15283 *** Warning: the command libtool uses to detect shared libraries,
15284 *** $file_magic_cmd, produces output that libtool cannot recognize.
15285 *** The result is that libtool may fail to recognize shared libraries
15286 *** as such. This will affect the creation of libtool libraries that
15287 *** depend on shared libraries, but programs linked with such libtool
15288 *** libraries will work regardless of this problem. Nevertheless, you
15289 *** may want to report the problem to your system manager and/or to
15290 *** bug-libtool@gnu.org
15291
15292 _LT_EOF
15293 fi ;;
15294 esac
15295 fi
15296 break
15297 fi
15298 done
15299 IFS="$lt_save_ifs"
15300 MAGIC_CMD="$lt_save_MAGIC_CMD"
15301 ;;
15302 esac
15303 fi
15304
15305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15306 if test -n "$MAGIC_CMD"; then
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15308 $as_echo "$MAGIC_CMD" >&6; }
15309 else
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311 $as_echo "no" >&6; }
15312 fi
15313
15314
15315
15316
15317
15318 if test -z "$lt_cv_path_MAGIC_CMD"; then
15319 if test -n "$ac_tool_prefix"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15321 $as_echo_n "checking for file... " >&6; }
15322 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 case $MAGIC_CMD in
15326 [\\/*] | ?:[\\/]*)
15327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15328 ;;
15329 *)
15330 lt_save_MAGIC_CMD="$MAGIC_CMD"
15331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15333 for ac_dir in $ac_dummy; do
15334 IFS="$lt_save_ifs"
15335 test -z "$ac_dir" && ac_dir=.
15336 if test -f $ac_dir/file; then
15337 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15338 if test -n "$file_magic_test_file"; then
15339 case $deplibs_check_method in
15340 "file_magic "*)
15341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15344 $EGREP "$file_magic_regex" > /dev/null; then
15345 :
15346 else
15347 cat <<_LT_EOF 1>&2
15348
15349 *** Warning: the command libtool uses to detect shared libraries,
15350 *** $file_magic_cmd, produces output that libtool cannot recognize.
15351 *** The result is that libtool may fail to recognize shared libraries
15352 *** as such. This will affect the creation of libtool libraries that
15353 *** depend on shared libraries, but programs linked with such libtool
15354 *** libraries will work regardless of this problem. Nevertheless, you
15355 *** may want to report the problem to your system manager and/or to
15356 *** bug-libtool@gnu.org
15357
15358 _LT_EOF
15359 fi ;;
15360 esac
15361 fi
15362 break
15363 fi
15364 done
15365 IFS="$lt_save_ifs"
15366 MAGIC_CMD="$lt_save_MAGIC_CMD"
15367 ;;
15368 esac
15369 fi
15370
15371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15372 if test -n "$MAGIC_CMD"; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15374 $as_echo "$MAGIC_CMD" >&6; }
15375 else
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378 fi
15379
15380
15381 else
15382 MAGIC_CMD=:
15383 fi
15384 fi
15385
15386 fi
15387 ;;
15388 esac
15389
15390 # Use C for the default configuration in the libtool script
15391
15392 lt_save_CC="$CC"
15393 ac_ext=c
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15398
15399
15400 # Source file extension for C test sources.
15401 ac_ext=c
15402
15403 # Object file extension for compiled C test sources.
15404 objext=o
15405 objext=$objext
15406
15407 # Code to be used in simple compile tests
15408 lt_simple_compile_test_code="int some_variable = 0;"
15409
15410 # Code to be used in simple link tests
15411 lt_simple_link_test_code='int main(){return(0);}'
15412
15413
15414
15415
15416
15417
15418
15419 # If no C compiler was specified, use CC.
15420 LTCC=${LTCC-"$CC"}
15421
15422 # If no C compiler flags were specified, use CFLAGS.
15423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15424
15425 # Allow CC to be a program name with arguments.
15426 compiler=$CC
15427
15428 # Save the default compiler, since it gets overwritten when the other
15429 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15430 compiler_DEFAULT=$CC
15431
15432 # save warnings/boilerplate of simple test code
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15436 _lt_compiler_boilerplate=`cat conftest.err`
15437 $RM conftest*
15438
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15442 _lt_linker_boilerplate=`cat conftest.err`
15443 $RM -r conftest*
15444
15445
15446 ## CAVEAT EMPTOR:
15447 ## There is no encapsulation within the following macros, do not change
15448 ## the running order or otherwise move them around unless you know exactly
15449 ## what you are doing...
15450 if test -n "$compiler"; then
15451
15452 lt_prog_compiler_no_builtin_flag=
15453
15454 if test "$GCC" = yes; then
15455 case $cc_basename in
15456 nvcc*)
15457 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15458 *)
15459 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15460 esac
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15463 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15464 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15465 $as_echo_n "(cached) " >&6
15466 else
15467 lt_cv_prog_compiler_rtti_exceptions=no
15468 ac_outfile=conftest.$ac_objext
15469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15470 lt_compiler_flag="-fno-rtti -fno-exceptions"
15471 # Insert the option either (1) after the last *FLAGS variable, or
15472 # (2) before a word containing "conftest.", or (3) at the end.
15473 # Note that $ac_compile itself does not contain backslashes and begins
15474 # with a dollar sign (not a hyphen), so the echo should work correctly.
15475 # The option is referenced via a variable to avoid confusing sed.
15476 lt_compile=`echo "$ac_compile" | $SED \
15477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15479 -e 's:$: $lt_compiler_flag:'`
15480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15481 (eval "$lt_compile" 2>conftest.err)
15482 ac_status=$?
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 if (exit $ac_status) && test -s "$ac_outfile"; then
15486 # The compiler can only warn and ignore the option if not recognized
15487 # So say no if there are warnings other than the usual output.
15488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15491 lt_cv_prog_compiler_rtti_exceptions=yes
15492 fi
15493 fi
15494 $RM conftest*
15495
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15498 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15499
15500 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15501 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15502 else
15503 :
15504 fi
15505
15506 fi
15507
15508
15509
15510
15511
15512
15513 lt_prog_compiler_wl=
15514 lt_prog_compiler_pic=
15515 lt_prog_compiler_static=
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15518 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15519
15520 if test "$GCC" = yes; then
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_static='-static'
15523
15524 case $host_os in
15525 aix*)
15526 # All AIX code is PIC.
15527 if test "$host_cpu" = ia64; then
15528 # AIX 5 now supports IA64 processor
15529 lt_prog_compiler_static='-Bstatic'
15530 fi
15531 lt_prog_compiler_pic='-fPIC'
15532 ;;
15533
15534 amigaos*)
15535 case $host_cpu in
15536 powerpc)
15537 # see comment about AmigaOS4 .so support
15538 lt_prog_compiler_pic='-fPIC'
15539 ;;
15540 m68k)
15541 # FIXME: we need at least 68020 code to build shared libraries, but
15542 # adding the `-m68020' flag to GCC prevents building anything better,
15543 # like `-m68040'.
15544 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15545 ;;
15546 esac
15547 ;;
15548
15549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15550 # PIC is the default for these OSes.
15551 ;;
15552
15553 mingw* | cygwin* | pw32* | os2* | cegcc*)
15554 # This hack is so that the source file can tell whether it is being
15555 # built for inclusion in a dll (and should export symbols for example).
15556 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15557 # (--disable-auto-import) libraries
15558 lt_prog_compiler_pic='-DDLL_EXPORT'
15559 ;;
15560
15561 darwin* | rhapsody*)
15562 # PIC is the default on this platform
15563 # Common symbols not allowed in MH_DYLIB files
15564 lt_prog_compiler_pic='-fno-common'
15565 ;;
15566
15567 haiku*)
15568 # PIC is the default for Haiku.
15569 # The "-static" flag exists, but is broken.
15570 lt_prog_compiler_static=
15571 ;;
15572
15573 hpux*)
15574 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15575 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15576 # sets the default TLS model and affects inlining.
15577 case $host_cpu in
15578 hppa*64*)
15579 # +Z the default
15580 ;;
15581 *)
15582 lt_prog_compiler_pic='-fPIC'
15583 ;;
15584 esac
15585 ;;
15586
15587 interix[3-9]*)
15588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15589 # Instead, we relocate shared libraries at runtime.
15590 ;;
15591
15592 msdosdjgpp*)
15593 # Just because we use GCC doesn't mean we suddenly get shared libraries
15594 # on systems that don't support them.
15595 lt_prog_compiler_can_build_shared=no
15596 enable_shared=no
15597 ;;
15598
15599 *nto* | *qnx*)
15600 # QNX uses GNU C++, but need to define -shared option too, otherwise
15601 # it will coredump.
15602 lt_prog_compiler_pic='-fPIC -shared'
15603 ;;
15604
15605 sysv4*MP*)
15606 if test -d /usr/nec; then
15607 lt_prog_compiler_pic=-Kconform_pic
15608 fi
15609 ;;
15610
15611 *)
15612 lt_prog_compiler_pic='-fPIC'
15613 ;;
15614 esac
15615
15616 case $cc_basename in
15617 nvcc*) # Cuda Compiler Driver 2.2
15618 lt_prog_compiler_wl='-Xlinker '
15619 lt_prog_compiler_pic='-Xcompiler -fPIC'
15620 ;;
15621 esac
15622 else
15623 # PORTME Check for flag to pass linker flags through the system compiler.
15624 case $host_os in
15625 aix*)
15626 lt_prog_compiler_wl='-Wl,'
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 now supports IA64 processor
15629 lt_prog_compiler_static='-Bstatic'
15630 else
15631 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15632 fi
15633 ;;
15634
15635 mingw* | cygwin* | pw32* | os2* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic='-DDLL_EXPORT'
15639 ;;
15640
15641 hpux9* | hpux10* | hpux11*)
15642 lt_prog_compiler_wl='-Wl,'
15643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644 # not for PA HP-UX.
15645 case $host_cpu in
15646 hppa*64*|ia64*)
15647 # +Z the default
15648 ;;
15649 *)
15650 lt_prog_compiler_pic='+Z'
15651 ;;
15652 esac
15653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15654 lt_prog_compiler_static='${wl}-a ${wl}archive'
15655 ;;
15656
15657 irix5* | irix6* | nonstopux*)
15658 lt_prog_compiler_wl='-Wl,'
15659 # PIC (with -KPIC) is the default.
15660 lt_prog_compiler_static='-non_shared'
15661 ;;
15662
15663 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15664 case $cc_basename in
15665 # old Intel for x86_64 which still supported -KPIC.
15666 ecc*)
15667 lt_prog_compiler_wl='-Wl,'
15668 lt_prog_compiler_pic='-KPIC'
15669 lt_prog_compiler_static='-static'
15670 ;;
15671 # icc used to be incompatible with GCC.
15672 # ICC 10 doesn't accept -KPIC any more.
15673 icc* | ifort*)
15674 lt_prog_compiler_wl='-Wl,'
15675 lt_prog_compiler_pic='-fPIC'
15676 lt_prog_compiler_static='-static'
15677 ;;
15678 # Lahey Fortran 8.1.
15679 lf95*)
15680 lt_prog_compiler_wl='-Wl,'
15681 lt_prog_compiler_pic='--shared'
15682 lt_prog_compiler_static='--static'
15683 ;;
15684 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15685 # Portland Group compilers (*not* the Pentium gcc compiler,
15686 # which looks to be a dead project)
15687 lt_prog_compiler_wl='-Wl,'
15688 lt_prog_compiler_pic='-fpic'
15689 lt_prog_compiler_static='-Bstatic'
15690 ;;
15691 ccc*)
15692 lt_prog_compiler_wl='-Wl,'
15693 # All Alpha code is PIC.
15694 lt_prog_compiler_static='-non_shared'
15695 ;;
15696 xl* | bgxl* | bgf* | mpixl*)
15697 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15698 lt_prog_compiler_wl='-Wl,'
15699 lt_prog_compiler_pic='-qpic'
15700 lt_prog_compiler_static='-qstaticlink'
15701 ;;
15702 *)
15703 case `$CC -V 2>&1 | sed 5q` in
15704 *Sun\ F* | *Sun*Fortran*)
15705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15706 lt_prog_compiler_pic='-KPIC'
15707 lt_prog_compiler_static='-Bstatic'
15708 lt_prog_compiler_wl=''
15709 ;;
15710 *Sun\ C*)
15711 # Sun C 5.9
15712 lt_prog_compiler_pic='-KPIC'
15713 lt_prog_compiler_static='-Bstatic'
15714 lt_prog_compiler_wl='-Wl,'
15715 ;;
15716 esac
15717 ;;
15718 esac
15719 ;;
15720
15721 newsos6)
15722 lt_prog_compiler_pic='-KPIC'
15723 lt_prog_compiler_static='-Bstatic'
15724 ;;
15725
15726 *nto* | *qnx*)
15727 # QNX uses GNU C++, but need to define -shared option too, otherwise
15728 # it will coredump.
15729 lt_prog_compiler_pic='-fPIC -shared'
15730 ;;
15731
15732 osf3* | osf4* | osf5*)
15733 lt_prog_compiler_wl='-Wl,'
15734 # All OSF/1 code is PIC.
15735 lt_prog_compiler_static='-non_shared'
15736 ;;
15737
15738 rdos*)
15739 lt_prog_compiler_static='-non_shared'
15740 ;;
15741
15742 solaris*)
15743 lt_prog_compiler_pic='-KPIC'
15744 lt_prog_compiler_static='-Bstatic'
15745 case $cc_basename in
15746 f77* | f90* | f95*)
15747 lt_prog_compiler_wl='-Qoption ld ';;
15748 *)
15749 lt_prog_compiler_wl='-Wl,';;
15750 esac
15751 ;;
15752
15753 sunos4*)
15754 lt_prog_compiler_wl='-Qoption ld '
15755 lt_prog_compiler_pic='-PIC'
15756 lt_prog_compiler_static='-Bstatic'
15757 ;;
15758
15759 sysv4 | sysv4.2uw2* | sysv4.3*)
15760 lt_prog_compiler_wl='-Wl,'
15761 lt_prog_compiler_pic='-KPIC'
15762 lt_prog_compiler_static='-Bstatic'
15763 ;;
15764
15765 sysv4*MP*)
15766 if test -d /usr/nec ;then
15767 lt_prog_compiler_pic='-Kconform_pic'
15768 lt_prog_compiler_static='-Bstatic'
15769 fi
15770 ;;
15771
15772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15773 lt_prog_compiler_wl='-Wl,'
15774 lt_prog_compiler_pic='-KPIC'
15775 lt_prog_compiler_static='-Bstatic'
15776 ;;
15777
15778 unicos*)
15779 lt_prog_compiler_wl='-Wl,'
15780 lt_prog_compiler_can_build_shared=no
15781 ;;
15782
15783 uts4*)
15784 lt_prog_compiler_pic='-pic'
15785 lt_prog_compiler_static='-Bstatic'
15786 ;;
15787
15788 *)
15789 lt_prog_compiler_can_build_shared=no
15790 ;;
15791 esac
15792 fi
15793
15794 case $host_os in
15795 # For platforms which do not support PIC, -DPIC is meaningless:
15796 *djgpp*)
15797 lt_prog_compiler_pic=
15798 ;;
15799 *)
15800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15801 ;;
15802 esac
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15804 $as_echo "$lt_prog_compiler_pic" >&6; }
15805
15806
15807
15808
15809
15810
15811 #
15812 # Check to make sure the PIC flag actually works.
15813 #
15814 if test -n "$lt_prog_compiler_pic"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15816 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15817 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 lt_cv_prog_compiler_pic_works=no
15821 ac_outfile=conftest.$ac_objext
15822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15823 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15824 # Insert the option either (1) after the last *FLAGS variable, or
15825 # (2) before a word containing "conftest.", or (3) at the end.
15826 # Note that $ac_compile itself does not contain backslashes and begins
15827 # with a dollar sign (not a hyphen), so the echo should work correctly.
15828 # The option is referenced via a variable to avoid confusing sed.
15829 lt_compile=`echo "$ac_compile" | $SED \
15830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15832 -e 's:$: $lt_compiler_flag:'`
15833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15834 (eval "$lt_compile" 2>conftest.err)
15835 ac_status=$?
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 if (exit $ac_status) && test -s "$ac_outfile"; then
15839 # The compiler can only warn and ignore the option if not recognized
15840 # So say no if there are warnings other than the usual output.
15841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15844 lt_cv_prog_compiler_pic_works=yes
15845 fi
15846 fi
15847 $RM conftest*
15848
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15851 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15852
15853 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15854 case $lt_prog_compiler_pic in
15855 "" | " "*) ;;
15856 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15857 esac
15858 else
15859 lt_prog_compiler_pic=
15860 lt_prog_compiler_can_build_shared=no
15861 fi
15862
15863 fi
15864
15865
15866
15867
15868
15869
15870 #
15871 # Check to make sure the static flag actually works.
15872 #
15873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15875 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15876 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 lt_cv_prog_compiler_static_works=no
15880 save_LDFLAGS="$LDFLAGS"
15881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15884 # The linker can only warn and ignore the option if not recognized
15885 # So say no if there are warnings
15886 if test -s conftest.err; then
15887 # Append any errors to the config.log.
15888 cat conftest.err 1>&5
15889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15891 if diff conftest.exp conftest.er2 >/dev/null; then
15892 lt_cv_prog_compiler_static_works=yes
15893 fi
15894 else
15895 lt_cv_prog_compiler_static_works=yes
15896 fi
15897 fi
15898 $RM -r conftest*
15899 LDFLAGS="$save_LDFLAGS"
15900
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15903 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15904
15905 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15906 :
15907 else
15908 lt_prog_compiler_static=
15909 fi
15910
15911
15912
15913
15914
15915
15916
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15920 $as_echo_n "(cached) " >&6
15921 else
15922 lt_cv_prog_compiler_c_o=no
15923 $RM -r conftest 2>/dev/null
15924 mkdir conftest
15925 cd conftest
15926 mkdir out
15927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15928
15929 lt_compiler_flag="-o out/conftest2.$ac_objext"
15930 # Insert the option either (1) after the last *FLAGS variable, or
15931 # (2) before a word containing "conftest.", or (3) at the end.
15932 # Note that $ac_compile itself does not contain backslashes and begins
15933 # with a dollar sign (not a hyphen), so the echo should work correctly.
15934 lt_compile=`echo "$ac_compile" | $SED \
15935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15937 -e 's:$: $lt_compiler_flag:'`
15938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15939 (eval "$lt_compile" 2>out/conftest.err)
15940 ac_status=$?
15941 cat out/conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15944 then
15945 # The compiler can only warn and ignore the option if not recognized
15946 # So say no if there are warnings
15947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15950 lt_cv_prog_compiler_c_o=yes
15951 fi
15952 fi
15953 chmod u+w . 2>&5
15954 $RM conftest*
15955 # SGI C++ compiler will create directory out/ii_files/ for
15956 # template instantiation
15957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15958 $RM out/* && rmdir out
15959 cd ..
15960 $RM -r conftest
15961 $RM conftest*
15962
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15966
15967
15968
15969
15970
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 lt_cv_prog_compiler_c_o=no
15978 $RM -r conftest 2>/dev/null
15979 mkdir conftest
15980 cd conftest
15981 mkdir out
15982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984 lt_compiler_flag="-o out/conftest2.$ac_objext"
15985 # Insert the option either (1) after the last *FLAGS variable, or
15986 # (2) before a word containing "conftest.", or (3) at the end.
15987 # Note that $ac_compile itself does not contain backslashes and begins
15988 # with a dollar sign (not a hyphen), so the echo should work correctly.
15989 lt_compile=`echo "$ac_compile" | $SED \
15990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15992 -e 's:$: $lt_compiler_flag:'`
15993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15994 (eval "$lt_compile" 2>out/conftest.err)
15995 ac_status=$?
15996 cat out/conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999 then
16000 # The compiler can only warn and ignore the option if not recognized
16001 # So say no if there are warnings
16002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16005 lt_cv_prog_compiler_c_o=yes
16006 fi
16007 fi
16008 chmod u+w . 2>&5
16009 $RM conftest*
16010 # SGI C++ compiler will create directory out/ii_files/ for
16011 # template instantiation
16012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16013 $RM out/* && rmdir out
16014 cd ..
16015 $RM -r conftest
16016 $RM conftest*
16017
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16021
16022
16023
16024
16025 hard_links="nottested"
16026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16027 # do not overwrite the value of need_locks provided by the user
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16029 $as_echo_n "checking if we can lock with hard links... " >&6; }
16030 hard_links=yes
16031 $RM conftest*
16032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16033 touch conftest.a
16034 ln conftest.a conftest.b 2>&5 || hard_links=no
16035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16037 $as_echo "$hard_links" >&6; }
16038 if test "$hard_links" = no; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16040 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16041 need_locks=warn
16042 fi
16043 else
16044 need_locks=no
16045 fi
16046
16047
16048
16049
16050
16051
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16053 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16054
16055 runpath_var=
16056 allow_undefined_flag=
16057 always_export_symbols=no
16058 archive_cmds=
16059 archive_expsym_cmds=
16060 compiler_needs_object=no
16061 enable_shared_with_static_runtimes=no
16062 export_dynamic_flag_spec=
16063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16064 hardcode_automatic=no
16065 hardcode_direct=no
16066 hardcode_direct_absolute=no
16067 hardcode_libdir_flag_spec=
16068 hardcode_libdir_flag_spec_ld=
16069 hardcode_libdir_separator=
16070 hardcode_minus_L=no
16071 hardcode_shlibpath_var=unsupported
16072 inherit_rpath=no
16073 link_all_deplibs=unknown
16074 module_cmds=
16075 module_expsym_cmds=
16076 old_archive_from_new_cmds=
16077 old_archive_from_expsyms_cmds=
16078 thread_safe_flag_spec=
16079 whole_archive_flag_spec=
16080 # include_expsyms should be a list of space-separated symbols to be *always*
16081 # included in the symbol list
16082 include_expsyms=
16083 # exclude_expsyms can be an extended regexp of symbols to exclude
16084 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16085 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16086 # as well as any symbol that contains `d'.
16087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16089 # platforms (ab)use it in PIC code, but their linkers get confused if
16090 # the symbol is explicitly referenced. Since portable code cannot
16091 # rely on this symbol name, it's probably fine to never include it in
16092 # preloaded symbol tables.
16093 # Exclude shared library initialization/finalization symbols.
16094 extract_expsyms_cmds=
16095
16096 case $host_os in
16097 cygwin* | mingw* | pw32* | cegcc*)
16098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16099 # When not using gcc, we currently assume that we are using
16100 # Microsoft Visual C++.
16101 if test "$GCC" != yes; then
16102 with_gnu_ld=no
16103 fi
16104 ;;
16105 interix*)
16106 # we just hope/assume this is gcc and not c89 (= MSVC++)
16107 with_gnu_ld=yes
16108 ;;
16109 openbsd*)
16110 with_gnu_ld=no
16111 ;;
16112 esac
16113
16114 ld_shlibs=yes
16115
16116 # On some targets, GNU ld is compatible enough with the native linker
16117 # that we're better off using the native interface for both.
16118 lt_use_gnu_ld_interface=no
16119 if test "$with_gnu_ld" = yes; then
16120 case $host_os in
16121 aix*)
16122 # The AIX port of GNU ld has always aspired to compatibility
16123 # with the native linker. However, as the warning in the GNU ld
16124 # block says, versions before 2.19.5* couldn't really create working
16125 # shared libraries, regardless of the interface used.
16126 case `$LD -v 2>&1` in
16127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16130 *)
16131 lt_use_gnu_ld_interface=yes
16132 ;;
16133 esac
16134 ;;
16135 *)
16136 lt_use_gnu_ld_interface=yes
16137 ;;
16138 esac
16139 fi
16140
16141 if test "$lt_use_gnu_ld_interface" = yes; then
16142 # If archive_cmds runs LD, not CC, wlarc should be empty
16143 wlarc='${wl}'
16144
16145 # Set some defaults for GNU ld with shared library support. These
16146 # are reset later if shared libraries are not supported. Putting them
16147 # here allows them to be overridden if necessary.
16148 runpath_var=LD_RUN_PATH
16149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16150 export_dynamic_flag_spec='${wl}--export-dynamic'
16151 # ancient GNU ld didn't support --whole-archive et. al.
16152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16154 else
16155 whole_archive_flag_spec=
16156 fi
16157 supports_anon_versioning=no
16158 case `$LD -v 2>&1` in
16159 *GNU\ gold*) supports_anon_versioning=yes ;;
16160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16163 *\ 2.11.*) ;; # other 2.11 versions
16164 *) supports_anon_versioning=yes ;;
16165 esac
16166
16167 # See if GNU ld supports shared libraries.
16168 case $host_os in
16169 aix[3-9]*)
16170 # On AIX/PPC, the GNU linker is very broken
16171 if test "$host_cpu" != ia64; then
16172 ld_shlibs=no
16173 cat <<_LT_EOF 1>&2
16174
16175 *** Warning: the GNU linker, at least up to release 2.19, is reported
16176 *** to be unable to reliably create shared libraries on AIX.
16177 *** Therefore, libtool is disabling shared libraries support. If you
16178 *** really care for shared libraries, you may want to install binutils
16179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16180 *** You will then need to restart the configuration process.
16181
16182 _LT_EOF
16183 fi
16184 ;;
16185
16186 amigaos*)
16187 case $host_cpu in
16188 powerpc)
16189 # see comment about AmigaOS4 .so support
16190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16191 archive_expsym_cmds=''
16192 ;;
16193 m68k)
16194 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)'
16195 hardcode_libdir_flag_spec='-L$libdir'
16196 hardcode_minus_L=yes
16197 ;;
16198 esac
16199 ;;
16200
16201 beos*)
16202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16203 allow_undefined_flag=unsupported
16204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16205 # support --undefined. This deserves some investigation. FIXME
16206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207 else
16208 ld_shlibs=no
16209 fi
16210 ;;
16211
16212 cygwin* | mingw* | pw32* | cegcc*)
16213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16214 # as there is no search path for DLLs.
16215 hardcode_libdir_flag_spec='-L$libdir'
16216 export_dynamic_flag_spec='${wl}--export-all-symbols'
16217 allow_undefined_flag=unsupported
16218 always_export_symbols=no
16219 enable_shared_with_static_runtimes=yes
16220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16221
16222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16224 # If the export-symbols file already is a .def file (1st line
16225 # is EXPORTS), use it as is; otherwise, prepend...
16226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16227 cp $export_symbols $output_objdir/$soname.def;
16228 else
16229 echo EXPORTS > $output_objdir/$soname.def;
16230 cat $export_symbols >> $output_objdir/$soname.def;
16231 fi~
16232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16233 else
16234 ld_shlibs=no
16235 fi
16236 ;;
16237
16238 haiku*)
16239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240 link_all_deplibs=yes
16241 ;;
16242
16243 interix[3-9]*)
16244 hardcode_direct=no
16245 hardcode_shlibpath_var=no
16246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16247 export_dynamic_flag_spec='${wl}-E'
16248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16249 # Instead, shared libraries are loaded at an image base (0x10000000 by
16250 # default) and relocated if they conflict, which is a slow very memory
16251 # consuming and fragmenting process. To avoid this, we pick a random,
16252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16255 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'
16256 ;;
16257
16258 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16259 tmp_diet=no
16260 if test "$host_os" = linux-dietlibc; then
16261 case $cc_basename in
16262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16263 esac
16264 fi
16265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16266 && test "$tmp_diet" = no
16267 then
16268 tmp_addflag=' $pic_flag'
16269 tmp_sharedflag='-shared'
16270 case $cc_basename,$host_cpu in
16271 pgcc*) # Portland Group C compiler
16272 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'
16273 tmp_addflag=' $pic_flag'
16274 ;;
16275 pgf77* | pgf90* | pgf95* | pgfortran*)
16276 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
16279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16280 tmp_addflag=' -i_dynamic' ;;
16281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16282 tmp_addflag=' -i_dynamic -nofor_main' ;;
16283 ifc* | ifort*) # Intel Fortran compiler
16284 tmp_addflag=' -nofor_main' ;;
16285 lf95*) # Lahey Fortran 8.1
16286 whole_archive_flag_spec=
16287 tmp_sharedflag='--shared' ;;
16288 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16289 tmp_sharedflag='-qmkshrobj'
16290 tmp_addflag= ;;
16291 nvcc*) # Cuda Compiler Driver 2.2
16292 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'
16293 compiler_needs_object=yes
16294 ;;
16295 esac
16296 case `$CC -V 2>&1 | sed 5q` in
16297 *Sun\ C*) # Sun C 5.9
16298 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'
16299 compiler_needs_object=yes
16300 tmp_sharedflag='-G' ;;
16301 *Sun\ F*) # Sun Fortran 8.3
16302 tmp_sharedflag='-G' ;;
16303 esac
16304 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305
16306 if test "x$supports_anon_versioning" = xyes; then
16307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16309 echo "local: *; };" >> $output_objdir/$libname.ver~
16310 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16311 fi
16312
16313 case $cc_basename in
16314 xlf* | bgf* | bgxlf* | mpixlf*)
16315 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16316 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16317 hardcode_libdir_flag_spec=
16318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16319 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16320 if test "x$supports_anon_versioning" = xyes; then
16321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16323 echo "local: *; };" >> $output_objdir/$libname.ver~
16324 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16325 fi
16326 ;;
16327 esac
16328 else
16329 ld_shlibs=no
16330 fi
16331 ;;
16332
16333 netbsd*)
16334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16335 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16336 wlarc=
16337 else
16338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16340 fi
16341 ;;
16342
16343 solaris*)
16344 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16345 ld_shlibs=no
16346 cat <<_LT_EOF 1>&2
16347
16348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16349 *** create shared libraries on Solaris systems. Therefore, libtool
16350 *** is disabling shared libraries support. We urge you to upgrade GNU
16351 *** binutils to release 2.9.1 or newer. Another option is to modify
16352 *** your PATH or compiler configuration so that the native linker is
16353 *** used, and then restart.
16354
16355 _LT_EOF
16356 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 else
16360 ld_shlibs=no
16361 fi
16362 ;;
16363
16364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16365 case `$LD -v 2>&1` in
16366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16367 ld_shlibs=no
16368 cat <<_LT_EOF 1>&2
16369
16370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16371 *** reliably create shared libraries on SCO systems. Therefore, libtool
16372 *** is disabling shared libraries support. We urge you to upgrade GNU
16373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16374 *** your PATH or compiler configuration so that the native linker is
16375 *** used, and then restart.
16376
16377 _LT_EOF
16378 ;;
16379 *)
16380 # For security reasons, it is highly recommended that you always
16381 # use absolute paths for naming shared libraries, and exclude the
16382 # DT_RUNPATH tag from executables and libraries. But doing so
16383 # requires that you compile everything twice, which is a pain.
16384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16388 else
16389 ld_shlibs=no
16390 fi
16391 ;;
16392 esac
16393 ;;
16394
16395 sunos4*)
16396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16397 wlarc=
16398 hardcode_direct=yes
16399 hardcode_shlibpath_var=no
16400 ;;
16401
16402 *)
16403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16406 else
16407 ld_shlibs=no
16408 fi
16409 ;;
16410 esac
16411
16412 if test "$ld_shlibs" = no; then
16413 runpath_var=
16414 hardcode_libdir_flag_spec=
16415 export_dynamic_flag_spec=
16416 whole_archive_flag_spec=
16417 fi
16418 else
16419 # PORTME fill in a description of your system's linker (not GNU ld)
16420 case $host_os in
16421 aix3*)
16422 allow_undefined_flag=unsupported
16423 always_export_symbols=yes
16424 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'
16425 # Note: this linker hardcodes the directories in LIBPATH if there
16426 # are no directories specified by -L.
16427 hardcode_minus_L=yes
16428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16429 # Neither direct hardcoding nor static linking is supported with a
16430 # broken collect2.
16431 hardcode_direct=unsupported
16432 fi
16433 ;;
16434
16435 aix[4-9]*)
16436 if test "$host_cpu" = ia64; then
16437 # On IA64, the linker does run time linking by default, so we don't
16438 # have to do anything special.
16439 aix_use_runtimelinking=no
16440 exp_sym_flag='-Bexport'
16441 no_entry_flag=""
16442 else
16443 # If we're using GNU nm, then we don't want the "-C" option.
16444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16445 # Also, AIX nm treats weak defined symbols like other global
16446 # defined symbols, whereas GNU nm marks them as "W".
16447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16448 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'
16449 else
16450 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'
16451 fi
16452 aix_use_runtimelinking=no
16453
16454 # Test if we are trying to use run time linking or normal
16455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16456 # need to do runtime linking.
16457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16458 for ld_flag in $LDFLAGS; do
16459 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16460 aix_use_runtimelinking=yes
16461 break
16462 fi
16463 done
16464 ;;
16465 esac
16466
16467 exp_sym_flag='-bexport'
16468 no_entry_flag='-bnoentry'
16469 fi
16470
16471 # When large executables or shared objects are built, AIX ld can
16472 # have problems creating the table of contents. If linking a library
16473 # or program results in "error TOC overflow" add -mminimal-toc to
16474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16476
16477 archive_cmds=''
16478 hardcode_direct=yes
16479 hardcode_direct_absolute=yes
16480 hardcode_libdir_separator=':'
16481 link_all_deplibs=yes
16482 file_list_spec='${wl}-f,'
16483
16484 if test "$GCC" = yes; then
16485 case $host_os in aix4.[012]|aix4.[012].*)
16486 # We only want to do this on AIX 4.2 and lower, the check
16487 # below for broken collect2 doesn't work under 4.3+
16488 collect2name=`${CC} -print-prog-name=collect2`
16489 if test -f "$collect2name" &&
16490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16491 then
16492 # We have reworked collect2
16493 :
16494 else
16495 # We have old collect2
16496 hardcode_direct=unsupported
16497 # It fails to find uninstalled libraries when the uninstalled
16498 # path is not listed in the libpath. Setting hardcode_minus_L
16499 # to unsupported forces relinking
16500 hardcode_minus_L=yes
16501 hardcode_libdir_flag_spec='-L$libdir'
16502 hardcode_libdir_separator=
16503 fi
16504 ;;
16505 esac
16506 shared_flag='-shared'
16507 if test "$aix_use_runtimelinking" = yes; then
16508 shared_flag="$shared_flag "'${wl}-G'
16509 fi
16510 else
16511 # not using gcc
16512 if test "$host_cpu" = ia64; then
16513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16514 # chokes on -Wl,-G. The following line is correct:
16515 shared_flag='-G'
16516 else
16517 if test "$aix_use_runtimelinking" = yes; then
16518 shared_flag='${wl}-G'
16519 else
16520 shared_flag='${wl}-bM:SRE'
16521 fi
16522 fi
16523 fi
16524
16525 export_dynamic_flag_spec='${wl}-bexpall'
16526 # It seems that -bexpall does not export symbols beginning with
16527 # underscore (_), so it is better to generate a list of symbols to export.
16528 always_export_symbols=yes
16529 if test "$aix_use_runtimelinking" = yes; then
16530 # Warning - without using the other runtime loading flags (-brtl),
16531 # -berok will link without error, but may produce a broken library.
16532 allow_undefined_flag='-berok'
16533 # Determine the default libpath from the value encoded in an
16534 # empty executable.
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537
16538 int
16539 main ()
16540 {
16541
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547
16548 lt_aix_libpath_sed='
16549 /Import File Strings/,/^$/ {
16550 /^0/ {
16551 s/^0 *\(.*\)$/\1/
16552 p
16553 }
16554 }'
16555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16556 # Check for a 64-bit object if we didn't find anything.
16557 if test -z "$aix_libpath"; then
16558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16559 fi
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16564
16565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16566 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"
16567 else
16568 if test "$host_cpu" = ia64; then
16569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16570 allow_undefined_flag="-z nodefs"
16571 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"
16572 else
16573 # Determine the default libpath from the value encoded in an
16574 # empty executable.
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16577
16578 int
16579 main ()
16580 {
16581
16582 ;
16583 return 0;
16584 }
16585 _ACEOF
16586 if ac_fn_c_try_link "$LINENO"; then :
16587
16588 lt_aix_libpath_sed='
16589 /Import File Strings/,/^$/ {
16590 /^0/ {
16591 s/^0 *\(.*\)$/\1/
16592 p
16593 }
16594 }'
16595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16596 # Check for a 64-bit object if we didn't find anything.
16597 if test -z "$aix_libpath"; then
16598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16599 fi
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16604
16605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16606 # Warning - without using the other run time loading flags,
16607 # -berok will link without error, but may produce a broken library.
16608 no_undefined_flag=' ${wl}-bernotok'
16609 allow_undefined_flag=' ${wl}-berok'
16610 if test "$with_gnu_ld" = yes; then
16611 # We only use this code for GNU lds that support --whole-archive.
16612 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16613 else
16614 # Exported symbols can be pulled into shared objects from archives
16615 whole_archive_flag_spec='$convenience'
16616 fi
16617 archive_cmds_need_lc=yes
16618 # This is similar to how AIX traditionally builds its shared libraries.
16619 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'
16620 fi
16621 fi
16622 ;;
16623
16624 amigaos*)
16625 case $host_cpu in
16626 powerpc)
16627 # see comment about AmigaOS4 .so support
16628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629 archive_expsym_cmds=''
16630 ;;
16631 m68k)
16632 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)'
16633 hardcode_libdir_flag_spec='-L$libdir'
16634 hardcode_minus_L=yes
16635 ;;
16636 esac
16637 ;;
16638
16639 bsdi[45]*)
16640 export_dynamic_flag_spec=-rdynamic
16641 ;;
16642
16643 cygwin* | mingw* | pw32* | cegcc*)
16644 # When not using gcc, we currently assume that we are using
16645 # Microsoft Visual C++.
16646 # hardcode_libdir_flag_spec is actually meaningless, as there is
16647 # no search path for DLLs.
16648 hardcode_libdir_flag_spec=' '
16649 allow_undefined_flag=unsupported
16650 # Tell ltmain to make .lib files, not .a files.
16651 libext=lib
16652 # Tell ltmain to make .dll files, not .so files.
16653 shrext_cmds=".dll"
16654 # FIXME: Setting linknames here is a bad hack.
16655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16656 # The linker will automatically build a .lib file if we build a DLL.
16657 old_archive_from_new_cmds='true'
16658 # FIXME: Should let the user specify the lib program.
16659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16660 fix_srcfile_path='`cygpath -w "$srcfile"`'
16661 enable_shared_with_static_runtimes=yes
16662 ;;
16663
16664 darwin* | rhapsody*)
16665
16666
16667 archive_cmds_need_lc=no
16668 hardcode_direct=no
16669 hardcode_automatic=yes
16670 hardcode_shlibpath_var=unsupported
16671 if test "$lt_cv_ld_force_load" = "yes"; then
16672 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\"`'
16673 else
16674 whole_archive_flag_spec=''
16675 fi
16676 link_all_deplibs=yes
16677 allow_undefined_flag="$_lt_dar_allow_undefined"
16678 case $cc_basename in
16679 ifort*) _lt_dar_can_shared=yes ;;
16680 *) _lt_dar_can_shared=$GCC ;;
16681 esac
16682 if test "$_lt_dar_can_shared" = "yes"; then
16683 output_verbose_link_cmd=func_echo_all
16684 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16685 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16686 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}"
16687 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}"
16688
16689 else
16690 ld_shlibs=no
16691 fi
16692
16693 ;;
16694
16695 dgux*)
16696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16697 hardcode_libdir_flag_spec='-L$libdir'
16698 hardcode_shlibpath_var=no
16699 ;;
16700
16701 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16702 # support. Future versions do this automatically, but an explicit c++rt0.o
16703 # does not break anything, and helps significantly (at the cost of a little
16704 # extra space).
16705 freebsd2.2*)
16706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16707 hardcode_libdir_flag_spec='-R$libdir'
16708 hardcode_direct=yes
16709 hardcode_shlibpath_var=no
16710 ;;
16711
16712 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16713 freebsd2.*)
16714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16715 hardcode_direct=yes
16716 hardcode_minus_L=yes
16717 hardcode_shlibpath_var=no
16718 ;;
16719
16720 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16721 freebsd* | dragonfly*)
16722 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16723 hardcode_libdir_flag_spec='-R$libdir'
16724 hardcode_direct=yes
16725 hardcode_shlibpath_var=no
16726 ;;
16727
16728 hpux9*)
16729 if test "$GCC" = yes; then
16730 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'
16731 else
16732 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'
16733 fi
16734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16735 hardcode_libdir_separator=:
16736 hardcode_direct=yes
16737
16738 # hardcode_minus_L: Not really in the search PATH,
16739 # but as the default location of the library.
16740 hardcode_minus_L=yes
16741 export_dynamic_flag_spec='${wl}-E'
16742 ;;
16743
16744 hpux10*)
16745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16746 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16747 else
16748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16749 fi
16750 if test "$with_gnu_ld" = no; then
16751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16752 hardcode_libdir_flag_spec_ld='+b $libdir'
16753 hardcode_libdir_separator=:
16754 hardcode_direct=yes
16755 hardcode_direct_absolute=yes
16756 export_dynamic_flag_spec='${wl}-E'
16757 # hardcode_minus_L: Not really in the search PATH,
16758 # but as the default location of the library.
16759 hardcode_minus_L=yes
16760 fi
16761 ;;
16762
16763 hpux11*)
16764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16765 case $host_cpu in
16766 hppa*64*)
16767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 ;;
16769 ia64*)
16770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16771 ;;
16772 *)
16773 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16774 ;;
16775 esac
16776 else
16777 case $host_cpu in
16778 hppa*64*)
16779 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 ;;
16781 ia64*)
16782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16783 ;;
16784 *)
16785
16786 # Older versions of the 11.00 compiler do not understand -b yet
16787 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16789 $as_echo_n "checking if $CC understands -b... " >&6; }
16790 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 lt_cv_prog_compiler__b=no
16794 save_LDFLAGS="$LDFLAGS"
16795 LDFLAGS="$LDFLAGS -b"
16796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16798 # The linker can only warn and ignore the option if not recognized
16799 # So say no if there are warnings
16800 if test -s conftest.err; then
16801 # Append any errors to the config.log.
16802 cat conftest.err 1>&5
16803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16805 if diff conftest.exp conftest.er2 >/dev/null; then
16806 lt_cv_prog_compiler__b=yes
16807 fi
16808 else
16809 lt_cv_prog_compiler__b=yes
16810 fi
16811 fi
16812 $RM -r conftest*
16813 LDFLAGS="$save_LDFLAGS"
16814
16815 fi
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16818
16819 if test x"$lt_cv_prog_compiler__b" = xyes; then
16820 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16821 else
16822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16823 fi
16824
16825 ;;
16826 esac
16827 fi
16828 if test "$with_gnu_ld" = no; then
16829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16830 hardcode_libdir_separator=:
16831
16832 case $host_cpu in
16833 hppa*64*|ia64*)
16834 hardcode_direct=no
16835 hardcode_shlibpath_var=no
16836 ;;
16837 *)
16838 hardcode_direct=yes
16839 hardcode_direct_absolute=yes
16840 export_dynamic_flag_spec='${wl}-E'
16841
16842 # hardcode_minus_L: Not really in the search PATH,
16843 # but as the default location of the library.
16844 hardcode_minus_L=yes
16845 ;;
16846 esac
16847 fi
16848 ;;
16849
16850 irix5* | irix6* | nonstopux*)
16851 if test "$GCC" = yes; then
16852 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'
16853 # Try to use the -exported_symbol ld option, if it does not
16854 # work, assume that -exports_file does not work either and
16855 # implicitly export all symbols.
16856 save_LDFLAGS="$LDFLAGS"
16857 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860 int foo(void) {}
16861 _ACEOF
16862 if ac_fn_c_try_link "$LINENO"; then :
16863 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'
16864
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868 LDFLAGS="$save_LDFLAGS"
16869 else
16870 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'
16871 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'
16872 fi
16873 archive_cmds_need_lc='no'
16874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16875 hardcode_libdir_separator=:
16876 inherit_rpath=yes
16877 link_all_deplibs=yes
16878 ;;
16879
16880 netbsd*)
16881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16883 else
16884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16885 fi
16886 hardcode_libdir_flag_spec='-R$libdir'
16887 hardcode_direct=yes
16888 hardcode_shlibpath_var=no
16889 ;;
16890
16891 newsos6)
16892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893 hardcode_direct=yes
16894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator=:
16896 hardcode_shlibpath_var=no
16897 ;;
16898
16899 *nto* | *qnx*)
16900 ;;
16901
16902 openbsd*)
16903 if test -f /usr/libexec/ld.so; then
16904 hardcode_direct=yes
16905 hardcode_shlibpath_var=no
16906 hardcode_direct_absolute=yes
16907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16911 export_dynamic_flag_spec='${wl}-E'
16912 else
16913 case $host_os in
16914 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16916 hardcode_libdir_flag_spec='-R$libdir'
16917 ;;
16918 *)
16919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16921 ;;
16922 esac
16923 fi
16924 else
16925 ld_shlibs=no
16926 fi
16927 ;;
16928
16929 os2*)
16930 hardcode_libdir_flag_spec='-L$libdir'
16931 hardcode_minus_L=yes
16932 allow_undefined_flag=unsupported
16933 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'
16934 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16935 ;;
16936
16937 osf3*)
16938 if test "$GCC" = yes; then
16939 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16940 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'
16941 else
16942 allow_undefined_flag=' -expect_unresolved \*'
16943 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'
16944 fi
16945 archive_cmds_need_lc='no'
16946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16947 hardcode_libdir_separator=:
16948 ;;
16949
16950 osf4* | osf5*) # as osf3* with the addition of -msym flag
16951 if test "$GCC" = yes; then
16952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16953 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'
16954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16955 else
16956 allow_undefined_flag=' -expect_unresolved \*'
16957 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'
16958 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~
16959 $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'
16960
16961 # Both c and cxx compiler support -rpath directly
16962 hardcode_libdir_flag_spec='-rpath $libdir'
16963 fi
16964 archive_cmds_need_lc='no'
16965 hardcode_libdir_separator=:
16966 ;;
16967
16968 solaris*)
16969 no_undefined_flag=' -z defs'
16970 if test "$GCC" = yes; then
16971 wlarc='${wl}'
16972 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16974 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16975 else
16976 case `$CC -V 2>&1` in
16977 *"Compilers 5.0"*)
16978 wlarc=''
16979 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16982 ;;
16983 *)
16984 wlarc='${wl}'
16985 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16987 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16988 ;;
16989 esac
16990 fi
16991 hardcode_libdir_flag_spec='-R$libdir'
16992 hardcode_shlibpath_var=no
16993 case $host_os in
16994 solaris2.[0-5] | solaris2.[0-5].*) ;;
16995 *)
16996 # The compiler driver will combine and reorder linker options,
16997 # but understands `-z linker_flag'. GCC discards it without `$wl',
16998 # but is careful enough not to reorder.
16999 # Supported since Solaris 2.6 (maybe 2.5.1?)
17000 if test "$GCC" = yes; then
17001 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17002 else
17003 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17004 fi
17005 ;;
17006 esac
17007 link_all_deplibs=yes
17008 ;;
17009
17010 sunos4*)
17011 if test "x$host_vendor" = xsequent; then
17012 # Use $CC to link under sequent, because it throws in some extra .o
17013 # files that make .init and .fini sections work.
17014 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17015 else
17016 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17017 fi
17018 hardcode_libdir_flag_spec='-L$libdir'
17019 hardcode_direct=yes
17020 hardcode_minus_L=yes
17021 hardcode_shlibpath_var=no
17022 ;;
17023
17024 sysv4)
17025 case $host_vendor in
17026 sni)
17027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17028 hardcode_direct=yes # is this really true???
17029 ;;
17030 siemens)
17031 ## LD is ld it makes a PLAMLIB
17032 ## CC just makes a GrossModule.
17033 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17034 reload_cmds='$CC -r -o $output$reload_objs'
17035 hardcode_direct=no
17036 ;;
17037 motorola)
17038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17040 ;;
17041 esac
17042 runpath_var='LD_RUN_PATH'
17043 hardcode_shlibpath_var=no
17044 ;;
17045
17046 sysv4.3*)
17047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_shlibpath_var=no
17049 export_dynamic_flag_spec='-Bexport'
17050 ;;
17051
17052 sysv4*MP*)
17053 if test -d /usr/nec; then
17054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055 hardcode_shlibpath_var=no
17056 runpath_var=LD_RUN_PATH
17057 hardcode_runpath_var=yes
17058 ld_shlibs=yes
17059 fi
17060 ;;
17061
17062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17063 no_undefined_flag='${wl}-z,text'
17064 archive_cmds_need_lc=no
17065 hardcode_shlibpath_var=no
17066 runpath_var='LD_RUN_PATH'
17067
17068 if test "$GCC" = yes; then
17069 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 else
17072 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 fi
17075 ;;
17076
17077 sysv5* | sco3.2v5* | sco5v6*)
17078 # Note: We can NOT use -z defs as we might desire, because we do not
17079 # link with -lc, and that would cause any symbols used from libc to
17080 # always be unresolved, which means just about no library would
17081 # ever link correctly. If we're not using GNU ld we use -z text
17082 # though, which does catch some bad symbols but isn't as heavy-handed
17083 # as -z defs.
17084 no_undefined_flag='${wl}-z,text'
17085 allow_undefined_flag='${wl}-z,nodefs'
17086 archive_cmds_need_lc=no
17087 hardcode_shlibpath_var=no
17088 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17089 hardcode_libdir_separator=':'
17090 link_all_deplibs=yes
17091 export_dynamic_flag_spec='${wl}-Bexport'
17092 runpath_var='LD_RUN_PATH'
17093
17094 if test "$GCC" = yes; then
17095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 else
17098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 fi
17101 ;;
17102
17103 uts4*)
17104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17105 hardcode_libdir_flag_spec='-L$libdir'
17106 hardcode_shlibpath_var=no
17107 ;;
17108
17109 *)
17110 ld_shlibs=no
17111 ;;
17112 esac
17113
17114 if test x$host_vendor = xsni; then
17115 case $host in
17116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17117 export_dynamic_flag_spec='${wl}-Blargedynsym'
17118 ;;
17119 esac
17120 fi
17121 fi
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17124 $as_echo "$ld_shlibs" >&6; }
17125 test "$ld_shlibs" = no && can_build_shared=no
17126
17127 with_gnu_ld=$with_gnu_ld
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143 #
17144 # Do we need to explicitly link libc?
17145 #
17146 case "x$archive_cmds_need_lc" in
17147 x|xyes)
17148 # Assume -lc should be added
17149 archive_cmds_need_lc=yes
17150
17151 if test "$enable_shared" = yes && test "$GCC" = yes; then
17152 case $archive_cmds in
17153 *'~'*)
17154 # FIXME: we may have to deal with multi-command sequences.
17155 ;;
17156 '$CC '*)
17157 # Test whether the compiler implicitly links with -lc since on some
17158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17159 # to ld, don't add -lc before -lgcc.
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17161 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17162 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17163 $as_echo_n "(cached) " >&6
17164 else
17165 $RM conftest*
17166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17167
17168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17169 (eval $ac_compile) 2>&5
17170 ac_status=$?
17171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17172 test $ac_status = 0; } 2>conftest.err; then
17173 soname=conftest
17174 lib=conftest
17175 libobjs=conftest.$ac_objext
17176 deplibs=
17177 wl=$lt_prog_compiler_wl
17178 pic_flag=$lt_prog_compiler_pic
17179 compiler_flags=-v
17180 linker_flags=-v
17181 verstring=
17182 output_objdir=.
17183 libname=conftest
17184 lt_save_allow_undefined_flag=$allow_undefined_flag
17185 allow_undefined_flag=
17186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17187 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; }
17191 then
17192 lt_cv_archive_cmds_need_lc=no
17193 else
17194 lt_cv_archive_cmds_need_lc=yes
17195 fi
17196 allow_undefined_flag=$lt_save_allow_undefined_flag
17197 else
17198 cat conftest.err 1>&5
17199 fi
17200 $RM conftest*
17201
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17204 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17205 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17206 ;;
17207 esac
17208 fi
17209 ;;
17210 esac
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
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17369 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17370
17371 if test "$GCC" = yes; then
17372 case $host_os in
17373 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17374 *) lt_awk_arg="/^libraries:/" ;;
17375 esac
17376 case $host_os in
17377 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17378 *) lt_sed_strip_eq="s,=/,/,g" ;;
17379 esac
17380 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17381 case $lt_search_path_spec in
17382 *\;*)
17383 # if the path contains ";" then we assume it to be the separator
17384 # otherwise default to the standard path separator (i.e. ":") - it is
17385 # assumed that no part of a normal pathname contains ";" but that should
17386 # okay in the real world where ";" in dirpaths is itself problematic.
17387 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17388 ;;
17389 *)
17390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17391 ;;
17392 esac
17393 # Ok, now we have the path, separated by spaces, we can step through it
17394 # and add multilib dir if necessary.
17395 lt_tmp_lt_search_path_spec=
17396 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17397 for lt_sys_path in $lt_search_path_spec; do
17398 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17399 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17400 else
17401 test -d "$lt_sys_path" && \
17402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17403 fi
17404 done
17405 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17406 BEGIN {RS=" "; FS="/|\n";} {
17407 lt_foo="";
17408 lt_count=0;
17409 for (lt_i = NF; lt_i > 0; lt_i--) {
17410 if ($lt_i != "" && $lt_i != ".") {
17411 if ($lt_i == "..") {
17412 lt_count++;
17413 } else {
17414 if (lt_count == 0) {
17415 lt_foo="/" $lt_i lt_foo;
17416 } else {
17417 lt_count--;
17418 }
17419 }
17420 }
17421 }
17422 if (lt_foo != "") { lt_freq[lt_foo]++; }
17423 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17424 }'`
17425 # AWK program above erroneously prepends '/' to C:/dos/paths
17426 # for these hosts.
17427 case $host_os in
17428 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17429 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17430 esac
17431 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17432 else
17433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17434 fi
17435 library_names_spec=
17436 libname_spec='lib$name'
17437 soname_spec=
17438 shrext_cmds=".so"
17439 postinstall_cmds=
17440 postuninstall_cmds=
17441 finish_cmds=
17442 finish_eval=
17443 shlibpath_var=
17444 shlibpath_overrides_runpath=unknown
17445 version_type=none
17446 dynamic_linker="$host_os ld.so"
17447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17448 need_lib_prefix=unknown
17449 hardcode_into_libs=no
17450
17451 # when you set need_version to no, make sure it does not cause -set_version
17452 # flags to be left without arguments
17453 need_version=unknown
17454
17455 case $host_os in
17456 aix3*)
17457 version_type=linux
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17459 shlibpath_var=LIBPATH
17460
17461 # AIX 3 has no versioning support, so we append a major version to the name.
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 ;;
17464
17465 aix[4-9]*)
17466 version_type=linux
17467 need_lib_prefix=no
17468 need_version=no
17469 hardcode_into_libs=yes
17470 if test "$host_cpu" = ia64; then
17471 # AIX 5 supports IA64
17472 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17473 shlibpath_var=LD_LIBRARY_PATH
17474 else
17475 # With GCC up to 2.95.x, collect2 would create an import file
17476 # for dependence libraries. The import file would start with
17477 # the line `#! .'. This would cause the generated library to
17478 # depend on `.', always an invalid library. This was fixed in
17479 # development snapshots of GCC prior to 3.0.
17480 case $host_os in
17481 aix4 | aix4.[01] | aix4.[01].*)
17482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17483 echo ' yes '
17484 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17485 :
17486 else
17487 can_build_shared=no
17488 fi
17489 ;;
17490 esac
17491 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17492 # soname into executable. Probably we can add versioning support to
17493 # collect2, so additional links can be useful in future.
17494 if test "$aix_use_runtimelinking" = yes; then
17495 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17496 # instead of lib<name>.a to let people know that these are not
17497 # typical AIX shared libraries.
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 else
17500 # We preserve .a as extension for shared libraries through AIX4.2
17501 # and later when we are not doing run time linking.
17502 library_names_spec='${libname}${release}.a $libname.a'
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 fi
17505 shlibpath_var=LIBPATH
17506 fi
17507 ;;
17508
17509 amigaos*)
17510 case $host_cpu in
17511 powerpc)
17512 # Since July 2007 AmigaOS4 officially supports .so libraries.
17513 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 ;;
17516 m68k)
17517 library_names_spec='$libname.ixlibrary $libname.a'
17518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17519 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'
17520 ;;
17521 esac
17522 ;;
17523
17524 beos*)
17525 library_names_spec='${libname}${shared_ext}'
17526 dynamic_linker="$host_os ld.so"
17527 shlibpath_var=LIBRARY_PATH
17528 ;;
17529
17530 bsdi[45]*)
17531 version_type=linux
17532 need_version=no
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17539 # the default ld.so.conf also contains /usr/contrib/lib and
17540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17541 # libtool to hard-code these into programs
17542 ;;
17543
17544 cygwin* | mingw* | pw32* | cegcc*)
17545 version_type=windows
17546 shrext_cmds=".dll"
17547 need_version=no
17548 need_lib_prefix=no
17549
17550 case $GCC,$host_os in
17551 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17552 library_names_spec='$libname.dll.a'
17553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17554 postinstall_cmds='base_file=`basename \${file}`~
17555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17556 dldir=$destdir/`dirname \$dlpath`~
17557 test -d \$dldir || mkdir -p \$dldir~
17558 $install_prog $dir/$dlname \$dldir/$dlname~
17559 chmod a+x \$dldir/$dlname~
17560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17562 fi'
17563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17564 dlpath=$dir/\$dldll~
17565 $RM \$dlpath'
17566 shlibpath_overrides_runpath=yes
17567
17568 case $host_os in
17569 cygwin*)
17570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17572
17573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17574 ;;
17575 mingw* | cegcc*)
17576 # MinGW DLLs use traditional 'lib' prefix
17577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17578 ;;
17579 pw32*)
17580 # pw32 DLLs use 'pw' prefix rather than 'lib'
17581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17582 ;;
17583 esac
17584 ;;
17585
17586 *)
17587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17588 ;;
17589 esac
17590 dynamic_linker='Win32 ld.exe'
17591 # FIXME: first we should search . and the directory the executable is in
17592 shlibpath_var=PATH
17593 ;;
17594
17595 darwin* | rhapsody*)
17596 dynamic_linker="$host_os dyld"
17597 version_type=darwin
17598 need_lib_prefix=no
17599 need_version=no
17600 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17601 soname_spec='${libname}${release}${major}$shared_ext'
17602 shlibpath_overrides_runpath=yes
17603 shlibpath_var=DYLD_LIBRARY_PATH
17604 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17605
17606 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17608 ;;
17609
17610 dgux*)
17611 version_type=linux
17612 need_lib_prefix=no
17613 need_version=no
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LD_LIBRARY_PATH
17617 ;;
17618
17619 freebsd* | dragonfly*)
17620 # DragonFly does not have aout. When/if they implement a new
17621 # versioning mechanism, adjust this.
17622 if test -x /usr/bin/objformat; then
17623 objformat=`/usr/bin/objformat`
17624 else
17625 case $host_os in
17626 freebsd[23].*) objformat=aout ;;
17627 *) objformat=elf ;;
17628 esac
17629 fi
17630 version_type=freebsd-$objformat
17631 case $version_type in
17632 freebsd-elf*)
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17634 need_version=no
17635 need_lib_prefix=no
17636 ;;
17637 freebsd-*)
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17639 need_version=yes
17640 ;;
17641 esac
17642 shlibpath_var=LD_LIBRARY_PATH
17643 case $host_os in
17644 freebsd2.*)
17645 shlibpath_overrides_runpath=yes
17646 ;;
17647 freebsd3.[01]* | freebsdelf3.[01]*)
17648 shlibpath_overrides_runpath=yes
17649 hardcode_into_libs=yes
17650 ;;
17651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17653 shlibpath_overrides_runpath=no
17654 hardcode_into_libs=yes
17655 ;;
17656 *) # from 4.6 on, and DragonFly
17657 shlibpath_overrides_runpath=yes
17658 hardcode_into_libs=yes
17659 ;;
17660 esac
17661 ;;
17662
17663 gnu*)
17664 version_type=linux
17665 need_lib_prefix=no
17666 need_version=no
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 hardcode_into_libs=yes
17671 ;;
17672
17673 haiku*)
17674 version_type=linux
17675 need_lib_prefix=no
17676 need_version=no
17677 dynamic_linker="$host_os runtime_loader"
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 shlibpath_var=LIBRARY_PATH
17681 shlibpath_overrides_runpath=yes
17682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17683 hardcode_into_libs=yes
17684 ;;
17685
17686 hpux9* | hpux10* | hpux11*)
17687 # Give a soname corresponding to the major version so that dld.sl refuses to
17688 # link against other versions.
17689 version_type=sunos
17690 need_lib_prefix=no
17691 need_version=no
17692 case $host_cpu in
17693 ia64*)
17694 shrext_cmds='.so'
17695 hardcode_into_libs=yes
17696 dynamic_linker="$host_os dld.so"
17697 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
17702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17703 else
17704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17705 fi
17706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17707 ;;
17708 hppa*64*)
17709 shrext_cmds='.sl'
17710 hardcode_into_libs=yes
17711 dynamic_linker="$host_os dld.sl"
17712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17718 ;;
17719 *)
17720 shrext_cmds='.sl'
17721 dynamic_linker="$host_os dld.sl"
17722 shlibpath_var=SHLIB_PATH
17723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 ;;
17727 esac
17728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17729 postinstall_cmds='chmod 555 $lib'
17730 # or fails outright, so override atomically:
17731 install_override_mode=555
17732 ;;
17733
17734 interix[3-9]*)
17735 version_type=linux
17736 need_lib_prefix=no
17737 need_version=no
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=no
17743 hardcode_into_libs=yes
17744 ;;
17745
17746 irix5* | irix6* | nonstopux*)
17747 case $host_os in
17748 nonstopux*) version_type=nonstopux ;;
17749 *)
17750 if test "$lt_cv_prog_gnu_ld" = yes; then
17751 version_type=linux
17752 else
17753 version_type=irix
17754 fi ;;
17755 esac
17756 need_lib_prefix=no
17757 need_version=no
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17760 case $host_os in
17761 irix5* | nonstopux*)
17762 libsuff= shlibsuff=
17763 ;;
17764 *)
17765 case $LD in # libtool.m4 will add one of these switches to LD
17766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17767 libsuff= shlibsuff= libmagic=32-bit;;
17768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17769 libsuff=32 shlibsuff=N32 libmagic=N32;;
17770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17772 *) libsuff= shlibsuff= libmagic=never-match;;
17773 esac
17774 ;;
17775 esac
17776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17777 shlibpath_overrides_runpath=no
17778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17780 hardcode_into_libs=yes
17781 ;;
17782
17783 # No shared lib support for Linux oldld, aout, or coff.
17784 linux*oldld* | linux*aout* | linux*coff*)
17785 dynamic_linker=no
17786 ;;
17787
17788 # This must be Linux ELF.
17789 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17790 version_type=linux
17791 need_lib_prefix=no
17792 need_version=no
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 shlibpath_overrides_runpath=no
17798
17799 # Some binutils ld are patched to set DT_RUNPATH
17800 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17801 $as_echo_n "(cached) " >&6
17802 else
17803 lt_cv_shlibpath_overrides_runpath=no
17804 save_LDFLAGS=$LDFLAGS
17805 save_libdir=$libdir
17806 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17807 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810
17811 int
17812 main ()
17813 {
17814
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"; then :
17820 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17821 lt_cv_shlibpath_overrides_runpath=yes
17822 fi
17823 fi
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 LDFLAGS=$save_LDFLAGS
17827 libdir=$save_libdir
17828
17829 fi
17830
17831 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17832
17833 # This implies no fast_install, which is unacceptable.
17834 # Some rework will be needed to allow for fast_install
17835 # before this can be enabled.
17836 hardcode_into_libs=yes
17837
17838 # Append ld.so.conf contents to the search path
17839 if test -f /etc/ld.so.conf; then
17840 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' ' '`
17841 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17842 fi
17843
17844 # We used to test for /lib/ld.so.1 and disable shared libraries on
17845 # powerpc, because MkLinux only supported shared libraries with the
17846 # GNU dynamic linker. Since this was broken with cross compilers,
17847 # most powerpc-linux boxes support dynamic linking these days and
17848 # people can always --disable-shared, the test was removed, and we
17849 # assume the GNU/Linux dynamic linker is in use.
17850 dynamic_linker='GNU/Linux ld.so'
17851 ;;
17852
17853 netbsd*)
17854 version_type=sunos
17855 need_lib_prefix=no
17856 need_version=no
17857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17860 dynamic_linker='NetBSD (a.out) ld.so'
17861 else
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 dynamic_linker='NetBSD ld.elf_so'
17865 fi
17866 shlibpath_var=LD_LIBRARY_PATH
17867 shlibpath_overrides_runpath=yes
17868 hardcode_into_libs=yes
17869 ;;
17870
17871 newsos6)
17872 version_type=linux
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874 shlibpath_var=LD_LIBRARY_PATH
17875 shlibpath_overrides_runpath=yes
17876 ;;
17877
17878 *nto* | *qnx*)
17879 version_type=qnx
17880 need_lib_prefix=no
17881 need_version=no
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17883 soname_spec='${libname}${release}${shared_ext}$major'
17884 shlibpath_var=LD_LIBRARY_PATH
17885 shlibpath_overrides_runpath=no
17886 hardcode_into_libs=yes
17887 dynamic_linker='ldqnx.so'
17888 ;;
17889
17890 openbsd*)
17891 version_type=sunos
17892 sys_lib_dlsearch_path_spec="/usr/lib"
17893 need_lib_prefix=no
17894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17895 case $host_os in
17896 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17897 *) need_version=no ;;
17898 esac
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17901 shlibpath_var=LD_LIBRARY_PATH
17902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17903 case $host_os in
17904 openbsd2.[89] | openbsd2.[89].*)
17905 shlibpath_overrides_runpath=no
17906 ;;
17907 *)
17908 shlibpath_overrides_runpath=yes
17909 ;;
17910 esac
17911 else
17912 shlibpath_overrides_runpath=yes
17913 fi
17914 ;;
17915
17916 os2*)
17917 libname_spec='$name'
17918 shrext_cmds=".dll"
17919 need_lib_prefix=no
17920 library_names_spec='$libname${shared_ext} $libname.a'
17921 dynamic_linker='OS/2 ld.exe'
17922 shlibpath_var=LIBPATH
17923 ;;
17924
17925 osf3* | osf4* | osf5*)
17926 version_type=osf
17927 need_lib_prefix=no
17928 need_version=no
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17934 ;;
17935
17936 rdos*)
17937 dynamic_linker=no
17938 ;;
17939
17940 solaris*)
17941 version_type=linux
17942 need_lib_prefix=no
17943 need_version=no
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 shlibpath_var=LD_LIBRARY_PATH
17947 shlibpath_overrides_runpath=yes
17948 hardcode_into_libs=yes
17949 # ldd complains unless libraries are executable
17950 postinstall_cmds='chmod +x $lib'
17951 ;;
17952
17953 sunos4*)
17954 version_type=sunos
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17956 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=yes
17959 if test "$with_gnu_ld" = yes; then
17960 need_lib_prefix=no
17961 fi
17962 need_version=yes
17963 ;;
17964
17965 sysv4 | sysv4.3*)
17966 version_type=linux
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 case $host_vendor in
17971 sni)
17972 shlibpath_overrides_runpath=no
17973 need_lib_prefix=no
17974 runpath_var=LD_RUN_PATH
17975 ;;
17976 siemens)
17977 need_lib_prefix=no
17978 ;;
17979 motorola)
17980 need_lib_prefix=no
17981 need_version=no
17982 shlibpath_overrides_runpath=no
17983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17984 ;;
17985 esac
17986 ;;
17987
17988 sysv4*MP*)
17989 if test -d /usr/nec ;then
17990 version_type=linux
17991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17992 soname_spec='$libname${shared_ext}.$major'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 fi
17995 ;;
17996
17997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17998 version_type=freebsd-elf
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath=yes
18005 hardcode_into_libs=yes
18006 if test "$with_gnu_ld" = yes; then
18007 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18008 else
18009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18010 case $host_os in
18011 sco3.2v5*)
18012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18013 ;;
18014 esac
18015 fi
18016 sys_lib_dlsearch_path_spec='/usr/lib'
18017 ;;
18018
18019 tpf*)
18020 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18021 version_type=linux
18022 need_lib_prefix=no
18023 need_version=no
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=no
18027 hardcode_into_libs=yes
18028 ;;
18029
18030 uts4*)
18031 version_type=linux
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18033 soname_spec='${libname}${release}${shared_ext}$major'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 ;;
18036
18037 *)
18038 dynamic_linker=no
18039 ;;
18040 esac
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18042 $as_echo "$dynamic_linker" >&6; }
18043 test "$dynamic_linker" = no && can_build_shared=no
18044
18045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18046 if test "$GCC" = yes; then
18047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18048 fi
18049
18050 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18051 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18052 fi
18053 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18054 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18055 fi
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
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18150 hardcode_action=
18151 if test -n "$hardcode_libdir_flag_spec" ||
18152 test -n "$runpath_var" ||
18153 test "X$hardcode_automatic" = "Xyes" ; then
18154
18155 # We can hardcode non-existent directories.
18156 if test "$hardcode_direct" != no &&
18157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18158 # have to relink, otherwise we might link with an installed library
18159 # when we should be linking with a yet-to-be-installed one
18160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18161 test "$hardcode_minus_L" != no; then
18162 # Linking always hardcodes the temporary library directory.
18163 hardcode_action=relink
18164 else
18165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18166 hardcode_action=immediate
18167 fi
18168 else
18169 # We cannot hardcode anything, or else we can only hardcode existing
18170 # directories.
18171 hardcode_action=unsupported
18172 fi
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18174 $as_echo "$hardcode_action" >&6; }
18175
18176 if test "$hardcode_action" = relink ||
18177 test "$inherit_rpath" = yes; then
18178 # Fast installation is not supported
18179 enable_fast_install=no
18180 elif test "$shlibpath_overrides_runpath" = yes ||
18181 test "$enable_shared" = no; then
18182 # Fast installation is not necessary
18183 enable_fast_install=needless
18184 fi
18185
18186
18187
18188
18189
18190
18191 if test "x$enable_dlopen" != xyes; then
18192 enable_dlopen=unknown
18193 enable_dlopen_self=unknown
18194 enable_dlopen_self_static=unknown
18195 else
18196 lt_cv_dlopen=no
18197 lt_cv_dlopen_libs=
18198
18199 case $host_os in
18200 beos*)
18201 lt_cv_dlopen="load_add_on"
18202 lt_cv_dlopen_libs=
18203 lt_cv_dlopen_self=yes
18204 ;;
18205
18206 mingw* | pw32* | cegcc*)
18207 lt_cv_dlopen="LoadLibrary"
18208 lt_cv_dlopen_libs=
18209 ;;
18210
18211 cygwin*)
18212 lt_cv_dlopen="dlopen"
18213 lt_cv_dlopen_libs=
18214 ;;
18215
18216 darwin*)
18217 # if libdl is installed we need to link against it
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-ldl $LIBS"
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char dlopen ();
18235 int
18236 main ()
18237 {
18238 return dlopen ();
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_lib_dl_dlopen=yes
18245 else
18246 ac_cv_lib_dl_dlopen=no
18247 fi
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 LIBS=$ac_check_lib_save_LIBS
18251 fi
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18256 else
18257
18258 lt_cv_dlopen="dyld"
18259 lt_cv_dlopen_libs=
18260 lt_cv_dlopen_self=yes
18261
18262 fi
18263
18264 ;;
18265
18266 *)
18267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18268 if test "x$ac_cv_func_shl_load" = x""yes; then :
18269 lt_cv_dlopen="shl_load"
18270 else
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18274 $as_echo_n "(cached) " >&6
18275 else
18276 ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-ldld $LIBS"
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char shl_load ();
18288 int
18289 main ()
18290 {
18291 return shl_load ();
18292 ;
18293 return 0;
18294 }
18295 _ACEOF
18296 if ac_fn_c_try_link "$LINENO"; then :
18297 ac_cv_lib_dld_shl_load=yes
18298 else
18299 ac_cv_lib_dld_shl_load=no
18300 fi
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18304 fi
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18307 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18309 else
18310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18311 if test "x$ac_cv_func_dlopen" = x""yes; then :
18312 lt_cv_dlopen="dlopen"
18313 else
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-ldl $LIBS"
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323
18324 /* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char dlopen ();
18331 int
18332 main ()
18333 {
18334 return dlopen ();
18335 ;
18336 return 0;
18337 }
18338 _ACEOF
18339 if ac_fn_c_try_link "$LINENO"; then :
18340 ac_cv_lib_dl_dlopen=yes
18341 else
18342 ac_cv_lib_dl_dlopen=no
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18350 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18352 else
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsvld $LIBS"
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18362
18363 /* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18366 #ifdef __cplusplus
18367 extern "C"
18368 #endif
18369 char dlopen ();
18370 int
18371 main ()
18372 {
18373 return dlopen ();
18374 ;
18375 return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_link "$LINENO"; then :
18379 ac_cv_lib_svld_dlopen=yes
18380 else
18381 ac_cv_lib_svld_dlopen=no
18382 fi
18383 rm -f core conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18389 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18394 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18395 $as_echo_n "(cached) " >&6
18396 else
18397 ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-ldld $LIBS"
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char dld_link ();
18409 int
18410 main ()
18411 {
18412 return dld_link ();
18413 ;
18414 return 0;
18415 }
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"; then :
18418 ac_cv_lib_dld_dld_link=yes
18419 else
18420 ac_cv_lib_dld_dld_link=no
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18425 fi
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18428 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18430 fi
18431
18432
18433 fi
18434
18435
18436 fi
18437
18438
18439 fi
18440
18441
18442 fi
18443
18444
18445 fi
18446
18447 ;;
18448 esac
18449
18450 if test "x$lt_cv_dlopen" != xno; then
18451 enable_dlopen=yes
18452 else
18453 enable_dlopen=no
18454 fi
18455
18456 case $lt_cv_dlopen in
18457 dlopen)
18458 save_CPPFLAGS="$CPPFLAGS"
18459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18460
18461 save_LDFLAGS="$LDFLAGS"
18462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18463
18464 save_LIBS="$LIBS"
18465 LIBS="$lt_cv_dlopen_libs $LIBS"
18466
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18469 if test "${lt_cv_dlopen_self+set}" = set; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 if test "$cross_compiling" = yes; then :
18473 lt_cv_dlopen_self=cross
18474 else
18475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18476 lt_status=$lt_dlunknown
18477 cat > conftest.$ac_ext <<_LT_EOF
18478 #line 18478 "configure"
18479 #include "confdefs.h"
18480
18481 #if HAVE_DLFCN_H
18482 #include <dlfcn.h>
18483 #endif
18484
18485 #include <stdio.h>
18486
18487 #ifdef RTLD_GLOBAL
18488 # define LT_DLGLOBAL RTLD_GLOBAL
18489 #else
18490 # ifdef DL_GLOBAL
18491 # define LT_DLGLOBAL DL_GLOBAL
18492 # else
18493 # define LT_DLGLOBAL 0
18494 # endif
18495 #endif
18496
18497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18498 find out it does not work in some platform. */
18499 #ifndef LT_DLLAZY_OR_NOW
18500 # ifdef RTLD_LAZY
18501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18502 # else
18503 # ifdef DL_LAZY
18504 # define LT_DLLAZY_OR_NOW DL_LAZY
18505 # else
18506 # ifdef RTLD_NOW
18507 # define LT_DLLAZY_OR_NOW RTLD_NOW
18508 # else
18509 # ifdef DL_NOW
18510 # define LT_DLLAZY_OR_NOW DL_NOW
18511 # else
18512 # define LT_DLLAZY_OR_NOW 0
18513 # endif
18514 # endif
18515 # endif
18516 # endif
18517 #endif
18518
18519 /* When -fvisbility=hidden is used, assume the code has been annotated
18520 correspondingly for the symbols needed. */
18521 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18522 void fnord () __attribute__((visibility("default")));
18523 #endif
18524
18525 void fnord () { int i=42; }
18526 int main ()
18527 {
18528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18529 int status = $lt_dlunknown;
18530
18531 if (self)
18532 {
18533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18534 else
18535 {
18536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18537 else puts (dlerror ());
18538 }
18539 /* dlclose (self); */
18540 }
18541 else
18542 puts (dlerror ());
18543
18544 return status;
18545 }
18546 _LT_EOF
18547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18552 (./conftest; exit; ) >&5 2>/dev/null
18553 lt_status=$?
18554 case x$lt_status in
18555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18558 esac
18559 else :
18560 # compilation failed
18561 lt_cv_dlopen_self=no
18562 fi
18563 fi
18564 rm -fr conftest*
18565
18566
18567 fi
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18569 $as_echo "$lt_cv_dlopen_self" >&6; }
18570
18571 if test "x$lt_cv_dlopen_self" = xyes; then
18572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18574 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18575 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 if test "$cross_compiling" = yes; then :
18579 lt_cv_dlopen_self_static=cross
18580 else
18581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18582 lt_status=$lt_dlunknown
18583 cat > conftest.$ac_ext <<_LT_EOF
18584 #line 18584 "configure"
18585 #include "confdefs.h"
18586
18587 #if HAVE_DLFCN_H
18588 #include <dlfcn.h>
18589 #endif
18590
18591 #include <stdio.h>
18592
18593 #ifdef RTLD_GLOBAL
18594 # define LT_DLGLOBAL RTLD_GLOBAL
18595 #else
18596 # ifdef DL_GLOBAL
18597 # define LT_DLGLOBAL DL_GLOBAL
18598 # else
18599 # define LT_DLGLOBAL 0
18600 # endif
18601 #endif
18602
18603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18604 find out it does not work in some platform. */
18605 #ifndef LT_DLLAZY_OR_NOW
18606 # ifdef RTLD_LAZY
18607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18608 # else
18609 # ifdef DL_LAZY
18610 # define LT_DLLAZY_OR_NOW DL_LAZY
18611 # else
18612 # ifdef RTLD_NOW
18613 # define LT_DLLAZY_OR_NOW RTLD_NOW
18614 # else
18615 # ifdef DL_NOW
18616 # define LT_DLLAZY_OR_NOW DL_NOW
18617 # else
18618 # define LT_DLLAZY_OR_NOW 0
18619 # endif
18620 # endif
18621 # endif
18622 # endif
18623 #endif
18624
18625 /* When -fvisbility=hidden is used, assume the code has been annotated
18626 correspondingly for the symbols needed. */
18627 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18628 void fnord () __attribute__((visibility("default")));
18629 #endif
18630
18631 void fnord () { int i=42; }
18632 int main ()
18633 {
18634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18635 int status = $lt_dlunknown;
18636
18637 if (self)
18638 {
18639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18640 else
18641 {
18642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18643 else puts (dlerror ());
18644 }
18645 /* dlclose (self); */
18646 }
18647 else
18648 puts (dlerror ());
18649
18650 return status;
18651 }
18652 _LT_EOF
18653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18654 (eval $ac_link) 2>&5
18655 ac_status=$?
18656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18657 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18658 (./conftest; exit; ) >&5 2>/dev/null
18659 lt_status=$?
18660 case x$lt_status in
18661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18664 esac
18665 else :
18666 # compilation failed
18667 lt_cv_dlopen_self_static=no
18668 fi
18669 fi
18670 rm -fr conftest*
18671
18672
18673 fi
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18675 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18676 fi
18677
18678 CPPFLAGS="$save_CPPFLAGS"
18679 LDFLAGS="$save_LDFLAGS"
18680 LIBS="$save_LIBS"
18681 ;;
18682 esac
18683
18684 case $lt_cv_dlopen_self in
18685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18686 *) enable_dlopen_self=unknown ;;
18687 esac
18688
18689 case $lt_cv_dlopen_self_static in
18690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18691 *) enable_dlopen_self_static=unknown ;;
18692 esac
18693 fi
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711 striplib=
18712 old_striplib=
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18714 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18719 $as_echo "yes" >&6; }
18720 else
18721 # FIXME - insert some real tests, host_os isn't really good enough
18722 case $host_os in
18723 darwin*)
18724 if test -n "$STRIP" ; then
18725 striplib="$STRIP -x"
18726 old_striplib="$STRIP -S"
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18728 $as_echo "yes" >&6; }
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18732 fi
18733 ;;
18734 *)
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736 $as_echo "no" >&6; }
18737 ;;
18738 esac
18739 fi
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752 # Report which library types will actually be built
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18756 $as_echo "$can_build_shared" >&6; }
18757
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18759 $as_echo_n "checking whether to build shared libraries... " >&6; }
18760 test "$can_build_shared" = "no" && enable_shared=no
18761
18762 # On AIX, shared libraries and static libraries use the same namespace, and
18763 # are all built from PIC.
18764 case $host_os in
18765 aix3*)
18766 test "$enable_shared" = yes && enable_static=no
18767 if test -n "$RANLIB"; then
18768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18769 postinstall_cmds='$RANLIB $lib'
18770 fi
18771 ;;
18772
18773 aix[4-9]*)
18774 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18775 test "$enable_shared" = yes && enable_static=no
18776 fi
18777 ;;
18778 esac
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18780 $as_echo "$enable_shared" >&6; }
18781
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18783 $as_echo_n "checking whether to build static libraries... " >&6; }
18784 # Make sure either enable_shared or enable_static is yes.
18785 test "$enable_shared" = yes || enable_static=yes
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18787 $as_echo "$enable_static" >&6; }
18788
18789
18790
18791
18792 fi
18793 ac_ext=cpp
18794 ac_cpp='$CXXCPP $CPPFLAGS'
18795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18798
18799 CC="$lt_save_CC"
18800
18801 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18802 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18803 (test "X$CXX" != "Xg++"))) ; then
18804 ac_ext=cpp
18805 ac_cpp='$CXXCPP $CPPFLAGS'
18806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18810 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18811 if test -z "$CXXCPP"; then
18812 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18813 $as_echo_n "(cached) " >&6
18814 else
18815 # Double quotes because CXXCPP needs to be expanded
18816 for CXXCPP in "$CXX -E" "/lib/cpp"
18817 do
18818 ac_preproc_ok=false
18819 for ac_cxx_preproc_warn_flag in '' yes
18820 do
18821 # Use a header file that comes with gcc, so configuring glibc
18822 # with a fresh cross-compiler works.
18823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18824 # <limits.h> exists even on freestanding compilers.
18825 # On the NeXT, cc -E runs the code through the compiler's parser,
18826 # not just through cpp. "Syntax error" is here to catch this case.
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829 #ifdef __STDC__
18830 # include <limits.h>
18831 #else
18832 # include <assert.h>
18833 #endif
18834 Syntax error
18835 _ACEOF
18836 if ac_fn_cxx_try_cpp "$LINENO"; then :
18837
18838 else
18839 # Broken: fails on valid input.
18840 continue
18841 fi
18842 rm -f conftest.err conftest.$ac_ext
18843
18844 # OK, works on sane cases. Now check whether nonexistent headers
18845 # can be detected and how.
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848 #include <ac_nonexistent.h>
18849 _ACEOF
18850 if ac_fn_cxx_try_cpp "$LINENO"; then :
18851 # Broken: success on invalid input.
18852 continue
18853 else
18854 # Passes both tests.
18855 ac_preproc_ok=:
18856 break
18857 fi
18858 rm -f conftest.err conftest.$ac_ext
18859
18860 done
18861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18862 rm -f conftest.err conftest.$ac_ext
18863 if $ac_preproc_ok; then :
18864 break
18865 fi
18866
18867 done
18868 ac_cv_prog_CXXCPP=$CXXCPP
18869
18870 fi
18871 CXXCPP=$ac_cv_prog_CXXCPP
18872 else
18873 ac_cv_prog_CXXCPP=$CXXCPP
18874 fi
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18876 $as_echo "$CXXCPP" >&6; }
18877 ac_preproc_ok=false
18878 for ac_cxx_preproc_warn_flag in '' yes
18879 do
18880 # Use a header file that comes with gcc, so configuring glibc
18881 # with a fresh cross-compiler works.
18882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 # <limits.h> exists even on freestanding compilers.
18884 # On the NeXT, cc -E runs the code through the compiler's parser,
18885 # not just through cpp. "Syntax error" is here to catch this case.
18886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887 /* end confdefs.h. */
18888 #ifdef __STDC__
18889 # include <limits.h>
18890 #else
18891 # include <assert.h>
18892 #endif
18893 Syntax error
18894 _ACEOF
18895 if ac_fn_cxx_try_cpp "$LINENO"; then :
18896
18897 else
18898 # Broken: fails on valid input.
18899 continue
18900 fi
18901 rm -f conftest.err conftest.$ac_ext
18902
18903 # OK, works on sane cases. Now check whether nonexistent headers
18904 # can be detected and how.
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907 #include <ac_nonexistent.h>
18908 _ACEOF
18909 if ac_fn_cxx_try_cpp "$LINENO"; then :
18910 # Broken: success on invalid input.
18911 continue
18912 else
18913 # Passes both tests.
18914 ac_preproc_ok=:
18915 break
18916 fi
18917 rm -f conftest.err conftest.$ac_ext
18918
18919 done
18920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18921 rm -f conftest.err conftest.$ac_ext
18922 if $ac_preproc_ok; then :
18923
18924 else
18925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18927 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18928 See \`config.log' for more details." "$LINENO" 5; }
18929 fi
18930
18931 ac_ext=cpp
18932 ac_cpp='$CXXCPP $CPPFLAGS'
18933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18936
18937 else
18938 _lt_caught_CXX_error=yes
18939 fi
18940
18941 ac_ext=cpp
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18946
18947 archive_cmds_need_lc_CXX=no
18948 allow_undefined_flag_CXX=
18949 always_export_symbols_CXX=no
18950 archive_expsym_cmds_CXX=
18951 compiler_needs_object_CXX=no
18952 export_dynamic_flag_spec_CXX=
18953 hardcode_direct_CXX=no
18954 hardcode_direct_absolute_CXX=no
18955 hardcode_libdir_flag_spec_CXX=
18956 hardcode_libdir_flag_spec_ld_CXX=
18957 hardcode_libdir_separator_CXX=
18958 hardcode_minus_L_CXX=no
18959 hardcode_shlibpath_var_CXX=unsupported
18960 hardcode_automatic_CXX=no
18961 inherit_rpath_CXX=no
18962 module_cmds_CXX=
18963 module_expsym_cmds_CXX=
18964 link_all_deplibs_CXX=unknown
18965 old_archive_cmds_CXX=$old_archive_cmds
18966 reload_flag_CXX=$reload_flag
18967 reload_cmds_CXX=$reload_cmds
18968 no_undefined_flag_CXX=
18969 whole_archive_flag_spec_CXX=
18970 enable_shared_with_static_runtimes_CXX=no
18971
18972 # Source file extension for C++ test sources.
18973 ac_ext=cpp
18974
18975 # Object file extension for compiled C++ test sources.
18976 objext=o
18977 objext_CXX=$objext
18978
18979 # No sense in running all these tests if we already determined that
18980 # the CXX compiler isn't working. Some variables (like enable_shared)
18981 # are currently assumed to apply to all compilers on this platform,
18982 # and will be corrupted by setting them based on a non-working compiler.
18983 if test "$_lt_caught_CXX_error" != yes; then
18984 # Code to be used in simple compile tests
18985 lt_simple_compile_test_code="int some_variable = 0;"
18986
18987 # Code to be used in simple link tests
18988 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18989
18990 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18991
18992
18993
18994
18995
18996
18997 # If no C compiler was specified, use CC.
18998 LTCC=${LTCC-"$CC"}
18999
19000 # If no C compiler flags were specified, use CFLAGS.
19001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19002
19003 # Allow CC to be a program name with arguments.
19004 compiler=$CC
19005
19006
19007 # save warnings/boilerplate of simple test code
19008 ac_outfile=conftest.$ac_objext
19009 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19010 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19011 _lt_compiler_boilerplate=`cat conftest.err`
19012 $RM conftest*
19013
19014 ac_outfile=conftest.$ac_objext
19015 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19016 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19017 _lt_linker_boilerplate=`cat conftest.err`
19018 $RM -r conftest*
19019
19020
19021 # Allow CC to be a program name with arguments.
19022 lt_save_CC=$CC
19023 lt_save_LD=$LD
19024 lt_save_GCC=$GCC
19025 GCC=$GXX
19026 lt_save_with_gnu_ld=$with_gnu_ld
19027 lt_save_path_LD=$lt_cv_path_LD
19028 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19029 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19030 else
19031 $as_unset lt_cv_prog_gnu_ld
19032 fi
19033 if test -n "${lt_cv_path_LDCXX+set}"; then
19034 lt_cv_path_LD=$lt_cv_path_LDCXX
19035 else
19036 $as_unset lt_cv_path_LD
19037 fi
19038 test -z "${LDCXX+set}" || LD=$LDCXX
19039 CC=${CXX-"c++"}
19040 compiler=$CC
19041 compiler_CXX=$CC
19042 for cc_temp in $compiler""; do
19043 case $cc_temp in
19044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19046 \-*) ;;
19047 *) break;;
19048 esac
19049 done
19050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19051
19052
19053 if test -n "$compiler"; then
19054 # We don't want -fno-exception when compiling C++ code, so set the
19055 # no_builtin_flag separately
19056 if test "$GXX" = yes; then
19057 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19058 else
19059 lt_prog_compiler_no_builtin_flag_CXX=
19060 fi
19061
19062 if test "$GXX" = yes; then
19063 # Set up default GNU C++ configuration
19064
19065
19066
19067 # Check whether --with-gnu-ld was given.
19068 if test "${with_gnu_ld+set}" = set; then :
19069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19070 else
19071 with_gnu_ld=no
19072 fi
19073
19074 ac_prog=ld
19075 if test "$GCC" = yes; then
19076 # Check if gcc -print-prog-name=ld gives a path.
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19078 $as_echo_n "checking for ld used by $CC... " >&6; }
19079 case $host in
19080 *-*-mingw*)
19081 # gcc leaves a trailing carriage return which upsets mingw
19082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19083 *)
19084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19085 esac
19086 case $ac_prog in
19087 # Accept absolute paths.
19088 [\\/]* | ?:[\\/]*)
19089 re_direlt='/[^/][^/]*/\.\./'
19090 # Canonicalize the pathname of ld
19091 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19092 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19093 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19094 done
19095 test -z "$LD" && LD="$ac_prog"
19096 ;;
19097 "")
19098 # If it fails, then pretend we aren't using GCC.
19099 ac_prog=ld
19100 ;;
19101 *)
19102 # If it is relative, then search for the first ld in PATH.
19103 with_gnu_ld=unknown
19104 ;;
19105 esac
19106 elif test "$with_gnu_ld" = yes; then
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19108 $as_echo_n "checking for GNU ld... " >&6; }
19109 else
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19111 $as_echo_n "checking for non-GNU ld... " >&6; }
19112 fi
19113 if test "${lt_cv_path_LD+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test -z "$LD"; then
19117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19118 for ac_dir in $PATH; do
19119 IFS="$lt_save_ifs"
19120 test -z "$ac_dir" && ac_dir=.
19121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19122 lt_cv_path_LD="$ac_dir/$ac_prog"
19123 # Check to see if the program is GNU ld. I'd rather use --version,
19124 # but apparently some variants of GNU ld only accept -v.
19125 # Break only if it was the GNU/non-GNU ld that we prefer.
19126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19127 *GNU* | *'with BFD'*)
19128 test "$with_gnu_ld" != no && break
19129 ;;
19130 *)
19131 test "$with_gnu_ld" != yes && break
19132 ;;
19133 esac
19134 fi
19135 done
19136 IFS="$lt_save_ifs"
19137 else
19138 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19139 fi
19140 fi
19141
19142 LD="$lt_cv_path_LD"
19143 if test -n "$LD"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19145 $as_echo "$LD" >&6; }
19146 else
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19149 fi
19150 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19153 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19157 case `$LD -v 2>&1 </dev/null` in
19158 *GNU* | *'with BFD'*)
19159 lt_cv_prog_gnu_ld=yes
19160 ;;
19161 *)
19162 lt_cv_prog_gnu_ld=no
19163 ;;
19164 esac
19165 fi
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19168 with_gnu_ld=$lt_cv_prog_gnu_ld
19169
19170
19171
19172
19173
19174
19175
19176 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19177 # archiving commands below assume that GNU ld is being used.
19178 if test "$with_gnu_ld" = yes; then
19179 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 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'
19181
19182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19184
19185 # If archive_cmds runs LD, not CC, wlarc should be empty
19186 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19187 # investigate it a little bit more. (MM)
19188 wlarc='${wl}'
19189
19190 # ancient GNU ld didn't support --whole-archive et. al.
19191 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19192 $GREP 'no-whole-archive' > /dev/null; then
19193 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19194 else
19195 whole_archive_flag_spec_CXX=
19196 fi
19197 else
19198 with_gnu_ld=no
19199 wlarc=
19200
19201 # A generic and very simple default shared library creation
19202 # command for GNU C++ for the case where it uses the native
19203 # linker, instead of GNU ld. If possible, this setting should
19204 # overridden to take advantage of the native linker features on
19205 # the platform it is being used on.
19206 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19207 fi
19208
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19213
19214 else
19215 GXX=no
19216 with_gnu_ld=no
19217 wlarc=
19218 fi
19219
19220 # PORTME: fill in a description of your system's C++ link characteristics
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19223 ld_shlibs_CXX=yes
19224 case $host_os in
19225 aix3*)
19226 # FIXME: insert proper C++ library support
19227 ld_shlibs_CXX=no
19228 ;;
19229 aix[4-9]*)
19230 if test "$host_cpu" = ia64; then
19231 # On IA64, the linker does run time linking by default, so we don't
19232 # have to do anything special.
19233 aix_use_runtimelinking=no
19234 exp_sym_flag='-Bexport'
19235 no_entry_flag=""
19236 else
19237 aix_use_runtimelinking=no
19238
19239 # Test if we are trying to use run time linking or normal
19240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19241 # need to do runtime linking.
19242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19243 for ld_flag in $LDFLAGS; do
19244 case $ld_flag in
19245 *-brtl*)
19246 aix_use_runtimelinking=yes
19247 break
19248 ;;
19249 esac
19250 done
19251 ;;
19252 esac
19253
19254 exp_sym_flag='-bexport'
19255 no_entry_flag='-bnoentry'
19256 fi
19257
19258 # When large executables or shared objects are built, AIX ld can
19259 # have problems creating the table of contents. If linking a library
19260 # or program results in "error TOC overflow" add -mminimal-toc to
19261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19263
19264 archive_cmds_CXX=''
19265 hardcode_direct_CXX=yes
19266 hardcode_direct_absolute_CXX=yes
19267 hardcode_libdir_separator_CXX=':'
19268 link_all_deplibs_CXX=yes
19269 file_list_spec_CXX='${wl}-f,'
19270
19271 if test "$GXX" = yes; then
19272 case $host_os in aix4.[012]|aix4.[012].*)
19273 # We only want to do this on AIX 4.2 and lower, the check
19274 # below for broken collect2 doesn't work under 4.3+
19275 collect2name=`${CC} -print-prog-name=collect2`
19276 if test -f "$collect2name" &&
19277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19278 then
19279 # We have reworked collect2
19280 :
19281 else
19282 # We have old collect2
19283 hardcode_direct_CXX=unsupported
19284 # It fails to find uninstalled libraries when the uninstalled
19285 # path is not listed in the libpath. Setting hardcode_minus_L
19286 # to unsupported forces relinking
19287 hardcode_minus_L_CXX=yes
19288 hardcode_libdir_flag_spec_CXX='-L$libdir'
19289 hardcode_libdir_separator_CXX=
19290 fi
19291 esac
19292 shared_flag='-shared'
19293 if test "$aix_use_runtimelinking" = yes; then
19294 shared_flag="$shared_flag "'${wl}-G'
19295 fi
19296 else
19297 # not using gcc
19298 if test "$host_cpu" = ia64; then
19299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19300 # chokes on -Wl,-G. The following line is correct:
19301 shared_flag='-G'
19302 else
19303 if test "$aix_use_runtimelinking" = yes; then
19304 shared_flag='${wl}-G'
19305 else
19306 shared_flag='${wl}-bM:SRE'
19307 fi
19308 fi
19309 fi
19310
19311 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19312 # It seems that -bexpall does not export symbols beginning with
19313 # underscore (_), so it is better to generate a list of symbols to
19314 # export.
19315 always_export_symbols_CXX=yes
19316 if test "$aix_use_runtimelinking" = yes; then
19317 # Warning - without using the other runtime loading flags (-brtl),
19318 # -berok will link without error, but may produce a broken library.
19319 allow_undefined_flag_CXX='-berok'
19320 # Determine the default libpath from the value encoded in an empty
19321 # executable.
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19324
19325 int
19326 main ()
19327 {
19328
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_cxx_try_link "$LINENO"; then :
19334
19335 lt_aix_libpath_sed='
19336 /Import File Strings/,/^$/ {
19337 /^0/ {
19338 s/^0 *\(.*\)$/\1/
19339 p
19340 }
19341 }'
19342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19343 # Check for a 64-bit object if we didn't find anything.
19344 if test -z "$aix_libpath"; then
19345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19346 fi
19347 fi
19348 rm -f core conftest.err conftest.$ac_objext \
19349 conftest$ac_exeext conftest.$ac_ext
19350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19351
19352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19353
19354 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"
19355 else
19356 if test "$host_cpu" = ia64; then
19357 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19358 allow_undefined_flag_CXX="-z nodefs"
19359 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"
19360 else
19361 # Determine the default libpath from the value encoded in an
19362 # empty executable.
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19365
19366 int
19367 main ()
19368 {
19369
19370 ;
19371 return 0;
19372 }
19373 _ACEOF
19374 if ac_fn_cxx_try_link "$LINENO"; then :
19375
19376 lt_aix_libpath_sed='
19377 /Import File Strings/,/^$/ {
19378 /^0/ {
19379 s/^0 *\(.*\)$/\1/
19380 p
19381 }
19382 }'
19383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19384 # Check for a 64-bit object if we didn't find anything.
19385 if test -z "$aix_libpath"; then
19386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19387 fi
19388 fi
19389 rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19392
19393 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19394 # Warning - without using the other run time loading flags,
19395 # -berok will link without error, but may produce a broken library.
19396 no_undefined_flag_CXX=' ${wl}-bernotok'
19397 allow_undefined_flag_CXX=' ${wl}-berok'
19398 if test "$with_gnu_ld" = yes; then
19399 # We only use this code for GNU lds that support --whole-archive.
19400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19401 else
19402 # Exported symbols can be pulled into shared objects from archives
19403 whole_archive_flag_spec_CXX='$convenience'
19404 fi
19405 archive_cmds_need_lc_CXX=yes
19406 # This is similar to how AIX traditionally builds its shared
19407 # libraries.
19408 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'
19409 fi
19410 fi
19411 ;;
19412
19413 beos*)
19414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19415 allow_undefined_flag_CXX=unsupported
19416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19417 # support --undefined. This deserves some investigation. FIXME
19418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19419 else
19420 ld_shlibs_CXX=no
19421 fi
19422 ;;
19423
19424 chorus*)
19425 case $cc_basename in
19426 *)
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19429 ;;
19430 esac
19431 ;;
19432
19433 cygwin* | mingw* | pw32* | cegcc*)
19434 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19435 # as there is no search path for DLLs.
19436 hardcode_libdir_flag_spec_CXX='-L$libdir'
19437 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19438 allow_undefined_flag_CXX=unsupported
19439 always_export_symbols_CXX=no
19440 enable_shared_with_static_runtimes_CXX=yes
19441
19442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19443 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'
19444 # If the export-symbols file already is a .def file (1st line
19445 # is EXPORTS), use it as is; otherwise, prepend...
19446 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19447 cp $export_symbols $output_objdir/$soname.def;
19448 else
19449 echo EXPORTS > $output_objdir/$soname.def;
19450 cat $export_symbols >> $output_objdir/$soname.def;
19451 fi~
19452 $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'
19453 else
19454 ld_shlibs_CXX=no
19455 fi
19456 ;;
19457 darwin* | rhapsody*)
19458
19459
19460 archive_cmds_need_lc_CXX=no
19461 hardcode_direct_CXX=no
19462 hardcode_automatic_CXX=yes
19463 hardcode_shlibpath_var_CXX=unsupported
19464 if test "$lt_cv_ld_force_load" = "yes"; then
19465 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\"`'
19466 else
19467 whole_archive_flag_spec_CXX=''
19468 fi
19469 link_all_deplibs_CXX=yes
19470 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19471 case $cc_basename in
19472 ifort*) _lt_dar_can_shared=yes ;;
19473 *) _lt_dar_can_shared=$GCC ;;
19474 esac
19475 if test "$_lt_dar_can_shared" = "yes"; then
19476 output_verbose_link_cmd=func_echo_all
19477 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}"
19478 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19479 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}"
19480 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}"
19481 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19482 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}"
19483 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}"
19484 fi
19485
19486 else
19487 ld_shlibs_CXX=no
19488 fi
19489
19490 ;;
19491
19492 dgux*)
19493 case $cc_basename in
19494 ec++*)
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 ;;
19498 ghcx*)
19499 # Green Hills C++ Compiler
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19502 ;;
19503 *)
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19506 ;;
19507 esac
19508 ;;
19509
19510 freebsd2.*)
19511 # C++ shared libraries reported to be fairly broken before
19512 # switch to ELF
19513 ld_shlibs_CXX=no
19514 ;;
19515
19516 freebsd-elf*)
19517 archive_cmds_need_lc_CXX=no
19518 ;;
19519
19520 freebsd* | dragonfly*)
19521 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19522 # conventions
19523 ld_shlibs_CXX=yes
19524 ;;
19525
19526 gnu*)
19527 ;;
19528
19529 haiku*)
19530 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19531 link_all_deplibs_CXX=yes
19532 ;;
19533
19534 hpux9*)
19535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19536 hardcode_libdir_separator_CXX=:
19537 export_dynamic_flag_spec_CXX='${wl}-E'
19538 hardcode_direct_CXX=yes
19539 hardcode_minus_L_CXX=yes # Not in the search PATH,
19540 # but as the default
19541 # location of the library.
19542
19543 case $cc_basename in
19544 CC*)
19545 # FIXME: insert proper C++ library support
19546 ld_shlibs_CXX=no
19547 ;;
19548 aCC*)
19549 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'
19550 # Commands to make compiler produce verbose output that lists
19551 # what "hidden" libraries, object files and flags are used when
19552 # linking a shared library.
19553 #
19554 # There doesn't appear to be a way to prevent this compiler from
19555 # explicitly linking system object files so we need to strip them
19556 # from the output so that they don't get included in the library
19557 # dependencies.
19558 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"'
19559 ;;
19560 *)
19561 if test "$GXX" = yes; then
19562 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'
19563 else
19564 # FIXME: insert proper C++ library support
19565 ld_shlibs_CXX=no
19566 fi
19567 ;;
19568 esac
19569 ;;
19570
19571 hpux10*|hpux11*)
19572 if test $with_gnu_ld = no; then
19573 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19574 hardcode_libdir_separator_CXX=:
19575
19576 case $host_cpu in
19577 hppa*64*|ia64*)
19578 ;;
19579 *)
19580 export_dynamic_flag_spec_CXX='${wl}-E'
19581 ;;
19582 esac
19583 fi
19584 case $host_cpu in
19585 hppa*64*|ia64*)
19586 hardcode_direct_CXX=no
19587 hardcode_shlibpath_var_CXX=no
19588 ;;
19589 *)
19590 hardcode_direct_CXX=yes
19591 hardcode_direct_absolute_CXX=yes
19592 hardcode_minus_L_CXX=yes # Not in the search PATH,
19593 # but as the default
19594 # location of the library.
19595 ;;
19596 esac
19597
19598 case $cc_basename in
19599 CC*)
19600 # FIXME: insert proper C++ library support
19601 ld_shlibs_CXX=no
19602 ;;
19603 aCC*)
19604 case $host_cpu in
19605 hppa*64*)
19606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607 ;;
19608 ia64*)
19609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610 ;;
19611 *)
19612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19613 ;;
19614 esac
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19618 #
19619 # There doesn't appear to be a way to prevent this compiler from
19620 # explicitly linking system object files so we need to strip them
19621 # from the output so that they don't get included in the library
19622 # dependencies.
19623 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"'
19624 ;;
19625 *)
19626 if test "$GXX" = yes; then
19627 if test $with_gnu_ld = no; then
19628 case $host_cpu in
19629 hppa*64*)
19630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19631 ;;
19632 ia64*)
19633 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19634 ;;
19635 *)
19636 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'
19637 ;;
19638 esac
19639 fi
19640 else
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19643 fi
19644 ;;
19645 esac
19646 ;;
19647
19648 interix[3-9]*)
19649 hardcode_direct_CXX=no
19650 hardcode_shlibpath_var_CXX=no
19651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19652 export_dynamic_flag_spec_CXX='${wl}-E'
19653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19654 # Instead, shared libraries are loaded at an image base (0x10000000 by
19655 # default) and relocated if they conflict, which is a slow very memory
19656 # consuming and fragmenting process. To avoid this, we pick a random,
19657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19659 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'
19660 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'
19661 ;;
19662 irix5* | irix6*)
19663 case $cc_basename in
19664 CC*)
19665 # SGI C++
19666 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'
19667
19668 # Archives containing C++ object files must be created using
19669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19670 # necessary to make sure instantiated templates are included
19671 # in the archive.
19672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19673 ;;
19674 *)
19675 if test "$GXX" = yes; then
19676 if test "$with_gnu_ld" = no; then
19677 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'
19678 else
19679 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'
19680 fi
19681 fi
19682 link_all_deplibs_CXX=yes
19683 ;;
19684 esac
19685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19686 hardcode_libdir_separator_CXX=:
19687 inherit_rpath_CXX=yes
19688 ;;
19689
19690 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19691 case $cc_basename in
19692 KCC*)
19693 # Kuck and Associates, Inc. (KAI) C++ Compiler
19694
19695 # KCC will only create a shared library if the output file
19696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19697 # to its proper name (with version) after linking.
19698 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'
19699 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'
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
19703 #
19704 # There doesn't appear to be a way to prevent this compiler from
19705 # explicitly linking system object files so we need to strip them
19706 # from the output so that they don't get included in the library
19707 # dependencies.
19708 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"'
19709
19710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19712
19713 # Archives containing C++ object files must be created using
19714 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19716 ;;
19717 icpc* | ecpc* )
19718 # Intel C++
19719 with_gnu_ld=yes
19720 # version 8.0 and above of icpc choke on multiply defined symbols
19721 # if we add $predep_objects and $postdep_objects, however 7.1 and
19722 # earlier do not add the objects themselves.
19723 case `$CC -V 2>&1` in
19724 *"Version 7."*)
19725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19726 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'
19727 ;;
19728 *) # Version 8.0 or newer
19729 tmp_idyn=
19730 case $host_cpu in
19731 ia64*) tmp_idyn=' -i_dynamic';;
19732 esac
19733 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19734 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'
19735 ;;
19736 esac
19737 archive_cmds_need_lc_CXX=no
19738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19740 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19741 ;;
19742 pgCC* | pgcpp*)
19743 # Portland Group C++ compiler
19744 case `$CC -V` in
19745 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19746 prelink_cmds_CXX='tpldir=Template.dir~
19747 rm -rf $tpldir~
19748 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19749 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19750 old_archive_cmds_CXX='tpldir=Template.dir~
19751 rm -rf $tpldir~
19752 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19753 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19754 $RANLIB $oldlib'
19755 archive_cmds_CXX='tpldir=Template.dir~
19756 rm -rf $tpldir~
19757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19758 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19759 archive_expsym_cmds_CXX='tpldir=Template.dir~
19760 rm -rf $tpldir~
19761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19762 $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'
19763 ;;
19764 *) # Version 6 and above use weak symbols
19765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19766 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'
19767 ;;
19768 esac
19769
19770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19772 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'
19773 ;;
19774 cxx*)
19775 # Compaq C++
19776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19777 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'
19778
19779 runpath_var=LD_RUN_PATH
19780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19781 hardcode_libdir_separator_CXX=:
19782
19783 # Commands to make compiler produce verbose output that lists
19784 # what "hidden" libraries, object files and flags are used when
19785 # linking a shared library.
19786 #
19787 # There doesn't appear to be a way to prevent this compiler from
19788 # explicitly linking system object files so we need to strip them
19789 # from the output so that they don't get included in the library
19790 # dependencies.
19791 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'
19792 ;;
19793 xl* | mpixl* | bgxl*)
19794 # IBM XL 8.0 on PPC, with GNU ld
19795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19797 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19798 if test "x$supports_anon_versioning" = xyes; then
19799 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19801 echo "local: *; };" >> $output_objdir/$libname.ver~
19802 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19803 fi
19804 ;;
19805 *)
19806 case `$CC -V 2>&1 | sed 5q` in
19807 *Sun\ C*)
19808 # Sun C++ 5.9
19809 no_undefined_flag_CXX=' -zdefs'
19810 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19811 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'
19812 hardcode_libdir_flag_spec_CXX='-R$libdir'
19813 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'
19814 compiler_needs_object_CXX=yes
19815
19816 # Not sure whether something based on
19817 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19818 # would be better.
19819 output_verbose_link_cmd='func_echo_all'
19820
19821 # Archives containing C++ object files must be created using
19822 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19823 # necessary to make sure instantiated templates are included
19824 # in the archive.
19825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19826 ;;
19827 esac
19828 ;;
19829 esac
19830 ;;
19831
19832 lynxos*)
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19835 ;;
19836
19837 m88k*)
19838 # FIXME: insert proper C++ library support
19839 ld_shlibs_CXX=no
19840 ;;
19841
19842 mvs*)
19843 case $cc_basename in
19844 cxx*)
19845 # FIXME: insert proper C++ library support
19846 ld_shlibs_CXX=no
19847 ;;
19848 *)
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19851 ;;
19852 esac
19853 ;;
19854
19855 netbsd*)
19856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19858 wlarc=
19859 hardcode_libdir_flag_spec_CXX='-R$libdir'
19860 hardcode_direct_CXX=yes
19861 hardcode_shlibpath_var_CXX=no
19862 fi
19863 # Workaround some broken pre-1.5 toolchains
19864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19865 ;;
19866
19867 *nto* | *qnx*)
19868 ld_shlibs_CXX=yes
19869 ;;
19870
19871 openbsd2*)
19872 # C++ shared libraries are fairly broken
19873 ld_shlibs_CXX=no
19874 ;;
19875
19876 openbsd*)
19877 if test -f /usr/libexec/ld.so; then
19878 hardcode_direct_CXX=yes
19879 hardcode_shlibpath_var_CXX=no
19880 hardcode_direct_absolute_CXX=yes
19881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19884 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19885 export_dynamic_flag_spec_CXX='${wl}-E'
19886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19887 fi
19888 output_verbose_link_cmd=func_echo_all
19889 else
19890 ld_shlibs_CXX=no
19891 fi
19892 ;;
19893
19894 osf3* | osf4* | osf5*)
19895 case $cc_basename in
19896 KCC*)
19897 # Kuck and Associates, Inc. (KAI) C++ Compiler
19898
19899 # KCC will only create a shared library if the output file
19900 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19901 # to its proper name (with version) after linking.
19902 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'
19903
19904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19905 hardcode_libdir_separator_CXX=:
19906
19907 # Archives containing C++ object files must be created using
19908 # the KAI C++ compiler.
19909 case $host in
19910 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19911 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19912 esac
19913 ;;
19914 RCC*)
19915 # Rational C++ 2.4.1
19916 # FIXME: insert proper C++ library support
19917 ld_shlibs_CXX=no
19918 ;;
19919 cxx*)
19920 case $host in
19921 osf3*)
19922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19923 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'
19924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19925 ;;
19926 *)
19927 allow_undefined_flag_CXX=' -expect_unresolved \*'
19928 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'
19929 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19930 echo "-hidden">> $lib.exp~
19931 $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~
19932 $RM $lib.exp'
19933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19934 ;;
19935 esac
19936
19937 hardcode_libdir_separator_CXX=:
19938
19939 # Commands to make compiler produce verbose output that lists
19940 # what "hidden" libraries, object files and flags are used when
19941 # linking a shared library.
19942 #
19943 # There doesn't appear to be a way to prevent this compiler from
19944 # explicitly linking system object files so we need to strip them
19945 # from the output so that they don't get included in the library
19946 # dependencies.
19947 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"'
19948 ;;
19949 *)
19950 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19951 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19952 case $host in
19953 osf3*)
19954 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'
19955 ;;
19956 *)
19957 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'
19958 ;;
19959 esac
19960
19961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19962 hardcode_libdir_separator_CXX=:
19963
19964 # Commands to make compiler produce verbose output that lists
19965 # what "hidden" libraries, object files and flags are used when
19966 # linking a shared library.
19967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19968
19969 else
19970 # FIXME: insert proper C++ library support
19971 ld_shlibs_CXX=no
19972 fi
19973 ;;
19974 esac
19975 ;;
19976
19977 psos*)
19978 # FIXME: insert proper C++ library support
19979 ld_shlibs_CXX=no
19980 ;;
19981
19982 sunos4*)
19983 case $cc_basename in
19984 CC*)
19985 # Sun C++ 4.x
19986 # FIXME: insert proper C++ library support
19987 ld_shlibs_CXX=no
19988 ;;
19989 lcc*)
19990 # Lucid
19991 # FIXME: insert proper C++ library support
19992 ld_shlibs_CXX=no
19993 ;;
19994 *)
19995 # FIXME: insert proper C++ library support
19996 ld_shlibs_CXX=no
19997 ;;
19998 esac
19999 ;;
20000
20001 solaris*)
20002 case $cc_basename in
20003 CC*)
20004 # Sun C++ 4.2, 5.x and Centerline C++
20005 archive_cmds_need_lc_CXX=yes
20006 no_undefined_flag_CXX=' -zdefs'
20007 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20008 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20009 $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'
20010
20011 hardcode_libdir_flag_spec_CXX='-R$libdir'
20012 hardcode_shlibpath_var_CXX=no
20013 case $host_os in
20014 solaris2.[0-5] | solaris2.[0-5].*) ;;
20015 *)
20016 # The compiler driver will combine and reorder linker options,
20017 # but understands `-z linker_flag'.
20018 # Supported since Solaris 2.6 (maybe 2.5.1?)
20019 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20020 ;;
20021 esac
20022 link_all_deplibs_CXX=yes
20023
20024 output_verbose_link_cmd='func_echo_all'
20025
20026 # Archives containing C++ object files must be created using
20027 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20028 # necessary to make sure instantiated templates are included
20029 # in the archive.
20030 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20031 ;;
20032 gcx*)
20033 # Green Hills C++ Compiler
20034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20035
20036 # The C++ compiler must be used to create the archive.
20037 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20038 ;;
20039 *)
20040 # GNU C++ compiler with Solaris linker
20041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20042 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20043 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20044 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20046 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20047
20048 # Commands to make compiler produce verbose output that lists
20049 # what "hidden" libraries, object files and flags are used when
20050 # linking a shared library.
20051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20052 else
20053 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20054 # platform.
20055 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20056 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20057 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20058
20059 # Commands to make compiler produce verbose output that lists
20060 # what "hidden" libraries, object files and flags are used when
20061 # linking a shared library.
20062 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20063 fi
20064
20065 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20066 case $host_os in
20067 solaris2.[0-5] | solaris2.[0-5].*) ;;
20068 *)
20069 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20070 ;;
20071 esac
20072 fi
20073 ;;
20074 esac
20075 ;;
20076
20077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20078 no_undefined_flag_CXX='${wl}-z,text'
20079 archive_cmds_need_lc_CXX=no
20080 hardcode_shlibpath_var_CXX=no
20081 runpath_var='LD_RUN_PATH'
20082
20083 case $cc_basename in
20084 CC*)
20085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 ;;
20088 *)
20089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 ;;
20092 esac
20093 ;;
20094
20095 sysv5* | sco3.2v5* | sco5v6*)
20096 # Note: We can NOT use -z defs as we might desire, because we do not
20097 # link with -lc, and that would cause any symbols used from libc to
20098 # always be unresolved, which means just about no library would
20099 # ever link correctly. If we're not using GNU ld we use -z text
20100 # though, which does catch some bad symbols but isn't as heavy-handed
20101 # as -z defs.
20102 no_undefined_flag_CXX='${wl}-z,text'
20103 allow_undefined_flag_CXX='${wl}-z,nodefs'
20104 archive_cmds_need_lc_CXX=no
20105 hardcode_shlibpath_var_CXX=no
20106 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20107 hardcode_libdir_separator_CXX=':'
20108 link_all_deplibs_CXX=yes
20109 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20110 runpath_var='LD_RUN_PATH'
20111
20112 case $cc_basename in
20113 CC*)
20114 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20115 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20117 '"$old_archive_cmds_CXX"
20118 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20119 '"$reload_cmds_CXX"
20120 ;;
20121 *)
20122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20124 ;;
20125 esac
20126 ;;
20127
20128 tandem*)
20129 case $cc_basename in
20130 NCC*)
20131 # NonStop-UX NCC 3.20
20132 # FIXME: insert proper C++ library support
20133 ld_shlibs_CXX=no
20134 ;;
20135 *)
20136 # FIXME: insert proper C++ library support
20137 ld_shlibs_CXX=no
20138 ;;
20139 esac
20140 ;;
20141
20142 vxworks*)
20143 # FIXME: insert proper C++ library support
20144 ld_shlibs_CXX=no
20145 ;;
20146
20147 *)
20148 # FIXME: insert proper C++ library support
20149 ld_shlibs_CXX=no
20150 ;;
20151 esac
20152
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20154 $as_echo "$ld_shlibs_CXX" >&6; }
20155 test "$ld_shlibs_CXX" = no && can_build_shared=no
20156
20157 GCC_CXX="$GXX"
20158 LD_CXX="$LD"
20159
20160 ## CAVEAT EMPTOR:
20161 ## There is no encapsulation within the following macros, do not change
20162 ## the running order or otherwise move them around unless you know exactly
20163 ## what you are doing...
20164 # Dependencies to place before and after the object being linked:
20165 predep_objects_CXX=
20166 postdep_objects_CXX=
20167 predeps_CXX=
20168 postdeps_CXX=
20169 compiler_lib_search_path_CXX=
20170
20171 cat > conftest.$ac_ext <<_LT_EOF
20172 class Foo
20173 {
20174 public:
20175 Foo (void) { a = 0; }
20176 private:
20177 int a;
20178 };
20179 _LT_EOF
20180
20181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20182 (eval $ac_compile) 2>&5
20183 ac_status=$?
20184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20185 test $ac_status = 0; }; then
20186 # Parse the compiler output and extract the necessary
20187 # objects, libraries and library flags.
20188
20189 # Sentinel used to keep track of whether or not we are before
20190 # the conftest object file.
20191 pre_test_object_deps_done=no
20192
20193 for p in `eval "$output_verbose_link_cmd"`; do
20194 case $p in
20195
20196 -L* | -R* | -l*)
20197 # Some compilers place space between "-{L,R}" and the path.
20198 # Remove the space.
20199 if test $p = "-L" ||
20200 test $p = "-R"; then
20201 prev=$p
20202 continue
20203 else
20204 prev=
20205 fi
20206
20207 if test "$pre_test_object_deps_done" = no; then
20208 case $p in
20209 -L* | -R*)
20210 # Internal compiler library paths should come after those
20211 # provided the user. The postdeps already come after the
20212 # user supplied libs so there is no need to process them.
20213 if test -z "$compiler_lib_search_path_CXX"; then
20214 compiler_lib_search_path_CXX="${prev}${p}"
20215 else
20216 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20217 fi
20218 ;;
20219 # The "-l" case would never come before the object being
20220 # linked, so don't bother handling this case.
20221 esac
20222 else
20223 if test -z "$postdeps_CXX"; then
20224 postdeps_CXX="${prev}${p}"
20225 else
20226 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20227 fi
20228 fi
20229 ;;
20230
20231 *.$objext)
20232 # This assumes that the test object file only shows up
20233 # once in the compiler output.
20234 if test "$p" = "conftest.$objext"; then
20235 pre_test_object_deps_done=yes
20236 continue
20237 fi
20238
20239 if test "$pre_test_object_deps_done" = no; then
20240 if test -z "$predep_objects_CXX"; then
20241 predep_objects_CXX="$p"
20242 else
20243 predep_objects_CXX="$predep_objects_CXX $p"
20244 fi
20245 else
20246 if test -z "$postdep_objects_CXX"; then
20247 postdep_objects_CXX="$p"
20248 else
20249 postdep_objects_CXX="$postdep_objects_CXX $p"
20250 fi
20251 fi
20252 ;;
20253
20254 *) ;; # Ignore the rest.
20255
20256 esac
20257 done
20258
20259 # Clean up.
20260 rm -f a.out a.exe
20261 else
20262 echo "libtool.m4: error: problem compiling CXX test program"
20263 fi
20264
20265 $RM -f confest.$objext
20266
20267 # PORTME: override above test on systems where it is broken
20268 case $host_os in
20269 interix[3-9]*)
20270 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20271 # hack all around it, let's just trust "g++" to DTRT.
20272 predep_objects_CXX=
20273 postdep_objects_CXX=
20274 postdeps_CXX=
20275 ;;
20276
20277 linux*)
20278 case `$CC -V 2>&1 | sed 5q` in
20279 *Sun\ C*)
20280 # Sun C++ 5.9
20281
20282 # The more standards-conforming stlport4 library is
20283 # incompatible with the Cstd library. Avoid specifying
20284 # it if it's in CXXFLAGS. Ignore libCrun as
20285 # -library=stlport4 depends on it.
20286 case " $CXX $CXXFLAGS " in
20287 *" -library=stlport4 "*)
20288 solaris_use_stlport4=yes
20289 ;;
20290 esac
20291
20292 if test "$solaris_use_stlport4" != yes; then
20293 postdeps_CXX='-library=Cstd -library=Crun'
20294 fi
20295 ;;
20296 esac
20297 ;;
20298
20299 solaris*)
20300 case $cc_basename in
20301 CC*)
20302 # The more standards-conforming stlport4 library is
20303 # incompatible with the Cstd library. Avoid specifying
20304 # it if it's in CXXFLAGS. Ignore libCrun as
20305 # -library=stlport4 depends on it.
20306 case " $CXX $CXXFLAGS " in
20307 *" -library=stlport4 "*)
20308 solaris_use_stlport4=yes
20309 ;;
20310 esac
20311
20312 # Adding this requires a known-good setup of shared libraries for
20313 # Sun compiler versions before 5.6, else PIC objects from an old
20314 # archive will be linked into the output, leading to subtle bugs.
20315 if test "$solaris_use_stlport4" != yes; then
20316 postdeps_CXX='-library=Cstd -library=Crun'
20317 fi
20318 ;;
20319 esac
20320 ;;
20321 esac
20322
20323
20324 case " $postdeps_CXX " in
20325 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20326 esac
20327 compiler_lib_search_dirs_CXX=
20328 if test -n "${compiler_lib_search_path_CXX}"; then
20329 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20330 fi
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362 lt_prog_compiler_wl_CXX=
20363 lt_prog_compiler_pic_CXX=
20364 lt_prog_compiler_static_CXX=
20365
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20368
20369 # C++ specific cases for pic, static, wl, etc.
20370 if test "$GXX" = yes; then
20371 lt_prog_compiler_wl_CXX='-Wl,'
20372 lt_prog_compiler_static_CXX='-static'
20373
20374 case $host_os in
20375 aix*)
20376 # All AIX code is PIC.
20377 if test "$host_cpu" = ia64; then
20378 # AIX 5 now supports IA64 processor
20379 lt_prog_compiler_static_CXX='-Bstatic'
20380 fi
20381 lt_prog_compiler_pic_CXX='-fPIC'
20382 ;;
20383
20384 amigaos*)
20385 case $host_cpu in
20386 powerpc)
20387 # see comment about AmigaOS4 .so support
20388 lt_prog_compiler_pic_CXX='-fPIC'
20389 ;;
20390 m68k)
20391 # FIXME: we need at least 68020 code to build shared libraries, but
20392 # adding the `-m68020' flag to GCC prevents building anything better,
20393 # like `-m68040'.
20394 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20395 ;;
20396 esac
20397 ;;
20398
20399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20400 # PIC is the default for these OSes.
20401 ;;
20402 mingw* | cygwin* | os2* | pw32* | cegcc*)
20403 # This hack is so that the source file can tell whether it is being
20404 # built for inclusion in a dll (and should export symbols for example).
20405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20406 # (--disable-auto-import) libraries
20407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20408 ;;
20409 darwin* | rhapsody*)
20410 # PIC is the default on this platform
20411 # Common symbols not allowed in MH_DYLIB files
20412 lt_prog_compiler_pic_CXX='-fno-common'
20413 ;;
20414 *djgpp*)
20415 # DJGPP does not support shared libraries at all
20416 lt_prog_compiler_pic_CXX=
20417 ;;
20418 haiku*)
20419 # PIC is the default for Haiku.
20420 # The "-static" flag exists, but is broken.
20421 lt_prog_compiler_static_CXX=
20422 ;;
20423 interix[3-9]*)
20424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20425 # Instead, we relocate shared libraries at runtime.
20426 ;;
20427 sysv4*MP*)
20428 if test -d /usr/nec; then
20429 lt_prog_compiler_pic_CXX=-Kconform_pic
20430 fi
20431 ;;
20432 hpux*)
20433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20435 # sets the default TLS model and affects inlining.
20436 case $host_cpu in
20437 hppa*64*)
20438 ;;
20439 *)
20440 lt_prog_compiler_pic_CXX='-fPIC'
20441 ;;
20442 esac
20443 ;;
20444 *qnx* | *nto*)
20445 # QNX uses GNU C++, but need to define -shared option too, otherwise
20446 # it will coredump.
20447 lt_prog_compiler_pic_CXX='-fPIC -shared'
20448 ;;
20449 *)
20450 lt_prog_compiler_pic_CXX='-fPIC'
20451 ;;
20452 esac
20453 else
20454 case $host_os in
20455 aix[4-9]*)
20456 # All AIX code is PIC.
20457 if test "$host_cpu" = ia64; then
20458 # AIX 5 now supports IA64 processor
20459 lt_prog_compiler_static_CXX='-Bstatic'
20460 else
20461 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20462 fi
20463 ;;
20464 chorus*)
20465 case $cc_basename in
20466 cxch68*)
20467 # Green Hills C++ Compiler
20468 # _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"
20469 ;;
20470 esac
20471 ;;
20472 dgux*)
20473 case $cc_basename in
20474 ec++*)
20475 lt_prog_compiler_pic_CXX='-KPIC'
20476 ;;
20477 ghcx*)
20478 # Green Hills C++ Compiler
20479 lt_prog_compiler_pic_CXX='-pic'
20480 ;;
20481 *)
20482 ;;
20483 esac
20484 ;;
20485 freebsd* | dragonfly*)
20486 # FreeBSD uses GNU C++
20487 ;;
20488 hpux9* | hpux10* | hpux11*)
20489 case $cc_basename in
20490 CC*)
20491 lt_prog_compiler_wl_CXX='-Wl,'
20492 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20493 if test "$host_cpu" != ia64; then
20494 lt_prog_compiler_pic_CXX='+Z'
20495 fi
20496 ;;
20497 aCC*)
20498 lt_prog_compiler_wl_CXX='-Wl,'
20499 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20500 case $host_cpu in
20501 hppa*64*|ia64*)
20502 # +Z the default
20503 ;;
20504 *)
20505 lt_prog_compiler_pic_CXX='+Z'
20506 ;;
20507 esac
20508 ;;
20509 *)
20510 ;;
20511 esac
20512 ;;
20513 interix*)
20514 # This is c89, which is MS Visual C++ (no shared libs)
20515 # Anyone wants to do a port?
20516 ;;
20517 irix5* | irix6* | nonstopux*)
20518 case $cc_basename in
20519 CC*)
20520 lt_prog_compiler_wl_CXX='-Wl,'
20521 lt_prog_compiler_static_CXX='-non_shared'
20522 # CC pic flag -KPIC is the default.
20523 ;;
20524 *)
20525 ;;
20526 esac
20527 ;;
20528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20529 case $cc_basename in
20530 KCC*)
20531 # KAI C++ Compiler
20532 lt_prog_compiler_wl_CXX='--backend -Wl,'
20533 lt_prog_compiler_pic_CXX='-fPIC'
20534 ;;
20535 ecpc* )
20536 # old Intel C++ for x86_64 which still supported -KPIC.
20537 lt_prog_compiler_wl_CXX='-Wl,'
20538 lt_prog_compiler_pic_CXX='-KPIC'
20539 lt_prog_compiler_static_CXX='-static'
20540 ;;
20541 icpc* )
20542 # Intel C++, used to be incompatible with GCC.
20543 # ICC 10 doesn't accept -KPIC any more.
20544 lt_prog_compiler_wl_CXX='-Wl,'
20545 lt_prog_compiler_pic_CXX='-fPIC'
20546 lt_prog_compiler_static_CXX='-static'
20547 ;;
20548 pgCC* | pgcpp*)
20549 # Portland Group C++ compiler
20550 lt_prog_compiler_wl_CXX='-Wl,'
20551 lt_prog_compiler_pic_CXX='-fpic'
20552 lt_prog_compiler_static_CXX='-Bstatic'
20553 ;;
20554 cxx*)
20555 # Compaq C++
20556 # Make sure the PIC flag is empty. It appears that all Alpha
20557 # Linux and Compaq Tru64 Unix objects are PIC.
20558 lt_prog_compiler_pic_CXX=
20559 lt_prog_compiler_static_CXX='-non_shared'
20560 ;;
20561 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20562 # IBM XL 8.0, 9.0 on PPC and BlueGene
20563 lt_prog_compiler_wl_CXX='-Wl,'
20564 lt_prog_compiler_pic_CXX='-qpic'
20565 lt_prog_compiler_static_CXX='-qstaticlink'
20566 ;;
20567 *)
20568 case `$CC -V 2>&1 | sed 5q` in
20569 *Sun\ C*)
20570 # Sun C++ 5.9
20571 lt_prog_compiler_pic_CXX='-KPIC'
20572 lt_prog_compiler_static_CXX='-Bstatic'
20573 lt_prog_compiler_wl_CXX='-Qoption ld '
20574 ;;
20575 esac
20576 ;;
20577 esac
20578 ;;
20579 lynxos*)
20580 ;;
20581 m88k*)
20582 ;;
20583 mvs*)
20584 case $cc_basename in
20585 cxx*)
20586 lt_prog_compiler_pic_CXX='-W c,exportall'
20587 ;;
20588 *)
20589 ;;
20590 esac
20591 ;;
20592 netbsd*)
20593 ;;
20594 *qnx* | *nto*)
20595 # QNX uses GNU C++, but need to define -shared option too, otherwise
20596 # it will coredump.
20597 lt_prog_compiler_pic_CXX='-fPIC -shared'
20598 ;;
20599 osf3* | osf4* | osf5*)
20600 case $cc_basename in
20601 KCC*)
20602 lt_prog_compiler_wl_CXX='--backend -Wl,'
20603 ;;
20604 RCC*)
20605 # Rational C++ 2.4.1
20606 lt_prog_compiler_pic_CXX='-pic'
20607 ;;
20608 cxx*)
20609 # Digital/Compaq C++
20610 lt_prog_compiler_wl_CXX='-Wl,'
20611 # Make sure the PIC flag is empty. It appears that all Alpha
20612 # Linux and Compaq Tru64 Unix objects are PIC.
20613 lt_prog_compiler_pic_CXX=
20614 lt_prog_compiler_static_CXX='-non_shared'
20615 ;;
20616 *)
20617 ;;
20618 esac
20619 ;;
20620 psos*)
20621 ;;
20622 solaris*)
20623 case $cc_basename in
20624 CC*)
20625 # Sun C++ 4.2, 5.x and Centerline C++
20626 lt_prog_compiler_pic_CXX='-KPIC'
20627 lt_prog_compiler_static_CXX='-Bstatic'
20628 lt_prog_compiler_wl_CXX='-Qoption ld '
20629 ;;
20630 gcx*)
20631 # Green Hills C++ Compiler
20632 lt_prog_compiler_pic_CXX='-PIC'
20633 ;;
20634 *)
20635 ;;
20636 esac
20637 ;;
20638 sunos4*)
20639 case $cc_basename in
20640 CC*)
20641 # Sun C++ 4.x
20642 lt_prog_compiler_pic_CXX='-pic'
20643 lt_prog_compiler_static_CXX='-Bstatic'
20644 ;;
20645 lcc*)
20646 # Lucid
20647 lt_prog_compiler_pic_CXX='-pic'
20648 ;;
20649 *)
20650 ;;
20651 esac
20652 ;;
20653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20654 case $cc_basename in
20655 CC*)
20656 lt_prog_compiler_wl_CXX='-Wl,'
20657 lt_prog_compiler_pic_CXX='-KPIC'
20658 lt_prog_compiler_static_CXX='-Bstatic'
20659 ;;
20660 esac
20661 ;;
20662 tandem*)
20663 case $cc_basename in
20664 NCC*)
20665 # NonStop-UX NCC 3.20
20666 lt_prog_compiler_pic_CXX='-KPIC'
20667 ;;
20668 *)
20669 ;;
20670 esac
20671 ;;
20672 vxworks*)
20673 ;;
20674 *)
20675 lt_prog_compiler_can_build_shared_CXX=no
20676 ;;
20677 esac
20678 fi
20679
20680 case $host_os in
20681 # For platforms which do not support PIC, -DPIC is meaningless:
20682 *djgpp*)
20683 lt_prog_compiler_pic_CXX=
20684 ;;
20685 *)
20686 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20687 ;;
20688 esac
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20690 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20691
20692
20693
20694 #
20695 # Check to make sure the PIC flag actually works.
20696 #
20697 if test -n "$lt_prog_compiler_pic_CXX"; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20699 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20700 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 lt_cv_prog_compiler_pic_works_CXX=no
20704 ac_outfile=conftest.$ac_objext
20705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20706 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20707 # Insert the option either (1) after the last *FLAGS variable, or
20708 # (2) before a word containing "conftest.", or (3) at the end.
20709 # Note that $ac_compile itself does not contain backslashes and begins
20710 # with a dollar sign (not a hyphen), so the echo should work correctly.
20711 # The option is referenced via a variable to avoid confusing sed.
20712 lt_compile=`echo "$ac_compile" | $SED \
20713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20715 -e 's:$: $lt_compiler_flag:'`
20716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20717 (eval "$lt_compile" 2>conftest.err)
20718 ac_status=$?
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 if (exit $ac_status) && test -s "$ac_outfile"; then
20722 # The compiler can only warn and ignore the option if not recognized
20723 # So say no if there are warnings other than the usual output.
20724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20727 lt_cv_prog_compiler_pic_works_CXX=yes
20728 fi
20729 fi
20730 $RM conftest*
20731
20732 fi
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20734 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20735
20736 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20737 case $lt_prog_compiler_pic_CXX in
20738 "" | " "*) ;;
20739 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20740 esac
20741 else
20742 lt_prog_compiler_pic_CXX=
20743 lt_prog_compiler_can_build_shared_CXX=no
20744 fi
20745
20746 fi
20747
20748
20749
20750 #
20751 # Check to make sure the static flag actually works.
20752 #
20753 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20755 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20756 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20757 $as_echo_n "(cached) " >&6
20758 else
20759 lt_cv_prog_compiler_static_works_CXX=no
20760 save_LDFLAGS="$LDFLAGS"
20761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20764 # The linker can only warn and ignore the option if not recognized
20765 # So say no if there are warnings
20766 if test -s conftest.err; then
20767 # Append any errors to the config.log.
20768 cat conftest.err 1>&5
20769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20771 if diff conftest.exp conftest.er2 >/dev/null; then
20772 lt_cv_prog_compiler_static_works_CXX=yes
20773 fi
20774 else
20775 lt_cv_prog_compiler_static_works_CXX=yes
20776 fi
20777 fi
20778 $RM -r conftest*
20779 LDFLAGS="$save_LDFLAGS"
20780
20781 fi
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20783 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20784
20785 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20786 :
20787 else
20788 lt_prog_compiler_static_CXX=
20789 fi
20790
20791
20792
20793
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20796 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20799 lt_cv_prog_compiler_c_o_CXX=no
20800 $RM -r conftest 2>/dev/null
20801 mkdir conftest
20802 cd conftest
20803 mkdir out
20804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20805
20806 lt_compiler_flag="-o out/conftest2.$ac_objext"
20807 # Insert the option either (1) after the last *FLAGS variable, or
20808 # (2) before a word containing "conftest.", or (3) at the end.
20809 # Note that $ac_compile itself does not contain backslashes and begins
20810 # with a dollar sign (not a hyphen), so the echo should work correctly.
20811 lt_compile=`echo "$ac_compile" | $SED \
20812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20814 -e 's:$: $lt_compiler_flag:'`
20815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20816 (eval "$lt_compile" 2>out/conftest.err)
20817 ac_status=$?
20818 cat out/conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20821 then
20822 # The compiler can only warn and ignore the option if not recognized
20823 # So say no if there are warnings
20824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20827 lt_cv_prog_compiler_c_o_CXX=yes
20828 fi
20829 fi
20830 chmod u+w . 2>&5
20831 $RM conftest*
20832 # SGI C++ compiler will create directory out/ii_files/ for
20833 # template instantiation
20834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20835 $RM out/* && rmdir out
20836 cd ..
20837 $RM -r conftest
20838 $RM conftest*
20839
20840 fi
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20842 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20843
20844
20845
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20848 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20850 else
20851 lt_cv_prog_compiler_c_o_CXX=no
20852 $RM -r conftest 2>/dev/null
20853 mkdir conftest
20854 cd conftest
20855 mkdir out
20856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20857
20858 lt_compiler_flag="-o out/conftest2.$ac_objext"
20859 # Insert the option either (1) after the last *FLAGS variable, or
20860 # (2) before a word containing "conftest.", or (3) at the end.
20861 # Note that $ac_compile itself does not contain backslashes and begins
20862 # with a dollar sign (not a hyphen), so the echo should work correctly.
20863 lt_compile=`echo "$ac_compile" | $SED \
20864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20866 -e 's:$: $lt_compiler_flag:'`
20867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20868 (eval "$lt_compile" 2>out/conftest.err)
20869 ac_status=$?
20870 cat out/conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20873 then
20874 # The compiler can only warn and ignore the option if not recognized
20875 # So say no if there are warnings
20876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20879 lt_cv_prog_compiler_c_o_CXX=yes
20880 fi
20881 fi
20882 chmod u+w . 2>&5
20883 $RM conftest*
20884 # SGI C++ compiler will create directory out/ii_files/ for
20885 # template instantiation
20886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20887 $RM out/* && rmdir out
20888 cd ..
20889 $RM -r conftest
20890 $RM conftest*
20891
20892 fi
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20894 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20895
20896
20897
20898
20899 hard_links="nottested"
20900 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20901 # do not overwrite the value of need_locks provided by the user
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20903 $as_echo_n "checking if we can lock with hard links... " >&6; }
20904 hard_links=yes
20905 $RM conftest*
20906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20907 touch conftest.a
20908 ln conftest.a conftest.b 2>&5 || hard_links=no
20909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20911 $as_echo "$hard_links" >&6; }
20912 if test "$hard_links" = no; then
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20914 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20915 need_locks=warn
20916 fi
20917 else
20918 need_locks=no
20919 fi
20920
20921
20922
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20924 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20925
20926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20927 case $host_os in
20928 aix[4-9]*)
20929 # If we're using GNU nm, then we don't want the "-C" option.
20930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20931 # Also, AIX nm treats weak defined symbols like other global defined
20932 # symbols, whereas GNU nm marks them as "W".
20933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20934 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'
20935 else
20936 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'
20937 fi
20938 ;;
20939 pw32*)
20940 export_symbols_cmds_CXX="$ltdll_cmds"
20941 ;;
20942 cygwin* | mingw* | cegcc*)
20943 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'
20944 ;;
20945 *)
20946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20947 ;;
20948 esac
20949 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20950
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20952 $as_echo "$ld_shlibs_CXX" >&6; }
20953 test "$ld_shlibs_CXX" = no && can_build_shared=no
20954
20955 with_gnu_ld_CXX=$with_gnu_ld
20956
20957
20958
20959
20960
20961
20962 #
20963 # Do we need to explicitly link libc?
20964 #
20965 case "x$archive_cmds_need_lc_CXX" in
20966 x|xyes)
20967 # Assume -lc should be added
20968 archive_cmds_need_lc_CXX=yes
20969
20970 if test "$enable_shared" = yes && test "$GCC" = yes; then
20971 case $archive_cmds_CXX in
20972 *'~'*)
20973 # FIXME: we may have to deal with multi-command sequences.
20974 ;;
20975 '$CC '*)
20976 # Test whether the compiler implicitly links with -lc since on some
20977 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20978 # to ld, don't add -lc before -lgcc.
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20980 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20981 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 $RM conftest*
20985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20986
20987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20988 (eval $ac_compile) 2>&5
20989 ac_status=$?
20990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20991 test $ac_status = 0; } 2>conftest.err; then
20992 soname=conftest
20993 lib=conftest
20994 libobjs=conftest.$ac_objext
20995 deplibs=
20996 wl=$lt_prog_compiler_wl_CXX
20997 pic_flag=$lt_prog_compiler_pic_CXX
20998 compiler_flags=-v
20999 linker_flags=-v
21000 verstring=
21001 output_objdir=.
21002 libname=conftest
21003 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21004 allow_undefined_flag_CXX=
21005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21006 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21007 ac_status=$?
21008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21009 test $ac_status = 0; }
21010 then
21011 lt_cv_archive_cmds_need_lc_CXX=no
21012 else
21013 lt_cv_archive_cmds_need_lc_CXX=yes
21014 fi
21015 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21016 else
21017 cat conftest.err 1>&5
21018 fi
21019 $RM conftest*
21020
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21023 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21024 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21025 ;;
21026 esac
21027 fi
21028 ;;
21029 esac
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
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21095 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21096
21097 library_names_spec=
21098 libname_spec='lib$name'
21099 soname_spec=
21100 shrext_cmds=".so"
21101 postinstall_cmds=
21102 postuninstall_cmds=
21103 finish_cmds=
21104 finish_eval=
21105 shlibpath_var=
21106 shlibpath_overrides_runpath=unknown
21107 version_type=none
21108 dynamic_linker="$host_os ld.so"
21109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21110 need_lib_prefix=unknown
21111 hardcode_into_libs=no
21112
21113 # when you set need_version to no, make sure it does not cause -set_version
21114 # flags to be left without arguments
21115 need_version=unknown
21116
21117 case $host_os in
21118 aix3*)
21119 version_type=linux
21120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21121 shlibpath_var=LIBPATH
21122
21123 # AIX 3 has no versioning support, so we append a major version to the name.
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 ;;
21126
21127 aix[4-9]*)
21128 version_type=linux
21129 need_lib_prefix=no
21130 need_version=no
21131 hardcode_into_libs=yes
21132 if test "$host_cpu" = ia64; then
21133 # AIX 5 supports IA64
21134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 else
21137 # With GCC up to 2.95.x, collect2 would create an import file
21138 # for dependence libraries. The import file would start with
21139 # the line `#! .'. This would cause the generated library to
21140 # depend on `.', always an invalid library. This was fixed in
21141 # development snapshots of GCC prior to 3.0.
21142 case $host_os in
21143 aix4 | aix4.[01] | aix4.[01].*)
21144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21145 echo ' yes '
21146 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21147 :
21148 else
21149 can_build_shared=no
21150 fi
21151 ;;
21152 esac
21153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21154 # soname into executable. Probably we can add versioning support to
21155 # collect2, so additional links can be useful in future.
21156 if test "$aix_use_runtimelinking" = yes; then
21157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21158 # instead of lib<name>.a to let people know that these are not
21159 # typical AIX shared libraries.
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 else
21162 # We preserve .a as extension for shared libraries through AIX4.2
21163 # and later when we are not doing run time linking.
21164 library_names_spec='${libname}${release}.a $libname.a'
21165 soname_spec='${libname}${release}${shared_ext}$major'
21166 fi
21167 shlibpath_var=LIBPATH
21168 fi
21169 ;;
21170
21171 amigaos*)
21172 case $host_cpu in
21173 powerpc)
21174 # Since July 2007 AmigaOS4 officially supports .so libraries.
21175 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21177 ;;
21178 m68k)
21179 library_names_spec='$libname.ixlibrary $libname.a'
21180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21181 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'
21182 ;;
21183 esac
21184 ;;
21185
21186 beos*)
21187 library_names_spec='${libname}${shared_ext}'
21188 dynamic_linker="$host_os ld.so"
21189 shlibpath_var=LIBRARY_PATH
21190 ;;
21191
21192 bsdi[45]*)
21193 version_type=linux
21194 need_version=no
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21201 # the default ld.so.conf also contains /usr/contrib/lib and
21202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21203 # libtool to hard-code these into programs
21204 ;;
21205
21206 cygwin* | mingw* | pw32* | cegcc*)
21207 version_type=windows
21208 shrext_cmds=".dll"
21209 need_version=no
21210 need_lib_prefix=no
21211
21212 case $GCC,$host_os in
21213 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21214 library_names_spec='$libname.dll.a'
21215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21216 postinstall_cmds='base_file=`basename \${file}`~
21217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21218 dldir=$destdir/`dirname \$dlpath`~
21219 test -d \$dldir || mkdir -p \$dldir~
21220 $install_prog $dir/$dlname \$dldir/$dlname~
21221 chmod a+x \$dldir/$dlname~
21222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21224 fi'
21225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21226 dlpath=$dir/\$dldll~
21227 $RM \$dlpath'
21228 shlibpath_overrides_runpath=yes
21229
21230 case $host_os in
21231 cygwin*)
21232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21234
21235 ;;
21236 mingw* | cegcc*)
21237 # MinGW DLLs use traditional 'lib' prefix
21238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21239 ;;
21240 pw32*)
21241 # pw32 DLLs use 'pw' prefix rather than 'lib'
21242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21243 ;;
21244 esac
21245 ;;
21246
21247 *)
21248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21249 ;;
21250 esac
21251 dynamic_linker='Win32 ld.exe'
21252 # FIXME: first we should search . and the directory the executable is in
21253 shlibpath_var=PATH
21254 ;;
21255
21256 darwin* | rhapsody*)
21257 dynamic_linker="$host_os dyld"
21258 version_type=darwin
21259 need_lib_prefix=no
21260 need_version=no
21261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21262 soname_spec='${libname}${release}${major}$shared_ext'
21263 shlibpath_overrides_runpath=yes
21264 shlibpath_var=DYLD_LIBRARY_PATH
21265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21266
21267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21268 ;;
21269
21270 dgux*)
21271 version_type=linux
21272 need_lib_prefix=no
21273 need_version=no
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21275 soname_spec='${libname}${release}${shared_ext}$major'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 ;;
21278
21279 freebsd* | dragonfly*)
21280 # DragonFly does not have aout. When/if they implement a new
21281 # versioning mechanism, adjust this.
21282 if test -x /usr/bin/objformat; then
21283 objformat=`/usr/bin/objformat`
21284 else
21285 case $host_os in
21286 freebsd[23].*) objformat=aout ;;
21287 *) objformat=elf ;;
21288 esac
21289 fi
21290 version_type=freebsd-$objformat
21291 case $version_type in
21292 freebsd-elf*)
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21294 need_version=no
21295 need_lib_prefix=no
21296 ;;
21297 freebsd-*)
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21299 need_version=yes
21300 ;;
21301 esac
21302 shlibpath_var=LD_LIBRARY_PATH
21303 case $host_os in
21304 freebsd2.*)
21305 shlibpath_overrides_runpath=yes
21306 ;;
21307 freebsd3.[01]* | freebsdelf3.[01]*)
21308 shlibpath_overrides_runpath=yes
21309 hardcode_into_libs=yes
21310 ;;
21311 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21312 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21313 shlibpath_overrides_runpath=no
21314 hardcode_into_libs=yes
21315 ;;
21316 *) # from 4.6 on, and DragonFly
21317 shlibpath_overrides_runpath=yes
21318 hardcode_into_libs=yes
21319 ;;
21320 esac
21321 ;;
21322
21323 gnu*)
21324 version_type=linux
21325 need_lib_prefix=no
21326 need_version=no
21327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 shlibpath_var=LD_LIBRARY_PATH
21330 hardcode_into_libs=yes
21331 ;;
21332
21333 haiku*)
21334 version_type=linux
21335 need_lib_prefix=no
21336 need_version=no
21337 dynamic_linker="$host_os runtime_loader"
21338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21339 soname_spec='${libname}${release}${shared_ext}$major'
21340 shlibpath_var=LIBRARY_PATH
21341 shlibpath_overrides_runpath=yes
21342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21343 hardcode_into_libs=yes
21344 ;;
21345
21346 hpux9* | hpux10* | hpux11*)
21347 # Give a soname corresponding to the major version so that dld.sl refuses to
21348 # link against other versions.
21349 version_type=sunos
21350 need_lib_prefix=no
21351 need_version=no
21352 case $host_cpu in
21353 ia64*)
21354 shrext_cmds='.so'
21355 hardcode_into_libs=yes
21356 dynamic_linker="$host_os dld.so"
21357 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
21362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21363 else
21364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21365 fi
21366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21367 ;;
21368 hppa*64*)
21369 shrext_cmds='.sl'
21370 hardcode_into_libs=yes
21371 dynamic_linker="$host_os dld.sl"
21372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21375 soname_spec='${libname}${release}${shared_ext}$major'
21376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21378 ;;
21379 *)
21380 shrext_cmds='.sl'
21381 dynamic_linker="$host_os dld.sl"
21382 shlibpath_var=SHLIB_PATH
21383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 ;;
21387 esac
21388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21389 postinstall_cmds='chmod 555 $lib'
21390 # or fails outright, so override atomically:
21391 install_override_mode=555
21392 ;;
21393
21394 interix[3-9]*)
21395 version_type=linux
21396 need_lib_prefix=no
21397 need_version=no
21398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21399 soname_spec='${libname}${release}${shared_ext}$major'
21400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21401 shlibpath_var=LD_LIBRARY_PATH
21402 shlibpath_overrides_runpath=no
21403 hardcode_into_libs=yes
21404 ;;
21405
21406 irix5* | irix6* | nonstopux*)
21407 case $host_os in
21408 nonstopux*) version_type=nonstopux ;;
21409 *)
21410 if test "$lt_cv_prog_gnu_ld" = yes; then
21411 version_type=linux
21412 else
21413 version_type=irix
21414 fi ;;
21415 esac
21416 need_lib_prefix=no
21417 need_version=no
21418 soname_spec='${libname}${release}${shared_ext}$major'
21419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21420 case $host_os in
21421 irix5* | nonstopux*)
21422 libsuff= shlibsuff=
21423 ;;
21424 *)
21425 case $LD in # libtool.m4 will add one of these switches to LD
21426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21427 libsuff= shlibsuff= libmagic=32-bit;;
21428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21429 libsuff=32 shlibsuff=N32 libmagic=N32;;
21430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21432 *) libsuff= shlibsuff= libmagic=never-match;;
21433 esac
21434 ;;
21435 esac
21436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21437 shlibpath_overrides_runpath=no
21438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21440 hardcode_into_libs=yes
21441 ;;
21442
21443 # No shared lib support for Linux oldld, aout, or coff.
21444 linux*oldld* | linux*aout* | linux*coff*)
21445 dynamic_linker=no
21446 ;;
21447
21448 # This must be Linux ELF.
21449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21450 version_type=linux
21451 need_lib_prefix=no
21452 need_version=no
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21454 soname_spec='${libname}${release}${shared_ext}$major'
21455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21456 shlibpath_var=LD_LIBRARY_PATH
21457 shlibpath_overrides_runpath=no
21458
21459 # Some binutils ld are patched to set DT_RUNPATH
21460 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21461 $as_echo_n "(cached) " >&6
21462 else
21463 lt_cv_shlibpath_overrides_runpath=no
21464 save_LDFLAGS=$LDFLAGS
21465 save_libdir=$libdir
21466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21469 /* end confdefs.h. */
21470
21471 int
21472 main ()
21473 {
21474
21475 ;
21476 return 0;
21477 }
21478 _ACEOF
21479 if ac_fn_cxx_try_link "$LINENO"; then :
21480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21481 lt_cv_shlibpath_overrides_runpath=yes
21482 fi
21483 fi
21484 rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LDFLAGS=$save_LDFLAGS
21487 libdir=$save_libdir
21488
21489 fi
21490
21491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21492
21493 # This implies no fast_install, which is unacceptable.
21494 # Some rework will be needed to allow for fast_install
21495 # before this can be enabled.
21496 hardcode_into_libs=yes
21497
21498 # Append ld.so.conf contents to the search path
21499 if test -f /etc/ld.so.conf; then
21500 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' ' '`
21501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21502 fi
21503
21504 # We used to test for /lib/ld.so.1 and disable shared libraries on
21505 # powerpc, because MkLinux only supported shared libraries with the
21506 # GNU dynamic linker. Since this was broken with cross compilers,
21507 # most powerpc-linux boxes support dynamic linking these days and
21508 # people can always --disable-shared, the test was removed, and we
21509 # assume the GNU/Linux dynamic linker is in use.
21510 dynamic_linker='GNU/Linux ld.so'
21511 ;;
21512
21513 netbsd*)
21514 version_type=sunos
21515 need_lib_prefix=no
21516 need_version=no
21517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21520 dynamic_linker='NetBSD (a.out) ld.so'
21521 else
21522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21523 soname_spec='${libname}${release}${shared_ext}$major'
21524 dynamic_linker='NetBSD ld.elf_so'
21525 fi
21526 shlibpath_var=LD_LIBRARY_PATH
21527 shlibpath_overrides_runpath=yes
21528 hardcode_into_libs=yes
21529 ;;
21530
21531 newsos6)
21532 version_type=linux
21533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21534 shlibpath_var=LD_LIBRARY_PATH
21535 shlibpath_overrides_runpath=yes
21536 ;;
21537
21538 *nto* | *qnx*)
21539 version_type=qnx
21540 need_lib_prefix=no
21541 need_version=no
21542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21543 soname_spec='${libname}${release}${shared_ext}$major'
21544 shlibpath_var=LD_LIBRARY_PATH
21545 shlibpath_overrides_runpath=no
21546 hardcode_into_libs=yes
21547 dynamic_linker='ldqnx.so'
21548 ;;
21549
21550 openbsd*)
21551 version_type=sunos
21552 sys_lib_dlsearch_path_spec="/usr/lib"
21553 need_lib_prefix=no
21554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21555 case $host_os in
21556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21557 *) need_version=no ;;
21558 esac
21559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21561 shlibpath_var=LD_LIBRARY_PATH
21562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21563 case $host_os in
21564 openbsd2.[89] | openbsd2.[89].*)
21565 shlibpath_overrides_runpath=no
21566 ;;
21567 *)
21568 shlibpath_overrides_runpath=yes
21569 ;;
21570 esac
21571 else
21572 shlibpath_overrides_runpath=yes
21573 fi
21574 ;;
21575
21576 os2*)
21577 libname_spec='$name'
21578 shrext_cmds=".dll"
21579 need_lib_prefix=no
21580 library_names_spec='$libname${shared_ext} $libname.a'
21581 dynamic_linker='OS/2 ld.exe'
21582 shlibpath_var=LIBPATH
21583 ;;
21584
21585 osf3* | osf4* | osf5*)
21586 version_type=osf
21587 need_lib_prefix=no
21588 need_version=no
21589 soname_spec='${libname}${release}${shared_ext}$major'
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21591 shlibpath_var=LD_LIBRARY_PATH
21592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21594 ;;
21595
21596 rdos*)
21597 dynamic_linker=no
21598 ;;
21599
21600 solaris*)
21601 version_type=linux
21602 need_lib_prefix=no
21603 need_version=no
21604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21605 soname_spec='${libname}${release}${shared_ext}$major'
21606 shlibpath_var=LD_LIBRARY_PATH
21607 shlibpath_overrides_runpath=yes
21608 hardcode_into_libs=yes
21609 # ldd complains unless libraries are executable
21610 postinstall_cmds='chmod +x $lib'
21611 ;;
21612
21613 sunos4*)
21614 version_type=sunos
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21617 shlibpath_var=LD_LIBRARY_PATH
21618 shlibpath_overrides_runpath=yes
21619 if test "$with_gnu_ld" = yes; then
21620 need_lib_prefix=no
21621 fi
21622 need_version=yes
21623 ;;
21624
21625 sysv4 | sysv4.3*)
21626 version_type=linux
21627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21628 soname_spec='${libname}${release}${shared_ext}$major'
21629 shlibpath_var=LD_LIBRARY_PATH
21630 case $host_vendor in
21631 sni)
21632 shlibpath_overrides_runpath=no
21633 need_lib_prefix=no
21634 runpath_var=LD_RUN_PATH
21635 ;;
21636 siemens)
21637 need_lib_prefix=no
21638 ;;
21639 motorola)
21640 need_lib_prefix=no
21641 need_version=no
21642 shlibpath_overrides_runpath=no
21643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21644 ;;
21645 esac
21646 ;;
21647
21648 sysv4*MP*)
21649 if test -d /usr/nec ;then
21650 version_type=linux
21651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21652 soname_spec='$libname${shared_ext}.$major'
21653 shlibpath_var=LD_LIBRARY_PATH
21654 fi
21655 ;;
21656
21657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21658 version_type=freebsd-elf
21659 need_lib_prefix=no
21660 need_version=no
21661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21662 soname_spec='${libname}${release}${shared_ext}$major'
21663 shlibpath_var=LD_LIBRARY_PATH
21664 shlibpath_overrides_runpath=yes
21665 hardcode_into_libs=yes
21666 if test "$with_gnu_ld" = yes; then
21667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21668 else
21669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21670 case $host_os in
21671 sco3.2v5*)
21672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21673 ;;
21674 esac
21675 fi
21676 sys_lib_dlsearch_path_spec='/usr/lib'
21677 ;;
21678
21679 tpf*)
21680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21681 version_type=linux
21682 need_lib_prefix=no
21683 need_version=no
21684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21685 shlibpath_var=LD_LIBRARY_PATH
21686 shlibpath_overrides_runpath=no
21687 hardcode_into_libs=yes
21688 ;;
21689
21690 uts4*)
21691 version_type=linux
21692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21693 soname_spec='${libname}${release}${shared_ext}$major'
21694 shlibpath_var=LD_LIBRARY_PATH
21695 ;;
21696
21697 *)
21698 dynamic_linker=no
21699 ;;
21700 esac
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21702 $as_echo "$dynamic_linker" >&6; }
21703 test "$dynamic_linker" = no && can_build_shared=no
21704
21705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21706 if test "$GCC" = yes; then
21707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21708 fi
21709
21710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21712 fi
21713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21715 fi
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21756 hardcode_action_CXX=
21757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21758 test -n "$runpath_var_CXX" ||
21759 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21760
21761 # We can hardcode non-existent directories.
21762 if test "$hardcode_direct_CXX" != no &&
21763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21764 # have to relink, otherwise we might link with an installed library
21765 # when we should be linking with a yet-to-be-installed one
21766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21767 test "$hardcode_minus_L_CXX" != no; then
21768 # Linking always hardcodes the temporary library directory.
21769 hardcode_action_CXX=relink
21770 else
21771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21772 hardcode_action_CXX=immediate
21773 fi
21774 else
21775 # We cannot hardcode anything, or else we can only hardcode existing
21776 # directories.
21777 hardcode_action_CXX=unsupported
21778 fi
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21780 $as_echo "$hardcode_action_CXX" >&6; }
21781
21782 if test "$hardcode_action_CXX" = relink ||
21783 test "$inherit_rpath_CXX" = yes; then
21784 # Fast installation is not supported
21785 enable_fast_install=no
21786 elif test "$shlibpath_overrides_runpath" = yes ||
21787 test "$enable_shared" = no; then
21788 # Fast installation is not necessary
21789 enable_fast_install=needless
21790 fi
21791
21792
21793
21794
21795
21796
21797
21798 fi # test -n "$compiler"
21799
21800 CC=$lt_save_CC
21801 LDCXX=$LD
21802 LD=$lt_save_LD
21803 GCC=$lt_save_GCC
21804 with_gnu_ld=$lt_save_with_gnu_ld
21805 lt_cv_path_LDCXX=$lt_cv_path_LD
21806 lt_cv_path_LD=$lt_save_path_LD
21807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21809 fi # test "$_lt_caught_CXX_error" != yes
21810
21811 ac_ext=cpp
21812 ac_cpp='$CXXCPP $CPPFLAGS'
21813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832 # Only expand once:
21833
21834
21835
21836
21837
21838 # Identify the assembler which will work hand-in-glove with the newly
21839 # built GCC, so that we can examine its features. This is the assembler
21840 # which will be driven by the driver program.
21841 #
21842 # If build != host, and we aren't building gas in-tree, we identify a
21843 # build->target assembler and hope that it will have the same features
21844 # as the host->target assembler we'll be using.
21845 gcc_cv_gas_major_version=
21846 gcc_cv_gas_minor_version=
21847 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21848
21849 if test "${gcc_cv_as+set}" = set; then :
21850
21851 else
21852
21853 if test -x "$DEFAULT_ASSEMBLER"; then
21854 gcc_cv_as="$DEFAULT_ASSEMBLER"
21855 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21856 && test -f ../gas/Makefile \
21857 && test x$build = x$host; then
21858 gcc_cv_as=../gas/as-new$build_exeext
21859 elif test -x as$build_exeext; then
21860 # Build using assembler in the current directory.
21861 gcc_cv_as=./as$build_exeext
21862 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21863 gcc_cv_as="$AS_FOR_TARGET"
21864 else
21865 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21866 set dummy $AS_FOR_TARGET; ac_word=$2
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21868 $as_echo_n "checking for $ac_word... " >&6; }
21869 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21871 else
21872 case $gcc_cv_as in
21873 [\\/]* | ?:[\\/]*)
21874 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21875 ;;
21876 *)
21877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21878 for as_dir in $PATH
21879 do
21880 IFS=$as_save_IFS
21881 test -z "$as_dir" && as_dir=.
21882 for ac_exec_ext in '' $ac_executable_extensions; do
21883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21884 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21886 break 2
21887 fi
21888 done
21889 done
21890 IFS=$as_save_IFS
21891
21892 ;;
21893 esac
21894 fi
21895 gcc_cv_as=$ac_cv_path_gcc_cv_as
21896 if test -n "$gcc_cv_as"; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21898 $as_echo "$gcc_cv_as" >&6; }
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21902 fi
21903
21904
21905 fi
21906 fi
21907
21908 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21909
21910 case "$ORIGINAL_AS_FOR_TARGET" in
21911 ./as | ./as$build_exeext) ;;
21912 *) ac_config_files="$ac_config_files as:exec-tool.in"
21913 ;;
21914 esac
21915
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21917 $as_echo_n "checking what assembler to use... " >&6; }
21918 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21919 # Single tree build which includes gas. We want to prefer it
21920 # over whatever linker top-level may have detected, since
21921 # we'll use what we're building after installation anyway.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21923 $as_echo "newly built gas" >&6; }
21924 in_tree_gas=yes
21925 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21926 for f in $gcc_cv_as_bfd_srcdir/configure \
21927 $gcc_cv_as_gas_srcdir/configure \
21928 $gcc_cv_as_gas_srcdir/configure.ac \
21929 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21930 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21931 if test x$gcc_cv_gas_version != x; then
21932 break
21933 fi
21934 done
21935 case $gcc_cv_gas_version in
21936 VERSION=[0-9]*) ;;
21937 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21938 esac
21939 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21940 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21941 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21942 case $gcc_cv_gas_patch_version in
21943 "") gcc_cv_gas_patch_version="0" ;;
21944 esac
21945 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21946 + $gcc_cv_gas_minor_version \) \* 1000 \
21947 + $gcc_cv_gas_patch_version`
21948
21949 in_tree_gas_is_elf=no
21950 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21951 || (grep 'obj_format = multi' ../gas/Makefile \
21952 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21953 then
21954 in_tree_gas_is_elf=yes
21955 fi
21956 else
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21958 $as_echo "$gcc_cv_as" >&6; }
21959 in_tree_gas=no
21960 fi
21961
21962 default_ld=
21963 # Check whether --enable-ld was given.
21964 if test "${enable_ld+set}" = set; then :
21965 enableval=$enable_ld; case "${enableval}" in
21966 no)
21967 default_ld=ld.gold
21968 ;;
21969 esac
21970 fi
21971
21972
21973 install_gold_as_default=no
21974 # Check whether --enable-gold was given.
21975 if test "${enable_gold+set}" = set; then :
21976 enableval=$enable_gold; case "${enableval}" in
21977 default)
21978 install_gold_as_default=yes
21979 ;;
21980 yes)
21981 if test x${default_ld} != x; then
21982 install_gold_as_default=yes
21983 fi
21984 ;;
21985 no)
21986 ;;
21987 *)
21988 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21989 ;;
21990 esac
21991 fi
21992
21993
21994 # Identify the linker which will work hand-in-glove with the newly
21995 # built GCC, so that we can examine its features. This is the linker
21996 # which will be driven by the driver program.
21997 #
21998 # If build != host, and we aren't building gas in-tree, we identify a
21999 # build->target linker and hope that it will have the same features
22000 # as the host->target linker we'll be using.
22001 gcc_cv_gld_major_version=
22002 gcc_cv_gld_minor_version=
22003 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22004 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22005 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22006
22007 if test "${gcc_cv_ld+set}" = set; then :
22008
22009 else
22010
22011 if test -x "$DEFAULT_LINKER"; then
22012 gcc_cv_ld="$DEFAULT_LINKER"
22013 elif test $install_gold_as_default = yes \
22014 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22015 && test -f ../gold/Makefile \
22016 && test x$build = x$host; then
22017 gcc_cv_ld=../gold/ld-new$build_exeext
22018 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22019 && test -f ../ld/Makefile \
22020 && test x$build = x$host; then
22021 gcc_cv_ld=../ld/ld-new$build_exeext
22022 elif test -x collect-ld$build_exeext; then
22023 # Build using linker in the current directory.
22024 gcc_cv_ld=./collect-ld$build_exeext
22025 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22026 gcc_cv_ld="$LD_FOR_TARGET"
22027 else
22028 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22029 set dummy $LD_FOR_TARGET; ac_word=$2
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22031 $as_echo_n "checking for $ac_word... " >&6; }
22032 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 case $gcc_cv_ld in
22036 [\\/]* | ?:[\\/]*)
22037 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22038 ;;
22039 *)
22040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22041 for as_dir in $PATH
22042 do
22043 IFS=$as_save_IFS
22044 test -z "$as_dir" && as_dir=.
22045 for ac_exec_ext in '' $ac_executable_extensions; do
22046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22047 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22049 break 2
22050 fi
22051 done
22052 done
22053 IFS=$as_save_IFS
22054
22055 ;;
22056 esac
22057 fi
22058 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22059 if test -n "$gcc_cv_ld"; then
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22061 $as_echo "$gcc_cv_ld" >&6; }
22062 else
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22064 $as_echo "no" >&6; }
22065 fi
22066
22067
22068 fi
22069 fi
22070
22071 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22072 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22073 # if the PLUGIN_LD is set ld-new, just have it as ld
22074 # as that is the installed named.
22075 if test x$PLUGIN_LD_SUFFIX = xld-new \
22076 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22077 PLUGIN_LD_SUFFIX=ld
22078 fi
22079
22080 # Check whether --with-plugin-ld was given.
22081 if test "${with_plugin_ld+set}" = set; then :
22082 withval=$with_plugin_ld; if test x"$withval" != x; then
22083 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22084 PLUGIN_LD_SUFFIX="$withval"
22085 fi
22086 fi
22087
22088
22089
22090 cat >>confdefs.h <<_ACEOF
22091 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22092 _ACEOF
22093
22094
22095 # Check to see if we are using gold instead of ld
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22097 $as_echo_n "checking whether we are using gold... " >&6; }
22098 ld_is_gold=no
22099 if test x$gcc_cv_ld != x; then
22100 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22101 | grep "GNU gold" > /dev/null; then
22102 ld_is_gold=yes
22103 fi
22104 fi
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22106 $as_echo "$ld_is_gold" >&6; }
22107
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22109 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22110 # Check to see if default ld is not gold, but gold is
22111 # available and has support for split stack. If gcc was configured
22112 # with gold then no checking is done.
22113 #
22114 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22115
22116 # For platforms other than powerpc64*, enable as appropriate.
22117
22118 gold_non_default=no
22119 ld_gold=`which ${gcc_cv_ld}.gold`
22120 # Make sure this gold has minimal split stack support
22121 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22122 ld_vers=`$ld_gold --version | sed 1q`
22123 gold_vers=`echo $ld_vers | sed -n \
22124 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22125 case $target in
22126 # check that the gold version contains the complete split stack support
22127 # on powerpc64 big and little endian
22128 powerpc64*-*-*)
22129 case "$gold_vers" in
22130 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22131 ;;
22132 *) gold_non_default=no
22133 ;;
22134 esac
22135 ;;
22136 esac
22137 fi
22138 if test $gold_non_default = yes; then
22139
22140 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22141
22142 fi
22143 fi
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22145 $as_echo "$gold_non_default" >&6; }
22146
22147 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22148
22149 case "$ORIGINAL_LD_FOR_TARGET" in
22150 ./collect-ld | ./collect-ld$build_exeext) ;;
22151 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22152 ;;
22153 esac
22154
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22156 $as_echo_n "checking what linker to use... " >&6; }
22157 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22158 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22159 # Single tree build which includes ld. We want to prefer it
22160 # over whatever linker top-level may have detected, since
22161 # we'll use what we're building after installation anyway.
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22163 $as_echo "newly built ld" >&6; }
22164 in_tree_ld=yes
22165 in_tree_ld_is_elf=no
22166 if (grep 'EMUL = .*elf' ../ld/Makefile \
22167 || grep 'EMUL = .*linux' ../ld/Makefile \
22168 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22169 in_tree_ld_is_elf=yes
22170 elif test "$ld_is_gold" = yes; then
22171 in_tree_ld_is_elf=yes
22172 fi
22173 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
22174 do
22175 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22176 if test x$gcc_cv_gld_version != x; then
22177 break
22178 fi
22179 done
22180 case $gcc_cv_gld_version in
22181 VERSION=[0-9]*) ;;
22182 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22183 esac
22184 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22185 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22186 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22187 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22188 else
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22190 $as_echo "$gcc_cv_ld" >&6; }
22191 in_tree_ld=no
22192 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22193 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22194 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22195 fi
22196
22197
22198
22199
22200 # Figure out what nm we will be using.
22201 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22202 if test "${gcc_cv_nm+set}" = set; then :
22203
22204 else
22205
22206 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22207 && test -f ../binutils/Makefile \
22208 && test x$build = x$host; then
22209 gcc_cv_nm=../binutils/nm-new$build_exeext
22210 elif test -x nm$build_exeext; then
22211 gcc_cv_nm=./nm$build_exeext
22212 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22213 gcc_cv_nm="$NM_FOR_TARGET"
22214 else
22215 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22216 set dummy $NM_FOR_TARGET; ac_word=$2
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22218 $as_echo_n "checking for $ac_word... " >&6; }
22219 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22220 $as_echo_n "(cached) " >&6
22221 else
22222 case $gcc_cv_nm in
22223 [\\/]* | ?:[\\/]*)
22224 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22225 ;;
22226 *)
22227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22228 for as_dir in $PATH
22229 do
22230 IFS=$as_save_IFS
22231 test -z "$as_dir" && as_dir=.
22232 for ac_exec_ext in '' $ac_executable_extensions; do
22233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22234 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22236 break 2
22237 fi
22238 done
22239 done
22240 IFS=$as_save_IFS
22241
22242 ;;
22243 esac
22244 fi
22245 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22246 if test -n "$gcc_cv_nm"; then
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22248 $as_echo "$gcc_cv_nm" >&6; }
22249 else
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22251 $as_echo "no" >&6; }
22252 fi
22253
22254
22255 fi
22256 fi
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22259 $as_echo_n "checking what nm to use... " >&6; }
22260 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22261 # Single tree build which includes binutils.
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22263 $as_echo "newly built nm" >&6; }
22264 in_tree_nm=yes
22265 else
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22267 $as_echo "$gcc_cv_nm" >&6; }
22268 in_tree_nm=no
22269 fi
22270
22271 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22272
22273 case "$ORIGINAL_NM_FOR_TARGET" in
22274 ./nm | ./nm$build_exeext) ;;
22275 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22276 ;;
22277 esac
22278
22279
22280 # Figure out what objdump we will be using.
22281 if test "${gcc_cv_objdump+set}" = set; then :
22282
22283 else
22284
22285 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22286 && test -f ../binutils/Makefile \
22287 && test x$build = x$host; then
22288 # Single tree build which includes binutils.
22289 gcc_cv_objdump=../binutils/objdump$build_exeext
22290 elif test -x objdump$build_exeext; then
22291 gcc_cv_objdump=./objdump$build_exeext
22292 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22293 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22294 else
22295 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22296 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298 $as_echo_n "checking for $ac_word... " >&6; }
22299 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 case $gcc_cv_objdump in
22303 [\\/]* | ?:[\\/]*)
22304 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22305 ;;
22306 *)
22307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22309 do
22310 IFS=$as_save_IFS
22311 test -z "$as_dir" && as_dir=.
22312 for ac_exec_ext in '' $ac_executable_extensions; do
22313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22314 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22316 break 2
22317 fi
22318 done
22319 done
22320 IFS=$as_save_IFS
22321
22322 ;;
22323 esac
22324 fi
22325 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22326 if test -n "$gcc_cv_objdump"; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22328 $as_echo "$gcc_cv_objdump" >&6; }
22329 else
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331 $as_echo "no" >&6; }
22332 fi
22333
22334
22335 fi
22336 fi
22337
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22339 $as_echo_n "checking what objdump to use... " >&6; }
22340 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22341 # Single tree build which includes binutils.
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22343 $as_echo "newly built objdump" >&6; }
22344 elif test x$gcc_cv_objdump = x; then
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22346 $as_echo "not found" >&6; }
22347 else
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22349 $as_echo "$gcc_cv_objdump" >&6; }
22350 fi
22351
22352 # Figure out what readelf we will be using.
22353 if test "${gcc_cv_readelf+set}" = set; then :
22354
22355 else
22356
22357 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22358 && test -f ../binutils/Makefile \
22359 && test x$build = x$host; then
22360 # Single tree build which includes binutils.
22361 gcc_cv_readelf=../binutils/readelf$build_exeext
22362 elif test -x readelf$build_exeext; then
22363 gcc_cv_readelf=./readelf$build_exeext
22364 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22365 gcc_cv_readelf="$READELF_FOR_TARGET"
22366 else
22367 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22368 set dummy $READELF_FOR_TARGET; ac_word=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 case $gcc_cv_readelf in
22375 [\\/]* | ?:[\\/]*)
22376 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22377 ;;
22378 *)
22379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22380 for as_dir in $PATH
22381 do
22382 IFS=$as_save_IFS
22383 test -z "$as_dir" && as_dir=.
22384 for ac_exec_ext in '' $ac_executable_extensions; do
22385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22386 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22388 break 2
22389 fi
22390 done
22391 done
22392 IFS=$as_save_IFS
22393
22394 ;;
22395 esac
22396 fi
22397 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22398 if test -n "$gcc_cv_readelf"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22400 $as_echo "$gcc_cv_readelf" >&6; }
22401 else
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22404 fi
22405
22406
22407 fi
22408 fi
22409
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22411 $as_echo_n "checking what readelf to use... " >&6; }
22412 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22413 # Single tree build which includes binutils.
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22415 $as_echo "newly built readelf" >&6; }
22416 elif test x$gcc_cv_readelf = x; then
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22418 $as_echo "not found" >&6; }
22419 else
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22421 $as_echo "$gcc_cv_readelf" >&6; }
22422 fi
22423
22424 # Figure out what assembler alignment features are present.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22426 $as_echo_n "checking assembler flags... " >&6; }
22427 if test "${gcc_cv_as_flags+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 case "$target" in
22431 i[34567]86-*-linux*)
22432 gcc_cv_as_flags=--32
22433 ;;
22434 x86_64-*-linux-gnux32)
22435 gcc_cv_as_flags=--x32
22436 ;;
22437 x86_64-*-linux*)
22438 gcc_cv_as_flags=--64
22439 ;;
22440 powerpc*-*-darwin*)
22441 gcc_cv_as_flags="-arch ppc"
22442 ;;
22443 *)
22444 gcc_cv_as_flags=" "
22445 ;;
22446 esac
22447 fi
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22449 $as_echo "$gcc_cv_as_flags" >&6; }
22450
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22452 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22453 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22454 $as_echo_n "(cached) " >&6
22455 else
22456 gcc_cv_as_balign_and_p2align=no
22457 if test $in_tree_gas = yes; then
22458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22459 then gcc_cv_as_balign_and_p2align=yes
22460 fi
22461 elif test x$gcc_cv_as != x; then
22462 $as_echo '.balign 4
22463 .p2align 2' > conftest.s
22464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; }; }
22470 then
22471 gcc_cv_as_balign_and_p2align=yes
22472 else
22473 echo "configure: failed program was" >&5
22474 cat conftest.s >&5
22475 fi
22476 rm -f conftest.o conftest.s
22477 fi
22478 fi
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22480 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22481 if test $gcc_cv_as_balign_and_p2align = yes; then
22482
22483 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22484
22485 fi
22486
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22488 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22489 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 gcc_cv_as_max_skip_p2align=no
22493 if test $in_tree_gas = yes; then
22494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22495 then gcc_cv_as_max_skip_p2align=yes
22496 fi
22497 elif test x$gcc_cv_as != x; then
22498 $as_echo '.p2align 4,,7' > conftest.s
22499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22505 then
22506 gcc_cv_as_max_skip_p2align=yes
22507 else
22508 echo "configure: failed program was" >&5
22509 cat conftest.s >&5
22510 fi
22511 rm -f conftest.o conftest.s
22512 fi
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22515 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22516 if test $gcc_cv_as_max_skip_p2align = yes; then
22517
22518 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22519
22520 fi
22521
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22523 $as_echo_n "checking assembler for .literal16... " >&6; }
22524 if test "${gcc_cv_as_literal16+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 gcc_cv_as_literal16=no
22528 if test $in_tree_gas = yes; then
22529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22530 then gcc_cv_as_literal16=yes
22531 fi
22532 elif test x$gcc_cv_as != x; then
22533 $as_echo '.literal16' > conftest.s
22534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539 test $ac_status = 0; }; }
22540 then
22541 gcc_cv_as_literal16=yes
22542 else
22543 echo "configure: failed program was" >&5
22544 cat conftest.s >&5
22545 fi
22546 rm -f conftest.o conftest.s
22547 fi
22548 fi
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22550 $as_echo "$gcc_cv_as_literal16" >&6; }
22551 if test $gcc_cv_as_literal16 = yes; then
22552
22553 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22554
22555 fi
22556
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22558 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22559 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22561 else
22562 gcc_cv_as_subsection_m1=no
22563 if test $in_tree_gas = yes; then
22564 if test $in_tree_gas_is_elf = yes \
22565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22566 then gcc_cv_as_subsection_m1=yes
22567 fi
22568 elif test x$gcc_cv_as != x; then
22569 $as_echo 'conftest_label1: .word 0
22570 .subsection -1
22571 conftest_label2: .word 0
22572 .previous' > conftest.s
22573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22575 (eval $ac_try) 2>&5
22576 ac_status=$?
22577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22578 test $ac_status = 0; }; }
22579 then
22580 if test x$gcc_cv_nm != x; then
22581 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22582 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22583 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22584 then :
22585 else gcc_cv_as_subsection_m1=yes
22586 fi
22587 rm -f conftest.nm1 conftest.nm2
22588 fi
22589 else
22590 echo "configure: failed program was" >&5
22591 cat conftest.s >&5
22592 fi
22593 rm -f conftest.o conftest.s
22594 fi
22595 fi
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22597 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22598 if test $gcc_cv_as_subsection_m1 = yes; then
22599
22600 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22601
22602 fi
22603
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22605 $as_echo_n "checking assembler for .weak... " >&6; }
22606 if test "${gcc_cv_as_weak+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 gcc_cv_as_weak=no
22610 if test $in_tree_gas = yes; then
22611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22612 then gcc_cv_as_weak=yes
22613 fi
22614 elif test x$gcc_cv_as != x; then
22615 $as_echo ' .weak foobar' > conftest.s
22616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; }
22622 then
22623 gcc_cv_as_weak=yes
22624 else
22625 echo "configure: failed program was" >&5
22626 cat conftest.s >&5
22627 fi
22628 rm -f conftest.o conftest.s
22629 fi
22630 fi
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22632 $as_echo "$gcc_cv_as_weak" >&6; }
22633 if test $gcc_cv_as_weak = yes; then
22634
22635 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22636
22637 fi
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22640 $as_echo_n "checking assembler for .weakref... " >&6; }
22641 if test "${gcc_cv_as_weakref+set}" = set; then :
22642 $as_echo_n "(cached) " >&6
22643 else
22644 gcc_cv_as_weakref=no
22645 if test $in_tree_gas = yes; then
22646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22647 then gcc_cv_as_weakref=yes
22648 fi
22649 elif test x$gcc_cv_as != x; then
22650 $as_echo ' .weakref foobar, barfnot' > conftest.s
22651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22657 then
22658 gcc_cv_as_weakref=yes
22659 else
22660 echo "configure: failed program was" >&5
22661 cat conftest.s >&5
22662 fi
22663 rm -f conftest.o conftest.s
22664 fi
22665 fi
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22667 $as_echo "$gcc_cv_as_weakref" >&6; }
22668 if test $gcc_cv_as_weakref = yes; then
22669
22670 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22671
22672 fi
22673
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22675 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22676 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22679 gcc_cv_as_nsubspa_comdat=no
22680 if test $in_tree_gas = yes; then
22681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22682 then gcc_cv_as_nsubspa_comdat=yes
22683 fi
22684 elif test x$gcc_cv_as != x; then
22685 $as_echo ' .SPACE $TEXT$
22686 .NSUBSPA $CODE$,COMDAT' > conftest.s
22687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; }
22693 then
22694 gcc_cv_as_nsubspa_comdat=yes
22695 else
22696 echo "configure: failed program was" >&5
22697 cat conftest.s >&5
22698 fi
22699 rm -f conftest.o conftest.s
22700 fi
22701 fi
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22703 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22704 if test $gcc_cv_as_nsubspa_comdat = yes; then
22705
22706 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22707
22708 fi
22709
22710 # .hidden needs to be supported in both the assembler and the linker,
22711 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22712 # This is irritatingly difficult to feature test for; we have to check the
22713 # date string after the version number. If we've got an in-tree
22714 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22715 # to be safe.
22716 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22718 $as_echo_n "checking assembler for .hidden... " >&6; }
22719 if test "${gcc_cv_as_hidden+set}" = set; then :
22720 $as_echo_n "(cached) " >&6
22721 else
22722 gcc_cv_as_hidden=no
22723 if test $in_tree_gas = yes; then
22724 if test $in_tree_gas_is_elf = yes \
22725 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22726 then gcc_cv_as_hidden=yes
22727 fi
22728 elif test x$gcc_cv_as != x; then
22729 $as_echo ' .hidden foobar
22730 foobar:' > 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 case "${target}" in
22750 *-*-darwin*)
22751 # Darwin as has some visibility support, though with a different syntax.
22752 gcc_cv_as_hidden=yes
22753 ;;
22754 esac
22755
22756 # gnu_indirect_function type is an extension proposed at
22757 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22758 # selection of function implementation
22759 # Check whether --enable-gnu-indirect-function was given.
22760 if test "${enable_gnu_indirect_function+set}" = set; then :
22761 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22762 yes | no) ;;
22763 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22764 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22765 esac
22766 else
22767 enable_gnu_indirect_function="$default_gnu_indirect_function"
22768 fi
22769
22770
22771 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22775 _ACEOF
22776
22777
22778
22779 if test $in_tree_ld != yes ; then
22780 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22781 if echo "$ld_ver" | grep GNU > /dev/null; then
22782 if test x"$ld_is_gold" = xyes; then
22783 # GNU gold --version looks like this:
22784 #
22785 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22786 #
22787 # We extract the binutils version which is more familiar and specific
22788 # than the gold version.
22789 ld_vers=`echo $ld_ver | sed -n \
22790 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22791 else
22792 # GNU ld --version looks like this:
22793 #
22794 # GNU ld (GNU Binutils) 2.21.51.20110225
22795 ld_vers=`echo $ld_ver | sed -n \
22796 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22797 fi
22798 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'`
22799 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22800 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22801 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22802 else
22803 case "${target}" in
22804 *-*-solaris2*)
22805 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22806 # format.
22807 #
22808 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22809 # /usr/ccs/bin/ld has been configured.
22810 ld_ver=`$gcc_cv_ld -V 2>&1`
22811 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22812 ld_vers=`echo $ld_ver | sed -n \
22813 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22814 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22815 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22816 fi
22817 ;;
22818 esac
22819 fi
22820 fi
22821
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22823 $as_echo_n "checking linker for .hidden support... " >&6; }
22824 if test "${gcc_cv_ld_hidden+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 if test $in_tree_ld = yes ; then
22828 gcc_cv_ld_hidden=no
22829 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 \
22830 && test $in_tree_ld_is_elf = yes; then
22831 gcc_cv_ld_hidden=yes
22832 fi
22833 else
22834 gcc_cv_ld_hidden=yes
22835 if test x"$ld_is_gold" = xyes; then
22836 :
22837 elif echo "$ld_ver" | grep GNU > /dev/null; then
22838 case "${target}" in
22839 mmix-knuth-mmixware)
22840 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22841 gcc_cv_ld_hidden=no
22842 ;;
22843 esac
22844 if test 0"$ld_date" -lt 20020404; then
22845 if test -n "$ld_date"; then
22846 # If there was date string, but was earlier than 2002-04-04, fail
22847 gcc_cv_ld_hidden=no
22848 elif test -z "$ld_vers"; then
22849 # If there was no date string nor ld version number, something is wrong
22850 gcc_cv_ld_hidden=no
22851 else
22852 test -z "$ld_vers_patch" && ld_vers_patch=0
22853 if test "$ld_vers_major" -lt 2; then
22854 gcc_cv_ld_hidden=no
22855 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22856 gcc_cv_ld_hidden="no"
22857 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22858 gcc_cv_ld_hidden=no
22859 fi
22860 fi
22861 fi
22862 else
22863 case "${target}" in
22864 *-*-darwin*)
22865 # Darwin ld has some visibility support.
22866 gcc_cv_ld_hidden=yes
22867 ;;
22868 hppa64*-*-hpux* | ia64*-*-hpux*)
22869 gcc_cv_ld_hidden=yes
22870 ;;
22871 *-*-solaris2.1[0-9]*)
22872 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22873 # .symbolic was only added in Solaris 9 12/02.
22874 gcc_cv_ld_hidden=yes
22875 ;;
22876 *)
22877 gcc_cv_ld_hidden=no
22878 ;;
22879 esac
22880 fi
22881 fi
22882 fi
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22884 $as_echo "$gcc_cv_ld_hidden" >&6; }
22885 libgcc_visibility=no
22886
22887
22888 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22889 libgcc_visibility=yes
22890
22891 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22892
22893 fi
22894
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22896 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22897 gcc_cv_ld_ro_rw_mix=unknown
22898 if test $in_tree_ld = yes ; then
22899 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 \
22900 && test $in_tree_ld_is_elf = yes; then
22901 gcc_cv_ld_ro_rw_mix=read-write
22902 fi
22903 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22904 echo '.section myfoosect, "a"' > conftest1.s
22905 echo '.section myfoosect, "aw"' > conftest2.s
22906 echo '.byte 1' >> conftest2.s
22907 echo '.section myfoosect, "a"' > conftest3.s
22908 echo '.byte 0' >> conftest3.s
22909 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22910 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22911 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22912 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22913 conftest2.o conftest3.o > /dev/null 2>&1; then
22914 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22915 | sed -e '/myfoosect/!d' -e N`
22916 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22917 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22918 gcc_cv_ld_ro_rw_mix=read-only
22919 else
22920 gcc_cv_ld_ro_rw_mix=read-write
22921 fi
22922 fi
22923 fi
22924 rm -f conftest.* conftest[123].*
22925 fi
22926 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22927
22928 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22929
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22932 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22933
22934 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22935 case "${target}" in
22936 *-*-solaris2*)
22937 #
22938 # Solaris 2 ld -V output looks like this for a regular version:
22939 #
22940 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22941 #
22942 # but test versions add stuff at the end:
22943 #
22944 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22945 #
22946 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22947 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22948 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22949 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22950 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22951 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22952 fi
22953 ;;
22954 esac
22955 fi
22956
22957 # Check whether --enable-initfini-array was given.
22958 if test "${enable_initfini_array+set}" = set; then :
22959 enableval=$enable_initfini_array;
22960 else
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22963 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22964 if test "${gcc_cv_initfini_array+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22966 else
22967 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22968 case "${target}" in
22969 ia64-*)
22970 if test "$cross_compiling" = yes; then :
22971 gcc_cv_initfini_array=no
22972 else
22973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22974 /* end confdefs.h. */
22975
22976 #ifndef __ELF__
22977 #error Not an ELF OS
22978 #endif
22979 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22980 if it can be used. */
22981 static int x = -1;
22982 int main (void) { return x; }
22983 int foo (void) { x = 0; }
22984 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22985
22986 _ACEOF
22987 if ac_fn_cxx_try_run "$LINENO"; then :
22988 gcc_cv_initfini_array=yes
22989 else
22990 gcc_cv_initfini_array=no
22991 fi
22992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22993 conftest.$ac_objext conftest.beam conftest.$ac_ext
22994 fi
22995 ;;
22996 *)
22997 gcc_cv_initfini_array=no
22998 if test $in_tree_ld = yes ; then
22999 if test "$gcc_cv_gld_major_version" -eq 2 \
23000 -a "$gcc_cv_gld_minor_version" -ge 22 \
23001 -o "$gcc_cv_gld_major_version" -gt 2 \
23002 && test $in_tree_ld_is_elf = yes; then
23003 gcc_cv_initfini_array=yes
23004 fi
23005 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23006 case $target:$gas in
23007 *:yes)
23008 sh_flags='"a"'
23009 sh_type='%progbits'
23010 ;;
23011 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23012 sh_flags='"a"'
23013 sh_type='@progbits'
23014 ;;
23015 sparc*-*-solaris2*:no)
23016 sh_flags='#alloc'
23017 sh_type='#progbits'
23018 sh_quote='"'
23019 ;;
23020 esac
23021 case "$target:$gnu_ld" in
23022 *:yes)
23023 cat > conftest.s <<EOF
23024 .section .dtors,$sh_flags,$sh_type
23025 .balign 4
23026 .byte 'A', 'A', 'A', 'A'
23027 .section .ctors,$sh_flags,$sh_type
23028 .balign 4
23029 .byte 'B', 'B', 'B', 'B'
23030 .section .fini_array.65530,$sh_flags,$sh_type
23031 .balign 4
23032 .byte 'C', 'C', 'C', 'C'
23033 .section .init_array.65530,$sh_flags,$sh_type
23034 .balign 4
23035 .byte 'D', 'D', 'D', 'D'
23036 .section .dtors.64528,$sh_flags,$sh_type
23037 .balign 4
23038 .byte 'E', 'E', 'E', 'E'
23039 .section .ctors.64528,$sh_flags,$sh_type
23040 .balign 4
23041 .byte 'F', 'F', 'F', 'F'
23042 .section .fini_array.01005,$sh_flags,$sh_type
23043 .balign 4
23044 .byte 'G', 'G', 'G', 'G'
23045 .section .init_array.01005,$sh_flags,$sh_type
23046 .balign 4
23047 .byte 'H', 'H', 'H', 'H'
23048 .text
23049 .globl _start
23050 _start:
23051 EOF
23052 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23053 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23054 && $gcc_cv_objdump -s -j .init_array conftest \
23055 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23056 && $gcc_cv_objdump -s -j .fini_array conftest \
23057 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23058 gcc_cv_initfini_array=yes
23059 fi
23060 ;;
23061 *-*-solaris2*:no)
23062 # When Solaris ld added constructor priority support, it was
23063 # decided to only handle .init_array.N/.fini_array.N since
23064 # there was no need for backwards compatibility with
23065 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23066 # sections with correct execution order resp. to
23067 # .init_array/.fini_array, while gld merges them into
23068 # .init_array/.fini_array.
23069 cat > conftest.s <<EOF
23070 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23071 .align 4
23072 .byte 'C', 'C', 'C', 'C'
23073 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23074 .align 4
23075 .byte 'D', 'D', 'D', 'D'
23076 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23077 .align 4
23078 .byte 'G', 'G', 'G', 'G'
23079 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23080 .align 4
23081 .byte 'H', 'H', 'H', 'H'
23082 .text
23083 .globl _start
23084 _start:
23085 EOF
23086 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23087 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23088 && $gcc_cv_objdump -s -j .init_array conftest \
23089 | grep HHHHDDDD > /dev/null 2>&1 \
23090 && $gcc_cv_objdump -s -j .fini_array conftest \
23091 | grep GGGGCCCC > /dev/null 2>&1; then
23092 gcc_cv_initfini_array=yes
23093 fi
23094 ;;
23095 esac
23096 rm -f conftest conftest.*
23097 fi
23098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099 /* end confdefs.h. */
23100
23101 #ifndef __ELF__
23102 # error Not an ELF OS
23103 #endif
23104 #include <stdlib.h>
23105 #if defined __GLIBC_PREREQ
23106 # if __GLIBC_PREREQ (2, 4)
23107 # else
23108 # error GLIBC 2.4 required
23109 # endif
23110 #else
23111 # if defined __sun__ && defined __svr4__
23112 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23113 # else
23114 # error The C library not known to support .init_array/.fini_array
23115 # endif
23116 #endif
23117
23118 _ACEOF
23119 if ac_fn_cxx_try_cpp "$LINENO"; then :
23120
23121 else
23122 gcc_cv_initfini_array=no
23123 fi
23124 rm -f conftest.err conftest.$ac_ext;;
23125 esac
23126 else
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23128 $as_echo_n "checking cross compile... guessing... " >&6; }
23129 gcc_cv_initfini_array=no
23130 fi
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23133 $as_echo "$gcc_cv_initfini_array" >&6; }
23134 enable_initfini_array=$gcc_cv_initfini_array
23135
23136 fi
23137
23138
23139 cat >>confdefs.h <<_ACEOF
23140 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23141 _ACEOF
23142
23143
23144
23145 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23147 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23148 if test "${gcc_cv_as_leb128+set}" = set; then :
23149 $as_echo_n "(cached) " >&6
23150 else
23151 gcc_cv_as_leb128=no
23152 if test $in_tree_gas = yes; then
23153 if test $in_tree_gas_is_elf = yes \
23154 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23155 then gcc_cv_as_leb128=yes
23156 fi
23157 elif test x$gcc_cv_as != x; then
23158 $as_echo ' .data
23159 .uleb128 L2 - L1
23160 L1:
23161 .uleb128 1280
23162 .sleb128 -1010
23163 L2:' > conftest.s
23164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; }
23170 then
23171 # GAS versions before 2.11 do not support uleb128,
23172 # despite appearing to.
23173 # ??? There exists an elf-specific test that will crash
23174 # the assembler. Perhaps it's better to figure out whether
23175 # arbitrary sections are supported and try the test.
23176 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23177 if echo "$as_ver" | grep GNU > /dev/null; then
23178 as_vers=`echo $as_ver | sed -n \
23179 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23180 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23181 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23182 if test $as_major -eq 2 && test $as_minor -lt 11
23183 then :
23184 else gcc_cv_as_leb128=yes
23185 fi
23186 fi
23187 else
23188 echo "configure: failed program was" >&5
23189 cat conftest.s >&5
23190 fi
23191 rm -f conftest.o conftest.s
23192 fi
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23195 $as_echo "$gcc_cv_as_leb128" >&6; }
23196 if test $gcc_cv_as_leb128 = yes; then
23197
23198 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23199
23200 fi
23201
23202 # Check if we have assembler support for unwind directives.
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23204 $as_echo_n "checking assembler for cfi directives... " >&6; }
23205 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23206 $as_echo_n "(cached) " >&6
23207 else
23208 gcc_cv_as_cfi_directive=no
23209 if test x$gcc_cv_as != x; then
23210 $as_echo ' .text
23211 .cfi_startproc
23212 .cfi_offset 0, 0
23213 .cfi_same_value 1
23214 .cfi_def_cfa 1, 2
23215 .cfi_escape 1, 2, 3, 4, 5
23216 .cfi_endproc' > conftest.s
23217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23223 then
23224 case "$target" in
23225 *-*-solaris*)
23226 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23227 # read-only and read-write sections, we need to make sure that the
23228 # assembler used emits read-write .eh_frame sections.
23229 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23230 if test "x$gcc_cv_objdump" != x; then
23231 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23232 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23233 gcc_cv_as_cfi_directive=no
23234 else
23235 case "$target" in
23236 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23237 # On Solaris/x86, make sure that GCC and assembler agree on using
23238 # read-only .eh_frame sections for 64-bit.
23239 if test x$gas = xyes; then
23240 as_ix86_64_opt="--64"
23241 else
23242 as_ix86_64_opt="-xarch=amd64"
23243 fi
23244 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23245 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23246 sed -e /.eh_frame/!d -e N | \
23247 grep READONLY > /dev/null; then
23248 gcc_cv_as_cfi_directive=yes
23249 else
23250 gcc_cv_as_cfi_directive=no
23251 fi
23252 ;;
23253 *)
23254 gcc_cv_as_cfi_directive=yes
23255 ;;
23256 esac
23257 fi
23258 else
23259 # no objdump, err on the side of caution
23260 gcc_cv_as_cfi_directive=no
23261 fi
23262 else
23263 gcc_cv_as_cfi_directive=yes
23264 fi
23265 ;;
23266 *-*-*)
23267 gcc_cv_as_cfi_directive=yes
23268 ;;
23269 esac
23270 else
23271 echo "configure: failed program was" >&5
23272 cat conftest.s >&5
23273 fi
23274 rm -f conftest.o conftest.s
23275 fi
23276 fi
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23278 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23279
23280 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23282 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23283 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23284 $as_echo_n "(cached) " >&6
23285 else
23286 gcc_cv_as_cfi_advance_working=no
23287 if test x$gcc_cv_as != x; then
23288 $as_echo ' .text
23289 .cfi_startproc
23290 .cfi_adjust_cfa_offset 64
23291 .skip 75040, 0
23292 .cfi_adjust_cfa_offset 128
23293 .cfi_endproc' > conftest.s
23294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299 test $ac_status = 0; }; }
23300 then
23301
23302 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23303 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23304 gcc_cv_as_cfi_advance_working=yes
23305 fi
23306
23307 else
23308 echo "configure: failed program was" >&5
23309 cat conftest.s >&5
23310 fi
23311 rm -f conftest.o conftest.s
23312 fi
23313 fi
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23315 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23316
23317 else
23318 # no objdump, err on the side of caution
23319 gcc_cv_as_cfi_advance_working=no
23320 fi
23321
23322
23323 cat >>confdefs.h <<_ACEOF
23324 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23325 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23326 _ACEOF
23327
23328
23329
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23331 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23332 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23333 $as_echo_n "(cached) " >&6
23334 else
23335 gcc_cv_as_cfi_personality_directive=no
23336 if test x$gcc_cv_as != x; then
23337 $as_echo ' .text
23338 .cfi_startproc
23339 .cfi_personality 0, symbol
23340 .cfi_endproc' > conftest.s
23341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23347 then
23348 gcc_cv_as_cfi_personality_directive=yes
23349 else
23350 echo "configure: failed program was" >&5
23351 cat conftest.s >&5
23352 fi
23353 rm -f conftest.o conftest.s
23354 fi
23355 fi
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23357 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23358
23359
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23362 then echo 1; else echo 0; fi`
23363 _ACEOF
23364
23365
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23367 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23368 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23369 $as_echo_n "(cached) " >&6
23370 else
23371 gcc_cv_as_cfi_sections_directive=no
23372 if test x$gcc_cv_as != x; then
23373 $as_echo ' .text
23374 .cfi_sections .debug_frame, .eh_frame
23375 .cfi_startproc
23376 .cfi_endproc' > conftest.s
23377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379 (eval $ac_try) 2>&5
23380 ac_status=$?
23381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382 test $ac_status = 0; }; }
23383 then
23384 case $target_os in
23385 win32 | pe | cygwin* | mingw32*)
23386 # Need to check that we generated the correct relocation for the
23387 # .debug_frame section. This was fixed for binutils 2.21.
23388 gcc_cv_as_cfi_sections_directive=no
23389 if test "x$gcc_cv_objdump" != x; then
23390 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23391 grep secrel > /dev/null; then
23392 gcc_cv_as_cfi_sections_directive=yes
23393 fi
23394 fi
23395 ;;
23396 *)
23397 gcc_cv_as_cfi_sections_directive=yes
23398 ;;
23399 esac
23400 else
23401 echo "configure: failed program was" >&5
23402 cat conftest.s >&5
23403 fi
23404 rm -f conftest.o conftest.s
23405 fi
23406 fi
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23408 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23409
23410
23411
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23414 then echo 1; else echo 0; fi`
23415 _ACEOF
23416
23417
23418 # GAS versions up to and including 2.11.0 may mis-optimize
23419 # .eh_frame data.
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23421 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23422 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23423 $as_echo_n "(cached) " >&6
23424 else
23425 gcc_cv_as_eh_frame=no
23426 if test $in_tree_gas = yes; then
23427 if test $in_tree_gas_is_elf = yes \
23428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23429 then gcc_cv_as_eh_frame=yes
23430 fi
23431 elif test x$gcc_cv_as != x; then
23432 $as_echo ' .text
23433 .LFB1:
23434 .4byte 0
23435 .L1:
23436 .4byte 0
23437 .LFE1:
23438 .section .eh_frame,"aw",@progbits
23439 __FRAME_BEGIN__:
23440 .4byte .LECIE1-.LSCIE1
23441 .LSCIE1:
23442 .4byte 0x0
23443 .byte 0x1
23444 .ascii "z\0"
23445 .byte 0x1
23446 .byte 0x78
23447 .byte 0x1a
23448 .byte 0x0
23449 .byte 0x4
23450 .4byte 1
23451 .p2align 1
23452 .LECIE1:
23453 .LSFDE1:
23454 .4byte .LEFDE1-.LASFDE1
23455 .LASFDE1:
23456 .4byte .LASFDE1-__FRAME_BEGIN__
23457 .4byte .LFB1
23458 .4byte .LFE1-.LFB1
23459 .byte 0x4
23460 .4byte .LFE1-.LFB1
23461 .byte 0x4
23462 .4byte .L1-.LFB1
23463 .LEFDE1:' > conftest.s
23464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23469 test $ac_status = 0; }; }
23470 then
23471 cat > conftest.lit <<EOF
23472 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23473 0010 01000000 12000000 18000000 00000000 ................
23474 0020 08000000 04080000 0044 .........D
23475 EOF
23476 cat > conftest.big <<EOF
23477 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23478 0010 00000001 00000012 00000018 00000000 ................
23479 0020 00000008 04000000 0844 .........D
23480 EOF
23481 # If the assembler didn't choke, and we can objdump,
23482 # and we got the correct data, then succeed.
23483 # The text in the here-document typically retains its unix-style line
23484 # endings, while the output of objdump will use host line endings.
23485 # Therefore, use diff -b for the comparisons.
23486 if test x$gcc_cv_objdump != x \
23487 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23488 | tail -3 > conftest.got \
23489 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23490 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23491 then
23492 gcc_cv_as_eh_frame=yes
23493 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23498 test $ac_status = 0; }; }; then
23499 gcc_cv_as_eh_frame=buggy
23500 else
23501 # Uh oh, what do we do now?
23502 gcc_cv_as_eh_frame=no
23503 fi
23504 else
23505 echo "configure: failed program was" >&5
23506 cat conftest.s >&5
23507 fi
23508 rm -f conftest.o conftest.s
23509 fi
23510 fi
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23512 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23513
23514
23515 if test $gcc_cv_as_eh_frame = buggy; then
23516
23517 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23518
23519 fi
23520
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23522 $as_echo_n "checking assembler for section merging support... " >&6; }
23523 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23524 $as_echo_n "(cached) " >&6
23525 else
23526 gcc_cv_as_shf_merge=no
23527 if test $in_tree_gas = yes; then
23528 if test $in_tree_gas_is_elf = yes \
23529 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23530 then gcc_cv_as_shf_merge=yes
23531 fi
23532 elif test x$gcc_cv_as != x; then
23533 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23539 test $ac_status = 0; }; }
23540 then
23541 gcc_cv_as_shf_merge=yes
23542 else
23543 echo "configure: failed program was" >&5
23544 cat conftest.s >&5
23545 fi
23546 rm -f conftest.o conftest.s
23547 fi
23548 fi
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23550 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23551
23552 if test $gcc_cv_as_shf_merge = no; then
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23554 $as_echo_n "checking assembler for section merging support... " >&6; }
23555 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23556 $as_echo_n "(cached) " >&6
23557 else
23558 gcc_cv_as_shf_merge=no
23559 if test $in_tree_gas = yes; then
23560 if test $in_tree_gas_is_elf = yes \
23561 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23562 then gcc_cv_as_shf_merge=yes
23563 fi
23564 elif test x$gcc_cv_as != x; then
23565 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23571 test $ac_status = 0; }; }
23572 then
23573 gcc_cv_as_shf_merge=yes
23574 else
23575 echo "configure: failed program was" >&5
23576 cat conftest.s >&5
23577 fi
23578 rm -f conftest.o conftest.s
23579 fi
23580 fi
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23582 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23583
23584 fi
23585
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23588 _ACEOF
23589
23590
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23592 $as_echo_n "checking assembler for stabs directive... " >&6; }
23593 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23594 $as_echo_n "(cached) " >&6
23595 else
23596 gcc_cv_as_stabs_directive=no
23597 if test x$gcc_cv_as != x; then
23598 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23604 test $ac_status = 0; }; }
23605 then
23606 gcc_cv_as_stabs_directive=yes
23607 else
23608 echo "configure: failed program was" >&5
23609 cat conftest.s >&5
23610 fi
23611 rm -f conftest.o conftest.s
23612 fi
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23615 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23616 if test $gcc_cv_as_stabs_directive = yes; then
23617
23618 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23619
23620 fi
23621
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23623 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23624 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23627 gcc_cv_as_comdat_group=no
23628 if test $in_tree_gas = yes; then
23629 if test $in_tree_gas_is_elf = yes \
23630 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23631 then gcc_cv_as_comdat_group=yes
23632 fi
23633 elif test x$gcc_cv_as != x; then
23634 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23640 test $ac_status = 0; }; }
23641 then
23642 gcc_cv_as_comdat_group=yes
23643 else
23644 echo "configure: failed program was" >&5
23645 cat conftest.s >&5
23646 fi
23647 rm -f conftest.o conftest.s
23648 fi
23649 fi
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23651 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23652
23653 if test $gcc_cv_as_comdat_group = yes; then
23654 gcc_cv_as_comdat_group_percent=no
23655 gcc_cv_as_comdat_group_group=no
23656 else
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23658 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23659 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23661 else
23662 gcc_cv_as_comdat_group_percent=no
23663 if test $in_tree_gas = yes; then
23664 if test $in_tree_gas_is_elf = yes \
23665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23666 then gcc_cv_as_comdat_group_percent=yes
23667 fi
23668 elif test x$gcc_cv_as != x; then
23669 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23675 test $ac_status = 0; }; }
23676 then
23677 gcc_cv_as_comdat_group_percent=yes
23678 else
23679 echo "configure: failed program was" >&5
23680 cat conftest.s >&5
23681 fi
23682 rm -f conftest.o conftest.s
23683 fi
23684 fi
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23686 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23687
23688 if test $gcc_cv_as_comdat_group_percent = yes; then
23689 gcc_cv_as_comdat_group_group=no
23690 else
23691 case "${target}" in
23692 # Sun as uses a completely different syntax.
23693 *-*-solaris2*)
23694 case "${target}" in
23695 sparc*-*-solaris2*)
23696 conftest_s='
23697 .group foo,".text%foo",#comdat
23698 .section ".text%foo", #alloc,#execinstr,#progbits
23699 .globl foo
23700 foo:
23701 '
23702 ;;
23703 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23704 conftest_s='
23705 .group foo,.text%foo,#comdat
23706 .section .text%foo, "ax", @progbits
23707 .globl foo
23708 foo:
23709 '
23710 ;;
23711 esac
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23713 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23714 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23716 else
23717 gcc_cv_as_comdat_group_group=no
23718 if test x$gcc_cv_as != x; then
23719 $as_echo "$conftest_s" > conftest.s
23720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23726 then
23727 gcc_cv_as_comdat_group_group=yes
23728 else
23729 echo "configure: failed program was" >&5
23730 cat conftest.s >&5
23731 fi
23732 rm -f conftest.o conftest.s
23733 fi
23734 fi
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23736 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23737
23738 ;;
23739 esac
23740 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23741 gcc_cv_as_comdat_group_group=no
23742 fi
23743 fi
23744 fi
23745 if test x"$ld_is_gold" = xyes; then
23746 comdat_group=yes
23747 elif test $in_tree_ld = yes ; then
23748 comdat_group=no
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23751 comdat_group=yes
23752 fi
23753 elif echo "$ld_ver" | grep GNU > /dev/null; then
23754 comdat_group=yes
23755 if test 0"$ld_date" -lt 20050308; then
23756 if test -n "$ld_date"; then
23757 # If there was date string, but was earlier than 2005-03-08, fail
23758 comdat_group=no
23759 elif test "$ld_vers_major" -lt 2; then
23760 comdat_group=no
23761 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23762 comdat_group=no
23763 fi
23764 fi
23765 else
23766 case "${target}" in
23767 *-*-solaris2.1[1-9]*)
23768 comdat_group=no
23769 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23770 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23771 # version 1.688.
23772 #
23773 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23774 # least ld version 1.2267.
23775 if test "$ld_vers_major" -gt 1; then
23776 comdat_group=yes
23777 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23778 comdat_group=yes
23779 elif test "$ld_vers_minor" -ge 2267; then
23780 comdat_group=yes
23781 fi
23782 ;;
23783 *)
23784 # Assume linkers other than GNU ld don't support COMDAT group.
23785 comdat_group=no
23786 ;;
23787 esac
23788 fi
23789 # Allow overriding the automatic COMDAT group tests above.
23790 # Check whether --enable-comdat was given.
23791 if test "${enable_comdat+set}" = set; then :
23792 enableval=$enable_comdat; comdat_group="$enable_comdat"
23793 fi
23794
23795 if test $comdat_group = no; then
23796 gcc_cv_as_comdat_group=no
23797 gcc_cv_as_comdat_group_percent=no
23798 gcc_cv_as_comdat_group_group=no
23799 fi
23800
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23803 || test $gcc_cv_as_comdat_group_percent = yes \
23804 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23805 _ACEOF
23806
23807
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23810 if test "${gcc_cv_as_discriminator+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 gcc_cv_as_discriminator=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23816 then gcc_cv_as_discriminator=yes
23817 fi
23818 elif test x$gcc_cv_as != x; then
23819 $as_echo ' .text
23820 .file 1 "conf.c"
23821 .loc 1 1 0 discriminator 1' > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23828 then
23829 gcc_cv_as_discriminator=yes
23830 else
23831 echo "configure: failed program was" >&5
23832 cat conftest.s >&5
23833 fi
23834 rm -f conftest.o conftest.s
23835 fi
23836 fi
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23838 $as_echo "$gcc_cv_as_discriminator" >&6; }
23839 if test $gcc_cv_as_discriminator = yes; then
23840
23841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23842
23843 fi
23844
23845 # Thread-local storage - the check is heavily parameterized.
23846 conftest_s=
23847 tls_first_major=
23848 tls_first_minor=
23849 tls_as_opt=
23850 case "$target" in
23851 alpha*-*-*)
23852 conftest_s='
23853 .section ".tdata","awT",@progbits
23854 foo: .long 25
23855 .text
23856 ldq $27,__tls_get_addr($29) !literal!1
23857 lda $16,foo($29) !tlsgd!1
23858 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23859 ldq $27,__tls_get_addr($29) !literal!2
23860 lda $16,foo($29) !tlsldm!2
23861 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23862 ldq $1,foo($29) !gotdtprel
23863 ldah $2,foo($29) !dtprelhi
23864 lda $3,foo($2) !dtprello
23865 lda $4,foo($29) !dtprel
23866 ldq $1,foo($29) !gottprel
23867 ldah $2,foo($29) !tprelhi
23868 lda $3,foo($2) !tprello
23869 lda $4,foo($29) !tprel'
23870 tls_first_major=2
23871 tls_first_minor=13
23872 tls_as_opt=--fatal-warnings
23873 ;;
23874 arc*-*-*)
23875 conftest_s='
23876 add_s r0,r0, @foo@tpoff'
23877 tls_first_major=2
23878 tls_first_minor=23
23879 ;;
23880 cris-*-*|crisv32-*-*)
23881 conftest_s='
23882 .section ".tdata","awT",@progbits
23883 x: .long 25
23884 .text
23885 move.d x:IE,$r10
23886 nop'
23887 tls_first_major=2
23888 tls_first_minor=20
23889 tls_as_opt=--fatal-warnings
23890 ;;
23891 frv*-*-*)
23892 conftest_s='
23893 .section ".tdata","awT",@progbits
23894 x: .long 25
23895 .text
23896 call #gettlsoff(x)'
23897 tls_first_major=2
23898 tls_first_minor=14
23899 ;;
23900 hppa*-*-linux*)
23901 conftest_s='
23902 t1: .reg %r20
23903 t2: .reg %r21
23904 gp: .reg %r19
23905 .section ".tdata","awT",@progbits
23906 foo: .long 25
23907 .text
23908 .align 4
23909 addil LT%foo-$tls_gdidx$,gp
23910 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23911 b __tls_get_addr
23912 nop
23913 addil LT%foo-$tls_ldidx$,gp
23914 b __tls_get_addr
23915 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23916 addil LR%foo-$tls_dtpoff$,%ret0
23917 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23918 mfctl %cr27,%t1
23919 addil LT%foo-$tls_ieoff$,gp
23920 ldw RT%foo-$tls_ieoff$(%r1),%t2
23921 add %t1,%t2,%t3
23922 mfctl %cr27,%t1
23923 addil LR%foo-$tls_leoff$,%t1
23924 ldo RR%foo-$tls_leoff$(%r1),%t2'
23925 tls_first_major=2
23926 tls_first_minor=15
23927 tls_as_opt=--fatal-warnings
23928 ;;
23929 arm*-*-*)
23930 conftest_s='
23931 .section ".tdata","awT",%progbits
23932 foo: .long 25
23933 .text
23934 .word foo(gottpoff)
23935 .word foo(tpoff)
23936 .word foo(tlsgd)
23937 .word foo(tlsldm)
23938 .word foo(tlsldo)'
23939 tls_first_major=2
23940 tls_first_minor=17
23941 ;;
23942 i[34567]86-*-* | x86_64-*-*)
23943 case "$target" in
23944 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23945 on_solaris=yes
23946 ;;
23947 *)
23948 on_solaris=no
23949 ;;
23950 esac
23951 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23952 conftest_s='
23953 .section .tdata,"awt",@progbits'
23954 tls_first_major=0
23955 tls_first_minor=0
23956 tls_section_flag=t
23957
23958 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23959
23960 else
23961 conftest_s='
23962 .section ".tdata","awT",@progbits'
23963 tls_first_major=2
23964 tls_first_minor=14
23965 tls_section_flag=T
23966 tls_as_opt="--fatal-warnings"
23967 fi
23968 case "$target" in
23969 i[34567]86-*-*)
23970 conftest_s="$conftest_s
23971 foo: .long 25
23972 .text
23973 movl %gs:0, %eax
23974 leal foo@tlsgd(,%ebx,1), %eax
23975 leal foo@tlsldm(%ebx), %eax
23976 leal foo@dtpoff(%eax), %edx
23977 movl foo@gottpoff(%ebx), %eax
23978 subl foo@gottpoff(%ebx), %eax
23979 addl foo@gotntpoff(%ebx), %eax
23980 movl foo@indntpoff, %eax
23981 movl \$foo@tpoff, %eax
23982 subl \$foo@tpoff, %eax
23983 leal foo@ntpoff(%ecx), %eax"
23984 ;;
23985 x86_64-*-*)
23986 if test x$on_solaris = xyes; then
23987 case $gas_flag in
23988 yes) tls_as_opt="$tls_as_opt --64" ;;
23989 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23990 esac
23991 fi
23992 conftest_s="$conftest_s
23993 foo: .long 25
23994 .text
23995 movq %fs:0, %rax
23996 leaq foo@tlsgd(%rip), %rdi
23997 leaq foo@tlsld(%rip), %rdi
23998 leaq foo@dtpoff(%rax), %rdx
23999 movq foo@gottpoff(%rip), %rax
24000 movq \$foo@tpoff, %rax"
24001 ;;
24002 esac
24003 ;;
24004 ia64-*-*)
24005 conftest_s='
24006 .section ".tdata","awT",@progbits
24007 foo: data8 25
24008 .text
24009 addl r16 = @ltoff(@dtpmod(foo#)), gp
24010 addl r17 = @ltoff(@dtprel(foo#)), gp
24011 addl r18 = @ltoff(@tprel(foo#)), gp
24012 addl r19 = @dtprel(foo#), gp
24013 adds r21 = @dtprel(foo#), r13
24014 movl r23 = @dtprel(foo#)
24015 addl r20 = @tprel(foo#), gp
24016 adds r22 = @tprel(foo#), r13
24017 movl r24 = @tprel(foo#)'
24018 tls_first_major=2
24019 tls_first_minor=13
24020 tls_as_opt=--fatal-warnings
24021 ;;
24022 microblaze*-*-*)
24023 conftest_s='
24024 .section .tdata,"awT",@progbits
24025 x:
24026 .word 2
24027 .text
24028 addik r5,r20,x@TLSGD
24029 addik r5,r20,x@TLSLDM'
24030 tls_first_major=2
24031 tls_first_minor=20
24032 tls_as_opt='--fatal-warnings'
24033 ;;
24034 mips*-*-*)
24035 conftest_s='
24036 .section .tdata,"awT",@progbits
24037 x:
24038 .word 2
24039 .text
24040 addiu $4, $28, %tlsgd(x)
24041 addiu $4, $28, %tlsldm(x)
24042 lui $4, %dtprel_hi(x)
24043 addiu $4, $4, %dtprel_lo(x)
24044 lw $4, %gottprel(x)($28)
24045 lui $4, %tprel_hi(x)
24046 addiu $4, $4, %tprel_lo(x)'
24047 tls_first_major=2
24048 tls_first_minor=16
24049 tls_as_opt='-32 --fatal-warnings'
24050 ;;
24051 m68k-*-*)
24052 conftest_s='
24053 .section .tdata,"awT",@progbits
24054 x:
24055 .word 2
24056 .text
24057 foo:
24058 move.l x@TLSGD(%a5),%a0
24059 move.l x@TLSLDM(%a5),%a0
24060 move.l x@TLSLDO(%a5),%a0
24061 move.l x@TLSIE(%a5),%a0
24062 move.l x@TLSLE(%a5),%a0'
24063 tls_first_major=2
24064 tls_first_minor=19
24065 tls_as_opt='--fatal-warnings'
24066 ;;
24067 nios2-*-*)
24068 conftest_s='
24069 .section ".tdata","awT",@progbits'
24070 tls_first_major=2
24071 tls_first_minor=23
24072 tls_as_opt="--fatal-warnings"
24073 ;;
24074 aarch64*-*-*)
24075 conftest_s='
24076 .section ".tdata","awT",%progbits
24077 foo: .long 25
24078 .text
24079 adrp x0, :tlsgd:x
24080 add x0, x0, #:tlsgd_lo12:x
24081 bl __tls_get_addr
24082 nop'
24083 tls_first_major=2
24084 tls_first_minor=20
24085 tls_as_opt='--fatal-warnings'
24086 ;;
24087 powerpc-ibm-aix*)
24088 conftest_s='
24089 .extern __get_tpointer
24090 .toc
24091 LC..1:
24092 .tc a[TC],a[TL]@le
24093 .csect .text[PR]
24094 .tlstest:
24095 lwz 9,LC..1(2)
24096 bla __get_tpointer
24097 lwzx 3,9,3
24098 .globl a
24099 .csect a[TL],4
24100 a:
24101 .space 4'
24102 tls_first_major=0
24103 tls_first_minor=0
24104 ;;
24105 powerpc64*-*-*)
24106 conftest_s='
24107 .section ".tdata","awT",@progbits
24108 .align 3
24109 ld0: .space 8
24110 ld1: .space 8
24111 x1: .space 8
24112 x2: .space 8
24113 x3: .space 8
24114 .text
24115 addi 3,2,ld0@got@tlsgd
24116 bl .__tls_get_addr
24117 nop
24118 addi 3,2,ld1@toc
24119 bl .__tls_get_addr
24120 nop
24121 addi 3,2,x1@got@tlsld
24122 bl .__tls_get_addr
24123 nop
24124 addi 9,3,x1@dtprel
24125 bl .__tls_get_addr
24126 nop
24127 addis 9,3,x2@dtprel@ha
24128 addi 9,9,x2@dtprel@l
24129 bl .__tls_get_addr
24130 nop
24131 ld 9,x3@got@dtprel(2)
24132 add 9,9,3
24133 bl .__tls_get_addr
24134 nop'
24135 tls_first_major=2
24136 tls_first_minor=14
24137 tls_as_opt="-a64 --fatal-warnings"
24138 ;;
24139 powerpc*-*-*)
24140 conftest_s='
24141 .section ".tdata","awT",@progbits
24142 .align 2
24143 ld0: .space 4
24144 ld1: .space 4
24145 x1: .space 4
24146 x2: .space 4
24147 x3: .space 4
24148 .text
24149 addi 3,31,ld0@got@tlsgd
24150 bl __tls_get_addr
24151 addi 3,31,x1@got@tlsld
24152 bl __tls_get_addr
24153 addi 9,3,x1@dtprel
24154 addis 9,3,x2@dtprel@ha
24155 addi 9,9,x2@dtprel@l
24156 lwz 9,x3@got@tprel(31)
24157 add 9,9,x@tls
24158 addi 9,2,x1@tprel
24159 addis 9,2,x2@tprel@ha
24160 addi 9,9,x2@tprel@l'
24161 tls_first_major=2
24162 tls_first_minor=14
24163 tls_as_opt="-a32 --fatal-warnings"
24164 ;;
24165 s390-*-*)
24166 conftest_s='
24167 .section ".tdata","awT",@progbits
24168 foo: .long 25
24169 .text
24170 .long foo@TLSGD
24171 .long foo@TLSLDM
24172 .long foo@DTPOFF
24173 .long foo@NTPOFF
24174 .long foo@GOTNTPOFF
24175 .long foo@INDNTPOFF
24176 l %r1,foo@GOTNTPOFF(%r12)
24177 l %r1,0(%r1):tls_load:foo
24178 bas %r14,0(%r1,%r13):tls_gdcall:foo
24179 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24180 tls_first_major=2
24181 tls_first_minor=14
24182 tls_as_opt="-m31 --fatal-warnings"
24183 ;;
24184 s390x-*-*)
24185 conftest_s='
24186 .section ".tdata","awT",@progbits
24187 foo: .long 25
24188 .text
24189 .quad foo@TLSGD
24190 .quad foo@TLSLDM
24191 .quad foo@DTPOFF
24192 .quad foo@NTPOFF
24193 .quad foo@GOTNTPOFF
24194 lg %r1,foo@GOTNTPOFF(%r12)
24195 larl %r1,foo@INDNTPOFF
24196 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24197 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24198 tls_first_major=2
24199 tls_first_minor=14
24200 tls_as_opt="-m64 -Aesame --fatal-warnings"
24201 ;;
24202 sh-*-* | sh[123456789lbe]*-*-*)
24203 conftest_s='
24204 .section ".tdata","awT",@progbits
24205 foo: .long 25
24206 .text
24207 .long foo@TLSGD
24208 .long foo@TLSLDM
24209 .long foo@DTPOFF
24210 .long foo@GOTTPOFF
24211 .long foo@TPOFF'
24212 tls_first_major=2
24213 tls_first_minor=13
24214 tls_as_opt=--fatal-warnings
24215 ;;
24216 sparc*-*-*)
24217 case "$target" in
24218 sparc*-sun-solaris2.*)
24219 on_solaris=yes
24220 ;;
24221 *)
24222 on_solaris=no
24223 ;;
24224 esac
24225 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24226 conftest_s='
24227 .section ".tdata",#alloc,#write,#tls'
24228 tls_first_major=0
24229 tls_first_minor=0
24230 else
24231 conftest_s='
24232 .section ".tdata","awT",@progbits'
24233 tls_first_major=2
24234 tls_first_minor=14
24235 tls_as_opt="-32 --fatal-warnings"
24236 fi
24237 conftest_s="$conftest_s
24238 foo: .long 25
24239 .text
24240 sethi %tgd_hi22(foo), %o0
24241 add %o0, %tgd_lo10(foo), %o1
24242 add %l7, %o1, %o0, %tgd_add(foo)
24243 call __tls_get_addr, %tgd_call(foo)
24244 sethi %tldm_hi22(foo), %l1
24245 add %l1, %tldm_lo10(foo), %l2
24246 add %l7, %l2, %o0, %tldm_add(foo)
24247 call __tls_get_addr, %tldm_call(foo)
24248 sethi %tldo_hix22(foo), %l3
24249 xor %l3, %tldo_lox10(foo), %l4
24250 add %o0, %l4, %l5, %tldo_add(foo)
24251 sethi %tie_hi22(foo), %o3
24252 add %o3, %tie_lo10(foo), %o3
24253 ld [%l7 + %o3], %o2, %tie_ld(foo)
24254 add %g7, %o2, %o4, %tie_add(foo)
24255 sethi %tle_hix22(foo), %l1
24256 xor %l1, %tle_lox10(foo), %o5
24257 ld [%g7 + %o5], %o1"
24258 ;;
24259 tilepro*-*-*)
24260 conftest_s='
24261 .section ".tdata","awT",@progbits
24262 foo: .long 25
24263 .text
24264 addli r0, zero, tls_gd(foo)
24265 auli r0, zero, tls_gd_ha16(foo)
24266 addli r0, r0, tls_gd_lo16(foo)
24267 jal __tls_get_addr
24268 addli r0, zero, tls_ie(foo)
24269 auli r0, r0, tls_ie_ha16(foo)
24270 addli r0, r0, tls_ie_lo16(foo)'
24271 tls_first_major=2
24272 tls_first_minor=22
24273 tls_as_opt="--fatal-warnings"
24274 ;;
24275 tilegx*-*-*)
24276 conftest_s='
24277 .section ".tdata","awT",@progbits
24278 foo: .long 25
24279 .text
24280 shl16insli r0, zero, hw0_last_tls_gd(foo)
24281 shl16insli r0, zero, hw1_last_tls_gd(foo)
24282 shl16insli r0, r0, hw0_tls_gd(foo)
24283 jal __tls_get_addr
24284 shl16insli r0, zero, hw1_last_tls_ie(foo)
24285 shl16insli r0, r0, hw0_tls_ie(foo)'
24286 tls_first_major=2
24287 tls_first_minor=22
24288 tls_as_opt="--fatal-warnings"
24289 ;;
24290 xtensa*-*-*)
24291 conftest_s='
24292 .section ".tdata","awT",@progbits
24293 foo: .long 25
24294 .text
24295 movi a8, foo@TLSFUNC
24296 movi a10, foo@TLSARG
24297 callx8.tls a8, foo@TLSCALL'
24298 tls_first_major=2
24299 tls_first_minor=19
24300 ;;
24301 esac
24302 set_have_as_tls=no
24303 if test "x$enable_tls" = xno ; then
24304 : # TLS explicitly disabled.
24305 elif test "x$enable_tls" = xyes ; then
24306 set_have_as_tls=yes # TLS explicitly enabled.
24307 elif test -z "$tls_first_major"; then
24308 : # If we don't have a check, assume no support.
24309 else
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24311 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24312 if test "${gcc_cv_as_tls+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 gcc_cv_as_tls=no
24316 if test $in_tree_gas = yes; then
24317 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24318 then gcc_cv_as_tls=yes
24319 fi
24320 elif test x$gcc_cv_as != x; then
24321 $as_echo "$conftest_s" > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_tls=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24333 fi
24334 rm -f conftest.o conftest.s
24335 fi
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24338 $as_echo "$gcc_cv_as_tls" >&6; }
24339 if test $gcc_cv_as_tls = yes; then
24340 set_have_as_tls=yes
24341 fi
24342 fi
24343 if test $set_have_as_tls = yes ; then
24344
24345 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24346
24347 fi
24348
24349 # Target-specific assembler checks.
24350
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24352 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24353 gcc_cv_ld_static_dynamic=no
24354 gcc_cv_ld_static_option='-Bstatic'
24355 gcc_cv_ld_dynamic_option='-Bdynamic'
24356 if test $in_tree_ld = yes ; then
24357 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
24358 gcc_cv_ld_static_dynamic=yes
24359 fi
24360 elif test x$gcc_cv_ld != x; then
24361 # Check if linker supports -Bstatic/-Bdynamic option
24362 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24363 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24364 gcc_cv_ld_static_dynamic=yes
24365 else
24366 case "$target" in
24367 # AIX ld uses -b flags
24368 *-*-aix4.[23]* | *-*-aix[5-9]*)
24369 gcc_cv_ld_static_dynamic=yes
24370 gcc_cv_ld_static_option="-bstatic"
24371 gcc_cv_ld_dynamic_option="-bdynamic"
24372 ;;
24373 # HP-UX ld uses -a flags to select between shared and archive.
24374 *-*-hpux*)
24375 if test x"$gnu_ld" = xno; then
24376 gcc_cv_ld_static_dynamic=yes
24377 gcc_cv_ld_static_option="-aarchive_shared"
24378 gcc_cv_ld_dynamic_option="-adefault"
24379 fi
24380 ;;
24381 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24382 *-*-solaris2*)
24383 gcc_cv_ld_static_dynamic=yes
24384 ;;
24385 esac
24386 fi
24387 fi
24388 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24389
24390 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24391
24392
24393 cat >>confdefs.h <<_ACEOF
24394 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24395 _ACEOF
24396
24397
24398 cat >>confdefs.h <<_ACEOF
24399 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24400 _ACEOF
24401
24402 fi
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24404 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24405
24406 if test x"$demangler_in_ld" = xyes; then
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24408 $as_echo_n "checking linker --demangle support... " >&6; }
24409 gcc_cv_ld_demangle=no
24410 if test $in_tree_ld = yes; then
24411 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 \
24412 gcc_cv_ld_demangle=yes
24413 fi
24414 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24415 # Check if the GNU linker supports --demangle option
24416 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24417 gcc_cv_ld_demangle=yes
24418 fi
24419 fi
24420 if test x"$gcc_cv_ld_demangle" = xyes; then
24421
24422 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24423
24424 fi
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24426 $as_echo "$gcc_cv_ld_demangle" >&6; }
24427 fi
24428
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24430 $as_echo_n "checking linker plugin support... " >&6; }
24431 gcc_cv_lto_plugin=0
24432 if test -f liblto_plugin.la; then
24433 save_ld_ver="$ld_ver"
24434 save_ld_vers_major="$ld_vers_major"
24435 save_ld_vers_minor="$ld_vers_minor"
24436 save_ld_is_gold="$ld_is_gold"
24437
24438 ld_is_gold=no
24439
24440 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24441 ld_ver="GNU ld"
24442 # FIXME: ld_is_gold?
24443 ld_vers_major="$gcc_cv_gld_major_version"
24444 ld_vers_minor="$gcc_cv_gld_minor_version"
24445 else
24446 # Determine plugin linker version.
24447 # FIXME: Partial duplicate from above, generalize.
24448 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24449 if echo "$ld_ver" | grep GNU > /dev/null; then
24450 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24451 ld_is_gold=yes
24452 ld_vers=`echo $ld_ver | sed -n \
24453 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24454 else
24455 ld_vers=`echo $ld_ver | sed -n \
24456 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24457 fi
24458 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24459 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24460 fi
24461 fi
24462
24463 # Determine plugin support.
24464 if echo "$ld_ver" | grep GNU > /dev/null; then
24465 # Require GNU ld or gold 2.21+ for plugin support by default.
24466 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24467 gcc_cv_lto_plugin=2
24468 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24469 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24470 gcc_cv_lto_plugin=1
24471 fi
24472 fi
24473
24474 ld_ver="$save_ld_ver"
24475 ld_vers_major="$save_ld_vers_major"
24476 ld_vers_minor="$save_ld_vers_minor"
24477 ld_is_gold="$save_ld_is_gold"
24478 fi
24479
24480 cat >>confdefs.h <<_ACEOF
24481 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24482 _ACEOF
24483
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24485 $as_echo "$gcc_cv_lto_plugin" >&6; }
24486
24487 case "$target" in
24488 aarch64*-*-*)
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24490 $as_echo_n "checking assembler for -mabi option... " >&6; }
24491 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_as_aarch64_mabi=no
24495 if test x$gcc_cv_as != x; then
24496 $as_echo '.text' > conftest.s
24497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24499 (eval $ac_try) 2>&5
24500 ac_status=$?
24501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24502 test $ac_status = 0; }; }
24503 then
24504 gcc_cv_as_aarch64_mabi=yes
24505 else
24506 echo "configure: failed program was" >&5
24507 cat conftest.s >&5
24508 fi
24509 rm -f conftest.o conftest.s
24510 fi
24511 fi
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24513 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24514
24515 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24516
24517 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24518
24519 else
24520 if test x$with_abi = xilp32; then
24521 as_fn_error "Assembler does not support -mabi=ilp32.\
24522 Upgrade the Assembler." "$LINENO" 5
24523 fi
24524 if test x"$with_multilib_list" = xdefault; then
24525 TM_MULTILIB_CONFIG=lp64
24526 else
24527 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24528 for aarch64_multilib in ${aarch64_multilibs}; do
24529 case ${aarch64_multilib} in
24530 ilp32)
24531 as_fn_error "Assembler does not support -mabi=ilp32.\
24532 Upgrade the Assembler." "$LINENO" 5
24533 ;;
24534 *)
24535 ;;
24536 esac
24537 done
24538 fi
24539 fi
24540 # Check if we have binutils support for relocations types needed by -fpic
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24542 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24543 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 gcc_cv_as_aarch64_picreloc=no
24547 if test x$gcc_cv_as != x; then
24548 $as_echo '
24549 .text
24550 ldr x0, [x2, #:gotpage_lo15:globalsym]
24551 ' > conftest.s
24552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557 test $ac_status = 0; }; }
24558 then
24559 gcc_cv_as_aarch64_picreloc=yes
24560 else
24561 echo "configure: failed program was" >&5
24562 cat conftest.s >&5
24563 fi
24564 rm -f conftest.o conftest.s
24565 fi
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24568 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24569 if test $gcc_cv_as_aarch64_picreloc = yes; then
24570
24571 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24572
24573 fi
24574 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24575 # Check whether --enable-fix-cortex-a53-835769 was given.
24576 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24577 enableval=$enable_fix_cortex_a53_835769;
24578 case $enableval in
24579 yes)
24580 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24581 ;;
24582 no)
24583 ;;
24584 *)
24585 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24586 Valid choices are 'yes' and 'no'." "$LINENO" 5
24587 ;;
24588
24589 esac
24590
24591 fi
24592
24593 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24594 # Check whether --enable-fix-cortex-a53-843419 was given.
24595 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24596 enableval=$enable_fix_cortex_a53_843419;
24597 case $enableval in
24598 yes)
24599 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24600 ;;
24601 no)
24602 ;;
24603 *)
24604 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24605 Valid choices are 'yes' and 'no'." "$LINENO" 5
24606 ;;
24607
24608 esac
24609
24610 fi
24611
24612 ;;
24613
24614 # All TARGET_ABI_OSF targets.
24615 alpha*-*-linux* | alpha*-*-*bsd*)
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24617 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24618 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24619 $as_echo_n "(cached) " >&6
24620 else
24621 gcc_cv_as_alpha_explicit_relocs=no
24622 if test $in_tree_gas = yes; then
24623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24624 then gcc_cv_as_alpha_explicit_relocs=yes
24625 fi
24626 elif test x$gcc_cv_as != x; then
24627 $as_echo ' .set nomacro
24628 .text
24629 extbl $3, $2, $3 !lituse_bytoff!1
24630 ldq $2, a($29) !literal!1
24631 ldq $4, b($29) !literal!2
24632 ldq_u $3, 0($2) !lituse_base!1
24633 ldq $27, f($29) !literal!5
24634 jsr $26, ($27), f !lituse_jsr!5
24635 ldah $29, 0($26) !gpdisp!3
24636 lda $0, c($29) !gprel
24637 ldah $1, d($29) !gprelhigh
24638 lda $1, d($1) !gprellow
24639 lda $29, 0($29) !gpdisp!3' > conftest.s
24640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24645 test $ac_status = 0; }; }
24646 then
24647 gcc_cv_as_alpha_explicit_relocs=yes
24648 else
24649 echo "configure: failed program was" >&5
24650 cat conftest.s >&5
24651 fi
24652 rm -f conftest.o conftest.s
24653 fi
24654 fi
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24656 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24657 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24658
24659 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24660
24661 fi
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24663 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24664 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 gcc_cv_as_alpha_jsrdirect_relocs=no
24668 if test $in_tree_gas = yes; then
24669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24670 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24671 fi
24672 elif test x$gcc_cv_as != x; then
24673 $as_echo ' .set nomacro
24674 .text
24675 ldq $27, a($29) !literal!1
24676 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24683 then
24684 gcc_cv_as_alpha_jsrdirect_relocs=yes
24685 else
24686 echo "configure: failed program was" >&5
24687 cat conftest.s >&5
24688 fi
24689 rm -f conftest.o conftest.s
24690 fi
24691 fi
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24693 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24694 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24695
24696 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24697
24698 fi
24699 ;;
24700
24701 avr-*-*)
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24703 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24704 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_avr_mlink_relax=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo '.text' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24716 then
24717 gcc_cv_as_avr_mlink_relax=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24721 fi
24722 rm -f conftest.o conftest.s
24723 fi
24724 fi
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24726 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24727 if test $gcc_cv_as_avr_mlink_relax = yes; then
24728
24729 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24730
24731 fi
24732
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24734 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24735 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24737 else
24738 gcc_cv_as_avr_mrmw=no
24739 if test x$gcc_cv_as != x; then
24740 $as_echo '.text' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_avr_mrmw=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24752 fi
24753 rm -f conftest.o conftest.s
24754 fi
24755 fi
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24757 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24758 if test $gcc_cv_as_avr_mrmw = yes; then
24759
24760 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24761
24762 fi
24763 ;;
24764
24765 cris-*-*)
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24767 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24768 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 gcc_cv_as_cris_no_mul_bug=no
24772 if test $in_tree_gas = yes; then
24773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24774 then gcc_cv_as_cris_no_mul_bug=yes
24775 fi
24776 elif test x$gcc_cv_as != x; then
24777 $as_echo '.text' > conftest.s
24778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24784 then
24785 gcc_cv_as_cris_no_mul_bug=yes
24786 else
24787 echo "configure: failed program was" >&5
24788 cat conftest.s >&5
24789 fi
24790 rm -f conftest.o conftest.s
24791 fi
24792 fi
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24794 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24795 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24796
24797 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24798
24799 fi
24800 ;;
24801
24802 sparc*-*-*)
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24804 $as_echo_n "checking assembler for .register... " >&6; }
24805 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24806 $as_echo_n "(cached) " >&6
24807 else
24808 gcc_cv_as_sparc_register_op=no
24809 if test x$gcc_cv_as != x; then
24810 $as_echo '.register %g2, #scratch' > conftest.s
24811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816 test $ac_status = 0; }; }
24817 then
24818 gcc_cv_as_sparc_register_op=yes
24819 else
24820 echo "configure: failed program was" >&5
24821 cat conftest.s >&5
24822 fi
24823 rm -f conftest.o conftest.s
24824 fi
24825 fi
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24827 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24828 if test $gcc_cv_as_sparc_register_op = yes; then
24829
24830 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24831
24832 fi
24833
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24835 $as_echo_n "checking assembler for -relax option... " >&6; }
24836 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24837 $as_echo_n "(cached) " >&6
24838 else
24839 gcc_cv_as_sparc_relax=no
24840 if test x$gcc_cv_as != x; then
24841 $as_echo '.text' > conftest.s
24842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847 test $ac_status = 0; }; }
24848 then
24849 gcc_cv_as_sparc_relax=yes
24850 else
24851 echo "configure: failed program was" >&5
24852 cat conftest.s >&5
24853 fi
24854 rm -f conftest.o conftest.s
24855 fi
24856 fi
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24858 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24859 if test $gcc_cv_as_sparc_relax = yes; then
24860
24861 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24862
24863 fi
24864
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24866 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24867 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 gcc_cv_as_sparc_gotdata_op=no
24871 if test x$gcc_cv_as != x; then
24872 $as_echo '.text
24873 .align 4
24874 foo:
24875 nop
24876 bar:
24877 sethi %gdop_hix22(foo), %g1
24878 xor %g1, %gdop_lox10(foo), %g1
24879 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24886 then
24887 if test x$gcc_cv_ld != x \
24888 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24889 if test x$gcc_cv_objdump != x; then
24890 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24891 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24892 gcc_cv_as_sparc_gotdata_op=no
24893 else
24894 gcc_cv_as_sparc_gotdata_op=yes
24895 fi
24896 fi
24897 fi
24898 rm -f conftest
24899 else
24900 echo "configure: failed program was" >&5
24901 cat conftest.s >&5
24902 fi
24903 rm -f conftest.o conftest.s
24904 fi
24905 fi
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24907 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24908 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24909
24910 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24911
24912 fi
24913
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24915 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24916 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24917 $as_echo_n "(cached) " >&6
24918 else
24919 gcc_cv_as_sparc_ua_pcrel=no
24920 if test x$gcc_cv_as != x; then
24921 $as_echo '.text
24922 foo:
24923 nop
24924 .data
24925 .align 4
24926 .byte 0
24927 .uaword %r_disp32(foo)' > conftest.s
24928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24933 test $ac_status = 0; }; }
24934 then
24935 if test x$gcc_cv_ld != x \
24936 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24937 gcc_cv_as_sparc_ua_pcrel=yes
24938 fi
24939 rm -f conftest
24940 else
24941 echo "configure: failed program was" >&5
24942 cat conftest.s >&5
24943 fi
24944 rm -f conftest.o conftest.s
24945 fi
24946 fi
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24948 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24949 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24950
24951 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24952
24953
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24955 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24956 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 gcc_cv_as_sparc_ua_pcrel_hidden=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo '.data
24962 .align 4
24963 .byte 0x31
24964 .uaword %r_disp32(foo)
24965 .byte 0x32, 0x33, 0x34
24966 .global foo
24967 .hidden foo
24968 foo:
24969 .skip 4' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24979 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24980 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24981 if $gcc_cv_objdump -R conftest 2> /dev/null \
24982 | grep 'DISP32' > /dev/null 2>&1; then
24983 :
24984 else
24985 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24986 fi
24987 fi
24988 rm -f conftest
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_sparc_ua_pcrel_hidden" >&5
24997 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24998 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24999
25000 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25001
25002 fi
25003
25004 fi # unaligned pcrel relocs
25005
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25007 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25008 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25009 $as_echo_n "(cached) " >&6
25010 else
25011 gcc_cv_as_sparc_offsetable_lo10=no
25012 if test x$gcc_cv_as != x; then
25013 $as_echo '.text
25014 or %g1, %lo(ab) + 12, %g1
25015 or %g1, %lo(ab + 12), %g1' > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25022 then
25023 if test x$gcc_cv_objdump != x \
25024 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25025 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25026 gcc_cv_as_sparc_offsetable_lo10=yes
25027 fi
25028 else
25029 echo "configure: failed program was" >&5
25030 cat conftest.s >&5
25031 fi
25032 rm -f conftest.o conftest.s
25033 fi
25034 fi
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25036 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25037 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25038
25039 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25040
25041 fi
25042
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25044 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25045 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25046 $as_echo_n "(cached) " >&6
25047 else
25048 gcc_cv_as_sparc_fmaf=no
25049 if test x$gcc_cv_as != x; then
25050 $as_echo '.text
25051 .register %g2, #scratch
25052 .register %g3, #scratch
25053 .align 4
25054 fmaddd %f0, %f2, %f4, %f6
25055 addxccc %g1, %g2, %g3
25056 fsrl32 %f2, %f4, %f8
25057 fnaddd %f10, %f12, %f14' > conftest.s
25058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25063 test $ac_status = 0; }; }
25064 then
25065 gcc_cv_as_sparc_fmaf=yes
25066 else
25067 echo "configure: failed program was" >&5
25068 cat conftest.s >&5
25069 fi
25070 rm -f conftest.o conftest.s
25071 fi
25072 fi
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25074 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25075 if test $gcc_cv_as_sparc_fmaf = yes; then
25076
25077 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25078
25079 fi
25080
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25082 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25083 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_sparc_sparc4=no
25087 if test x$gcc_cv_as != x; then
25088 $as_echo '.text
25089 .register %g2, #scratch
25090 .register %g3, #scratch
25091 .align 4
25092 cxbe %g2, %g3, 1f
25093 1: cwbneg %g2, %g3, 1f
25094 1: sha1
25095 md5
25096 aes_kexpand0 %f4, %f6, %f8
25097 des_round %f38, %f40, %f42, %f44
25098 camellia_f %f54, %f56, %f58, %f60
25099 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25106 then
25107 gcc_cv_as_sparc_sparc4=yes
25108 else
25109 echo "configure: failed program was" >&5
25110 cat conftest.s >&5
25111 fi
25112 rm -f conftest.o conftest.s
25113 fi
25114 fi
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25116 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25117 if test $gcc_cv_as_sparc_sparc4 = yes; then
25118
25119 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25120
25121 fi
25122
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25124 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25125 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25127 else
25128 gcc_cv_as_sparc_sparc5=no
25129 if test x$gcc_cv_as != x; then
25130 $as_echo '.text
25131 .register %g2, #scratch
25132 .register %g3, #scratch
25133 .align 4
25134 subxc %g1, %g2, %g3
25135 fpadd8 %f0, %f2, %f4' > conftest.s
25136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25141 test $ac_status = 0; }; }
25142 then
25143 gcc_cv_as_sparc_sparc5=yes
25144 else
25145 echo "configure: failed program was" >&5
25146 cat conftest.s >&5
25147 fi
25148 rm -f conftest.o conftest.s
25149 fi
25150 fi
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25152 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25153 if test $gcc_cv_as_sparc_sparc5 = yes; then
25154
25155 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25156
25157 fi
25158
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25160 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25161 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25162 $as_echo_n "(cached) " >&6
25163 else
25164 gcc_cv_as_sparc_leon=no
25165 if test x$gcc_cv_as != x; then
25166 $as_echo '.text
25167 .register %g2, #scratch
25168 .register %g3, #scratch
25169 .align 4
25170 smac %g2, %g3, %g1
25171 umac %g2, %g3, %g1
25172 casa [%g2] 0xb, %g3, %g1' > conftest.s
25173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25178 test $ac_status = 0; }; }
25179 then
25180 gcc_cv_as_sparc_leon=yes
25181 else
25182 echo "configure: failed program was" >&5
25183 cat conftest.s >&5
25184 fi
25185 rm -f conftest.o conftest.s
25186 fi
25187 fi
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25189 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25190 if test $gcc_cv_as_sparc_leon = yes; then
25191
25192 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25193
25194 fi
25195 ;;
25196
25197 i[34567]86-*-* | x86_64-*-*)
25198 case $target_os in
25199 cygwin*)
25200 # Full C++ conformance when using a shared libstdc++-v3 requires some
25201 # support from the Cygwin DLL, which in more recent versions exports
25202 # wrappers to aid in interposing and redirecting operators new, delete,
25203 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25204 # are configuring for a version of Cygwin that exports the wrappers.
25205 if test x$host = x$target && test x$host_cpu = xi686; then
25206 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25207 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25208 gcc_ac_cygwin_dll_wrappers=yes
25209 else
25210 gcc_ac_cygwin_dll_wrappers=no
25211 fi
25212
25213 else
25214 # Can't check presence of libc functions during cross-compile, so
25215 # we just have to assume we're building for an up-to-date target.
25216 gcc_ac_cygwin_dll_wrappers=yes
25217 fi
25218
25219 cat >>confdefs.h <<_ACEOF
25220 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25221 _ACEOF
25222
25223 esac
25224 case $target_os in
25225 cygwin* | pe | mingw32*)
25226 # Recent binutils allows the three-operand form of ".comm" on PE. This
25227 # definition is used unconditionally to initialise the default state of
25228 # the target option variable that governs usage of the feature.
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25230 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25231 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 gcc_cv_as_comm_has_align=no
25235 if test $in_tree_gas = yes; then
25236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25237 then gcc_cv_as_comm_has_align=yes
25238 fi
25239 elif test x$gcc_cv_as != x; then
25240 $as_echo '.comm foo,1,32' > conftest.s
25241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25247 then
25248 gcc_cv_as_comm_has_align=yes
25249 else
25250 echo "configure: failed program was" >&5
25251 cat conftest.s >&5
25252 fi
25253 rm -f conftest.o conftest.s
25254 fi
25255 fi
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25257 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25258
25259
25260 cat >>confdefs.h <<_ACEOF
25261 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25262 _ACEOF
25263
25264 # Used for DWARF 2 in PE
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25266 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25267 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_ix86_pe_secrel32=no
25271 if test $in_tree_gas = yes; then
25272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25273 then gcc_cv_as_ix86_pe_secrel32=yes
25274 fi
25275 elif test x$gcc_cv_as != x; then
25276 $as_echo '.text
25277 foo: nop
25278 .data
25279 .secrel32 foo' > conftest.s
25280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25286 then
25287 if test x$gcc_cv_ld != x \
25288 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25289 gcc_cv_as_ix86_pe_secrel32=yes
25290 fi
25291 rm -f conftest
25292 else
25293 echo "configure: failed program was" >&5
25294 cat conftest.s >&5
25295 fi
25296 rm -f conftest.o conftest.s
25297 fi
25298 fi
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25300 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25301 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25302
25303 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25304
25305 fi
25306 # Test if the assembler supports the extended form of the .section
25307 # directive that specifies section alignment. LTO support uses this,
25308 # but normally only after installation, so we warn but don't fail the
25309 # configure if LTO is enabled but the assembler does not support it.
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25311 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25312 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25314 else
25315 gcc_cv_as_section_has_align=no
25316 if test $in_tree_gas = yes; then
25317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25318 then gcc_cv_as_section_has_align=yes
25319 fi
25320 elif test x$gcc_cv_as != x; then
25321 $as_echo '.section lto_test,"dr0"' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 gcc_cv_as_section_has_align=yes
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25333 fi
25334 rm -f conftest.o conftest.s
25335 fi
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25338 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25339
25340 if test x$gcc_cv_as_section_has_align != xyes; then
25341 case ",$enable_languages," in
25342 *,lto,*)
25343 { $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
25344 $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;}
25345 ;;
25346 esac
25347 fi
25348 ;;
25349 esac
25350
25351 # Test if the assembler supports the section flag 'e' for specifying
25352 # an excluded section.
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25354 $as_echo_n "checking assembler for .section with e... " >&6; }
25355 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 gcc_cv_as_section_has_e=no
25359 if test $in_tree_gas = yes; then
25360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25361 then gcc_cv_as_section_has_e=yes
25362 fi
25363 elif test x$gcc_cv_as != x; then
25364 $as_echo '.section foo1,"e"
25365 .byte 0,0,0,0' > conftest.s
25366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25372 then
25373 gcc_cv_as_section_has_e=yes
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25377 fi
25378 rm -f conftest.o conftest.s
25379 fi
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25382 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25383
25384
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25387 _ACEOF
25388
25389
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25391 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25392 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25393 $as_echo_n "(cached) " >&6
25394 else
25395 gcc_cv_as_ix86_filds=no
25396 if test x$gcc_cv_as != x; then
25397 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25404 then
25405 gcc_cv_as_ix86_filds=yes
25406 else
25407 echo "configure: failed program was" >&5
25408 cat conftest.s >&5
25409 fi
25410 rm -f conftest.o conftest.s
25411 fi
25412 fi
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25414 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25415 if test $gcc_cv_as_ix86_filds = yes; then
25416
25417 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25418
25419 fi
25420
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25422 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25423 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_ix86_fildq=no
25427 if test x$gcc_cv_as != x; then
25428 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_ix86_fildq=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25440 fi
25441 rm -f conftest.o conftest.s
25442 fi
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25445 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25446 if test $gcc_cv_as_ix86_fildq = yes; then
25447
25448 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25449
25450 fi
25451
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25453 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25454 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_ix86_cmov_sun_syntax=no
25458 if test x$gcc_cv_as != x; then
25459 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25465 test $ac_status = 0; }; }
25466 then
25467 gcc_cv_as_ix86_cmov_sun_syntax=yes
25468 else
25469 echo "configure: failed program was" >&5
25470 cat conftest.s >&5
25471 fi
25472 rm -f conftest.o conftest.s
25473 fi
25474 fi
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25476 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25477 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25478
25479 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25480
25481 fi
25482
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25485 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25487 else
25488 gcc_cv_as_ix86_ffreep=no
25489 if test x$gcc_cv_as != x; then
25490 $as_echo 'ffreep %st(1)' > conftest.s
25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25497 then
25498 gcc_cv_as_ix86_ffreep=yes
25499 else
25500 echo "configure: failed program was" >&5
25501 cat conftest.s >&5
25502 fi
25503 rm -f conftest.o conftest.s
25504 fi
25505 fi
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25508 if test $gcc_cv_as_ix86_ffreep = yes; then
25509
25510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25511
25512 fi
25513
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25515 $as_echo_n "checking assembler for .quad directive... " >&6; }
25516 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 gcc_cv_as_ix86_quad=no
25520 if test x$gcc_cv_as != x; then
25521 $as_echo '.quad 0' > conftest.s
25522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; }
25528 then
25529 gcc_cv_as_ix86_quad=yes
25530 else
25531 echo "configure: failed program was" >&5
25532 cat conftest.s >&5
25533 fi
25534 rm -f conftest.o conftest.s
25535 fi
25536 fi
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25538 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25539 if test $gcc_cv_as_ix86_quad = yes; then
25540
25541 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25542
25543 fi
25544
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25546 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25547 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25548 $as_echo_n "(cached) " >&6
25549 else
25550 gcc_cv_as_ix86_sahf=no
25551 if test x$gcc_cv_as != x; then
25552 $as_echo '.code64
25553 sahf' > conftest.s
25554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25559 test $ac_status = 0; }; }
25560 then
25561 gcc_cv_as_ix86_sahf=yes
25562 else
25563 echo "configure: failed program was" >&5
25564 cat conftest.s >&5
25565 fi
25566 rm -f conftest.o conftest.s
25567 fi
25568 fi
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25570 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25571 if test $gcc_cv_as_ix86_sahf = yes; then
25572
25573 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25574
25575 fi
25576
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25578 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25579 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 gcc_cv_as_ix86_interunit_movq=no
25583 if test x$gcc_cv_as != x; then
25584 $as_echo '.code64
25585 movq %mm0, %rax
25586 movq %rax, %xmm0' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_ix86_interunit_movq=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25598 fi
25599 rm -f conftest.o conftest.s
25600 fi
25601 fi
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25603 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25604
25605
25606 cat >>confdefs.h <<_ACEOF
25607 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25608 _ACEOF
25609
25610
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25612 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25613 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25615 else
25616 gcc_cv_as_ix86_hle=no
25617 if test x$gcc_cv_as != x; then
25618 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25624 test $ac_status = 0; }; }
25625 then
25626 gcc_cv_as_ix86_hle=yes
25627 else
25628 echo "configure: failed program was" >&5
25629 cat conftest.s >&5
25630 fi
25631 rm -f conftest.o conftest.s
25632 fi
25633 fi
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25635 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25636 if test $gcc_cv_as_ix86_hle = yes; then
25637
25638 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25639
25640 fi
25641
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25643 $as_echo_n "checking assembler for swap suffix... " >&6; }
25644 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25645 $as_echo_n "(cached) " >&6
25646 else
25647 gcc_cv_as_ix86_swap=no
25648 if test x$gcc_cv_as != x; then
25649 $as_echo 'movl.s %esp, %ebp' > conftest.s
25650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25655 test $ac_status = 0; }; }
25656 then
25657 gcc_cv_as_ix86_swap=yes
25658 else
25659 echo "configure: failed program was" >&5
25660 cat conftest.s >&5
25661 fi
25662 rm -f conftest.o conftest.s
25663 fi
25664 fi
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25666 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25667 if test $gcc_cv_as_ix86_swap = yes; then
25668
25669 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25670
25671 fi
25672
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25674 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25675 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25677 else
25678 gcc_cv_as_ix86_diff_sect_delta=no
25679 if test x$gcc_cv_as != x; then
25680 $as_echo '.section .rodata
25681 .L1:
25682 .long .L2-.L1
25683 .long .L3-.L1
25684 .text
25685 .L3: nop
25686 .L2: nop' > conftest.s
25687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25689 (eval $ac_try) 2>&5
25690 ac_status=$?
25691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25692 test $ac_status = 0; }; }
25693 then
25694 gcc_cv_as_ix86_diff_sect_delta=yes
25695 else
25696 echo "configure: failed program was" >&5
25697 cat conftest.s >&5
25698 fi
25699 rm -f conftest.o conftest.s
25700 fi
25701 fi
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25703 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25704 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25705
25706 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25707
25708 fi
25709
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25711 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25712 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_ix86_rep_lock_prefix=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo 'rep movsl
25718 rep ret
25719 rep nop
25720 rep bsf %ecx, %eax
25721 rep bsr %ecx, %eax
25722 lock addl %edi, (%eax,%esi)
25723 lock orl $0, (%esp)' > conftest.s
25724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25730 then
25731 gcc_cv_as_ix86_rep_lock_prefix=yes
25732 else
25733 echo "configure: failed program was" >&5
25734 cat conftest.s >&5
25735 fi
25736 rm -f conftest.o conftest.s
25737 fi
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25740 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25741 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25742
25743 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25744
25745 fi
25746
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25748 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25749 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25752 gcc_cv_as_ix86_ud2=no
25753 if test x$gcc_cv_as != x; then
25754 $as_echo 'ud2' > conftest.s
25755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25761 then
25762 gcc_cv_as_ix86_ud2=yes
25763 else
25764 echo "configure: failed program was" >&5
25765 cat conftest.s >&5
25766 fi
25767 rm -f conftest.o conftest.s
25768 fi
25769 fi
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25771 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25772 if test $gcc_cv_as_ix86_ud2 = yes; then
25773
25774 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25775
25776 fi
25777
25778 # Enforce 32-bit output with gas and gld.
25779 if test x$gas = xyes; then
25780 as_ix86_gas_32_opt="--32"
25781 fi
25782 if echo "$ld_ver" | grep GNU > /dev/null; then
25783 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25784 ld_ix86_gld_32_opt="-melf_i386_sol2"
25785 else
25786 ld_ix86_gld_32_opt="-melf_i386"
25787 fi
25788 fi
25789
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25791 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25792 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_ix86_tlsgdplt=no
25796 if test x$gcc_cv_as != x; then
25797 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25804 then
25805 if test x$gcc_cv_ld != x \
25806 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25807 gcc_cv_as_ix86_tlsgdplt=yes
25808 fi
25809 rm -f conftest
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25813 fi
25814 rm -f conftest.o conftest.s
25815 fi
25816 fi
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25818 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25819 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25820
25821 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25822
25823 fi
25824
25825 conftest_s='
25826 .section .tdata,"aw'$tls_section_flag'",@progbits
25827 tls_ld:
25828 .section .text,"ax",@progbits
25829 call tls_ld@tlsldmplt'
25830
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25832 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25833 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_ix86_tlsldmplt=no
25837 if test x$gcc_cv_as != x; then
25838 $as_echo "$conftest_s" > conftest.s
25839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25845 then
25846 if test x$gcc_cv_ld != x \
25847 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25848 gcc_cv_as_ix86_tlsldmplt=yes
25849 fi
25850 rm -f conftest
25851 else
25852 echo "configure: failed program was" >&5
25853 cat conftest.s >&5
25854 fi
25855 rm -f conftest.o conftest.s
25856 fi
25857 fi
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25859 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25860
25861
25862 cat >>confdefs.h <<_ACEOF
25863 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25864 _ACEOF
25865
25866
25867 conftest_s='
25868 .section .text,"ax",@progbits
25869 .globl _start
25870 .type _start, @function
25871 _start:
25872 leal value@tlsldm(%ebx), %eax
25873 call ___tls_get_addr@plt
25874
25875 .section .tdata,"aw'$tls_section_flag'",@progbits
25876 .type value, @object
25877 value:'
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25879 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25880 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25882 else
25883 gcc_cv_as_ix86_tlsldm=no
25884 if test x$gcc_cv_as != x; then
25885 $as_echo "$conftest_s" > conftest.s
25886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891 test $ac_status = 0; }; }
25892 then
25893 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25894 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25895 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25896 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25897 gcc_cv_as_ix86_tlsldm=yes
25898 fi
25899 fi
25900 rm -f conftest
25901 else
25902 echo "configure: failed program was" >&5
25903 cat conftest.s >&5
25904 fi
25905 rm -f conftest.o conftest.s
25906 fi
25907 fi
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25909 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25910
25911
25912 cat >>confdefs.h <<_ACEOF
25913 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25914 _ACEOF
25915
25916
25917 conftest_s='
25918 .data
25919 bar:
25920 .byte 1
25921 .text
25922 .global _start
25923 _start:
25924 cmpl $0, bar@GOT
25925 jmp *_start@GOT'
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25927 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25928 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25930 else
25931 gcc_cv_as_ix86_got32x=no
25932 if test x$gcc_cv_as != x; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25942 && test x$gcc_cv_readelf != x \
25943 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25944 | grep R_386_GOT32X > /dev/null 2>&1 \
25945 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25946 if $gcc_cv_objdump -dw conftest 2>&1 \
25947 | grep 0xffffff > /dev/null 2>&1; then
25948 gcc_cv_as_ix86_got32x=no
25949 else
25950 gcc_cv_as_ix86_got32x=yes
25951 fi
25952 fi
25953 rm -f conftest
25954 else
25955 echo "configure: failed program was" >&5
25956 cat conftest.s >&5
25957 fi
25958 rm -f conftest.o conftest.s
25959 fi
25960 fi
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
25962 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25963
25964
25965 cat >>confdefs.h <<_ACEOF
25966 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25967 _ACEOF
25968
25969
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25971 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25972 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_ix86_gotoff_in_data=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25978 then gcc_cv_as_ix86_gotoff_in_data=yes
25979 fi
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo ' .text
25982 .L0:
25983 nop
25984 .data
25985 .long .L0@GOTOFF' > conftest.s
25986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25988 (eval $ac_try) 2>&5
25989 ac_status=$?
25990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25991 test $ac_status = 0; }; }
25992 then
25993 gcc_cv_as_ix86_gotoff_in_data=yes
25994 else
25995 echo "configure: failed program was" >&5
25996 cat conftest.s >&5
25997 fi
25998 rm -f conftest.o conftest.s
25999 fi
26000 fi
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26002 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26003
26004
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26007 _ACEOF
26008
26009
26010 ;;
26011
26012 ia64*-*-*)
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26014 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26015 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26016 $as_echo_n "(cached) " >&6
26017 else
26018 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26019 if test $in_tree_gas = yes; then
26020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26021 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26022 fi
26023 elif test x$gcc_cv_as != x; then
26024 $as_echo ' .text
26025 addl r15 = @ltoffx(x#), gp
26026 ;;
26027 ld8.mov r16 = [r15], x#' > conftest.s
26028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26033 test $ac_status = 0; }; }
26034 then
26035 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26036 else
26037 echo "configure: failed program was" >&5
26038 cat conftest.s >&5
26039 fi
26040 rm -f conftest.o conftest.s
26041 fi
26042 fi
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26044 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26045 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26046
26047 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26048
26049 fi
26050
26051 ;;
26052
26053 powerpc*-*-*)
26054
26055 case $target in
26056 *-*-darwin*)
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26058 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26059 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 gcc_cv_as_machine_directive=no
26063 if test x$gcc_cv_as != x; then
26064 $as_echo ' .machine ppc7400' > conftest.s
26065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }
26071 then
26072 gcc_cv_as_machine_directive=yes
26073 else
26074 echo "configure: failed program was" >&5
26075 cat conftest.s >&5
26076 fi
26077 rm -f conftest.o conftest.s
26078 fi
26079 fi
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26081 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26082
26083 if test x$gcc_cv_as_machine_directive != xyes; then
26084 echo "*** This target requires an assembler supporting \".machine\"" >&2
26085 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26086 test x$build = x$target && exit 1
26087 fi
26088 ;;
26089 esac
26090
26091 case $target in
26092 *-*-aix*) conftest_s=' .machine "pwr5"
26093 .csect .text[PR]
26094 mfcr 3,128';;
26095 *-*-darwin*) conftest_s=' .text
26096 mfcr r3,128';;
26097 *) conftest_s=' .machine power4
26098 .text
26099 mfcr 3,128';;
26100 esac
26101
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26103 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26104 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_powerpc_mfcrf=no
26108 if test $in_tree_gas = yes; then
26109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26110 then gcc_cv_as_powerpc_mfcrf=yes
26111 fi
26112 elif test x$gcc_cv_as != x; then
26113 $as_echo "$conftest_s" > conftest.s
26114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26119 test $ac_status = 0; }; }
26120 then
26121 gcc_cv_as_powerpc_mfcrf=yes
26122 else
26123 echo "configure: failed program was" >&5
26124 cat conftest.s >&5
26125 fi
26126 rm -f conftest.o conftest.s
26127 fi
26128 fi
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26130 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26131 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26132
26133 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26134
26135 fi
26136
26137 case $target in
26138 *-*-aix*) conftest_s=' .machine "pwr5"
26139 .csect .text[PR]
26140 popcntb 3,3';;
26141 *) conftest_s=' .machine power5
26142 .text
26143 popcntb 3,3';;
26144 esac
26145
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26147 $as_echo_n "checking assembler for popcntb support... " >&6; }
26148 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150 else
26151 gcc_cv_as_powerpc_popcntb=no
26152 if test $in_tree_gas = yes; then
26153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26154 then gcc_cv_as_powerpc_popcntb=yes
26155 fi
26156 elif test x$gcc_cv_as != x; then
26157 $as_echo "$conftest_s" > conftest.s
26158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26164 then
26165 gcc_cv_as_powerpc_popcntb=yes
26166 else
26167 echo "configure: failed program was" >&5
26168 cat conftest.s >&5
26169 fi
26170 rm -f conftest.o conftest.s
26171 fi
26172 fi
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26174 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26175 if test $gcc_cv_as_powerpc_popcntb = yes; then
26176
26177 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26178
26179 fi
26180
26181 case $target in
26182 *-*-aix*) conftest_s=' .machine "pwr5x"
26183 .csect .text[PR]
26184 frin 1,1';;
26185 *) conftest_s=' .machine power5
26186 .text
26187 frin 1,1';;
26188 esac
26189
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26191 $as_echo_n "checking assembler for fp round support... " >&6; }
26192 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26193 $as_echo_n "(cached) " >&6
26194 else
26195 gcc_cv_as_powerpc_fprnd=no
26196 if test $in_tree_gas = yes; then
26197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26198 then gcc_cv_as_powerpc_fprnd=yes
26199 fi
26200 elif test x$gcc_cv_as != x; then
26201 $as_echo "$conftest_s" > conftest.s
26202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }; }
26208 then
26209 gcc_cv_as_powerpc_fprnd=yes
26210 else
26211 echo "configure: failed program was" >&5
26212 cat conftest.s >&5
26213 fi
26214 rm -f conftest.o conftest.s
26215 fi
26216 fi
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26218 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26219 if test $gcc_cv_as_powerpc_fprnd = yes; then
26220
26221 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26222
26223 fi
26224
26225 case $target in
26226 *-*-aix*) conftest_s=' .machine "pwr6"
26227 .csect .text[PR]
26228 mffgpr 1,3';;
26229 *) conftest_s=' .machine power6
26230 .text
26231 mffgpr 1,3';;
26232 esac
26233
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26235 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26236 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 gcc_cv_as_powerpc_mfpgpr=no
26240 if test $in_tree_gas = yes; then
26241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26242 then gcc_cv_as_powerpc_mfpgpr=yes
26243 fi
26244 elif test x$gcc_cv_as != x; then
26245 $as_echo "$conftest_s" > conftest.s
26246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251 test $ac_status = 0; }; }
26252 then
26253 gcc_cv_as_powerpc_mfpgpr=yes
26254 else
26255 echo "configure: failed program was" >&5
26256 cat conftest.s >&5
26257 fi
26258 rm -f conftest.o conftest.s
26259 fi
26260 fi
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26262 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26263 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26264
26265 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26266
26267 fi
26268
26269 case $target in
26270 *-*-aix*) conftest_s=' .csect .text[PR]
26271 LCF..0:
26272 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26273 *-*-darwin*)
26274 conftest_s=' .text
26275 LCF0:
26276 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26277 *) conftest_s=' .text
26278 .LCF0:
26279 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26280 esac
26281
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26283 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26284 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26285 $as_echo_n "(cached) " >&6
26286 else
26287 gcc_cv_as_powerpc_rel16=no
26288 if test $in_tree_gas = yes; then
26289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26290 then gcc_cv_as_powerpc_rel16=yes
26291 fi
26292 elif test x$gcc_cv_as != x; then
26293 $as_echo "$conftest_s" > conftest.s
26294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26299 test $ac_status = 0; }; }
26300 then
26301 gcc_cv_as_powerpc_rel16=yes
26302 else
26303 echo "configure: failed program was" >&5
26304 cat conftest.s >&5
26305 fi
26306 rm -f conftest.o conftest.s
26307 fi
26308 fi
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26310 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26311 if test $gcc_cv_as_powerpc_rel16 = yes; then
26312
26313 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26314
26315 fi
26316
26317 case $target in
26318 *-*-aix*) conftest_s=' .machine "pwr6"
26319 .csect .text[PR]
26320 cmpb 3,4,5';;
26321 *) conftest_s=' .machine power6
26322 .text
26323 cmpb 3,4,5';;
26324 esac
26325
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26327 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26328 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26329 $as_echo_n "(cached) " >&6
26330 else
26331 gcc_cv_as_powerpc_cmpb=no
26332 if test $in_tree_gas = yes; then
26333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26334 then gcc_cv_as_powerpc_cmpb=yes
26335 fi
26336 elif test x$gcc_cv_as != x; then
26337 $as_echo "$conftest_s" > conftest.s
26338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26343 test $ac_status = 0; }; }
26344 then
26345 gcc_cv_as_powerpc_cmpb=yes
26346 else
26347 echo "configure: failed program was" >&5
26348 cat conftest.s >&5
26349 fi
26350 rm -f conftest.o conftest.s
26351 fi
26352 fi
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26354 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26355 if test $gcc_cv_as_powerpc_cmpb = yes; then
26356
26357 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26358
26359 fi
26360
26361 case $target in
26362 *-*-aix*) conftest_s=' .machine "pwr6"
26363 .csect .text[PR]
26364 dadd 1,2,3';;
26365 *) conftest_s=' .machine power6
26366 .text
26367 dadd 1,2,3';;
26368 esac
26369
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26371 $as_echo_n "checking assembler for decimal float support... " >&6; }
26372 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26374 else
26375 gcc_cv_as_powerpc_dfp=no
26376 if test $in_tree_gas = yes; then
26377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26378 then gcc_cv_as_powerpc_dfp=yes
26379 fi
26380 elif test x$gcc_cv_as != x; then
26381 $as_echo "$conftest_s" > conftest.s
26382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26387 test $ac_status = 0; }; }
26388 then
26389 gcc_cv_as_powerpc_dfp=yes
26390 else
26391 echo "configure: failed program was" >&5
26392 cat conftest.s >&5
26393 fi
26394 rm -f conftest.o conftest.s
26395 fi
26396 fi
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26398 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26399 if test $gcc_cv_as_powerpc_dfp = yes; then
26400
26401 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26402
26403 fi
26404
26405 case $target in
26406 *-*-aix*) conftest_s=' .machine "pwr7"
26407 .csect .text[PR]
26408 lxvd2x 1,2,3';;
26409 *) conftest_s=' .machine power7
26410 .text
26411 lxvd2x 1,2,3';;
26412 esac
26413
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26415 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26416 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 gcc_cv_as_powerpc_vsx=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26422 then gcc_cv_as_powerpc_vsx=yes
26423 fi
26424 elif test x$gcc_cv_as != x; then
26425 $as_echo "$conftest_s" > conftest.s
26426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26432 then
26433 gcc_cv_as_powerpc_vsx=yes
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26437 fi
26438 rm -f conftest.o conftest.s
26439 fi
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26442 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26443 if test $gcc_cv_as_powerpc_vsx = yes; then
26444
26445 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26446
26447 fi
26448
26449 case $target in
26450 *-*-aix*) conftest_s=' .machine "pwr7"
26451 .csect .text[PR]
26452 popcntd 3,3';;
26453 *) conftest_s=' .machine power7
26454 .text
26455 popcntd 3,3';;
26456 esac
26457
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26459 $as_echo_n "checking assembler for popcntd support... " >&6; }
26460 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26461 $as_echo_n "(cached) " >&6
26462 else
26463 gcc_cv_as_powerpc_popcntd=no
26464 if test $in_tree_gas = yes; then
26465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26466 then gcc_cv_as_powerpc_popcntd=yes
26467 fi
26468 elif test x$gcc_cv_as != x; then
26469 $as_echo "$conftest_s" > conftest.s
26470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26476 then
26477 gcc_cv_as_powerpc_popcntd=yes
26478 else
26479 echo "configure: failed program was" >&5
26480 cat conftest.s >&5
26481 fi
26482 rm -f conftest.o conftest.s
26483 fi
26484 fi
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26486 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26487 if test $gcc_cv_as_powerpc_popcntd = yes; then
26488
26489 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26490
26491 fi
26492
26493 case $target in
26494 *-*-aix*) conftest_s=' .machine "pwr8"
26495 .csect .text[PR]';;
26496 *) conftest_s=' .machine power8
26497 .text';;
26498 esac
26499
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26501 $as_echo_n "checking assembler for power8 support... " >&6; }
26502 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26503 $as_echo_n "(cached) " >&6
26504 else
26505 gcc_cv_as_powerpc_power8=no
26506 if test $in_tree_gas = yes; then
26507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26508 then gcc_cv_as_powerpc_power8=yes
26509 fi
26510 elif test x$gcc_cv_as != x; then
26511 $as_echo "$conftest_s" > conftest.s
26512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26518 then
26519 gcc_cv_as_powerpc_power8=yes
26520 else
26521 echo "configure: failed program was" >&5
26522 cat conftest.s >&5
26523 fi
26524 rm -f conftest.o conftest.s
26525 fi
26526 fi
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26528 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26529 if test $gcc_cv_as_powerpc_power8 = yes; then
26530
26531 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26532
26533 fi
26534
26535 case $target in
26536 *-*-aix*) conftest_s=' .machine "pwr9"
26537 .csect .text[PR]';;
26538 *) conftest_s=' .machine power9
26539 .text';;
26540 esac
26541
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26543 $as_echo_n "checking assembler for power9 support... " >&6; }
26544 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26546 else
26547 gcc_cv_as_powerpc_power9=no
26548 if test $in_tree_gas = yes; then
26549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26550 then gcc_cv_as_powerpc_power9=yes
26551 fi
26552 elif test x$gcc_cv_as != x; then
26553 $as_echo "$conftest_s" > conftest.s
26554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26560 then
26561 gcc_cv_as_powerpc_power9=yes
26562 else
26563 echo "configure: failed program was" >&5
26564 cat conftest.s >&5
26565 fi
26566 rm -f conftest.o conftest.s
26567 fi
26568 fi
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26570 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26571 if test $gcc_cv_as_powerpc_power9 = yes; then
26572
26573 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26574
26575 fi
26576
26577 case $target in
26578 *-*-aix*) conftest_s=' .csect .text[PR]
26579 lwsync';;
26580 *) conftest_s=' .text
26581 lwsync';;
26582 esac
26583
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26585 $as_echo_n "checking assembler for lwsync support... " >&6; }
26586 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26587 $as_echo_n "(cached) " >&6
26588 else
26589 gcc_cv_as_powerpc_lwsync=no
26590 if test $in_tree_gas = yes; then
26591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26592 then gcc_cv_as_powerpc_lwsync=yes
26593 fi
26594 elif test x$gcc_cv_as != x; then
26595 $as_echo "$conftest_s" > conftest.s
26596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26601 test $ac_status = 0; }; }
26602 then
26603 gcc_cv_as_powerpc_lwsync=yes
26604 else
26605 echo "configure: failed program was" >&5
26606 cat conftest.s >&5
26607 fi
26608 rm -f conftest.o conftest.s
26609 fi
26610 fi
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26612 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26613 if test $gcc_cv_as_powerpc_lwsync = yes; then
26614
26615 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26616
26617 fi
26618
26619 case $target in
26620 *-*-aix*) conftest_s=' .machine "476"
26621 .csect .text[PR]
26622 dci 0';;
26623 *) conftest_s=' .machine "476"
26624 .text
26625 dci 0';;
26626 esac
26627
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26629 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26630 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26631 $as_echo_n "(cached) " >&6
26632 else
26633 gcc_cv_as_powerpc_dci=no
26634 if test $in_tree_gas = yes; then
26635 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26636 then gcc_cv_as_powerpc_dci=yes
26637 fi
26638 elif test x$gcc_cv_as != x; then
26639 $as_echo "$conftest_s" > conftest.s
26640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26645 test $ac_status = 0; }; }
26646 then
26647 gcc_cv_as_powerpc_dci=yes
26648 else
26649 echo "configure: failed program was" >&5
26650 cat conftest.s >&5
26651 fi
26652 rm -f conftest.o conftest.s
26653 fi
26654 fi
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26656 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26657 if test $gcc_cv_as_powerpc_dci = yes; then
26658
26659 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26660
26661 fi
26662
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26664 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26665 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26666 $as_echo_n "(cached) " >&6
26667 else
26668 gcc_cv_as_powerpc_gnu_attribute=no
26669 if test $in_tree_gas = yes; then
26670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26671 then gcc_cv_as_powerpc_gnu_attribute=yes
26672 fi
26673 elif test x$gcc_cv_as != x; then
26674 $as_echo '.gnu_attribute 4,1' > conftest.s
26675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26680 test $ac_status = 0; }; }
26681 then
26682 gcc_cv_as_powerpc_gnu_attribute=yes
26683 else
26684 echo "configure: failed program was" >&5
26685 cat conftest.s >&5
26686 fi
26687 rm -f conftest.o conftest.s
26688 fi
26689 fi
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26691 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26692 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26693
26694 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26695
26696 fi
26697
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26699 $as_echo_n "checking assembler for tls marker support... " >&6; }
26700 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26701 $as_echo_n "(cached) " >&6
26702 else
26703 gcc_cv_as_powerpc_tls_markers=no
26704 if test $in_tree_gas = yes; then
26705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26706 then gcc_cv_as_powerpc_tls_markers=yes
26707 fi
26708 elif test x$gcc_cv_as != x; then
26709 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26716 then
26717 gcc_cv_as_powerpc_tls_markers=yes
26718 else
26719 echo "configure: failed program was" >&5
26720 cat conftest.s >&5
26721 fi
26722 rm -f conftest.o conftest.s
26723 fi
26724 fi
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26726 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26727 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26728
26729 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26730
26731 fi
26732
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26734 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26735 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26736 $as_echo_n "(cached) " >&6
26737 else
26738 gcc_cv_as_powerpc_entry_markers=no
26739 if test $in_tree_gas = yes; then
26740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26741 then gcc_cv_as_powerpc_entry_markers=yes
26742 fi
26743 elif test x$gcc_cv_as != x; then
26744 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26750 test $ac_status = 0; }; }
26751 then
26752 gcc_cv_as_powerpc_entry_markers=yes
26753 else
26754 echo "configure: failed program was" >&5
26755 cat conftest.s >&5
26756 fi
26757 rm -f conftest.o conftest.s
26758 fi
26759 fi
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26761 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26762 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26763
26764 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26765
26766 fi
26767
26768 case $target in
26769 *-*-aix*)
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26771 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26772 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26773 $as_echo_n "(cached) " >&6
26774 else
26775 gcc_cv_as_aix_ref=no
26776 if test $in_tree_gas = yes; then
26777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26778 then gcc_cv_as_aix_ref=yes
26779 fi
26780 elif test x$gcc_cv_as != x; then
26781 $as_echo ' .csect stuff[rw]
26782 stuff:
26783 .long 1
26784 .extern sym
26785 .ref sym
26786 ' > conftest.s
26787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26793 then
26794 gcc_cv_as_aix_ref=yes
26795 else
26796 echo "configure: failed program was" >&5
26797 cat conftest.s >&5
26798 fi
26799 rm -f conftest.o conftest.s
26800 fi
26801 fi
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26803 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26804 if test $gcc_cv_as_aix_ref = yes; then
26805
26806 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26807
26808 fi
26809
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26811 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26812 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26813 $as_echo_n "(cached) " >&6
26814 else
26815 gcc_cv_as_aix_dwloc=no
26816 if test $in_tree_gas = yes; then
26817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26818 then gcc_cv_as_aix_dwloc=yes
26819 fi
26820 elif test x$gcc_cv_as != x; then
26821 $as_echo ' .dwsect 0xA0000
26822 Lframe..0:
26823 .vbyte 4,Lframe..0:
26824 ' > conftest.s
26825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }; }
26831 then
26832 gcc_cv_as_aix_dwloc=yes
26833 else
26834 echo "configure: failed program was" >&5
26835 cat conftest.s >&5
26836 fi
26837 rm -f conftest.o conftest.s
26838 fi
26839 fi
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26841 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26842 if test $gcc_cv_as_aix_dwloc = yes; then
26843
26844 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26845
26846 fi
26847 ;;
26848 esac
26849 ;;
26850
26851 mips*-*-*)
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26853 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26854 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26855 $as_echo_n "(cached) " >&6
26856 else
26857 gcc_cv_as_mips_explicit_relocs=no
26858 if test $in_tree_gas = yes; then
26859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26860 then gcc_cv_as_mips_explicit_relocs=yes
26861 fi
26862 elif test x$gcc_cv_as != x; then
26863 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26866 (eval $ac_try) 2>&5
26867 ac_status=$?
26868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26869 test $ac_status = 0; }; }
26870 then
26871 gcc_cv_as_mips_explicit_relocs=yes
26872 else
26873 echo "configure: failed program was" >&5
26874 cat conftest.s >&5
26875 fi
26876 rm -f conftest.o conftest.s
26877 fi
26878 fi
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26880 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26881 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26882 if test x$target_cpu_default = x
26883 then target_cpu_default=MASK_EXPLICIT_RELOCS
26884 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26885 fi
26886 fi
26887
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26889 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26890 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26891 $as_echo_n "(cached) " >&6
26892 else
26893 gcc_cv_as_mips_no_shared=no
26894 if test $in_tree_gas = yes; then
26895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26896 then gcc_cv_as_mips_no_shared=yes
26897 fi
26898 elif test x$gcc_cv_as != x; then
26899 $as_echo 'nop' > conftest.s
26900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26905 test $ac_status = 0; }; }
26906 then
26907 gcc_cv_as_mips_no_shared=yes
26908 else
26909 echo "configure: failed program was" >&5
26910 cat conftest.s >&5
26911 fi
26912 rm -f conftest.o conftest.s
26913 fi
26914 fi
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26916 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26917 if test $gcc_cv_as_mips_no_shared = yes; then
26918
26919 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26920
26921 fi
26922
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26924 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26925 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26926 $as_echo_n "(cached) " >&6
26927 else
26928 gcc_cv_as_mips_gnu_attribute=no
26929 if test $in_tree_gas = yes; then
26930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26931 then gcc_cv_as_mips_gnu_attribute=yes
26932 fi
26933 elif test x$gcc_cv_as != x; then
26934 $as_echo '.gnu_attribute 4,1' > conftest.s
26935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26937 (eval $ac_try) 2>&5
26938 ac_status=$?
26939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26940 test $ac_status = 0; }; }
26941 then
26942 gcc_cv_as_mips_gnu_attribute=yes
26943 else
26944 echo "configure: failed program was" >&5
26945 cat conftest.s >&5
26946 fi
26947 rm -f conftest.o conftest.s
26948 fi
26949 fi
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26951 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26952 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26953
26954 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26955
26956 fi
26957
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26959 $as_echo_n "checking assembler for .module support... " >&6; }
26960 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26961 $as_echo_n "(cached) " >&6
26962 else
26963 gcc_cv_as_mips_dot_module=no
26964 if test x$gcc_cv_as != x; then
26965 $as_echo '.module mips2
26966 .module fp=xx' > conftest.s
26967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26972 test $ac_status = 0; }; }
26973 then
26974 gcc_cv_as_mips_dot_module=yes
26975 else
26976 echo "configure: failed program was" >&5
26977 cat conftest.s >&5
26978 fi
26979 rm -f conftest.o conftest.s
26980 fi
26981 fi
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26983 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26984 if test $gcc_cv_as_mips_dot_module = yes; then
26985
26986 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26987
26988 fi
26989 if test x$gcc_cv_as_mips_dot_module = xno \
26990 && test x$with_fp_32 != x; then
26991 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26992 fi
26993
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26995 $as_echo_n "checking assembler for .micromips support... " >&6; }
26996 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26997 $as_echo_n "(cached) " >&6
26998 else
26999 gcc_cv_as_micromips_support=no
27000 if test x$gcc_cv_as != x; then
27001 $as_echo '.set micromips' > conftest.s
27002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27007 test $ac_status = 0; }; }
27008 then
27009 gcc_cv_as_micromips_support=yes
27010 else
27011 echo "configure: failed program was" >&5
27012 cat conftest.s >&5
27013 fi
27014 rm -f conftest.o conftest.s
27015 fi
27016 fi
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27018 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27019 if test $gcc_cv_as_micromips_support = yes; then
27020
27021 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27022
27023 fi
27024
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27026 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27027 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27028 $as_echo_n "(cached) " >&6
27029 else
27030 gcc_cv_as_mips_dtprelword=no
27031 if test $in_tree_gas = yes; then
27032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27033 then gcc_cv_as_mips_dtprelword=yes
27034 fi
27035 elif test x$gcc_cv_as != x; then
27036 $as_echo '.section .tdata,"awT",@progbits
27037 x:
27038 .word 2
27039 .text
27040 .dtprelword x+0x8000' > conftest.s
27041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046 test $ac_status = 0; }; }
27047 then
27048 gcc_cv_as_mips_dtprelword=yes
27049 else
27050 echo "configure: failed program was" >&5
27051 cat conftest.s >&5
27052 fi
27053 rm -f conftest.o conftest.s
27054 fi
27055 fi
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27057 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27058 if test $gcc_cv_as_mips_dtprelword = yes; then
27059
27060 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27061
27062 fi
27063
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27065 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27066 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 gcc_cv_as_mips_dspr1_mult=no
27070 if test x$gcc_cv_as != x; then
27071 $as_echo ' .set mips32r2
27072 .set nodspr2
27073 .set dsp
27074 madd $ac3,$4,$5
27075 maddu $ac3,$4,$5
27076 msub $ac3,$4,$5
27077 msubu $ac3,$4,$5
27078 mult $ac3,$4,$5
27079 multu $ac3,$4,$5' > conftest.s
27080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085 test $ac_status = 0; }; }
27086 then
27087 gcc_cv_as_mips_dspr1_mult=yes
27088 else
27089 echo "configure: failed program was" >&5
27090 cat conftest.s >&5
27091 fi
27092 rm -f conftest.o conftest.s
27093 fi
27094 fi
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27096 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27097 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27098
27099 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27100
27101 fi
27102
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27104 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27105 gcc_cv_as_ld_jalr_reloc=no
27106 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27107 if test $in_tree_ld = yes ; then
27108 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 \
27109 && test $in_tree_ld_is_elf = yes; then
27110 gcc_cv_as_ld_jalr_reloc=yes
27111 fi
27112 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27113 echo ' .ent x' > conftest.s
27114 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27115 echo ' lw $25,%call16(y)($28)' >> conftest.s
27116 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27117 echo '1: jalr $25' >> conftest.s
27118 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27119 echo '1: jalr $25' >> conftest.s
27120 echo ' .end x' >> conftest.s
27121 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27122 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27123 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27124 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27125 gcc_cv_as_ld_jalr_reloc=yes
27126 fi
27127 fi
27128 rm -f conftest.*
27129 fi
27130 fi
27131 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27132 if test x$target_cpu_default = x; then
27133 target_cpu_default=MASK_RELAX_PIC_CALLS
27134 else
27135 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27136 fi
27137 fi
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27139 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27140
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27142 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27143 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27144 $as_echo_n "(cached) " >&6
27145 else
27146 gcc_cv_ld_mips_personality_relaxation=no
27147 if test $in_tree_ld = yes ; then
27148 if test "$gcc_cv_gld_major_version" -eq 2 \
27149 -a "$gcc_cv_gld_minor_version" -ge 21 \
27150 -o "$gcc_cv_gld_major_version" -gt 2; then
27151 gcc_cv_ld_mips_personality_relaxation=yes
27152 fi
27153 elif test x$gcc_cv_as != x \
27154 -a x$gcc_cv_ld != x \
27155 -a x$gcc_cv_readelf != x ; then
27156 cat > conftest.s <<EOF
27157 .cfi_startproc
27158 .cfi_personality 0x80,indirect_ptr
27159 .ent test
27160 test:
27161 nop
27162 .end test
27163 .cfi_endproc
27164
27165 .section .data,"aw",@progbits
27166 indirect_ptr:
27167 .dc.a personality
27168 EOF
27169 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27170 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27171 if $gcc_cv_readelf -d conftest 2>&1 \
27172 | grep TEXTREL > /dev/null 2>&1; then
27173 :
27174 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27175 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27176 :
27177 else
27178 gcc_cv_ld_mips_personality_relaxation=yes
27179 fi
27180 fi
27181 fi
27182 rm -f conftest.s conftest.o conftest
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27185 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27186 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27187
27188 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27189
27190 fi
27191
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27193 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27194 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27195 $as_echo_n "(cached) " >&6
27196 else
27197 gcc_cv_as_mips_nan=no
27198 if test x$gcc_cv_as != x; then
27199 $as_echo '' > conftest.s
27200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27206 then
27207 gcc_cv_as_mips_nan=yes
27208 else
27209 echo "configure: failed program was" >&5
27210 cat conftest.s >&5
27211 fi
27212 rm -f conftest.o conftest.s
27213 fi
27214 fi
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27216 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27217 if test $gcc_cv_as_mips_nan = yes; then
27218
27219 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27220
27221 fi
27222 if test x$gcc_cv_as_mips_nan = xno \
27223 && test x$with_nan != x; then
27224 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27225 fi
27226 ;;
27227 s390*-*-*)
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27229 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27230 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27231 $as_echo_n "(cached) " >&6
27232 else
27233 gcc_cv_as_s390_gnu_attribute=no
27234 if test $in_tree_gas = yes; then
27235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27236 then gcc_cv_as_s390_gnu_attribute=yes
27237 fi
27238 elif test x$gcc_cv_as != x; then
27239 $as_echo '.gnu_attribute 8,1' > conftest.s
27240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27246 then
27247 gcc_cv_as_s390_gnu_attribute=yes
27248 else
27249 echo "configure: failed program was" >&5
27250 cat conftest.s >&5
27251 fi
27252 rm -f conftest.o conftest.s
27253 fi
27254 fi
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27256 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27257 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27258
27259 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27260
27261 fi
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27263 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27264 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27265 $as_echo_n "(cached) " >&6
27266 else
27267 gcc_cv_as_s390_machine_machinemode=no
27268 if test $in_tree_gas = yes; then
27269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27270 then gcc_cv_as_s390_machine_machinemode=yes
27271 fi
27272 elif test x$gcc_cv_as != x; then
27273 $as_echo ' .machinemode push
27274 .machinemode pop
27275 .machine push
27276 .machine pop' > conftest.s
27277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27280 ac_status=$?
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27283 then
27284 gcc_cv_as_s390_machine_machinemode=yes
27285 else
27286 echo "configure: failed program was" >&5
27287 cat conftest.s >&5
27288 fi
27289 rm -f conftest.o conftest.s
27290 fi
27291 fi
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27293 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27294 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27295
27296 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27297
27298 fi
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27300 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27301 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27302 $as_echo_n "(cached) " >&6
27303 else
27304 gcc_cv_as_s390_architecture_modifiers=no
27305 if test $in_tree_gas = yes; then
27306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27307 then gcc_cv_as_s390_architecture_modifiers=yes
27308 fi
27309 elif test x$gcc_cv_as != x; then
27310 $as_echo ' .machine z13+vx ' > conftest.s
27311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27316 test $ac_status = 0; }; }
27317 then
27318 gcc_cv_as_s390_architecture_modifiers=yes
27319 else
27320 echo "configure: failed program was" >&5
27321 cat conftest.s >&5
27322 fi
27323 rm -f conftest.o conftest.s
27324 fi
27325 fi
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27327 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27328 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27329
27330 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27331
27332 fi
27333 ;;
27334 esac
27335
27336 # Mips and HP-UX need the GNU assembler.
27337 # Linux on IA64 might be able to use the Intel assembler.
27338
27339 case "$target" in
27340 mips*-*-* | *-*-hpux* )
27341 if test x$gas_flag = xyes \
27342 || test x"$host" != x"$build" \
27343 || test ! -x "$gcc_cv_as" \
27344 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27345 :
27346 else
27347 echo "*** This configuration requires the GNU assembler" >&2
27348 exit 1
27349 fi
27350 ;;
27351 esac
27352
27353 # ??? Not all targets support dwarf2 debug_line, even within a version
27354 # of gas. Moreover, we need to emit a valid instruction to trigger any
27355 # info to the output file. So, as supported targets are added to gas 2.11,
27356 # add some instruction here to (also) show we expect this might work.
27357 # ??? Once 2.11 is released, probably need to add first known working
27358 # version to the per-target configury.
27359 case "$cpu_type" in
27360 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27361 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27362 | visium | xstormy16 | xtensa)
27363 insn="nop"
27364 ;;
27365 ia64 | s390)
27366 insn="nop 0"
27367 ;;
27368 mmix)
27369 insn="swym 0"
27370 ;;
27371 esac
27372 if test x"$insn" != x; then
27373 conftest_s="\
27374 .file 1 \"conftest.s\"
27375 .loc 1 3 0
27376 $insn"
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27378 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27379 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27380 $as_echo_n "(cached) " >&6
27381 else
27382 gcc_cv_as_dwarf2_debug_line=no
27383 if test $in_tree_gas = yes; then
27384 if test $in_tree_gas_is_elf = yes \
27385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27386 then gcc_cv_as_dwarf2_debug_line=yes
27387 fi
27388 elif test x$gcc_cv_as != x; then
27389 $as_echo "$conftest_s" > conftest.s
27390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27392 (eval $ac_try) 2>&5
27393 ac_status=$?
27394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27395 test $ac_status = 0; }; }
27396 then
27397 if test x$gcc_cv_objdump != x \
27398 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27399 | grep debug_line > /dev/null 2>&1; then
27400 gcc_cv_as_dwarf2_debug_line=yes
27401 fi
27402 else
27403 echo "configure: failed program was" >&5
27404 cat conftest.s >&5
27405 fi
27406 rm -f conftest.o conftest.s
27407 fi
27408 fi
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27410 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27411
27412
27413 # The .debug_line file table must be in the exact order that
27414 # we specified the files, since these indices are also used
27415 # by DW_AT_decl_file. Approximate this test by testing if
27416 # the assembler bitches if the same index is assigned twice.
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27418 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27419 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27421 else
27422 gcc_cv_as_dwarf2_file_buggy=no
27423 if test x$gcc_cv_as != x; then
27424 $as_echo ' .file 1 "foo.s"
27425 .file 1 "bar.s"' > conftest.s
27426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27428 (eval $ac_try) 2>&5
27429 ac_status=$?
27430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27431 test $ac_status = 0; }; }
27432 then
27433 gcc_cv_as_dwarf2_file_buggy=yes
27434 else
27435 echo "configure: failed program was" >&5
27436 cat conftest.s >&5
27437 fi
27438 rm -f conftest.o conftest.s
27439 fi
27440 fi
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27442 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27443
27444
27445 if test $gcc_cv_as_dwarf2_debug_line = yes \
27446 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27447
27448 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27449
27450 fi
27451
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27453 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27454 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27455 $as_echo_n "(cached) " >&6
27456 else
27457 gcc_cv_as_gdwarf2_flag=no
27458 if test $in_tree_gas = yes; then
27459 if test $in_tree_gas_is_elf = yes \
27460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27461 then gcc_cv_as_gdwarf2_flag=yes
27462 fi
27463 elif test x$gcc_cv_as != x; then
27464 $as_echo "$insn" > conftest.s
27465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470 test $ac_status = 0; }; }
27471 then
27472 gcc_cv_as_gdwarf2_flag=yes
27473 else
27474 echo "configure: failed program was" >&5
27475 cat conftest.s >&5
27476 fi
27477 rm -f conftest.o conftest.s
27478 fi
27479 fi
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27481 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27482 if test $gcc_cv_as_gdwarf2_flag = yes; then
27483
27484 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27485
27486 fi
27487
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27489 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27490 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27491 $as_echo_n "(cached) " >&6
27492 else
27493 gcc_cv_as_gstabs_flag=no
27494 if test $in_tree_gas = yes; then
27495 if test $in_tree_gas_is_elf = yes \
27496 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27497 then gcc_cv_as_gstabs_flag=yes
27498 fi
27499 elif test x$gcc_cv_as != x; then
27500 $as_echo "$insn" > conftest.s
27501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27506 test $ac_status = 0; }; }
27507 then
27508 gcc_cv_as_gstabs_flag=yes
27509 else
27510 echo "configure: failed program was" >&5
27511 cat conftest.s >&5
27512 fi
27513 rm -f conftest.o conftest.s
27514 fi
27515 fi
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27517 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27518 if test $gcc_cv_as_gstabs_flag = yes; then
27519
27520 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27521
27522 fi
27523
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27525 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27526 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27527 $as_echo_n "(cached) " >&6
27528 else
27529 gcc_cv_as_debug_prefix_map_flag=no
27530 if test $in_tree_gas = yes; then
27531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27532 then gcc_cv_as_debug_prefix_map_flag=yes
27533 fi
27534 elif test x$gcc_cv_as != x; then
27535 $as_echo "$insn" > conftest.s
27536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27541 test $ac_status = 0; }; }
27542 then
27543 gcc_cv_as_debug_prefix_map_flag=yes
27544 else
27545 echo "configure: failed program was" >&5
27546 cat conftest.s >&5
27547 fi
27548 rm -f conftest.o conftest.s
27549 fi
27550 fi
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27552 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27553 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27554
27555 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27556
27557 fi
27558 fi
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27561 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27562 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27563 $as_echo_n "(cached) " >&6
27564 else
27565 gcc_cv_as_compress_debug=no
27566 if test x$gcc_cv_as != x; then
27567 $as_echo '' > conftest.s
27568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27570 (eval $ac_try) 2>&5
27571 ac_status=$?
27572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27573 test $ac_status = 0; }; }
27574 then
27575 # gas compiled without zlib cannot compress debug sections and warns
27576 # about it, but still exits successfully. So check for this, too.
27577 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27578 then
27579 gcc_cv_as_compress_debug=0
27580 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27581 # defaulting to the ELF gABI format.
27582 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27583 then
27584 gcc_cv_as_compress_debug=2
27585 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27586 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27587 # Before binutils 2.26, gas only supported --compress-debug-options and
27588 # emitted the traditional GNU format.
27589 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27590 then
27591 gcc_cv_as_compress_debug=1
27592 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27593 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27594 else
27595 gcc_cv_as_compress_debug=0
27596 fi
27597 else
27598 echo "configure: failed program was" >&5
27599 cat conftest.s >&5
27600 fi
27601 rm -f conftest.o conftest.s
27602 fi
27603 fi
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27605 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27606
27607
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27610 _ACEOF
27611
27612
27613 cat >>confdefs.h <<_ACEOF
27614 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27615 _ACEOF
27616
27617
27618 cat >>confdefs.h <<_ACEOF
27619 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27620 _ACEOF
27621
27622
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27624 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27625 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 gcc_cv_as_lcomm_with_alignment=no
27629 if test x$gcc_cv_as != x; then
27630 $as_echo '.lcomm bar,4,16' > conftest.s
27631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27633 (eval $ac_try) 2>&5
27634 ac_status=$?
27635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27636 test $ac_status = 0; }; }
27637 then
27638 gcc_cv_as_lcomm_with_alignment=yes
27639 else
27640 echo "configure: failed program was" >&5
27641 cat conftest.s >&5
27642 fi
27643 rm -f conftest.o conftest.s
27644 fi
27645 fi
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27647 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27648 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27649
27650 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27651
27652 fi
27653
27654 if test x$with_sysroot = x && test x$host = x$target \
27655 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27656 && test "$prefix" != "NONE"; then
27657
27658 cat >>confdefs.h <<_ACEOF
27659 #define PREFIX_INCLUDE_DIR "$prefix/include"
27660 _ACEOF
27661
27662 fi
27663
27664 # Determine the version of glibc, if any, used on the target.
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27666 $as_echo_n "checking for target glibc version... " >&6; }
27667
27668 # Check whether --with-glibc-version was given.
27669 if test "${with_glibc_version+set}" = set; then :
27670 withval=$with_glibc_version;
27671 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27672 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27673 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27674 else
27675 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27676 fi
27677 else
27678
27679 glibc_version_major=0
27680 glibc_version_minor=0
27681 if test -f $target_header_dir/features.h \
27682 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27683 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27684 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27685 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27686 fi
27687 fi
27688
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27690 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27691
27692 cat >>confdefs.h <<_ACEOF
27693 #define TARGET_GLIBC_MAJOR $glibc_version_major
27694 _ACEOF
27695
27696
27697 cat >>confdefs.h <<_ACEOF
27698 #define TARGET_GLIBC_MINOR $glibc_version_minor
27699 _ACEOF
27700
27701
27702 # Check whether --enable-gnu-unique-object was given.
27703 if test "${enable_gnu_unique_object+set}" = set; then :
27704 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27705 yes | no) ;;
27706 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27707 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27708 esac
27709 else
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27711 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27712 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27713 $as_echo_n "(cached) " >&6
27714 else
27715 gcc_cv_as_gnu_unique_object=no
27716 if test $in_tree_gas = yes; then
27717 if test $in_tree_gas_is_elf = yes \
27718 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27719 then gcc_cv_as_gnu_unique_object=yes
27720 fi
27721 elif test x$gcc_cv_as != x; then
27722 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; }
27729 then
27730 gcc_cv_as_gnu_unique_object=yes
27731 else
27732 echo "configure: failed program was" >&5
27733 cat conftest.s >&5
27734 fi
27735 rm -f conftest.o conftest.s
27736 fi
27737 fi
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27739 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27740 if test $gcc_cv_as_gnu_unique_object = yes; then
27741 # We need to unquote above to to use the definition from config.gcc.
27742 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27743
27744 if test $glibc_version_major -gt 2 \
27745 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27746 enable_gnu_unique_object=yes
27747 fi
27748
27749 fi
27750 fi
27751
27752 if test x$enable_gnu_unique_object = xyes; then
27753
27754 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27755
27756 fi
27757
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27759 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27760 if test "${gcc_cv_as_line_zero+set}" = set; then :
27761 $as_echo_n "(cached) " >&6
27762 else
27763 gcc_cv_as_line_zero=no
27764 if test $in_tree_gas = yes; then
27765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27766 then gcc_cv_as_line_zero=yes
27767 fi
27768 elif test "x$gcc_cv_as" != x; then
27769 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27770 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27775 test $ac_status = 0; }; } &&
27776 test "x`cat conftest.out`" = x
27777 then
27778 gcc_cv_as_line_zero=yes
27779 else
27780 echo "configure: failed program was" >&5
27781 cat conftest.s >&5
27782 echo "configure: error output was" >&5
27783 cat conftest.out >&5
27784 fi
27785 rm -f conftest.o conftest.s conftest.out
27786 fi
27787 fi
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27789 $as_echo "$gcc_cv_as_line_zero" >&6; }
27790 if test "x$gcc_cv_as_line_zero" = xyes; then
27791
27792 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27793
27794 fi
27795
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27797 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27798 gcc_cv_ld_eh_frame_hdr=no
27799 if test $in_tree_ld = yes ; then
27800 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 \
27801 && test $in_tree_ld_is_elf = yes; then
27802 gcc_cv_ld_eh_frame_hdr=yes
27803 fi
27804 elif test x$gcc_cv_ld != x; then
27805 if echo "$ld_ver" | grep GNU > /dev/null; then
27806 # Check if linker supports --eh-frame-hdr option
27807 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27808 gcc_cv_ld_eh_frame_hdr=yes
27809 fi
27810 else
27811 case "$target" in
27812 *-*-solaris2*)
27813 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27814 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27815 gcc_cv_ld_eh_frame_hdr=yes
27816 fi
27817 ;;
27818 esac
27819 fi
27820 fi
27821
27822 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27823
27824 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27825
27826 fi
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27828 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27829
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27831 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27832 gcc_cv_ld_eh_frame_ciev3=no
27833 if test $in_tree_ld = yes ; then
27834 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 \
27835 && test $in_tree_ld_is_elf = yes; then
27836 gcc_cv_ld_eh_frame_ciev3=yes
27837 fi
27838 elif test x$gcc_cv_ld != x; then
27839 if echo "$ld_ver" | grep GNU > /dev/null; then
27840 gcc_cv_ld_eh_frame_ciev3=yes
27841 if test 0"$ld_date" -lt 20040513; then
27842 if test -n "$ld_date"; then
27843 # If there was date string, but was earlier than 2004-05-13, fail
27844 gcc_cv_ld_eh_frame_ciev3=no
27845 elif test "$ld_vers_major" -lt 2; then
27846 gcc_cv_ld_eh_frame_ciev3=no
27847 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27848 gcc_cv_ld_eh_frame_ciev3=no
27849 fi
27850 fi
27851 else
27852 case "$target" in
27853 *-*-solaris2*)
27854 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27855 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27856 gcc_cv_ld_eh_frame_ciev3=yes
27857 fi
27858 ;;
27859 esac
27860 fi
27861 fi
27862
27863 cat >>confdefs.h <<_ACEOF
27864 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27865 _ACEOF
27866
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27868 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27869
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27871 $as_echo_n "checking linker position independent executable support... " >&6; }
27872 gcc_cv_ld_pie=no
27873 if test $in_tree_ld = yes ; then
27874 case "$target" in
27875 # Full PIE support on Solaris was only introduced in gld 2.26.
27876 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27877 *) gcc_gld_pie_min_version=15 ;;
27878 esac
27879 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 \
27880 && test $in_tree_ld_is_elf = yes; then
27881 gcc_cv_ld_pie=yes
27882 fi
27883 elif test x$gcc_cv_ld != x; then
27884 # Check if linker supports -pie option
27885 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27886 gcc_cv_ld_pie=yes
27887 case "$target" in
27888 *-*-solaris2*)
27889 if echo "$ld_ver" | grep GNU > /dev/null \
27890 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27891 gcc_cv_ld_pie=no
27892 fi
27893 ;;
27894 esac
27895 else
27896 case "$target" in
27897 *-*-solaris2.1[1-9]*)
27898 # Solaris 11.x and Solaris 12 added PIE support.
27899 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27900 gcc_cv_ld_pie=yes
27901 fi
27902 ;;
27903 esac
27904 fi
27905 fi
27906 if test x"$gcc_cv_ld_pie" = xyes; then
27907
27908 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27909
27910 fi
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27912 $as_echo "$gcc_cv_ld_pie" >&6; }
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27915 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27916 gcc_cv_ld_pie_copyreloc=no
27917 if test $gcc_cv_ld_pie = yes ; then
27918 if test $in_tree_ld = yes ; then
27919 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
27920 gcc_cv_ld_pie_copyreloc=yes
27921 fi
27922 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27923 # Check if linker supports -pie option with copy reloc
27924 case "$target" in
27925 i?86-*-linux* | x86_64-*-linux*)
27926 cat > conftest1.s <<EOF
27927 .globl a_glob
27928 .data
27929 .type a_glob, @object
27930 .size a_glob, 4
27931 a_glob:
27932 .long 2
27933 EOF
27934 cat > conftest2.s <<EOF
27935 .text
27936 .globl main
27937 .type main, @function
27938 main:
27939 movl %eax, a_glob(%rip)
27940 .size main, .-main
27941 .globl ptr
27942 .section .data.rel,"aw",@progbits
27943 .type ptr, @object
27944 ptr:
27945 .quad a_glob
27946 EOF
27947 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27948 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27949 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27950 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27951 gcc_cv_ld_pie_copyreloc=yes
27952 fi
27953 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27954 ;;
27955 esac
27956 fi
27957 fi
27958
27959 cat >>confdefs.h <<_ACEOF
27960 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27961 _ACEOF
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27964 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27965
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27967 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27968 gcc_cv_ld_eh_gc_sections=no
27969 if test $in_tree_ld = yes ; then
27970 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 \
27971 && test $in_tree_ld_is_elf = yes; then
27972 gcc_cv_ld_eh_gc_sections=yes
27973 fi
27974 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27975 cat > conftest.s <<EOF
27976 .section .text
27977 .globl _start
27978 .type _start, @function
27979 _start:
27980 .long foo
27981 .size _start, .-_start
27982 .section .text.foo,"ax",@progbits
27983 .type foo, @function
27984 foo:
27985 .long 0
27986 .size foo, .-foo
27987 .section .gcc_except_table.foo,"a",@progbits
27988 .L0:
27989 .long 0
27990 .section .eh_frame,"a",@progbits
27991 .long .L0
27992 EOF
27993 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27994 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27995 | grep "gc-sections option ignored" > /dev/null; then
27996 gcc_cv_ld_eh_gc_sections=no
27997 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27998 | grep gcc_except_table > /dev/null; then
27999 gcc_cv_ld_eh_gc_sections=yes
28000 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28001 if test x$gcc_cv_as_comdat_group != xyes; then
28002 gcc_cv_ld_eh_gc_sections=no
28003 cat > conftest.s <<EOF
28004 .section .text
28005 .globl _start
28006 .type _start, @function
28007 _start:
28008 .long foo
28009 .size _start, .-_start
28010 .section .gnu.linkonce.t.foo,"ax",@progbits
28011 .type foo, @function
28012 foo:
28013 .long 0
28014 .size foo, .-foo
28015 .section .gcc_except_table.foo,"a",@progbits
28016 .L0:
28017 .long 0
28018 .section .eh_frame,"a",@progbits
28019 .long .L0
28020 EOF
28021 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28022 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28023 | grep "gc-sections option ignored" > /dev/null; then
28024 gcc_cv_ld_eh_gc_sections=no
28025 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28026 | grep gcc_except_table > /dev/null; then
28027 gcc_cv_ld_eh_gc_sections=yes
28028 fi
28029 fi
28030 fi
28031 fi
28032 fi
28033 rm -f conftest.s conftest.o conftest
28034 fi
28035 case "$target" in
28036 hppa*-*-linux*)
28037 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28038 gcc_cv_ld_eh_gc_sections=no
28039 ;;
28040 esac
28041 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28042
28043 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28044
28045 fi
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28047 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28048
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28050 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28051 gcc_cv_ld_eh_gc_sections_bug=no
28052 if test $in_tree_ld = yes ; then
28053 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 \
28054 && test $in_tree_ld_is_elf = yes; then
28055 gcc_cv_ld_eh_gc_sections_bug=yes
28056 fi
28057 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
28058 gcc_cv_ld_eh_gc_sections_bug=yes
28059 cat > conftest.s <<EOF
28060 .section .text
28061 .globl _start
28062 .type _start, @function
28063 _start:
28064 .long foo
28065 .size _start, .-_start
28066 .section .text.startup.foo,"ax",@progbits
28067 .type foo, @function
28068 foo:
28069 .long 0
28070 .size foo, .-foo
28071 .section .gcc_except_table.foo,"a",@progbits
28072 .L0:
28073 .long 0
28074 .section .eh_frame,"a",@progbits
28075 .long .L0
28076 EOF
28077 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28078 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28079 | grep "gc-sections option ignored" > /dev/null; then
28080 :
28081 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28082 | grep gcc_except_table > /dev/null; then
28083 gcc_cv_ld_eh_gc_sections_bug=no
28084 fi
28085 fi
28086 rm -f conftest.s conftest.o conftest
28087 fi
28088 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28089
28090 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28091
28092 fi
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28094 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28095
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28097 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28098 # gold/gld support compressed debug sections since binutils 2.19/2.21
28099 # In binutils 2.26, gld gained support for the ELF gABI format.
28100 if test $in_tree_ld = yes ; then
28101 gcc_cv_ld_compress_debug=0
28102 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 \
28103 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28104 gcc_cv_ld_compress_debug=2
28105 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28106 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 \
28107 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28108 gcc_cv_ld_compress_debug=3
28109 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28110 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 \
28111 && test $in_tree_ld_is_elf = yes; then
28112 gcc_cv_ld_compress_debug=1
28113 fi
28114 elif echo "$ld_ver" | grep GNU > /dev/null; then
28115 if test "$ld_vers_major" -lt 2 \
28116 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28117 gcc_cv_ld_compress_debug=0
28118 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28119 gcc_cv_ld_compress_debug=1
28120 else
28121 gcc_cv_ld_compress_debug=3
28122 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28123 fi
28124 if test $ld_is_gold = yes; then
28125 gcc_cv_ld_compress_debug=2
28126 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28127 fi
28128 else
28129 case "${target}" in
28130 *-*-solaris2*)
28131 # Introduced in Solaris 11.2.
28132 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28133 gcc_cv_ld_compress_debug=3
28134 gcc_cv_ld_compress_debug_option="-z compress-sections"
28135 else
28136 gcc_cv_ld_compress_debug=0
28137 fi
28138 ;;
28139 *)
28140 # Assume linkers other than GNU ld don't support compessed debug
28141 # sections.
28142 gcc_cv_ld_compress_debug=0
28143 ;;
28144 esac
28145 fi
28146
28147 cat >>confdefs.h <<_ACEOF
28148 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28149 _ACEOF
28150
28151
28152 cat >>confdefs.h <<_ACEOF
28153 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28154 _ACEOF
28155
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28157 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28158
28159 # --------
28160 # UNSORTED
28161 # --------
28162
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28164 $as_echo_n "checking linker --as-needed support... " >&6; }
28165 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28166 $as_echo_n "(cached) " >&6
28167 else
28168 gcc_cv_ld_as_needed=no
28169 gcc_cv_ld_as_needed_option='--as-needed'
28170 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28171 if test $in_tree_ld = yes ; then
28172 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 \
28173 && test $in_tree_ld_is_elf = yes; then
28174 gcc_cv_ld_as_needed=yes
28175 fi
28176 elif test x$gcc_cv_ld != x; then
28177 # Check if linker supports --as-needed and --no-as-needed options
28178 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28179 gcc_cv_ld_as_needed=yes
28180 else
28181 case "$target" in
28182 # Solaris 2 ld always supports -z ignore/-z record.
28183 *-*-solaris2*)
28184 gcc_cv_ld_as_needed=yes
28185 gcc_cv_ld_as_needed_option="-z ignore"
28186 gcc_cv_ld_no_as_needed_option="-z record"
28187 ;;
28188 esac
28189 fi
28190 fi
28191 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28192 # dl_iterate_phdr, i.e. since Solaris 11.
28193 case "$target" in
28194 *-*-solaris2.1[1-9]*)
28195 case "$target" in
28196 i?86-*-* | x86_64-*-*)
28197 if echo "$ld_ver" | grep GNU > /dev/null; then
28198 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28199 gcc_cv_ld_as_needed=no
28200 fi
28201 ;;
28202 esac
28203 ;;
28204 *-*-solaris2*)
28205 gcc_cv_ld_as_needed=no
28206 ;;
28207 esac
28208
28209 fi
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28211 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28212 if test x"$gcc_cv_ld_as_needed" = xyes; then
28213
28214 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28215
28216
28217 cat >>confdefs.h <<_ACEOF
28218 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28219 _ACEOF
28220
28221
28222 cat >>confdefs.h <<_ACEOF
28223 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28224 _ACEOF
28225
28226 fi
28227
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28229 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28230 saved_LDFLAGS="$LDFLAGS"
28231 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28232 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28234 /* end confdefs.h. */
28235 int main(void) {return 0;}
28236 _ACEOF
28237 if ac_fn_cxx_try_link "$LINENO"; then :
28238 gcc_cv_ld_clearcap=yes; break
28239 else
28240 gcc_cv_ld_clearcap=no
28241 fi
28242 rm -f core conftest.err conftest.$ac_objext \
28243 conftest$ac_exeext conftest.$ac_ext
28244 done
28245 LDFLAGS="$saved_LDFLAGS"
28246 if test "x$gcc_cv_ld_clearcap" = xyes; then
28247
28248 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28249
28250 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28251
28252 fi
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28254 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28255
28256 case "$target:$tm_file" in
28257 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28258 case "$target" in
28259 *le-*-linux*)
28260 emul_name="-melf64lppc"
28261 ;;
28262 *-*-linux*)
28263 emul_name="-melf64ppc"
28264 ;;
28265 *-*-freebsd*)
28266 emul_name="-melf64ppc_fbsd"
28267 ;;
28268 esac
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28270 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28271 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28272 $as_echo_n "(cached) " >&6
28273 else
28274 gcc_cv_ld_no_dot_syms=no
28275 if test x"$ld_is_gold" = xyes; then
28276 gcc_cv_ld_no_dot_syms=yes
28277 elif test $in_tree_ld = yes ; then
28278 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
28279 gcc_cv_ld_no_dot_syms=yes
28280 fi
28281 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28282 cat > conftest1.s <<EOF
28283 .text
28284 bl .foo
28285 EOF
28286 cat > conftest2.s <<EOF
28287 .section ".opd","aw"
28288 .align 3
28289 .globl foo
28290 .type foo,@function
28291 foo:
28292 .quad .LEfoo,.TOC.@tocbase,0
28293 .text
28294 .LEfoo:
28295 blr
28296 .size foo,.-.LEfoo
28297 EOF
28298 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28299 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28300 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28301 gcc_cv_ld_no_dot_syms=yes
28302 fi
28303 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28304 fi
28305
28306 fi
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28308 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28309 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28310
28311 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28312
28313 fi
28314
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28316 $as_echo_n "checking linker large toc support... " >&6; }
28317 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28318 $as_echo_n "(cached) " >&6
28319 else
28320 gcc_cv_ld_large_toc=no
28321 if test x"$ld_is_gold" = xyes; then
28322 gcc_cv_ld_large_toc=yes
28323 elif test $in_tree_ld = yes ; then
28324 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
28325 gcc_cv_ld_large_toc=yes
28326 fi
28327 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28328 cat > conftest.s <<EOF
28329 .section ".tbss","awT",@nobits
28330 .align 3
28331 ie0: .space 8
28332 .global _start
28333 .text
28334 _start:
28335 addis 9,13,ie0@got@tprel@ha
28336 ld 9,ie0@got@tprel@l(9)
28337 EOF
28338 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28339 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28340 gcc_cv_ld_large_toc=yes
28341 fi
28342 rm -f conftest conftest.o conftest.s
28343 fi
28344
28345 fi
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28347 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28348 if test x"$gcc_cv_ld_large_toc" = xyes; then
28349
28350 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28351
28352 fi
28353
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28355 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28356 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28357 $as_echo_n "(cached) " >&6
28358 else
28359 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28360 cat > conftest.s <<EOF
28361 .global _start
28362 .text
28363 _start:
28364 addis 9,2,x@got@ha
28365 .section .data.rel.ro,"aw",@progbits
28366 .p2align 16
28367 .space 32768
28368 x: .quad .TOC.
28369 EOF
28370 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28371 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28372 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)) }'`
28373 fi
28374 rm -f conftest conftest.o conftest.s
28375 fi
28376
28377 fi
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28379 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28380 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28381
28382 cat >>confdefs.h <<_ACEOF
28383 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28384 _ACEOF
28385
28386 fi
28387 ;;
28388 esac
28389
28390 case "$target" in
28391 *-*-aix*)
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28393 $as_echo_n "checking linker large toc support... " >&6; }
28394 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28395 $as_echo_n "(cached) " >&6
28396 else
28397 gcc_cv_ld_large_toc=no
28398 if test x$gcc_cv_as != x ; then
28399 cat > conftest.s <<EOF
28400 .toc
28401 LC..1:
28402 .tc a[TC],a[RW]
28403 .extern a[RW]
28404 .csect .text[PR]
28405 .largetoctest:
28406 addis 9,LC..1@u(2)
28407 ld 3,LC..1@l(9)
28408 EOF
28409 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28410 gcc_cv_ld_large_toc=yes
28411 fi
28412 rm -f conftest conftest.o conftest.s
28413 fi
28414
28415 fi
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28417 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28418 if test x"$gcc_cv_ld_large_toc" = xyes; then
28419
28420 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28421
28422 fi
28423 ;;
28424 esac
28425
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28427 $as_echo_n "checking linker --build-id support... " >&6; }
28428 if test "${gcc_cv_ld_buildid+set}" = set; then :
28429 $as_echo_n "(cached) " >&6
28430 else
28431 gcc_cv_ld_buildid=no
28432 if test $in_tree_ld = yes ; then
28433 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28434 "$gcc_cv_gld_minor_version" -ge 18 -o \
28435 "$gcc_cv_gld_major_version" -gt 2 \
28436 && test $in_tree_ld_is_elf = yes; then
28437 gcc_cv_ld_buildid=yes
28438 fi
28439 elif test x$gcc_cv_ld != x; then
28440 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28441 gcc_cv_ld_buildid=yes
28442 fi
28443 fi
28444 fi
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28446 $as_echo "$gcc_cv_ld_buildid" >&6; }
28447 if test x"$gcc_cv_ld_buildid" = xyes; then
28448
28449 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28450
28451 fi
28452
28453 # Check whether --enable-linker-build-id was given.
28454 if test "${enable_linker_build_id+set}" = set; then :
28455 enableval=$enable_linker_build_id;
28456 else
28457 enable_linker_build_id=no
28458 fi
28459
28460
28461 if test x"$enable_linker_build_id" = xyes; then
28462 if test x"$gcc_cv_ld_buildid" = xyes; then
28463
28464 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28465
28466 else
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28468 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28469 fi
28470 fi
28471
28472 # In binutils 2.21, GNU ld gained support for new emulations fully
28473 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28475 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28476 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28477 $as_echo_n "(cached) " >&6
28478 else
28479 gcc_cv_ld_sol2_emulation=no
28480 if test $in_tree_ld = yes ; then
28481 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28482 "$gcc_cv_gld_minor_version" -ge 21 -o \
28483 "$gcc_cv_gld_major_version" -gt 2 \
28484 && test $in_tree_ld_is_elf = yes; then
28485 gcc_cv_ld_sol2_emulation=yes
28486 fi
28487 elif test x$gcc_cv_ld != x; then
28488 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28489 grep _sol2 > /dev/null; then
28490 gcc_cv_ld_sol2_emulation=yes
28491 fi
28492 fi
28493 fi
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28495 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28496 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28497
28498 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28499
28500 fi
28501
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28503 $as_echo_n "checking linker --sysroot support... " >&6; }
28504 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28505 $as_echo_n "(cached) " >&6
28506 else
28507 gcc_cv_ld_sysroot=no
28508 if test $in_tree_ld = yes ; then
28509 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
28510 gcc_cv_ld_sysroot=yes
28511 fi
28512 elif test x$gcc_cv_ld != x; then
28513 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28514 gcc_cv_ld_sysroot=yes
28515 fi
28516 fi
28517 fi
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28519 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28520 if test x"$gcc_cv_ld_sysroot" = xyes; then
28521
28522 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28523
28524 fi
28525
28526 case $target in
28527 *-*-solaris2*)
28528 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28530 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28531 if test "${gcc_cv_solaris_crts+set}" = set; then :
28532 $as_echo_n "(cached) " >&6
28533 else
28534 gcc_cv_solaris_crts=no
28535 if test x$host != x$target; then
28536 if test "x$with_sysroot" = xyes; then
28537 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28538 else
28539 target_sysroot="${with_sysroot}"
28540 fi
28541 fi
28542 target_libdir="$target_sysroot/usr/lib"
28543 # At the time they were added, gcrt1.o became a symlink for backwards
28544 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28545 case $target in
28546 i?86-*-solaris2* | x86_64-*-solaris2*)
28547 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28548 ;;
28549 sparc*-*-solaris2*)
28550 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28551 ;;
28552 esac
28553 fi
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28555 $as_echo "$gcc_cv_solaris_crts" >&6; }
28556 ;;
28557 esac
28558 if test x$gcc_cv_solaris_crts = xyes; then
28559
28560 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28561
28562 fi
28563
28564 # Test for stack protector support in target C library.
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28566 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28567 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28568 $as_echo_n "(cached) " >&6
28569 else
28570 gcc_cv_libc_provides_ssp=no
28571 case "$target" in
28572 *-*-musl*)
28573 # All versions of musl provide stack protector
28574 gcc_cv_libc_provides_ssp=yes;;
28575 *-*-linux* | *-*-kfreebsd*-gnu)
28576 # glibc 2.4 and later provides __stack_chk_fail and
28577 # either __stack_chk_guard, or TLS access to stack guard canary.
28578
28579 if test $glibc_version_major -gt 2 \
28580 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28581 gcc_cv_libc_provides_ssp=yes
28582 else
28583
28584 if test -f $target_header_dir/features.h \
28585 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28586 $target_header_dir/features.h > /dev/null; then
28587 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28588 $target_header_dir/features.h > /dev/null && \
28589 test -f $target_header_dir/bits/uClibc_config.h && \
28590 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28591 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28592 gcc_cv_libc_provides_ssp=yes
28593 fi
28594 # all versions of Bionic support stack protector
28595 elif test -f $target_header_dir/sys/cdefs.h \
28596 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28597 $target_header_dir/sys/cdefs.h > /dev/null; then
28598 gcc_cv_libc_provides_ssp=yes
28599 fi
28600 fi
28601 ;;
28602 *-*-gnu*)
28603 # Avoid complicated tests (see
28604 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28605 # simply assert that glibc does provide this, which is true for all
28606 # realistically usable GNU/Hurd configurations.
28607 # All supported versions of musl provide it as well
28608 gcc_cv_libc_provides_ssp=yes;;
28609 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28610 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28611 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28612 gcc_cv_libc_provides_ssp=yes
28613 else
28614 echo "no __stack_chk_fail on this target"
28615 fi
28616
28617 ;;
28618 *) gcc_cv_libc_provides_ssp=no ;;
28619 esac
28620 fi
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28622 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28623
28624 if test x$gcc_cv_libc_provides_ssp = xyes; then
28625
28626 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28627
28628 fi
28629
28630 # Check whether --enable-default-ssp was given.
28631 # Check whether --enable-default-ssp was given.
28632 if test "${enable_default_ssp+set}" = set; then :
28633 enableval=$enable_default_ssp;
28634 if test x$gcc_cv_libc_provides_ssp = xyes; then
28635 case "$target" in
28636 ia64*-*-*) enable_default_ssp=no ;;
28637 *) enable_default_ssp=$enableval ;;
28638 esac
28639 else
28640 enable_default_ssp=no
28641 fi
28642 else
28643 enable_default_ssp=no
28644 fi
28645
28646 if test x$enable_default_ssp = xyes ; then
28647
28648 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28649
28650 fi
28651
28652
28653 # Test for <sys/sdt.h> on the target.
28654
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28656 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28657 have_sys_sdt_h=no
28658 if test -f $target_header_dir/sys/sdt.h; then
28659 have_sys_sdt_h=yes
28660
28661 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28662
28663 fi
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28665 $as_echo "$have_sys_sdt_h" >&6; }
28666
28667 # Check if TFmode long double should be used by default or not.
28668 # Some glibc targets used DFmode long double, but with glibc 2.4
28669 # and later they can use TFmode.
28670 case "$target" in
28671 powerpc*-*-linux* | \
28672 sparc*-*-linux* | \
28673 s390*-*-linux* | \
28674 alpha*-*-linux*)
28675
28676 # Check whether --with-long-double-128 was given.
28677 if test "${with_long_double_128+set}" = set; then :
28678 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28679 else
28680
28681 if test $glibc_version_major -gt 2 \
28682 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28683 gcc_cv_target_ldbl128=yes
28684 else
28685
28686 gcc_cv_target_ldbl128=no
28687 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28688 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28689 && gcc_cv_target_ldbl128=yes
28690
28691 fi
28692 fi
28693
28694 ;;
28695 esac
28696 if test x$gcc_cv_target_ldbl128 = xyes; then
28697
28698 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28699
28700 fi
28701
28702 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28703 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28704 gcc_cv_libc_provides_hwcap_in_tcb=no
28705 case "$target" in
28706 powerpc*-*-linux*)
28707
28708 if test $glibc_version_major -gt 2 \
28709 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28710 gcc_cv_libc_provides_hwcap_in_tcb=yes
28711 fi
28712 ;;
28713 esac
28714 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28715
28716 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28717
28718 fi
28719
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28721 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28722 gcc_cv_target_dl_iterate_phdr=unknown
28723 case "$target" in
28724 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28725 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28726 # libdl there, both complicating its use and breaking compatibility
28727 # between Solaris 10 updates.
28728 *-*-solaris2.1[1-9]*)
28729 # <link.h> needs both a dl_iterate_phdr declaration and support for
28730 # compilation with largefile support.
28731 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28732 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28733 gcc_cv_target_dl_iterate_phdr=yes
28734 else
28735 gcc_cv_target_dl_iterate_phdr=no
28736 fi
28737 ;;
28738 *-*-dragonfly* | *-*-freebsd*)
28739 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28740 gcc_cv_target_dl_iterate_phdr=yes
28741 else
28742 gcc_cv_target_dl_iterate_phdr=no
28743 fi
28744 ;;
28745 *-linux-musl*)
28746 gcc_cv_target_dl_iterate_phdr=yes
28747 ;;
28748 esac
28749
28750 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28751
28752 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28753
28754 fi
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28756 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28757
28758 # We no longer support different GC mechanisms. Emit an error if
28759 # the user configures with --with-gc.
28760
28761 # Check whether --with-gc was given.
28762 if test "${with_gc+set}" = set; then :
28763 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28764 fi
28765
28766
28767 # Libraries to use on the host. This will normally be set by the top
28768 # level Makefile. Here we simply capture the value for our Makefile.
28769 if test -z "${HOST_LIBS+set}"; then
28770 HOST_LIBS=
28771 fi
28772
28773
28774 # Use the system's zlib library.
28775
28776 # Use the system's zlib library.
28777 zlibdir="-L\$(top_builddir)/../zlib"
28778 zlibinc="-I\$(top_srcdir)/../zlib"
28779
28780 # Check whether --with-system-zlib was given.
28781 if test "${with_system_zlib+set}" = set; then :
28782 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28783 zlibdir=
28784 zlibinc=
28785 fi
28786
28787 fi
28788
28789
28790
28791
28792
28793
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28795 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28796 # Check whether --enable-maintainer-mode was given.
28797 if test "${enable_maintainer_mode+set}" = set; then :
28798 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28799 else
28800 maintainer_mode=no
28801 fi
28802
28803
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28805 $as_echo "$maintainer_mode" >&6; }
28806
28807 if test "$maintainer_mode" = "yes"; then
28808 MAINT=''
28809 else
28810 MAINT='#'
28811 fi
28812
28813
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28815 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28816 # Check whether --enable-link-mutex was given.
28817 if test "${enable_link_mutex+set}" = set; then :
28818 enableval=$enable_link_mutex; do_link_mutex=$enableval
28819 else
28820 do_link_mutex=no
28821 fi
28822
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28824 $as_echo "$do_link_mutex" >&6; }
28825
28826 if test "$do_link_mutex" = "yes"; then
28827 DO_LINK_MUTEX=true
28828 else
28829 DO_LINK_MUTEX=false
28830 fi
28831
28832
28833 # --------------
28834 # Language hooks
28835 # --------------
28836
28837 # Make empty files to contain the specs and options for each language.
28838 # Then add #include lines to for a compiler that has specs and/or options.
28839
28840 subdirs=
28841 lang_opt_files=
28842 lang_specs_files=
28843 lang_tree_files=
28844 # These (without "all_") are set in each config-lang.in.
28845 # `language' must be a single word so is spelled singularly.
28846 all_languages=
28847 all_compilers=
28848 all_outputs='Makefile'
28849 # List of language makefile fragments.
28850 all_lang_makefrags=
28851 # Additional files for gengtype
28852 all_gtfiles="$target_gtfiles"
28853
28854 # These are the languages that are set in --enable-languages,
28855 # and are available in the GCC tree.
28856 all_selected_languages=
28857
28858 # Add the language fragments.
28859 # Languages are added via two mechanisms. Some information must be
28860 # recorded in makefile variables, these are defined in config-lang.in.
28861 # We accumulate them and plug them into the main Makefile.
28862 # The other mechanism is a set of hooks for each of the main targets
28863 # like `clean', `install', etc.
28864
28865 language_hooks="Make-hooks"
28866
28867 for lang in ${srcdir}/*/config-lang.in
28868 do
28869 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28870
28871 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28872 if test "x$lang_alias" = x
28873 then
28874 echo "$lang doesn't set \$language." 1>&2
28875 exit 1
28876 fi
28877 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28878 subdirs="$subdirs $subdir"
28879
28880 # $gcc_subdir is where the gcc integration files are to be found
28881 # for a language, both for internal compiler purposes (compiler
28882 # sources implementing front-end to GCC tree converters), and for
28883 # build infrastructure purposes (Make-lang.in, etc.)
28884 #
28885 # This will be <subdir> (relative to $srcdir) if a line like
28886 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28887 # is found in <langdir>/config-lang.in, and will remain <langdir>
28888 # otherwise.
28889 #
28890 # Except for the language alias (fetched above), the regular
28891 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28892 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28893 # only this and the language alias.
28894
28895 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28896 if [ "$gcc_subdir" = "" ]; then
28897 gcc_subdir="$subdir"
28898 fi
28899
28900 case ",$enable_languages," in
28901 *,$lang_alias,*)
28902 all_selected_languages="$all_selected_languages $lang_alias"
28903 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28904 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28905 fi
28906 ;;
28907 esac
28908
28909 language=
28910 boot_language=
28911 compilers=
28912 outputs=
28913 gtfiles=
28914 subdir_requires=
28915 . ${srcdir}/$gcc_subdir/config-lang.in
28916 if test "x$language" = x
28917 then
28918 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28919 exit 1
28920 fi
28921
28922 ok=:
28923 case ",$enable_languages," in
28924 *,$lang_alias,*) ;;
28925 *)
28926 for i in $subdir_requires; do
28927 test -f "${srcdir}/$i/config-lang.in" && continue
28928 ok=false
28929 break
28930 done
28931 ;;
28932 esac
28933 $ok || continue
28934
28935 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28936 if test -f $srcdir/$gcc_subdir/lang.opt; then
28937 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28938 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28939 fi
28940 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28941 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28942 fi
28943 all_languages="$all_languages $language"
28944 all_compilers="$all_compilers $compilers"
28945 all_outputs="$all_outputs $outputs"
28946 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28947 case ",$enable_languages," in
28948 *,lto,*)
28949
28950 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28951
28952 enable_lto=yes
28953
28954 ;;
28955 *) ;;
28956 esac
28957 done
28958
28959 check_languages=
28960 for language in $all_selected_languages
28961 do
28962 check_languages="$check_languages check-$language"
28963 done
28964
28965 # We link each language in with a set of hooks, reached indirectly via
28966 # lang.${target}. Only do so for selected languages.
28967
28968 rm -f Make-hooks
28969 touch Make-hooks
28970 target_list="all.cross start.encap rest.encap tags \
28971 install-common install-man install-info install-pdf install-html dvi \
28972 pdf html uninstall info man srcextra srcman srcinfo \
28973 mostlyclean clean distclean maintainer-clean install-plugin"
28974
28975 for t in $target_list
28976 do
28977 x=
28978 for lang in $all_selected_languages
28979 do
28980 x="$x $lang.$t"
28981 done
28982 echo "lang.$t: $x" >> Make-hooks
28983 done
28984
28985 # --------
28986 # Option include files
28987 # --------
28988
28989 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28990 option_includes="option-includes.mk"
28991
28992
28993 # --------
28994 # UNSORTED
28995 # --------
28996
28997 # Create .gdbinit.
28998
28999 echo "dir ." > .gdbinit
29000 echo "dir ${srcdir}" >> .gdbinit
29001 if test x$gdb_needs_out_file_path = xyes
29002 then
29003 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29004 fi
29005 if test "x$subdirs" != x; then
29006 for s in $subdirs
29007 do
29008 echo "dir ${srcdir}/$s" >> .gdbinit
29009 done
29010 fi
29011 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29012 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29013
29014 # Put a breakpoint on __asan_report_error to help with debugging buffer
29015 # overflow.
29016 case "$CFLAGS" in
29017 *-fsanitize=address*)
29018 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29019 ;;
29020 esac
29021
29022 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29023
29024
29025
29026 # Find a directory in which to install a shared libgcc.
29027
29028 # Check whether --enable-version-specific-runtime-libs was given.
29029 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29030 enableval=$enable_version_specific_runtime_libs;
29031 fi
29032
29033
29034 # Substitute configuration variables
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097 # Echo link setup.
29098 if test x${build} = x${host} ; then
29099 if test x${host} = x${target} ; then
29100 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29101 else
29102 echo "Links are now set up to build a cross-compiler" 1>&2
29103 echo " from ${host} to ${target}." 1>&2
29104 fi
29105 else
29106 if test x${host} = x${target} ; then
29107 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29108 echo " for ${target}." 1>&2
29109 else
29110 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29111 echo " from ${host} to ${target}." 1>&2
29112 fi
29113 fi
29114
29115
29116
29117
29118
29119
29120 if test "x${ISLLIBS}" != "x" ; then
29121
29122 $as_echo "#define HAVE_isl 1" >>confdefs.h
29123
29124 fi
29125
29126 # Check whether isl_options_set_schedule_serialize_sccs is available;
29127 # it's new in isl 0.15.
29128 if test "x${ISLLIBS}" != "x" ; then
29129 saved_CXXFLAGS="$CXXFLAGS"
29130 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29131 saved_LIBS="$LIBS"
29132 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29133
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29135 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29137 /* end confdefs.h. */
29138 #include <isl/schedule.h>
29139 int
29140 main ()
29141 {
29142 isl_options_set_schedule_serialize_sccs (NULL, 0);
29143 ;
29144 return 0;
29145 }
29146 _ACEOF
29147 if ac_fn_cxx_try_link "$LINENO"; then :
29148 ac_has_isl_options_set_schedule_serialize_sccs=yes
29149 else
29150 ac_has_isl_options_set_schedule_serialize_sccs=no
29151 fi
29152 rm -f core conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29155 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29156
29157 LIBS="$saved_LIBS"
29158 CXXFLAGS="$saved_CXXFLAGS"
29159
29160 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29161
29162 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29163
29164 fi
29165 fi
29166
29167 # Check for plugin support
29168 # Check whether --enable-plugin was given.
29169 if test "${enable_plugin+set}" = set; then :
29170 enableval=$enable_plugin; enable_plugin=$enableval
29171 else
29172 enable_plugin=yes; default_plugin=yes
29173 fi
29174
29175
29176 pluginlibs=
29177
29178 case "${host}" in
29179 *-*-darwin*)
29180 if test x$build = x$host; then
29181 export_sym_check="nm${exeext} -g"
29182 elif test x$host = x$target; then
29183 export_sym_check="$gcc_cv_nm -g"
29184 else
29185 export_sym_check=
29186 fi
29187 ;;
29188 *)
29189 if test x$build = x$host; then
29190 export_sym_check="objdump${exeext} -T"
29191 elif test x$host = x$target; then
29192 export_sym_check="$gcc_cv_objdump -T"
29193 else
29194 export_sym_check=
29195 fi
29196 ;;
29197 esac
29198
29199 if test x"$enable_plugin" = x"yes"; then
29200
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29202 $as_echo_n "checking for exported symbols... " >&6; }
29203 if test "x$export_sym_check" != x; then
29204 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29205 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29206 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29207 : # No need to use a flag
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29209 $as_echo "yes" >&6; }
29210 else
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29212 $as_echo "yes" >&6; }
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29214 $as_echo_n "checking for -rdynamic... " >&6; }
29215 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29216 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29217 plugin_rdynamic=yes
29218 pluginlibs="-rdynamic"
29219 else
29220 plugin_rdynamic=no
29221 enable_plugin=no
29222 fi
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29224 $as_echo "$plugin_rdynamic" >&6; }
29225 fi
29226 else
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29228 $as_echo "unable to check" >&6; }
29229 fi
29230
29231 # Check -ldl
29232 saved_LIBS="$LIBS"
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29234 $as_echo_n "checking for library containing dlopen... " >&6; }
29235 if test "${ac_cv_search_dlopen+set}" = set; then :
29236 $as_echo_n "(cached) " >&6
29237 else
29238 ac_func_search_save_LIBS=$LIBS
29239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h. */
29241
29242 /* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29245 #ifdef __cplusplus
29246 extern "C"
29247 #endif
29248 char dlopen ();
29249 int
29250 main ()
29251 {
29252 return dlopen ();
29253 ;
29254 return 0;
29255 }
29256 _ACEOF
29257 for ac_lib in '' dl; do
29258 if test -z "$ac_lib"; then
29259 ac_res="none required"
29260 else
29261 ac_res=-l$ac_lib
29262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29263 fi
29264 if ac_fn_cxx_try_link "$LINENO"; then :
29265 ac_cv_search_dlopen=$ac_res
29266 fi
29267 rm -f core conftest.err conftest.$ac_objext \
29268 conftest$ac_exeext
29269 if test "${ac_cv_search_dlopen+set}" = set; then :
29270 break
29271 fi
29272 done
29273 if test "${ac_cv_search_dlopen+set}" = set; then :
29274
29275 else
29276 ac_cv_search_dlopen=no
29277 fi
29278 rm conftest.$ac_ext
29279 LIBS=$ac_func_search_save_LIBS
29280 fi
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29282 $as_echo "$ac_cv_search_dlopen" >&6; }
29283 ac_res=$ac_cv_search_dlopen
29284 if test "$ac_res" != no; then :
29285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29286
29287 fi
29288
29289 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29290 pluginlibs="$pluginlibs -ldl"
29291 fi
29292 LIBS="$saved_LIBS"
29293
29294 # Check that we can build shared objects with -fPIC -shared
29295 saved_LDFLAGS="$LDFLAGS"
29296 saved_CFLAGS="$CFLAGS"
29297 case "${host}" in
29298 *-*-darwin*)
29299 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29300 CFLAGS="$CFLAGS -fPIC"
29301 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29302 ;;
29303 *)
29304 CFLAGS="$CFLAGS -fPIC"
29305 LDFLAGS="$LDFLAGS -fPIC -shared"
29306 ;;
29307 esac
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29309 $as_echo_n "checking for -fPIC -shared... " >&6; }
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h. */
29312 extern int X;
29313 int
29314 main ()
29315 {
29316 return X == 0;
29317 ;
29318 return 0;
29319 }
29320 _ACEOF
29321 if ac_fn_cxx_try_link "$LINENO"; then :
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29323 $as_echo "yes" >&6; }; have_pic_shared=yes
29324 else
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29326 $as_echo "no" >&6; }; have_pic_shared=no
29327 fi
29328 rm -f core conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
29330 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29331 pluginlibs=
29332 enable_plugin=no
29333 fi
29334 LDFLAGS="$saved_LDFLAGS"
29335 CFLAGS="$saved_CFLAGS"
29336
29337 # If plugin support had been requested but not available, fail.
29338 if test x"$enable_plugin" = x"no" ; then
29339 if test x"$default_plugin" != x"yes"; then
29340 as_fn_error "
29341 Building GCC with plugin support requires a host that supports
29342 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29343 fi
29344 fi
29345 fi
29346
29347
29348
29349 if test x"$enable_plugin" = x"yes"; then
29350
29351 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29352
29353 fi
29354
29355
29356 # Enable --enable-host-shared
29357 # Check whether --enable-host-shared was given.
29358 if test "${enable_host_shared+set}" = set; then :
29359 enableval=$enable_host_shared; PICFLAG=-fPIC
29360 else
29361 PICFLAG=
29362 fi
29363
29364
29365
29366
29367
29368 # Check whether --enable-libquadmath-support was given.
29369 if test "${enable_libquadmath_support+set}" = set; then :
29370 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29371 else
29372 ENABLE_LIBQUADMATH_SUPPORT=yes
29373 fi
29374
29375 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29376
29377 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29378
29379 fi
29380
29381
29382 # Specify what hash style to use by default.
29383
29384 # Check whether --with-linker-hash-style was given.
29385 if test "${with_linker_hash_style+set}" = set; then :
29386 withval=$with_linker_hash_style; case x"$withval" in
29387 xsysv)
29388 LINKER_HASH_STYLE=sysv
29389 ;;
29390 xgnu)
29391 LINKER_HASH_STYLE=gnu
29392 ;;
29393 xboth)
29394 LINKER_HASH_STYLE=both
29395 ;;
29396 *)
29397 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29398 ;;
29399 esac
29400 else
29401 LINKER_HASH_STYLE=''
29402 fi
29403
29404 if test x"${LINKER_HASH_STYLE}" != x; then
29405
29406 cat >>confdefs.h <<_ACEOF
29407 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29408 _ACEOF
29409
29410 fi
29411
29412 # Specify what should be the default of -fdiagnostics-color option.
29413
29414 # Check whether --with-diagnostics-color was given.
29415 if test "${with_diagnostics_color+set}" = set; then :
29416 withval=$with_diagnostics_color; case x"$withval" in
29417 xnever)
29418 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29419 ;;
29420 xauto)
29421 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29422 ;;
29423 xauto-if-env)
29424 DIAGNOSTICS_COLOR_DEFAULT=-1
29425 ;;
29426 xalways)
29427 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29428 ;;
29429 *)
29430 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29431 ;;
29432 esac
29433 else
29434 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29435 fi
29436
29437
29438 cat >>confdefs.h <<_ACEOF
29439 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29440 _ACEOF
29441
29442
29443 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29444 # of jit/jit-playback.c.
29445 cat > gcc-driver-name.h <<EOF
29446 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29447 EOF
29448
29449 # Check whether --enable-default-pie was given.
29450 # Check whether --enable-default-pie was given.
29451 if test "${enable_default_pie+set}" = set; then :
29452 enableval=$enable_default_pie; enable_default_pie=$enableval
29453 else
29454 enable_default_pie=no
29455 fi
29456
29457 if test x$enable_default_pie = xyes ; then
29458
29459 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29460
29461 fi
29462
29463
29464 # Check if -fno-PIE works.
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29466 $as_echo_n "checking for -fno-PIE option... " >&6; }
29467 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29468 $as_echo_n "(cached) " >&6
29469 else
29470 saved_CXXFLAGS="$CXXFLAGS"
29471 CXXFLAGS="$CXXFLAGS -fno-PIE"
29472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29473 /* end confdefs.h. */
29474 int main(void) {return 0;}
29475 _ACEOF
29476 if ac_fn_cxx_try_compile "$LINENO"; then :
29477 gcc_cv_c_no_fpie=yes
29478 else
29479 gcc_cv_c_no_fpie=no
29480 fi
29481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29482 CXXFLAGS="$saved_CXXFLAGS"
29483 fi
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29485 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29486 if test "$gcc_cv_c_no_fpie" = "yes"; then
29487 NO_PIE_CFLAGS="-fno-PIE"
29488 fi
29489
29490
29491 # Check if -no-pie works.
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29493 $as_echo_n "checking for -no-pie option... " >&6; }
29494 if test "${gcc_cv_no_pie+set}" = set; then :
29495 $as_echo_n "(cached) " >&6
29496 else
29497 saved_LDFLAGS="$LDFLAGS"
29498 LDFLAGS="$LDFLAGS -no-pie"
29499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29500 /* end confdefs.h. */
29501 int main(void) {return 0;}
29502 _ACEOF
29503 if ac_fn_cxx_try_link "$LINENO"; then :
29504 gcc_cv_no_pie=yes
29505 else
29506 gcc_cv_no_pie=no
29507 fi
29508 rm -f core conftest.err conftest.$ac_objext \
29509 conftest$ac_exeext conftest.$ac_ext
29510 LDFLAGS="$saved_LDFLAGS"
29511 fi
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29513 $as_echo "$gcc_cv_no_pie" >&6; }
29514 if test "$gcc_cv_no_pie" = "yes"; then
29515 NO_PIE_FLAG="-no-pie"
29516 fi
29517
29518
29519 # Check linker supports '-z bndplt'
29520 ld_bndplt_support=no
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29522 $as_echo_n "checking linker -z bndplt option... " >&6; }
29523 if test x"$ld_is_gold" = xno; then
29524 if test $in_tree_ld = yes ; then
29525 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
29526 ld_bndplt_support=yes
29527 fi
29528 elif test x$gcc_cv_ld != x; then
29529 # Check if linker supports -a bndplt option
29530 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29531 ld_bndplt_support=yes
29532 fi
29533 fi
29534 fi
29535 if test x"$ld_bndplt_support" = xyes; then
29536
29537 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29538
29539 fi
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29541 $as_echo "$ld_bndplt_support" >&6; }
29542
29543 # Configure the subdirectories
29544 # AC_CONFIG_SUBDIRS($subdirs)
29545
29546 # Create the Makefile
29547 # and configure language subdirectories
29548 ac_config_files="$ac_config_files $all_outputs"
29549
29550
29551 ac_config_commands="$ac_config_commands default"
29552
29553 cat >confcache <<\_ACEOF
29554 # This file is a shell script that caches the results of configure
29555 # tests run on this system so they can be shared between configure
29556 # scripts and configure runs, see configure's option --config-cache.
29557 # It is not useful on other systems. If it contains results you don't
29558 # want to keep, you may remove or edit it.
29559 #
29560 # config.status only pays attention to the cache file if you give it
29561 # the --recheck option to rerun configure.
29562 #
29563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29565 # following values.
29566
29567 _ACEOF
29568
29569 # The following way of writing the cache mishandles newlines in values,
29570 # but we know of no workaround that is simple, portable, and efficient.
29571 # So, we kill variables containing newlines.
29572 # Ultrix sh set writes to stderr and can't be redirected directly,
29573 # and sets the high bit in the cache file unless we assign to the vars.
29574 (
29575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29576 eval ac_val=\$$ac_var
29577 case $ac_val in #(
29578 *${as_nl}*)
29579 case $ac_var in #(
29580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29582 esac
29583 case $ac_var in #(
29584 _ | IFS | as_nl) ;; #(
29585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29586 *) { eval $ac_var=; unset $ac_var;} ;;
29587 esac ;;
29588 esac
29589 done
29590
29591 (set) 2>&1 |
29592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29593 *${as_nl}ac_space=\ *)
29594 # `set' does not quote correctly, so add quotes: double-quote
29595 # substitution turns \\\\ into \\, and sed turns \\ into \.
29596 sed -n \
29597 "s/'/'\\\\''/g;
29598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29599 ;; #(
29600 *)
29601 # `set' quotes correctly as required by POSIX, so do not add quotes.
29602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29603 ;;
29604 esac |
29605 sort
29606 ) |
29607 sed '
29608 /^ac_cv_env_/b end
29609 t clear
29610 :clear
29611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29612 t end
29613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29614 :end' >>confcache
29615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29616 if test -w "$cache_file"; then
29617 test "x$cache_file" != "x/dev/null" &&
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29619 $as_echo "$as_me: updating cache $cache_file" >&6;}
29620 cat confcache >$cache_file
29621 else
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29623 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29624 fi
29625 fi
29626 rm -f confcache
29627
29628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29629 # Let make expand exec_prefix.
29630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29631
29632 DEFS=-DHAVE_CONFIG_H
29633
29634 ac_libobjs=
29635 ac_ltlibobjs=
29636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29637 # 1. Remove the extension, and $U if already installed.
29638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29641 # will be set to the directory where LIBOBJS objects are built.
29642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29644 done
29645 LIBOBJS=$ac_libobjs
29646
29647 LTLIBOBJS=$ac_ltlibobjs
29648
29649
29650
29651
29652 : ${CONFIG_STATUS=./config.status}
29653 ac_write_fail=0
29654 ac_clean_files_save=$ac_clean_files
29655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29657 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29658 as_write_fail=0
29659 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29660 #! $SHELL
29661 # Generated by $as_me.
29662 # Run this file to recreate the current configuration.
29663 # Compiler output produced by configure, useful for debugging
29664 # configure, is in config.log if it exists.
29665
29666 debug=false
29667 ac_cs_recheck=false
29668 ac_cs_silent=false
29669
29670 SHELL=\${CONFIG_SHELL-$SHELL}
29671 export SHELL
29672 _ASEOF
29673 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29674 ## -------------------- ##
29675 ## M4sh Initialization. ##
29676 ## -------------------- ##
29677
29678 # Be more Bourne compatible
29679 DUALCASE=1; export DUALCASE # for MKS sh
29680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29681 emulate sh
29682 NULLCMD=:
29683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29684 # is contrary to our usage. Disable this feature.
29685 alias -g '${1+"$@"}'='"$@"'
29686 setopt NO_GLOB_SUBST
29687 else
29688 case `(set -o) 2>/dev/null` in #(
29689 *posix*) :
29690 set -o posix ;; #(
29691 *) :
29692 ;;
29693 esac
29694 fi
29695
29696
29697 as_nl='
29698 '
29699 export as_nl
29700 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29701 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29704 # Prefer a ksh shell builtin over an external printf program on Solaris,
29705 # but without wasting forks for bash or zsh.
29706 if test -z "$BASH_VERSION$ZSH_VERSION" \
29707 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29708 as_echo='print -r --'
29709 as_echo_n='print -rn --'
29710 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29711 as_echo='printf %s\n'
29712 as_echo_n='printf %s'
29713 else
29714 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29715 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29716 as_echo_n='/usr/ucb/echo -n'
29717 else
29718 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29719 as_echo_n_body='eval
29720 arg=$1;
29721 case $arg in #(
29722 *"$as_nl"*)
29723 expr "X$arg" : "X\\(.*\\)$as_nl";
29724 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29725 esac;
29726 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29727 '
29728 export as_echo_n_body
29729 as_echo_n='sh -c $as_echo_n_body as_echo'
29730 fi
29731 export as_echo_body
29732 as_echo='sh -c $as_echo_body as_echo'
29733 fi
29734
29735 # The user is always right.
29736 if test "${PATH_SEPARATOR+set}" != set; then
29737 PATH_SEPARATOR=:
29738 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29739 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29740 PATH_SEPARATOR=';'
29741 }
29742 fi
29743
29744
29745 # IFS
29746 # We need space, tab and new line, in precisely that order. Quoting is
29747 # there to prevent editors from complaining about space-tab.
29748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29749 # splitting by setting IFS to empty value.)
29750 IFS=" "" $as_nl"
29751
29752 # Find who we are. Look in the path if we contain no directory separator.
29753 case $0 in #((
29754 *[\\/]* ) as_myself=$0 ;;
29755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756 for as_dir in $PATH
29757 do
29758 IFS=$as_save_IFS
29759 test -z "$as_dir" && as_dir=.
29760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29761 done
29762 IFS=$as_save_IFS
29763
29764 ;;
29765 esac
29766 # We did not find ourselves, most probably we were run as `sh COMMAND'
29767 # in which case we are not to be found in the path.
29768 if test "x$as_myself" = x; then
29769 as_myself=$0
29770 fi
29771 if test ! -f "$as_myself"; then
29772 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29773 exit 1
29774 fi
29775
29776 # Unset variables that we do not need and which cause bugs (e.g. in
29777 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29778 # suppresses any "Segmentation fault" message there. '((' could
29779 # trigger a bug in pdksh 5.2.14.
29780 for as_var in BASH_ENV ENV MAIL MAILPATH
29781 do eval test x\${$as_var+set} = xset \
29782 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29783 done
29784 PS1='$ '
29785 PS2='> '
29786 PS4='+ '
29787
29788 # NLS nuisances.
29789 LC_ALL=C
29790 export LC_ALL
29791 LANGUAGE=C
29792 export LANGUAGE
29793
29794 # CDPATH.
29795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29796
29797
29798 # as_fn_error ERROR [LINENO LOG_FD]
29799 # ---------------------------------
29800 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29801 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29802 # script with status $?, using 1 if that was 0.
29803 as_fn_error ()
29804 {
29805 as_status=$?; test $as_status -eq 0 && as_status=1
29806 if test "$3"; then
29807 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29808 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29809 fi
29810 $as_echo "$as_me: error: $1" >&2
29811 as_fn_exit $as_status
29812 } # as_fn_error
29813
29814
29815 # as_fn_set_status STATUS
29816 # -----------------------
29817 # Set $? to STATUS, without forking.
29818 as_fn_set_status ()
29819 {
29820 return $1
29821 } # as_fn_set_status
29822
29823 # as_fn_exit STATUS
29824 # -----------------
29825 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29826 as_fn_exit ()
29827 {
29828 set +e
29829 as_fn_set_status $1
29830 exit $1
29831 } # as_fn_exit
29832
29833 # as_fn_unset VAR
29834 # ---------------
29835 # Portably unset VAR.
29836 as_fn_unset ()
29837 {
29838 { eval $1=; unset $1;}
29839 }
29840 as_unset=as_fn_unset
29841 # as_fn_append VAR VALUE
29842 # ----------------------
29843 # Append the text in VALUE to the end of the definition contained in VAR. Take
29844 # advantage of any shell optimizations that allow amortized linear growth over
29845 # repeated appends, instead of the typical quadratic growth present in naive
29846 # implementations.
29847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29848 eval 'as_fn_append ()
29849 {
29850 eval $1+=\$2
29851 }'
29852 else
29853 as_fn_append ()
29854 {
29855 eval $1=\$$1\$2
29856 }
29857 fi # as_fn_append
29858
29859 # as_fn_arith ARG...
29860 # ------------------
29861 # Perform arithmetic evaluation on the ARGs, and store the result in the
29862 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29863 # must be portable across $(()) and expr.
29864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29865 eval 'as_fn_arith ()
29866 {
29867 as_val=$(( $* ))
29868 }'
29869 else
29870 as_fn_arith ()
29871 {
29872 as_val=`expr "$@" || test $? -eq 1`
29873 }
29874 fi # as_fn_arith
29875
29876
29877 if expr a : '\(a\)' >/dev/null 2>&1 &&
29878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29879 as_expr=expr
29880 else
29881 as_expr=false
29882 fi
29883
29884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29885 as_basename=basename
29886 else
29887 as_basename=false
29888 fi
29889
29890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29891 as_dirname=dirname
29892 else
29893 as_dirname=false
29894 fi
29895
29896 as_me=`$as_basename -- "$0" ||
29897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29898 X"$0" : 'X\(//\)$' \| \
29899 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29900 $as_echo X/"$0" |
29901 sed '/^.*\/\([^/][^/]*\)\/*$/{
29902 s//\1/
29903 q
29904 }
29905 /^X\/\(\/\/\)$/{
29906 s//\1/
29907 q
29908 }
29909 /^X\/\(\/\).*/{
29910 s//\1/
29911 q
29912 }
29913 s/.*/./; q'`
29914
29915 # Avoid depending upon Character Ranges.
29916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29919 as_cr_digits='0123456789'
29920 as_cr_alnum=$as_cr_Letters$as_cr_digits
29921
29922 ECHO_C= ECHO_N= ECHO_T=
29923 case `echo -n x` in #(((((
29924 -n*)
29925 case `echo 'xy\c'` in
29926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29927 xy) ECHO_C='\c';;
29928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29929 ECHO_T=' ';;
29930 esac;;
29931 *)
29932 ECHO_N='-n';;
29933 esac
29934
29935 rm -f conf$$ conf$$.exe conf$$.file
29936 if test -d conf$$.dir; then
29937 rm -f conf$$.dir/conf$$.file
29938 else
29939 rm -f conf$$.dir
29940 mkdir conf$$.dir 2>/dev/null
29941 fi
29942 if (echo >conf$$.file) 2>/dev/null; then
29943 if ln -s conf$$.file conf$$ 2>/dev/null; then
29944 as_ln_s='ln -s'
29945 # ... but there are two gotchas:
29946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29948 # In both cases, we have to default to `cp -p'.
29949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29950 as_ln_s='cp -p'
29951 elif ln conf$$.file conf$$ 2>/dev/null; then
29952 as_ln_s=ln
29953 else
29954 as_ln_s='cp -p'
29955 fi
29956 else
29957 as_ln_s='cp -p'
29958 fi
29959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29960 rmdir conf$$.dir 2>/dev/null
29961
29962
29963 # as_fn_mkdir_p
29964 # -------------
29965 # Create "$as_dir" as a directory, including parents if necessary.
29966 as_fn_mkdir_p ()
29967 {
29968
29969 case $as_dir in #(
29970 -*) as_dir=./$as_dir;;
29971 esac
29972 test -d "$as_dir" || eval $as_mkdir_p || {
29973 as_dirs=
29974 while :; do
29975 case $as_dir in #(
29976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29977 *) as_qdir=$as_dir;;
29978 esac
29979 as_dirs="'$as_qdir' $as_dirs"
29980 as_dir=`$as_dirname -- "$as_dir" ||
29981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29982 X"$as_dir" : 'X\(//\)[^/]' \| \
29983 X"$as_dir" : 'X\(//\)$' \| \
29984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29985 $as_echo X"$as_dir" |
29986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29987 s//\1/
29988 q
29989 }
29990 /^X\(\/\/\)[^/].*/{
29991 s//\1/
29992 q
29993 }
29994 /^X\(\/\/\)$/{
29995 s//\1/
29996 q
29997 }
29998 /^X\(\/\).*/{
29999 s//\1/
30000 q
30001 }
30002 s/.*/./; q'`
30003 test -d "$as_dir" && break
30004 done
30005 test -z "$as_dirs" || eval "mkdir $as_dirs"
30006 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30007
30008
30009 } # as_fn_mkdir_p
30010 if mkdir -p . 2>/dev/null; then
30011 as_mkdir_p='mkdir -p "$as_dir"'
30012 else
30013 test -d ./-p && rmdir ./-p
30014 as_mkdir_p=false
30015 fi
30016
30017 if test -x / >/dev/null 2>&1; then
30018 as_test_x='test -x'
30019 else
30020 if ls -dL / >/dev/null 2>&1; then
30021 as_ls_L_option=L
30022 else
30023 as_ls_L_option=
30024 fi
30025 as_test_x='
30026 eval sh -c '\''
30027 if test -d "$1"; then
30028 test -d "$1/.";
30029 else
30030 case $1 in #(
30031 -*)set "./$1";;
30032 esac;
30033 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30034 ???[sx]*):;;*)false;;esac;fi
30035 '\'' sh
30036 '
30037 fi
30038 as_executable_p=$as_test_x
30039
30040 # Sed expression to map a string onto a valid CPP name.
30041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30042
30043 # Sed expression to map a string onto a valid variable name.
30044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30045
30046
30047 exec 6>&1
30048 ## ----------------------------------- ##
30049 ## Main body of $CONFIG_STATUS script. ##
30050 ## ----------------------------------- ##
30051 _ASEOF
30052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30053
30054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30055 # Save the log message, to keep $0 and so on meaningful, and to
30056 # report actual input values of CONFIG_FILES etc. instead of their
30057 # values after options handling.
30058 ac_log="
30059 This file was extended by $as_me, which was
30060 generated by GNU Autoconf 2.64. Invocation command line was
30061
30062 CONFIG_FILES = $CONFIG_FILES
30063 CONFIG_HEADERS = $CONFIG_HEADERS
30064 CONFIG_LINKS = $CONFIG_LINKS
30065 CONFIG_COMMANDS = $CONFIG_COMMANDS
30066 $ $0 $@
30067
30068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30069 "
30070
30071 _ACEOF
30072
30073 case $ac_config_files in *"
30074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30075 esac
30076
30077 case $ac_config_headers in *"
30078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30079 esac
30080
30081
30082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30083 # Files that config.status was made for.
30084 config_files="$ac_config_files"
30085 config_headers="$ac_config_headers"
30086 config_links="$ac_config_links"
30087 config_commands="$ac_config_commands"
30088
30089 _ACEOF
30090
30091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30092 ac_cs_usage="\
30093 \`$as_me' instantiates files and other configuration actions
30094 from templates according to the current configuration. Unless the files
30095 and actions are specified as TAGs, all are instantiated by default.
30096
30097 Usage: $0 [OPTION]... [TAG]...
30098
30099 -h, --help print this help, then exit
30100 -V, --version print version number and configuration settings, then exit
30101 -q, --quiet, --silent
30102 do not print progress messages
30103 -d, --debug don't remove temporary files
30104 --recheck update $as_me by reconfiguring in the same conditions
30105 --file=FILE[:TEMPLATE]
30106 instantiate the configuration file FILE
30107 --header=FILE[:TEMPLATE]
30108 instantiate the configuration header FILE
30109
30110 Configuration files:
30111 $config_files
30112
30113 Configuration headers:
30114 $config_headers
30115
30116 Configuration links:
30117 $config_links
30118
30119 Configuration commands:
30120 $config_commands
30121
30122 Report bugs to the package provider."
30123
30124 _ACEOF
30125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30126 ac_cs_version="\\
30127 config.status
30128 configured by $0, generated by GNU Autoconf 2.64,
30129 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30130
30131 Copyright (C) 2009 Free Software Foundation, Inc.
30132 This config.status script is free software; the Free Software Foundation
30133 gives unlimited permission to copy, distribute and modify it."
30134
30135 ac_pwd='$ac_pwd'
30136 srcdir='$srcdir'
30137 AWK='$AWK'
30138 test -n "\$AWK" || AWK=awk
30139 _ACEOF
30140
30141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30142 # The default lists apply if the user does not specify any file.
30143 ac_need_defaults=:
30144 while test $# != 0
30145 do
30146 case $1 in
30147 --*=*)
30148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30150 ac_shift=:
30151 ;;
30152 *)
30153 ac_option=$1
30154 ac_optarg=$2
30155 ac_shift=shift
30156 ;;
30157 esac
30158
30159 case $ac_option in
30160 # Handling of the options.
30161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30162 ac_cs_recheck=: ;;
30163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30164 $as_echo "$ac_cs_version"; exit ;;
30165 --debug | --debu | --deb | --de | --d | -d )
30166 debug=: ;;
30167 --file | --fil | --fi | --f )
30168 $ac_shift
30169 case $ac_optarg in
30170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30171 esac
30172 as_fn_append CONFIG_FILES " '$ac_optarg'"
30173 ac_need_defaults=false;;
30174 --header | --heade | --head | --hea )
30175 $ac_shift
30176 case $ac_optarg in
30177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30178 esac
30179 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30180 ac_need_defaults=false;;
30181 --he | --h)
30182 # Conflict between --help and --header
30183 as_fn_error "ambiguous option: \`$1'
30184 Try \`$0 --help' for more information.";;
30185 --help | --hel | -h )
30186 $as_echo "$ac_cs_usage"; exit ;;
30187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30188 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30189 ac_cs_silent=: ;;
30190
30191 # This is an error.
30192 -*) as_fn_error "unrecognized option: \`$1'
30193 Try \`$0 --help' for more information." ;;
30194
30195 *) as_fn_append ac_config_targets " $1"
30196 ac_need_defaults=false ;;
30197
30198 esac
30199 shift
30200 done
30201
30202 ac_configure_extra_args=
30203
30204 if $ac_cs_silent; then
30205 exec 6>/dev/null
30206 ac_configure_extra_args="$ac_configure_extra_args --silent"
30207 fi
30208
30209 _ACEOF
30210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30211 if \$ac_cs_recheck; then
30212 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30213 shift
30214 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30215 CONFIG_SHELL='$SHELL'
30216 export CONFIG_SHELL
30217 exec "\$@"
30218 fi
30219
30220 _ACEOF
30221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30222 exec 5>>config.log
30223 {
30224 echo
30225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30226 ## Running $as_me. ##
30227 _ASBOX
30228 $as_echo "$ac_log"
30229 } >&5
30230
30231 _ACEOF
30232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30233 #
30234 # INIT-COMMANDS
30235 #
30236 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30237 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30238 subdirs='$subdirs'
30239
30240 _ACEOF
30241
30242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30243
30244 # Handling of arguments.
30245 for ac_config_target in $ac_config_targets
30246 do
30247 case $ac_config_target in
30248 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30249 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30250 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30251 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30252 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30253 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30254 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30255 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30256 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30257
30258 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30259 esac
30260 done
30261
30262
30263 # If the user did not use the arguments to specify the items to instantiate,
30264 # then the envvar interface is used. Set only those that are not.
30265 # We use the long form for the default assignment because of an extremely
30266 # bizarre bug on SunOS 4.1.3.
30267 if $ac_need_defaults; then
30268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30272 fi
30273
30274 # Have a temporary directory for convenience. Make it in the build tree
30275 # simply because there is no reason against having it here, and in addition,
30276 # creating and moving files from /tmp can sometimes cause problems.
30277 # Hook for its removal unless debugging.
30278 # Note that there is a small window in which the directory will not be cleaned:
30279 # after its creation but before its name has been assigned to `$tmp'.
30280 $debug ||
30281 {
30282 tmp=
30283 trap 'exit_status=$?
30284 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30285 ' 0
30286 trap 'as_fn_exit 1' 1 2 13 15
30287 }
30288 # Create a (secure) tmp directory for tmp files.
30289
30290 {
30291 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30292 test -n "$tmp" && test -d "$tmp"
30293 } ||
30294 {
30295 tmp=./conf$$-$RANDOM
30296 (umask 077 && mkdir "$tmp")
30297 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30298
30299 # Set up the scripts for CONFIG_FILES section.
30300 # No need to generate them if there are no CONFIG_FILES.
30301 # This happens for instance with `./config.status config.h'.
30302 if test -n "$CONFIG_FILES"; then
30303
30304 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30305 ac_cs_awk_getline=:
30306 ac_cs_awk_pipe_init=
30307 ac_cs_awk_read_file='
30308 while ((getline aline < (F[key])) > 0)
30309 print(aline)
30310 close(F[key])'
30311 ac_cs_awk_pipe_fini=
30312 else
30313 ac_cs_awk_getline=false
30314 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30315 ac_cs_awk_read_file='
30316 print "|#_!!_#|"
30317 print "cat " F[key] " &&"
30318 '$ac_cs_awk_pipe_init
30319 # The final `:' finishes the AND list.
30320 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30321 fi
30322 ac_cr=`echo X | tr X '\015'`
30323 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30324 # But we know of no other shell where ac_cr would be empty at this
30325 # point, so we can use a bashism as a fallback.
30326 if test "x$ac_cr" = x; then
30327 eval ac_cr=\$\'\\r\'
30328 fi
30329 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30330 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30331 ac_cs_awk_cr='\r'
30332 else
30333 ac_cs_awk_cr=$ac_cr
30334 fi
30335
30336 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30337 _ACEOF
30338
30339 # Create commands to substitute file output variables.
30340 {
30341 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30342 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30343 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30344 echo "_ACAWK" &&
30345 echo "_ACEOF"
30346 } >conf$$files.sh &&
30347 . ./conf$$files.sh ||
30348 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30349 rm -f conf$$files.sh
30350
30351 {
30352 echo "cat >conf$$subs.awk <<_ACEOF" &&
30353 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30354 echo "_ACEOF"
30355 } >conf$$subs.sh ||
30356 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30357 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30358 ac_delim='%!_!# '
30359 for ac_last_try in false false false false false :; do
30360 . ./conf$$subs.sh ||
30361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30362
30363 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30364 if test $ac_delim_n = $ac_delim_num; then
30365 break
30366 elif $ac_last_try; then
30367 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30368 else
30369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30370 fi
30371 done
30372 rm -f conf$$subs.sh
30373
30374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30375 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30376 _ACEOF
30377 sed -n '
30378 h
30379 s/^/S["/; s/!.*/"]=/
30380 p
30381 g
30382 s/^[^!]*!//
30383 :repl
30384 t repl
30385 s/'"$ac_delim"'$//
30386 t delim
30387 :nl
30388 h
30389 s/\(.\{148\}\).*/\1/
30390 t more1
30391 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30392 p
30393 n
30394 b repl
30395 :more1
30396 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30397 p
30398 g
30399 s/.\{148\}//
30400 t nl
30401 :delim
30402 h
30403 s/\(.\{148\}\).*/\1/
30404 t more2
30405 s/["\\]/\\&/g; s/^/"/; s/$/"/
30406 p
30407 b
30408 :more2
30409 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30410 p
30411 g
30412 s/.\{148\}//
30413 t delim
30414 ' <conf$$subs.awk | sed '
30415 /^[^""]/{
30416 N
30417 s/\n//
30418 }
30419 ' >>$CONFIG_STATUS || ac_write_fail=1
30420 rm -f conf$$subs.awk
30421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30422 _ACAWK
30423 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30424 for (key in S) S_is_set[key] = 1
30425 FS = "\a"
30426 \$ac_cs_awk_pipe_init
30427 }
30428 {
30429 line = $ 0
30430 nfields = split(line, field, "@")
30431 substed = 0
30432 len = length(field[1])
30433 for (i = 2; i < nfields; i++) {
30434 key = field[i]
30435 keylen = length(key)
30436 if (S_is_set[key]) {
30437 value = S[key]
30438 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30439 len += length(value) + length(field[++i])
30440 substed = 1
30441 } else
30442 len += 1 + keylen
30443 }
30444 if (nfields == 3 && !substed) {
30445 key = field[2]
30446 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30447 \$ac_cs_awk_read_file
30448 next
30449 }
30450 }
30451 print line
30452 }
30453 \$ac_cs_awk_pipe_fini
30454 _ACAWK
30455 _ACEOF
30456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30457 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30458 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30459 else
30460 cat
30461 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30462 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30463 _ACEOF
30464
30465 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30466 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30467 # trailing colons and then remove the whole line if VPATH becomes empty
30468 # (actually we leave an empty line to preserve line numbers).
30469 if test "x$srcdir" = x.; then
30470 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30471 s/:*\$(srcdir):*/:/
30472 s/:*\${srcdir}:*/:/
30473 s/:*@srcdir@:*/:/
30474 s/^\([^=]*=[ ]*\):*/\1/
30475 s/:*$//
30476 s/^[^=]*=[ ]*$//
30477 }'
30478 fi
30479
30480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30481 fi # test -n "$CONFIG_FILES"
30482
30483 # Set up the scripts for CONFIG_HEADERS section.
30484 # No need to generate them if there are no CONFIG_HEADERS.
30485 # This happens for instance with `./config.status Makefile'.
30486 if test -n "$CONFIG_HEADERS"; then
30487 cat >"$tmp/defines.awk" <<\_ACAWK ||
30488 BEGIN {
30489 _ACEOF
30490
30491 # Transform confdefs.h into an awk script `defines.awk', embedded as
30492 # here-document in config.status, that substitutes the proper values into
30493 # config.h.in to produce config.h.
30494
30495 # Create a delimiter string that does not exist in confdefs.h, to ease
30496 # handling of long lines.
30497 ac_delim='%!_!# '
30498 for ac_last_try in false false :; do
30499 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30500 if test -z "$ac_t"; then
30501 break
30502 elif $ac_last_try; then
30503 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30504 else
30505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30506 fi
30507 done
30508
30509 # For the awk script, D is an array of macro values keyed by name,
30510 # likewise P contains macro parameters if any. Preserve backslash
30511 # newline sequences.
30512
30513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30514 sed -n '
30515 s/.\{148\}/&'"$ac_delim"'/g
30516 t rset
30517 :rset
30518 s/^[ ]*#[ ]*define[ ][ ]*/ /
30519 t def
30520 d
30521 :def
30522 s/\\$//
30523 t bsnl
30524 s/["\\]/\\&/g
30525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30526 D["\1"]=" \3"/p
30527 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30528 d
30529 :bsnl
30530 s/["\\]/\\&/g
30531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30532 D["\1"]=" \3\\\\\\n"\\/p
30533 t cont
30534 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30535 t cont
30536 d
30537 :cont
30538 n
30539 s/.\{148\}/&'"$ac_delim"'/g
30540 t clear
30541 :clear
30542 s/\\$//
30543 t bsnlc
30544 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30545 d
30546 :bsnlc
30547 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30548 b cont
30549 ' <confdefs.h | sed '
30550 s/'"$ac_delim"'/"\\\
30551 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30552
30553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30554 for (key in D) D_is_set[key] = 1
30555 FS = "\a"
30556 }
30557 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30558 line = \$ 0
30559 split(line, arg, " ")
30560 if (arg[1] == "#") {
30561 defundef = arg[2]
30562 mac1 = arg[3]
30563 } else {
30564 defundef = substr(arg[1], 2)
30565 mac1 = arg[2]
30566 }
30567 split(mac1, mac2, "(") #)
30568 macro = mac2[1]
30569 prefix = substr(line, 1, index(line, defundef) - 1)
30570 if (D_is_set[macro]) {
30571 # Preserve the white space surrounding the "#".
30572 print prefix "define", macro P[macro] D[macro]
30573 next
30574 } else {
30575 # Replace #undef with comments. This is necessary, for example,
30576 # in the case of _POSIX_SOURCE, which is predefined and required
30577 # on some systems where configure will not decide to define it.
30578 if (defundef == "undef") {
30579 print "/*", prefix defundef, macro, "*/"
30580 next
30581 }
30582 }
30583 }
30584 { print }
30585 _ACAWK
30586 _ACEOF
30587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30588 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30589 fi # test -n "$CONFIG_HEADERS"
30590
30591
30592 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30593 shift
30594 for ac_tag
30595 do
30596 case $ac_tag in
30597 :[FHLC]) ac_mode=$ac_tag; continue;;
30598 esac
30599 case $ac_mode$ac_tag in
30600 :[FHL]*:*);;
30601 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30602 :[FH]-) ac_tag=-:-;;
30603 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30604 esac
30605 ac_save_IFS=$IFS
30606 IFS=:
30607 set x $ac_tag
30608 IFS=$ac_save_IFS
30609 shift
30610 ac_file=$1
30611 shift
30612
30613 case $ac_mode in
30614 :L) ac_source=$1;;
30615 :[FH])
30616 ac_file_inputs=
30617 for ac_f
30618 do
30619 case $ac_f in
30620 -) ac_f="$tmp/stdin";;
30621 *) # Look for the file first in the build tree, then in the source tree
30622 # (if the path is not absolute). The absolute path cannot be DOS-style,
30623 # because $ac_f cannot contain `:'.
30624 test -f "$ac_f" ||
30625 case $ac_f in
30626 [\\/$]*) false;;
30627 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30628 esac ||
30629 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30630 esac
30631 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30632 as_fn_append ac_file_inputs " '$ac_f'"
30633 done
30634
30635 # Let's still pretend it is `configure' which instantiates (i.e., don't
30636 # use $as_me), people would be surprised to read:
30637 # /* config.h. Generated by config.status. */
30638 configure_input='Generated from '`
30639 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30640 `' by configure.'
30641 if test x"$ac_file" != x-; then
30642 configure_input="$ac_file. $configure_input"
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30644 $as_echo "$as_me: creating $ac_file" >&6;}
30645 fi
30646 # Neutralize special characters interpreted by sed in replacement strings.
30647 case $configure_input in #(
30648 *\&* | *\|* | *\\* )
30649 ac_sed_conf_input=`$as_echo "$configure_input" |
30650 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30651 *) ac_sed_conf_input=$configure_input;;
30652 esac
30653
30654 case $ac_tag in
30655 *:-:* | *:-) cat >"$tmp/stdin" \
30656 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30657 esac
30658 ;;
30659 esac
30660
30661 ac_dir=`$as_dirname -- "$ac_file" ||
30662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30663 X"$ac_file" : 'X\(//\)[^/]' \| \
30664 X"$ac_file" : 'X\(//\)$' \| \
30665 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30666 $as_echo X"$ac_file" |
30667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30668 s//\1/
30669 q
30670 }
30671 /^X\(\/\/\)[^/].*/{
30672 s//\1/
30673 q
30674 }
30675 /^X\(\/\/\)$/{
30676 s//\1/
30677 q
30678 }
30679 /^X\(\/\).*/{
30680 s//\1/
30681 q
30682 }
30683 s/.*/./; q'`
30684 as_dir="$ac_dir"; as_fn_mkdir_p
30685 ac_builddir=.
30686
30687 case "$ac_dir" in
30688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30689 *)
30690 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30691 # A ".." for each directory in $ac_dir_suffix.
30692 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30693 case $ac_top_builddir_sub in
30694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30696 esac ;;
30697 esac
30698 ac_abs_top_builddir=$ac_pwd
30699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30700 # for backward compatibility:
30701 ac_top_builddir=$ac_top_build_prefix
30702
30703 case $srcdir in
30704 .) # We are building in place.
30705 ac_srcdir=.
30706 ac_top_srcdir=$ac_top_builddir_sub
30707 ac_abs_top_srcdir=$ac_pwd ;;
30708 [\\/]* | ?:[\\/]* ) # Absolute name.
30709 ac_srcdir=$srcdir$ac_dir_suffix;
30710 ac_top_srcdir=$srcdir
30711 ac_abs_top_srcdir=$srcdir ;;
30712 *) # Relative name.
30713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30714 ac_top_srcdir=$ac_top_build_prefix$srcdir
30715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30716 esac
30717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30718
30719
30720 case $ac_mode in
30721 :F)
30722 #
30723 # CONFIG_FILE
30724 #
30725
30726 _ACEOF
30727
30728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30729 # If the template does not know about datarootdir, expand it.
30730 # FIXME: This hack should be removed a few years after 2.60.
30731 ac_datarootdir_hack=; ac_datarootdir_seen=
30732 ac_sed_dataroot='
30733 /datarootdir/ {
30734 p
30735 q
30736 }
30737 /@datadir@/p
30738 /@docdir@/p
30739 /@infodir@/p
30740 /@localedir@/p
30741 /@mandir@/p'
30742 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30743 *datarootdir*) ac_datarootdir_seen=yes;;
30744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30746 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30747 _ACEOF
30748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30749 ac_datarootdir_hack='
30750 s&@datadir@&$datadir&g
30751 s&@docdir@&$docdir&g
30752 s&@infodir@&$infodir&g
30753 s&@localedir@&$localedir&g
30754 s&@mandir@&$mandir&g
30755 s&\\\${datarootdir}&$datarootdir&g' ;;
30756 esac
30757 _ACEOF
30758
30759 # Neutralize VPATH when `$srcdir' = `.'.
30760 # Shell code in configure.ac might set extrasub.
30761 # FIXME: do we really want to maintain this feature?
30762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30763 ac_sed_extra="$ac_vpsub
30764 $extrasub
30765 _ACEOF
30766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30767 :t
30768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30769 s|@configure_input@|$ac_sed_conf_input|;t t
30770 s&@top_builddir@&$ac_top_builddir_sub&;t t
30771 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30772 s&@srcdir@&$ac_srcdir&;t t
30773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30774 s&@top_srcdir@&$ac_top_srcdir&;t t
30775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30776 s&@builddir@&$ac_builddir&;t t
30777 s&@abs_builddir@&$ac_abs_builddir&;t t
30778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30779 $ac_datarootdir_hack
30780 "
30781 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30782 if $ac_cs_awk_getline; then
30783 $AWK -f "$tmp/subs.awk"
30784 else
30785 $AWK -f "$tmp/subs.awk" | $SHELL
30786 fi >$tmp/out \
30787 || as_fn_error "could not create $ac_file" "$LINENO" 5
30788
30789 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30790 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30791 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30793 which seems to be undefined. Please make sure it is defined." >&5
30794 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30795 which seems to be undefined. Please make sure it is defined." >&2;}
30796
30797 rm -f "$tmp/stdin"
30798 case $ac_file in
30799 -) cat "$tmp/out" && rm -f "$tmp/out";;
30800 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30801 esac \
30802 || as_fn_error "could not create $ac_file" "$LINENO" 5
30803 ;;
30804 :H)
30805 #
30806 # CONFIG_HEADER
30807 #
30808 if test x"$ac_file" != x-; then
30809 {
30810 $as_echo "/* $configure_input */" \
30811 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30812 } >"$tmp/config.h" \
30813 || as_fn_error "could not create $ac_file" "$LINENO" 5
30814 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30816 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30817 else
30818 rm -f "$ac_file"
30819 mv "$tmp/config.h" "$ac_file" \
30820 || as_fn_error "could not create $ac_file" "$LINENO" 5
30821 fi
30822 else
30823 $as_echo "/* $configure_input */" \
30824 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30825 || as_fn_error "could not create -" "$LINENO" 5
30826 fi
30827 ;;
30828 :L)
30829 #
30830 # CONFIG_LINK
30831 #
30832
30833 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30834 :
30835 else
30836 # Prefer the file from the source tree if names are identical.
30837 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30838 ac_source=$srcdir/$ac_source
30839 fi
30840
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30842 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30843
30844 if test ! -r "$ac_source"; then
30845 as_fn_error "$ac_source: file not found" "$LINENO" 5
30846 fi
30847 rm -f "$ac_file"
30848
30849 # Try a relative symlink, then a hard link, then a copy.
30850 case $srcdir in
30851 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30852 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30853 esac
30854 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30855 ln "$ac_source" "$ac_file" 2>/dev/null ||
30856 cp -p "$ac_source" "$ac_file" ||
30857 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30858 fi
30859 ;;
30860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30861 $as_echo "$as_me: executing $ac_file commands" >&6;}
30862 ;;
30863 esac
30864
30865
30866 case $ac_file$ac_mode in
30867 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30868 "gccdepdir":C)
30869 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30870 for lang in $subdirs c-family common
30871 do
30872 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30873 done ;;
30874 "as":F) chmod +x as ;;
30875 "collect-ld":F) chmod +x collect-ld ;;
30876 "nm":F) chmod +x nm ;;
30877 "default":C)
30878 case ${CONFIG_HEADERS} in
30879 *auto-host.h:config.in*)
30880 echo > cstamp-h ;;
30881 esac
30882 # Make sure all the subdirs exist.
30883 for d in $subdirs doc build common c-family
30884 do
30885 test -d $d || mkdir $d
30886 done
30887 ;;
30888
30889 esac
30890 done # for ac_tag
30891
30892
30893 as_fn_exit 0
30894 _ACEOF
30895 ac_clean_files=$ac_clean_files_save
30896
30897 test $ac_write_fail = 0 ||
30898 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30899
30900
30901 # configure is writing to config.log, and then calls config.status.
30902 # config.status does its own redirection, appending to config.log.
30903 # Unfortunately, on DOS this fails, as config.log is still kept open
30904 # by configure, so config.status won't be able to write to it; its
30905 # output is simply discarded. So we exec the FD to /dev/null,
30906 # effectively closing config.log, so it can be properly (re)opened and
30907 # appended to by config.status. When coming back to configure, we
30908 # need to make the FD available again.
30909 if test "$no_create" != yes; then
30910 ac_cs_success=:
30911 ac_config_status_args=
30912 test "$silent" = yes &&
30913 ac_config_status_args="$ac_config_status_args --quiet"
30914 exec 5>/dev/null
30915 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30916 exec 5>>config.log
30917 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30918 # would make configure fail if this is the last instruction.
30919 $ac_cs_success || as_fn_exit $?
30920 fi
30921 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30923 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30924 fi
30925
30926